2 * Copyright (c) 2010 Samsung Electronics, Inc.
5 * This software is a confidential and proprietary information
6 * of Samsung Electronics, Inc. ("Confidential Information"). You
7 * shall not disclose such Confidential Information and shall use
8 * it only in accordance with the terms of the license agreement
9 * you entered into with Samsung Electronics.
14 * Created on: Oct 9, 2013
18 #ifndef SETTING_DISPLAY_H_
19 #define SETTING_DISPLAY_H_
21 #include <Elementary.h>
26 #define FONT_SIZE_COUNT 3
27 #define SCREEN_TIME_COUNT 5
28 #define ROTATE_SCREEN_COUNT 4
29 #define SETTING_FONT_PRELOAD_FONT_PATH "/usr/share/fonts"
30 #define SETTING_FONT_DOWNLOADED_FONT_PATH "/opt/share/fonts"
32 struct _display_menu_item {
35 void (*func)(void *data, Evas_Object *obj, void *event_info);
38 struct _font_menu_item {
40 void (*func)(void *data, Evas_Object *obj, void *event_info);
43 typedef struct _Display_Item_Data
46 Elm_Object_Item *item;
49 typedef struct _Font_Style_Item_Data
53 Elm_Object_Item *item;
54 } Font_Style_Item_Data;
57 SETTING_DISPLAY_BRIGTHNESS,
58 SETTING_DISPLAY_SCREEN_TIME,
61 SETTING_DISPLAY_GESTURE,
62 SETTING_DISPLAY_ICON_SIZE,
63 SETTING_DISPLAY_EDIT_HOME,
64 SETTING_DISPLAY_EDIT_APPS
68 SETTING_DISPLAY_FONT_STYLE,
69 SETTING_DISPLAY_FONT_SIZE
73 char * _gl_display_title_get(void *data, Evas_Object *obj, const char *part);
74 Evas_Object * _gl_display_check_get(void *data, Evas_Object *obj, const char *part);
75 Evas_Object* _create_display_list(void* data);
76 void _display_gl_Battery_percent_cb(void *data, Evas_Object *obj, void *event_info);
77 void _display_gl_screen_timeout_cb(void *data, Evas_Object *obj, void *event_info);
78 void _show_screen_timeout_list(void* data);
79 void _display_gl_language_cb(void *data, Evas_Object *obj, void *event_info);
80 void _display_gl_font_cb(void *data, Evas_Object *obj, void *event_info);
81 void _display_gl_font_style_cb(void *data, Evas_Object *obj, void *event_info);
82 void _display_gl_font_size_cb(void *data, Evas_Object *obj, void *event_info);
83 void _show_font_list(void* data);
84 int _show_font_style_list(void* data);
85 void _show_font_size_list(void* data);
86 void _display_gl_rotate_screen_cb(void *data, Evas_Object *obj, void *event_info);
87 void _show_rotate_screen_list(void* data);
88 static void _display_brightness_cb(void *data, Evas_Object *obj, void *event_info);
89 Evas_Object * _show_brightness_popup(void *data, Evas_Object *obj, void *event_info);
90 void _back_brightness_naviframe_cb(void *data, Elm_Object_Item *it);
93 void _init_screen_rotate();
94 Eina_Bool _clear_display_cb(void *data, Elm_Object_Item *it);
95 static void _set_rotate_screen(const int rotation);
96 static int _get_rotate_screen();
98 #endif /* SETTING_DISPLAY_H_ */