3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Flora License, Version 1.1 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://floralicense.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 #ifndef __SETTING_MENUSCREEN_H__
18 #define __SETTING_MENUSCREEN_H__
23 #include <Elementary.h>
25 #include <glib-object.h>
31 #include <setting-common-draw-widget.h>
32 #include <setting-common-view.h>
34 #define SETTING_PW_STR "16777216"
35 #define SETTING_THEME_LIVE_MAGAZINE "com.samsung.live-magazine"
36 #define SETTING_THEME_CLUSTER_HOME "com.samsung.cluster-home"
38 #define SETTING_MENUSCREEN_FOLDER "/opt/share/install-info/"
39 #define SETTING_MENUSCREEN_FILE_EXTENSION "desktop"
40 #define SETTING_MENUSCREEN_INDEX_NAME "name"
42 #define SETTING_MENUSCREEN_SELECTED_PACKAGE_VCONF_KEY VCONFKEY_SETAPPL_SELECTED_PACKAGE_NAME
44 #define SETTING_MENUSCREEN_TABLE_NAME "menu"
45 #define SETTING_MENUSCREEN_CLAUSE "categories = '?'"
46 #define SETTING_MENUSCREEN_VALUE_CATEGORY "home-screen"
47 #define SETTING_MENUSCREEN_COLUMN_NAME "name"
48 #define SETTING_MENUSCREEN_COLUMN_PKGNAME "package"
49 #define SETTING_MENUSCREEN_COLUMN_CATEGORY "category"
52 typedef struct tag_ug_menuscreen_info {
57 typedef struct _SettingMenuscreenUG SettingMenuscreenUG;
60 * Setting Menuscreen UG context
61 * all UG function has void* as an agument. this is casted back to SettingMenuscreenUG
62 * and the functions access app context.
64 struct _SettingMenuscreenUG {
67 /* add more variables here (move your appdata to here) */
69 Evas_Object *win_main_layout;
72 Evas_Object *scroller;
74 ui_gadget_h ug_loading;
79 Evas_Object *navi_bar; /* for navigation effect */
80 Elm_Object_Item *navi_it;
82 /* entries in Genlist */
83 setting_view *view_to_load;
86 Evas_Object* chk_radio;
88 int chk_menuscreen; // selcted item
90 Eina_List * menuscreen_list;
93 Setting_GenGroupItem_Data* data_pwd;
95 Elm_Genlist_Item_Class itc_2text_2;
96 Elm_Genlist_Item_Class itc_1text_1icon_2;
97 Elm_Genlist_Item_Class itc_layout;
98 Elm_Genlist_Item_Class itc_seperator;
99 Elm_Genlist_Item_Class itc_2text_3_parent;
100 Elm_Genlist_Item_Class itc_1icon_1text_sub;
101 Elm_Genlist_Item_Class itc_1text;
104 extern setting_view setting_view_menuscreen_main;
105 extern setting_view setting_view_menuscreen_password;
107 void setting_menuscreen_layout_ug_cb(ui_gadget_h ug, enum ug_mode mode, void *priv);
109 #endif /* __SETTING_MENUSCREEN_H__ */