Revision: 2507
http://sourceforge.net/p/swingme/code/2507
Author: yuranet
Date: 2021-07-02 21:49:38 +0000 (Fri, 02 Jul 2021)
Log Message:
-----------
load ios theme
Modified Paths:
--------------
SwingMETest/ios/xcode/SwingMEDemo.xcodeproj/project.pbxproj
SwingMETest/src/net/yura/mobile/test/MainPane.java
SwingMETest/src/net/yura/mobile/test/MainTest.java
Modified: SwingMETest/ios/xcode/SwingMEDemo.xcodeproj/project.pbxproj
===================================================================
--- SwingMETest/ios/xcode/SwingMEDemo.xcodeproj/project.pbxproj 2021-07-02 17:37:36 UTC (rev 2506)
+++ SwingMETest/ios/xcode/SwingMEDemo.xcodeproj/project.pbxproj 2021-07-02 21:49:38 UTC (rev 2507)
@@ -12,6 +12,7 @@
583D44871E40B4910048FF77 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 583D44861E40B4910048FF77 /* main.cpp */; };
583D448A1E40B4B90048FF77 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 583D44881E40B4B90048FF77 /* Assets.xcassets */; };
583D448B1E40B4B90048FF77 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 583D44891E40B4B90048FF77 /* LaunchScreen.storyboard */; };
+ DE30C951268FBF750018914C /* iosmeimg in Resources */ = {isa = PBXBuildFile; fileRef = DE30C950268FBF750018914C /* iosmeimg */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
@@ -47,6 +48,7 @@
9793DC7BCA03B1F0E1B02782 /* SwingMEDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwingMEDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
B7A3E898974177A2A2F0C417 /* SwingMEDemo-Test.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SwingMEDemo-Test.app"; sourceTree = BUILT_PRODUCTS_DIR; };
DC4876D3960503C5F9FA285C /* main.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = "<group>"; };
+ DE30C950268FBF750018914C /* iosmeimg */ = {isa = PBXFileReference; lastKnownFileType = folder; name = iosmeimg; path = ../../../iOSME/iosmeimg; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -85,6 +87,7 @@
24D12A0CC041D52E8DD7E2AC = {
isa = PBXGroup;
children = (
+ DE30C950268FBF750018914C /* iosmeimg */,
4D85E57E486ED51FA34DE305 /* SwingMEDemo */,
73D1721AB6220D74E351DD53 /* SwingMEDemo-Test */,
235E336D9FBC6ED908F4C9C7 /* Frameworks */,
@@ -213,6 +216,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ DE30C951268FBF750018914C /* iosmeimg in Resources */,
583D448A1E40B4B90048FF77 /* Assets.xcassets in Resources */,
583D448B1E40B4B90048FF77 /* LaunchScreen.storyboard in Resources */,
);
Modified: SwingMETest/src/net/yura/mobile/test/MainPane.java
===================================================================
--- SwingMETest/src/net/yura/mobile/test/MainPane.java 2021-07-02 17:37:36 UTC (rev 2506)
+++ SwingMETest/src/net/yura/mobile/test/MainPane.java 2021-07-02 21:49:38 UTC (rev 2507)
@@ -14,12 +14,10 @@
* You should have received a copy of the GNU General Public License
* along with 'yura.net Swing ME'. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.yura.mobile.test;
import java.io.IOException;
import javax.microedition.lcdui.Graphics;
-
import net.yura.mobile.gui.ActionListener;
import net.yura.mobile.gui.DesktopPane;
import net.yura.mobile.gui.Midlet;
@@ -36,7 +34,6 @@
import net.yura.mobile.gui.components.Frame;
import net.yura.mobile.gui.components.MenuBar;
-
/**
* @author Yura Mamyrin
*/
@@ -65,6 +62,9 @@
if (Midlet.getPlatform() == Midlet.PLATFORM_ANDROID) {
lookandfeel = (LookAndFeel)Class.forName("net.yura.android.plaf.AndroidLookAndFeel").newInstance();
}
+ else if (Midlet.getPlatform() == Midlet.PLATFORM_IOS) {
+ lookandfeel = (LookAndFeel) Class.forName("net.yura.ios.plaf.IOSLookAndFeel").newInstance();
+ }
//else if (Midlet.getPlatform() == Midlet.PLATFORM_BLACKBERRY) {
// lookandfeel = (LookAndFeel)Class.forName("net.yura.blackberry.plaf.BlackBerryLookAndFeel").newInstance();
//}
Modified: SwingMETest/src/net/yura/mobile/test/MainTest.java
===================================================================
--- SwingMETest/src/net/yura/mobile/test/MainTest.java 2021-07-02 17:37:36 UTC (rev 2506)
+++ SwingMETest/src/net/yura/mobile/test/MainTest.java 2021-07-02 21:49:38 UTC (rev 2507)
@@ -3,13 +3,11 @@
import java.util.Hashtable;
import java.util.Vector;
import java.io.InputStream;
-
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import javax.microedition.io.Connector;
import javax.microedition.io.InputConnection;
-
import javax.microedition.lcdui.Canvas;
import net.yura.mobile.gui.DesktopPane;
import net.yura.mobile.gui.Font;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|