2 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 * Created on: Oct 9, 2013
24 #ifndef SETTING_DISPLAY_H_
25 #define SETTING_DISPLAY_H_
27 #include <Elementary.h>
32 #define FONT_SIZE_COUNT 3
33 #define SCREEN_TIME_COUNT 5
34 #define ROTATE_SCREEN_COUNT 4
35 #define SETTING_FONT_PRELOAD_FONT_PATH "/usr/share/fonts"
36 #define SETTING_FONT_DOWNLOADED_FONT_PATH "/opt/share/fonts"
38 struct _display_menu_item {
41 void (*func)(void *data, Evas_Object *obj, void *event_info);
44 struct _font_menu_item {
46 void (*func)(void *data, Evas_Object *obj, void *event_info);
49 typedef struct _Display_Item_Data
52 Elm_Object_Item *item;
55 typedef struct _Font_Style_Item_Data
59 Elm_Object_Item *item;
60 } Font_Style_Item_Data;
63 SETTING_DISPLAY_BRIGTHNESS,
64 SETTING_DISPLAY_SCREEN_TIME,
67 SETTING_DISPLAY_GESTURE,
68 SETTING_DISPLAY_ICON_SIZE,
69 SETTING_DISPLAY_EDIT_HOME,
70 SETTING_DISPLAY_EDIT_APPS
74 char * _gl_display_title_get(void *data, Evas_Object *obj, const char *part);
75 Evas_Object * _gl_display_check_get(void *data, Evas_Object *obj, const char *part);
76 Evas_Object* _create_display_list(void* data);
77 void _display_gl_Battery_percent_cb(void *data, Evas_Object *obj, void *event_info);
78 void _display_gl_screen_timeout_cb(void *data, Evas_Object *obj, void *event_info);
79 void _show_screen_timeout_list(void* data);
80 void _display_gl_language_cb(void *data, Evas_Object *obj, void *event_info);
81 void _display_gl_font_cb(void *data, Evas_Object *obj, void *event_info);
82 void _display_gl_font_style_cb(void *data, Evas_Object *obj, void *event_info);
83 void _display_gl_font_size_cb(void *data, Evas_Object *obj, void *event_info);
84 void _show_font_list(void* data);
85 void _show_font_style_list(void* data);
86 void _show_font_size_list(void* data);
87 void _display_gl_rotate_screen_cb(void *data, Evas_Object *obj, void *event_info);
88 void _show_rotate_screen_list(void* data);
89 static void _display_brightness_cb(void *data, Evas_Object *obj, void *event_info);
90 Evas_Object * _show_brightness_popup(void *data, Evas_Object *obj, void *event_info);
91 void _back_brightness_naviframe_cb(void *data, Elm_Object_Item *it);
94 void _init_screen_rotate();
95 Eina_Bool _clear_display_cb(void *data, Elm_Object_Item *it);
96 static void _set_rotate_screen(const int rotation);
97 static int _get_rotate_screen();
99 #endif /* SETTING_DISPLAY_H_ */