3 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Flora License, Version 1.1 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://floralicense.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #ifndef _W_HOME_CONF_H_
19 #define _W_HOME_CONF_H_
22 #define BASE_WIDTH (360.0)
24 #define BASE_HEIGHT (360.0)
26 #define BASE_HEIGHT (480.0)
29 #define SCROLLER_NORMAL_HEIGHT BASE_HEIGHT
30 #define SCROLLER_EDIT_HEIGHT BASE_HEIGHT
32 #define NOTIFICATION_ICON_WIDTH ELM_SCALE_SIZE(60)
33 #define NOTIFICATION_ICON_HEIGHT ELM_SCALE_SIZE(60)
36 #define INDICATOR_START_X (90.0)
37 #define INDICATOR_WIDTH (180.0)
38 #define INDICATOR_START_Y (25.0)
39 #define INDICATOR_HEIGHT (20.0)
41 #define INDEX_THUMBNAIL_HOME_BG_SIZE 20 20
42 #define INDEX_THUMBNAIL_HOME_IND_SIZE 20 20
44 #define PAGE_EDIT_PAD_WIDTH (5.0)
45 #define PAGE_EDIT_SIDE_PAD_WIDTH (40+16)
47 #define ITEM_EDIT_EF_WIDTH 234
48 #define ITEM_EDIT_EF_HEIGHT 234
49 #define PAGE_EDIT_WIDTH (PAGE_EDIT_PAD_WIDTH+234.0+PAGE_EDIT_PAD_WIDTH)
50 #define PAGE_EDIT_HEIGHT (234.0)
52 #define ITEM_EDIT_WIDTH (206.0)
53 #define ITEM_EDIT_HEIGHT (206.0)
54 #define ITEM_EDIT_EF_MIN 234 234
56 #define ITEM_EDIT_LINE_WIDTH (234.0)
57 #define ITEM_EDIT_LINE_HEIGHT (234.0)
59 #define POPUP_TEXT_MAX_WIDTH (200.0)
60 #define POPUP_TEXT_MAX_HEIGHT (360.0)
63 #define INDICATOR_START_X (0.0)
64 #define INDICATOR_WIDTH (180.0)
65 #define INDICATOR_START_Y (9.0)
66 #define INDICATOR_HEIGHT (15.0)
68 #define INDEX_THUMBNAIL_HOME_BG_SIZE 20 15
69 #define INDEX_THUMBNAIL_HOME_IND_SIZE 15 15
71 #define PAGE_EDIT_PAD_WIDTH (16.0)
72 #define PAGE_EDIT_SIDE_PAD_WIDTH (40+16)
74 #define PAGE_EDIT_WIDTH (PAGE_EDIT_PAD_WIDTH+216.0+PAGE_EDIT_PAD_WIDTH)
75 #define PAGE_EDIT_HEIGHT (25.0+29.0+265.0)
77 #define ITEM_EDIT_WIDTH (216.0)
78 #define ITEM_EDIT_HEIGHT (288.0)
79 #define ITEM_EDIT_EF_WIDTH (242.0)
80 #define ITEM_EDIT_EF_HEIGHT (314.0)
82 #define ITEM_EDIT_LINE_WIDTH (ITEM_EDIT_WIDTH+4)
83 #define ITEM_EDIT_LINE_HEIGHT (ITEM_EDIT_HEIGHT+4)
85 #define POPUP_TEXT_MAX_WIDTH (-1)
86 #define POPUP_TEXT_MAX_HEIGHT (377.0)
88 #define CLOSE_BUTTON_X 316.0
89 #define CLOSE_BUTTON_Y 41.0
94 #define ADD_WIDGET_BUTTON_HEIGHT (24+37+24)
95 #define BUTTON_HEIGHT_REL (0.15)
96 #define ADD_WIDGET_BUTTON_TEXT_MIN 328 86
98 #define ADD_VIEWER_PREVIEW_WIDTH 276
99 #define ADD_VIEWER_PREVIEW_HEIGHT 276
100 #define ADD_VIEWER_PAGE_HEIGHT 329
101 #define ADD_VIEWER_TEXT_WIDTH 130
102 #define ADD_VIEWER_TEXT_HEIGHT 37
104 #define ADD_VIEWER_PREVIEW_WIDTH 216
105 #define ADD_VIEWER_PREVIEW_HEIGHT 288
106 #define ADD_VIEWER_PAGE_HEIGHT 377
107 #define ADD_VIEWER_TEXT_WIDTH 216
108 #define ADD_VIEWER_TEXT_HEIGHT 37
110 #define ADD_VIEWER_PREVIEW_LINE_WIDTH (ADD_VIEWER_PREVIEW_WIDTH+4)
111 #define ADD_VIEWER_PREVIEW_LINE_HEIGHT (ADD_VIEWER_PREVIEW_HEIGHT+4)
112 #define ADD_VIEWER_PAGE_WIDTH 360
113 #define ADD_VIEWER_PREVIEW_PAD_LEFT 72
114 #define ADD_VIEWER_PREVIEW_PAD_TOP 7
115 #define ADD_VIEWER_PAD 8
117 #define CLOCK_SHORTCUT_AREA_W 90
118 #define CLOCK_SHORTCUT_AREA_H 90
120 #define BEZEL_MOVE_THRESHOLD 80
122 #define BUTTON_LOCATION 411.5
123 #define BUTTON_PRESSED_LOCATION 150
124 #define BUTTON_PRESSED_HEIGHT 165
127 #define BOOTING_STATE_DONE 1
129 #define LONGPRESS_THRESHOLD 15
130 #define LONGPRESS_TIME 0.5f
131 #define INDEX_UPDATE_TIME 0.1f
133 #define DEFAULT_XML_FILE RESDIR"/default_items.xml"
134 #define TTS_XML_FILE RESDIR"/default_items_tts.xml"
137 #define POPUP_STYLE_DEFAULT "circle"
138 #define POPUP_STYLE_TOAST "toast/circle"
139 #define BUTTON_STYLE_POPUP "popup/circle"
141 #define POPUP_STYLE_DEFAULT "default"
142 #define POPUP_STYLE_TOAST "toast"
143 #define BUTTON_STYLE_POPUP "popup"
146 #endif // _W_HOME_CONF_H_