add flight mode
authorHyejin Kim <hyejin0906.kim@samsung.com>
Tue, 29 Jan 2013 01:39:29 +0000 (10:39 +0900)
committerHyejin Kim <hyejin0906.kim@samsung.com>
Tue, 29 Jan 2013 01:41:03 +0000 (10:41 +0900)
resource/setting.cfg
setting-common/src/setting-cfg.c
src/setting-main.c

index a6a2f2e..58cca5f 100755 (executable)
     "name" : "IDS_COM_BODY_SYSTEM",
     "menu" : [
       {
+        "key_name" : "IDS_ST_BODY_FLIGHT_MODE",
+        "icon_path" : "/usr/apps/org.tizen.setting/res/icons/A01-1_icon_Flight_Mode.png",
+        "ug_args" : "(null)",
+        "pos" : 0,
+        "click_times" : 0,
+        "is_resetable" : 0
+      },
+      {
         "key_name" : "IDS_COM_BODY_WALLPAPER",
         "icon_path" : "/usr/apps/org.tizen.setting/res/icons/A01-1_icon_Wallpaper.png",
         "ug_args" : "setting-display-efl|viewtype:wallpaper",
index e601d9d..4a15c97 100755 (executable)
@@ -128,7 +128,8 @@ int setting_cfg_create(void)
 
        /* System */
        __create_a_menu(KeyStr_System);
-       /* a new group..        */
+       /* a new group.. */
+       __create_an_item(KeyStr_FlightMode, IMG_FlightMode, NULL, Cfg_Item_Pos_Level0, Cfg_Item_unResetable);
 
        // Wallpaper -- here
 #if SUPPORT_WALLPAPER
index eaa7d1a..e09e32c 100755 (executable)
@@ -849,7 +849,12 @@ void __load_system_menu_list(void *data, Cfg_Item_Position inputPos, Evas_Object
                                continue;
                        }
 
-                       if (!safeStrCmp(KeyStr_Landscape, keyStr)) {    /* load special UG */
+                       if (!safeStrCmp(KeyStr_FlightMode, keyStr)) {   /* load special radio */
+                               // ug == NULL
+                               item_data = mainlist_table[MAINLIST_ENTRY_FLIGHT_MODE].ui_handler(ad, keyStr, icon_path, ug_args, genlist);
+
+                       }
+                       else if (!safeStrCmp(KeyStr_Landscape, keyStr)) {       /* load special UG */
                                int value = 0;
                                vconf_get_bool
                                    (VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL, &value);