menu: modified controller menu
authorGiWoong Kim <giwoong.kim@samsung.com>
Fri, 12 Jun 2015 10:29:41 +0000 (19:29 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Mon, 15 Jun 2015 12:45:15 +0000 (21:45 +0900)
change the menu depth
modified menu name on SWT UI
remove some separator menu items

Change-Id: I2847ba5d4de9cb47760d13aee304e043fcda4adb
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/skins/mobile-general-3btn/layout.xml
tizen/src/skin/client/skins/tv-1920x1080/layout.xml
tizen/src/skin/client/skins/wearable-general-1btn/layout.xml
tizen/src/skin/client/src/org/tizen/emulator/skin/menu/PopupMenu.java

index 6f4b217d9b650bf32eb6ce7e533ed020eb446eaf..47e2e551a7ddb94ee75b4a645e09acad4733689b 100644 (file)
@@ -47,9 +47,9 @@
             </factorList>
         </scaleItem>
         <separator/>
-        <controllerItem/>
         <advancedItem>
             <menuList>
+                <controllerItem/>
                 <screenShotItem name="Screen Shot">
                     <shortcut>Ctrl+F7</shortcut>
                 </screenShotItem>
index e94ffd118b44e7400f680bf45f24fc153376a77c..2dc65ae93588e46fc3b2e54c129f48d9f1f90ce7 100644 (file)
@@ -31,9 +31,9 @@
             </factorList>
         </scaleItem>
         <separator/>
-        <controllerItem/>
         <advancedItem>
             <menuList>
+                <controllerItem/>
                 <screenShotItem name="Screen Shot">
                     <shortcut>Ctrl+F7</shortcut>
                 </screenShotItem>
index 9d8d46a8a118e6191b4bf1f73068f04401f12a57..a355d372da43b8f2e95e002e1bd4a4003cd4e1f6 100644 (file)
@@ -37,9 +37,9 @@
             <shortcut property="next">Ctrl+Num+9</shortcut>
         </switchItem>
         <separator/>
-        <controllerItem/>
         <advancedItem>
             <menuList>
+                <controllerItem/>
                 <screenShotItem name="Screen Shot">
                     <shortcut>Ctrl+F7</shortcut>
                 </screenShotItem>
index afe51ba7ad29106bfd9d5835c10de8460e571790..1bd07cc71f6b686ac2a4fa8c2889566750937296 100644 (file)
@@ -57,7 +57,7 @@ public class PopupMenu {
        public static final String ROTATE_MENUITEM_NAME = "&Rotate";
        public static final String SCALE_MENUITEM_NAME = "&Scale";
        public static final String INTERPOLATION_MENUITEM_NAME = "&Quality";
-       public static final String KEYWINDOW_MENUITEM_NAME = "&Key Window";
+       public static final String KEYWINDOW_MENUITEM_NAME = "Contro&ller";
        public static final String ADVANCED_MENUITEM_NAME = "Ad&vanced";
        public static final String SCREENSHOT_MENUITEM_NAME = "&Screen Shot";
        public static final String HOSTKBD_MENUITEM_NAME = "&Host Keyboard";
@@ -191,22 +191,22 @@ public class PopupMenu {
                        new MenuItem(menu, SWT.SEPARATOR);
                }
 
-               /* Key Window menu */
-               if (itemProperties == null ||
-                               itemProperties.getKeywindowItem() == null) {
-                       keyWindowItem = createKeyWindowItem(menu, KEYWINDOW_MENUITEM_NAME);
-               } else {
-                       MenuItemType keywindowMenuType = itemProperties.getKeywindowItem();
-                       if (keywindowMenuType.isVisible() == true) {
-                               keyWindowItem = createKeyWindowItem(menu,
-                                               (keywindowMenuType.getItemName().isEmpty()) ?
-                                               KEYWINDOW_MENUITEM_NAME : keywindowMenuType.getItemName());
-                       }
-               }
-
                /* Advanced menu */
                Menu advancedSubMenu = new Menu(menu.getShell(), SWT.DROP_DOWN);
                {
+                       /* Key Window menu */
+                       if (itemProperties == null ||
+                                       itemProperties.getKeywindowItem() == null) {
+                               keyWindowItem = createKeyWindowItem(advancedSubMenu, KEYWINDOW_MENUITEM_NAME);
+                       } else {
+                               MenuItemType keywindowMenuType = itemProperties.getKeywindowItem();
+                               if (keywindowMenuType.isVisible() == true) {
+                                       keyWindowItem = createKeyWindowItem(advancedSubMenu,
+                                                       (keywindowMenuType.getItemName().isEmpty()) ?
+                                                       KEYWINDOW_MENUITEM_NAME : keywindowMenuType.getItemName());
+                               }
+                       }
+
                        /* Screen shot menu */
                        screenshotItem = createScreenShotItem(
                                        advancedSubMenu, SCREENSHOT_MENUITEM_NAME);
@@ -258,10 +258,6 @@ public class PopupMenu {
                        aboutItem = createAboutItem(
                                        advancedSubMenu, ABOUT_MENUITEM_NAME);
 
-                       if (aboutItem != null) {
-                               new MenuItem(advancedSubMenu, SWT.SEPARATOR);
-                       }
-
                        /* Force close menu */
                        if (itemProperties == null ||
                                        itemProperties.getForceCloseItem() == null) {
@@ -308,10 +304,6 @@ public class PopupMenu {
                        }
                }
 
-               if (keyWindowItem != null || advancedItem != null || shellItem != null) {
-                       new MenuItem(menu, SWT.SEPARATOR);
-               }
-
                /* Emulator Control Panel menu */
                if (itemProperties == null ||
                                itemProperties.getControlPanelItem() == null) {
@@ -325,7 +317,8 @@ public class PopupMenu {
                        }
                }
 
-               if (ecpItem != null) {
+               if (keyWindowItem != null || advancedItem != null ||
+                               shellItem != null || ecpItem != null) {
                        new MenuItem(menu, SWT.SEPARATOR);
                }