4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
6 * Contact: MyoungJune Park <mj2004.park@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
21 #ifndef __SETTING_DISPLAY_H__
22 #define __SETTING_DISPLAY_H__
27 #include <Elementary.h>
30 #include <glib-object.h>
32 #include <setting-common-draw-widget.h>
33 #include <setting-common-view.h>
37 #define Keystr_SmartScreen "IDS_ST_MBODY_SMART_SCREEN"
38 #define Keystr_ScreenMode "IDS_ST_BODY_SCREEN_MODE"
39 #define Keystr_Dynamic "IDS_ST_BODY_DYNAMIC_T_DISPLAY_EFFECT"
40 #define Keystr_Standard "IDS_ST_BODY_STANDARD_T_DISPLAY_EFFECT"
41 #define Keystr_Natural "IDS_ST_BODY_NATURAL_T_DISPLAY_EFFECT"
42 #define Keystr_Movie "IDS_ST_BODY_MOVIE_T_DISPLAY_EFFECT"
45 WALLPAPER_CUR_SEL_NONE = 0,
46 WALLPAPER_CUR_SEL_HOME_SCREEN,
47 WALLPAPER_CUR_SEL_LOCK_SCREEN,
48 WALLPAPER_CUR_SEL_HOME_AND_LOCK_SCREEN
51 typedef struct _SettingDisplayUG SettingDisplayUG;
53 #define OPENING_EFFECT 0
54 #define BRIGHTNESS_DISPLAY 0
57 * Setting Display UG context
58 * all UG function has void* as an agument. this is casted back to SettingDisplayUG
59 * and the functions access app context.
61 struct _SettingDisplayUG {
64 /* add more variables here (move your appdata to here) */
66 Evas_Object *win_main_layout;
69 ui_gadget_h ug_loading;
74 Evas_Object *navi_bar; /* for navigation effect */
76 Setting_GenGroupItem_Data *data_screen_mode;
77 Setting_GenGroupItem_Data *data_br;
78 Setting_GenGroupItem_Data *data_back;
79 Setting_GenGroupItem_Data *data_br_auto;
80 Setting_GenGroupItem_Data *data_br_sli;
83 Setting_GenGroupItem_Data *data_launch_effect;
86 Setting_GenGroupItem_Data *data_launch_image;
87 Setting_GenGroupItem_Data *data_battery;
89 Setting_GenGroupItem_Data *data_auto_adjust_scrn_tone;
92 Wallpaper_Cur_Sel cur_sel;
93 Evas_Object *view_layout;
94 Evas_Object *selInfoPop;
95 Evas_Object *selInfoPop_layout;
96 Setting_GenGroupItem_Data *data_home_screen;
97 Setting_GenGroupItem_Data *data_lock_screen;
98 Setting_GenGroupItem_Data *data_home_lock_screen;
103 setting_view *view_to_load;
105 Evas_Object *popup_chk;
108 Elm_Genlist_Item_Class itc_2text_2;
109 Elm_Genlist_Item_Class itc_1text_1icon;
110 Elm_Genlist_Item_Class itc_layout;
111 Elm_Genlist_Item_Class itc_seperator;
112 Elm_Genlist_Item_Class itc_2text_3_parent;
113 Elm_Genlist_Item_Class itc_1icon_1text_sub;
114 Elm_Genlist_Item_Class itc_1text;
115 Elm_Genlist_Item_Class itc_screen_mode;
117 ui_gadget_h ug_gallery;
118 ui_gadget_h ug_imageviewer;
119 Eina_Bool wallpaper_changed;
120 //Improve response speed
121 Ecore_Idler *set_idler;
124 extern setting_view setting_view_display_main;
125 extern setting_view setting_view_display_brightness;
126 extern setting_view setting_view_display_wallpaper;
127 extern setting_view setting_view_display_screen_mode;
129 void setting_display_layout_ug_cb(ui_gadget_h ug, enum ug_mode mode,
132 #endif /* __SETTING_DISPLAY_H__ */