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_FONT_H__
22 #define __SETTING_FONT_H__
25 #include <Elementary.h>
27 #include <glib-object.h>
29 #include <setting-common-draw-widget.h>
30 #include <setting-common-view.h>
31 #include <system_settings.h>
33 typedef struct _SettingFontUG SettingFontUG;
36 FONT_SIZE_AND_FONT_SEL_UG,
37 FONT_SEL_VIEW_APPCONTROL,
38 FONT_SIZE_VIEW_APPCONTROL,
42 SELECTED_FONT_CHANGE_NONE,
43 SELECTED_FONT_CHANGE_IN_PROCESS,
44 SELECTED_FONT_CHANGE_DONE
48 FONT_EXPAND_STATE_NONE,
49 FONT_EXPAND_STATE_FONT_TYPE,
50 FONT_EXPAND_STATE_FONT_SIZE,
55 * Setting Font UG context
56 * all UG function has void* as an agument. this is casted back to SettingFontUG
57 * and the functions access app context.
59 struct _SettingFontUG {
62 /* add more variables here (move your appdata to here) */
64 Evas_Object *win_main_layout;
71 Elm_Object_Item *navi_it_font;
72 Elm_Object_Item *navi_it_font_size;
76 Evas_Object *main_popup;
77 Evas_Object *size_popup;
79 Elm_Genlist_Item_Class itc_2text_3_parent;
80 Elm_Genlist_Item_Class itc_1icon_1text_sub;
81 Elm_Genlist_Item_Class itc_1text_1icon_2;
82 Elm_Genlist_Item_Class itc_1text_1icon_2_font_size;
83 Elm_Genlist_Item_Class itc_2text_2;
84 Elm_Genlist_Item_Class itc_group_item;
85 Elm_Genlist_Item_Class itc_bg_1icon;
86 Elm_Genlist_Item_Class itc_seperator;
88 Setting_GenGroupItem_Data *subitem;
89 Setting_GenGroupItem_Data *font_type;
90 Setting_GenGroupItem_Data *font_size;
98 FontUGViewMode viewmode;
100 /* Font Size & Sel */
101 Evas_Object *size_rdg;
102 setting_view *view_to_load;
104 Elm_Object_Item *cur_focus_item;
105 Eina_List *font_type_list;
107 Ecore_Timer *font_size_idler;
108 Ecore_Timer *font_type_timer;
110 FontChangStatus font_change_status;
111 FontExpandState font_expand_state;
114 extern setting_view setting_view_font_main;
115 extern setting_view setting_view_font_font_size;
118 #endif /* __SETTING_FONT_H__ */