911b4c1769c2cab9386b9f80af698041393100e3
[apps/home/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         // smart screen
90         Setting_GenGroupItem_Data *data_smart_stay;
91         Setting_GenGroupItem_Data *data_smart_rotation;
92         Setting_GenGroupItem_Data *data_auto_adjust_scrn_tone;
93
94         // for wallpaper
95         Wallpaper_Cur_Sel cur_sel;
96         Evas_Object *view_layout;
97         Evas_Object *selInfoPop;
98         Evas_Object *selInfoPop_layout;
99         Setting_GenGroupItem_Data *data_home_screen;
100         Setting_GenGroupItem_Data *data_lock_screen;
101         Setting_GenGroupItem_Data *data_home_lock_screen;
102
103         //int bright_value;
104         int low_bat;
105
106         setting_view *view_to_load;
107
108         Evas_Object *popup_chk;
109         Evas_Object *popup;
110
111         Elm_Genlist_Item_Class itc_2text_2;
112         Elm_Genlist_Item_Class itc_1text_1icon;
113         Elm_Genlist_Item_Class itc_layout;
114         Elm_Genlist_Item_Class itc_seperator;
115         Elm_Genlist_Item_Class itc_2text_3_parent;
116         Elm_Genlist_Item_Class itc_1icon_1text_sub;
117         Elm_Genlist_Item_Class itc_1text;
118
119         ui_gadget_h ug_gallery;
120         ui_gadget_h ug_imageviewer;
121         Eina_Bool wallpaper_changed;
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_smart_screen;
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__ */