UI: supports reboot from context menu
authorJinhyung Choi <jinh0.choi@samsung.com>
Wed, 4 Nov 2015 02:33:51 +0000 (11:33 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Thu, 26 Nov 2015 04:46:08 +0000 (13:46 +0900)
commitcf9b7905746a104b83261bc3a4c6955ab0e62bbf
treeec5d26b40b80ce7c41750704eced5677fb12be90
parent22cd3f8fe579dbacfe0df79fbba3966d4c7e8894
UI: supports reboot from context menu

When a malfunction of emulator occurs, such as no response from the guest OS,
what a developer can do is selecting "force close"
and restarting from emulator manager.

In order to avoid the inconvenience of doing it, reboot menu is added.
It is working directly to hardware after requesting sync() to guest OS

         ----------------
         | Context menu |
         ----------------
         |   reboot     |
         ----------------                         ----------
                |                                 | emuld  |
     ------------------------                     ----------
     | 1. send sync message |   ------------->    | sync() |
     | 2. start a timer     |                     ----------
     ------------------------
               | The timer expires after 1s
   -------------------------------
   | qemu_system_reset_request() |
   -------------------------------

Conflicts:
tizen/src/extension/ui/resource/skins/tv-1080x1920/layout.xml
tizen/src/extension/ui/resource/skins/tv-1920x1080/layout.xml
tizen/src/extension/ui/resource/skins/tv-2560x1080/layout.xml

Change-Id: I3c3c31c2cc19065f53b620d83c79e68e0183db53
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
(cherry picked from commit 14fc61baff1e8b48cbcb810a8392a1ac601f2511)
22 files changed:
tizen/src/ecs/ecs.h
tizen/src/ecs/ecs_msg.c
tizen/src/emulator.c
tizen/src/ui/menu/contextmenu.cpp
tizen/src/ui/menu/contextmenu.h
tizen/src/ui/menu/menuitem.h
tizen/src/ui/resource/icons/system_reset.png [new file with mode: 0644]
tizen/src/ui/resource/resource.qrc
tizen/src/ui/resource/skins/mobile-320x480-3btn/layout.xml
tizen/src/ui/resource/skins/mobile/mobile-480x800-3btn/layout.xml
tizen/src/ui/resource/skins/mobile/mobile-540x960-3btn/layout.xml
tizen/src/ui/resource/skins/mobile/mobile-720x1280-3btn/layout.xml
tizen/src/ui/resource/skins/mobile/mobile-general-3btn/layout.xml
tizen/src/ui/resource/skins/tv/tv-1920x1080/layout.xml
tizen/src/ui/resource/skins/wearable/wearable-320x320-1btn/layout.xml
tizen/src/ui/resource/skins/wearable/wearable-360x360-1btn/layout.xml
tizen/src/ui/resource/skins/wearable/wearable-360x480-1btn/layout.xml
tizen/src/ui/resource/skins/wearable/wearable-general-1btn/layout.xml
tizen/src/ui/resource/skins/wearable/wearableO-360x360-2btn/layout.xml
tizen/src/ui/resource/skins/wearableO-360x360-1btn/layout.xml
tizen/src/ui/xmllayoutkeyword.h
tizen/src/ui/xmllayoutparser.cpp