skin: modified skin mode name
authorgiwoong.kim <giwoong.kim@samsung.com>
Mon, 22 Oct 2012 02:07:28 +0000 (11:07 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Mon, 22 Oct 2012 02:07:28 +0000 (11:07 +0900)
none -> general

Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java
tizen/src/skin/client/src/org/tizen/emulator/skin/mode/SkinMode.java
tizen/src/skin/client/src/org/tizen/emulator/skin/util/SkinUtil.java

index e19c8eaf57639977a1a7b0f68cb66d93e6974b9f..7ffd628dbc67f0f11479a65e0e21178c3d08221e 100644 (file)
@@ -203,7 +203,7 @@ public class EmulatorSkin {
                this.pressedKeyEventList = new LinkedList<KeyEventData>();
                
                int style = SWT.NO_TRIM;
-               if (skinMode == SkinMode.NONE) {
+               if (skinMode == SkinMode.GENERAL) {
                        style = SWT.TITLE | SWT.CLOSE | SWT.MIN | SWT.BORDER;
                }
 
@@ -260,7 +260,7 @@ public class EmulatorSkin {
 
                arrangeSkin(lcdWidth, lcdHeight, scale, rotationId);
 
-               if (skinMode != SkinMode.NONE && null == currentImage) {
+               if (skinMode != SkinMode.GENERAL && null == currentImage) {
                        logger.severe("Failed to load initial skin image file. Kill this skin process.");
                        SkinUtil.openMessage(shell, null,
                                        "Failed to load Skin image file.", SWT.ICON_ERROR, config);
@@ -439,7 +439,7 @@ public class EmulatorSkin {
                this.currentRotationId = rotationId;
                this.currentAngle = SkinRotation.getAngle( rotationId );
 
-               if (skinMode != SkinMode.NONE) {
+               if (skinMode != SkinMode.GENERAL) {
                        Image tempImage = null;
                        Image tempKeyPressedImage = null;
 
@@ -565,7 +565,7 @@ public class EmulatorSkin {
                        }
                };
 
-               if (skinMode != SkinMode.NONE) {
+               if (skinMode != SkinMode.GENERAL) {
                        shell.addPaintListener(shellPaintListener);
                }
 
@@ -619,7 +619,7 @@ public class EmulatorSkin {
 
                };
 
-               if (skinMode != SkinMode.NONE) {
+               if (skinMode != SkinMode.GENERAL) {
                        shell.addMouseTrackListener(shellMouseTrackListener);
                }
 
@@ -685,7 +685,7 @@ public class EmulatorSkin {
                        } //end of mouseMove
                };
 
-               if (skinMode != SkinMode.NONE) {
+               if (skinMode != SkinMode.GENERAL) {
                        shell.addMouseMoveListener(shellMouseMoveListener);
                }
 
@@ -790,7 +790,7 @@ public class EmulatorSkin {
                        }
                };
 
-               if (skinMode != SkinMode.NONE) {
+               if (skinMode != SkinMode.GENERAL) {
                        shell.addMouseListener(shellMouseListener);
                }
 
index 36a6519e6d5e11a03bfb30c7dd08af6dee14a77c..7e3a376e3cad167fbcfedfc97d4e466ea1d2d215 100644 (file)
@@ -32,7 +32,7 @@ package org.tizen.emulator.skin.mode;
  *
  */
 public enum SkinMode {
-       NONE("none"),
+       GENERAL("general"),
        FULLSCREEN("fullscreen"), /* not used yet */
        DEFAULT("default"),
        CUSTOM("custom"); /* not used yet */
index 5cfe94abc565517390f0cd4e4bb62772a151870d..d481916b6c032a0b9489da9ce6d2f41adbc284b4 100644 (file)
@@ -117,8 +117,8 @@ public class SkinUtil {
                LcdType lcd = rotation.getLcd();
                RegionType region = lcd.getRegion();
 
-               Integer left = (mode != SkinMode.NONE) ? region.getLeft() : 0;
-               Integer top = (mode != SkinMode.NONE) ? region.getTop() : 0;
+               Integer left = (mode != SkinMode.GENERAL) ? region.getLeft() : 0;
+               Integer top = (mode != SkinMode.GENERAL) ? region.getTop() : 0;
                Integer width = region.getWidth();
                Integer height = region.getHeight();