fixed bug of app-control that didn't work with font-size
[apps/core/preloaded/settings.git] / setting-font / include / setting-font.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_FONT_H__
22 #define __SETTING_FONT_H__
23
24 #include <stdio.h>
25 #include <Elementary.h>
26
27 #include <glib-object.h>
28
29 #include <setting-common-draw-widget.h>
30 #include <setting-common-view.h>
31
32 typedef struct _SettingFontUG SettingFontUG;
33
34 typedef enum
35 {
36         FONT_SIZE_AND_FONT_SEL_UG,
37         FONT_SEL_VIEW_APPCONTROL,
38         FONT_SIZE_VIEW_APPCONTROL,
39 }FontUGViewMode;
40
41
42 /**
43  * Setting Font UG context
44  * all UG function has void* as an agument. this is casted back to SettingFontUG
45  * and the functions access app context.
46  */
47 struct _SettingFontUG {
48         ui_gadget_h ug;
49
50         /* add more variables here (move your appdata to here) */
51         Evas *evas;
52         Evas_Object *win_main_layout;
53         Evas_Object *win_get;
54
55         Evas_Object *ly_main;
56
57         Evas_Object *genlist;
58         Evas_Object *navibar;
59
60         /* font setting */
61         Evas_Object *popup;
62         Elm_Genlist_Item_Class itc_2text_3_parent;
63         Elm_Genlist_Item_Class itc_1icon_1text_sub;
64         Elm_Genlist_Item_Class itc_1text_1icon_2;
65         Elm_Genlist_Item_Class itc_2text_2;
66         Elm_Genlist_Item_Class itc_group_item;
67         Elm_Genlist_Item_Class itc_bg_1icon;
68         Elm_Genlist_Item_Class itc_seperator;
69
70         Setting_GenGroupItem_Data *subitem;
71         Setting_GenGroupItem_Data *font_type;
72         Setting_GenGroupItem_Data *font_size;
73
74         // font type
75         int prev_font;
76         char *font_name;
77
78         int *ret_font_size;
79
80         FontUGViewMode viewmode;
81
82         // Font Size & Sel
83         Evas_Object *size_rdg;
84         setting_view *view_to_load;
85 };
86
87 extern setting_view setting_view_font_main;
88 extern setting_view setting_view_font_font_size;
89
90 int setting_font_update_vconf_key(void *data, setting_vconf_type type,
91                                   int slp_key);
92
93 #endif                          /* __SETTING_FONT_H__ */