Take the special methord to improveove the speed of Brightness Setting and fix N_SE...
[apps/core/preloaded/settings.git] / setting-display / include / setting-display.h
1 /*
2  * setting
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
5  *
6  * Contact: MyoungJune Park <mj2004.park@samsung.com>
7  *
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
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
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.
19  *
20  */
21 #ifndef __SETTING_DISPLAY_H__
22 #define __SETTING_DISPLAY_H__
23
24 #include <stdio.h>
25 #include <string.h>
26
27 #include <Elementary.h>
28
29
30 #include <glib-object.h>
31
32 #include <setting-common-draw-widget.h>
33 #include <setting-common-view.h>
34
35 #include <device.h>
36
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"
43
44 typedef enum {
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
49 } Wallpaper_Cur_Sel;
50
51 typedef struct _SettingDisplayUG SettingDisplayUG;
52
53 #define OPENING_EFFECT 0
54 #define BRIGHTNESS_DISPLAY 0
55
56 /**
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.
60  */
61 struct _SettingDisplayUG {
62         ui_gadget_h ug;
63
64         /* add more variables here (move your appdata to here) */
65         Evas *evas;
66         Evas_Object *win_main_layout;
67         Evas_Object *win_get;
68
69         ui_gadget_h ug_loading;
70
71         Evas_Object *ly_main;
72         Evas_Object *ly_wall;
73
74         Evas_Object *navi_bar;  /*  for navigation effect */
75
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;
81
82 #if OPENING_EFFECT
83         Setting_GenGroupItem_Data *data_launch_effect;
84 #endif
85
86         Setting_GenGroupItem_Data *data_launch_image;
87         Setting_GenGroupItem_Data *data_battery;
88
89         Setting_GenGroupItem_Data *data_auto_adjust_scrn_tone;
90
91         // for wallpaper
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;
99
100         //int bright_value;
101         int low_bat;
102
103         setting_view *view_to_load;
104
105         Evas_Object *popup_chk;
106         Evas_Object *popup;
107
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;
116
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;
122 };
123
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;
128
129 void setting_display_layout_ug_cb(ui_gadget_h ug, enum ug_mode mode,
130                                   void *priv);
131
132 #endif                          /* __SETTING_DISPLAY_H__ */