50baf66fa8f95f60ff02908f43d294d4be090e9c
[apps/native/home/homescreen-efl.git] / inc / conf.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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
7  *
8  * http://floralicense.org/license/
9  *
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.
15  */
16
17 #ifndef CONF_H_
18 #define CONF_H_
19
20
21 /* #define HOME_SCREEN_EFL_TEST_RUN 1 */
22 /* #define HOME_SCREEN_DND_ENABLED 1 */
23 /* #define HOME_SCREEN_BLUR_ENABLED 1 */
24
25 #define FRAMES_PER_SECOND 1.0/60.0
26
27 /*=================================SCREEN CONF================================*/
28 #define INDICATOR_HEIGHT 52
29 #define ROOT_WIN_H 1280
30 #define ROOT_WIN_W 720
31
32 #define HD_WIDTH 720
33 #define HD_HEIGHT 1280
34 #define QHD_WIDTH 540
35 #define QHD_HEIGHT 960
36 #define WVGA_WIDTH 480
37 #define WVGA_HEIGHT 800
38 #define UHD_WIDTH 1440
39 #define UHD_HEIGHT 2560
40
41 #define HD_SCALE_FACTOR 1.2
42 #define QHD_SCALE_FACTOR 0.85
43 #define WVGA_SCALE_FACTOR 0.70
44 #define UHD_SCALE_FACTOR 1.3
45
46 /*=================================DATA KEYS CONF=============================*/
47 #define KEY_ICON_DATA "item_data"
48 #define KEY_REPOSITION_DATA "reposition_data"
49 #define KEY_APP_GRID_DATA "app_grid_data"
50 #define KEY_THUMB_DATA "thumb_data"
51
52 #define KEY_IS_REPOSITIONABLE "is_repositionable"
53 #define KEY_INDEX "index_data"
54
55 /*=================================DATABASE===================================*/
56 #define DATABASE_FILE \
57         "homescreen-efl.db"
58
59 /*=================================RESOURCES==================================*/
60 #define EDJE_DIR "edje"
61 #define IMAGE_DIR "images"
62
63 /*******************************************************************************
64 *
65 *
66 *                               SOURCE CONFIGS
67 *
68 *
69 *******************************************************************************/
70
71 /*================================ OPTION_MENU.C==============================*/
72 #define OPTION_MENU_SETTINGS "org.tizen.wallpaper-ui-service"
73 #define CAPTION_MENU_CENTER_LABEL_TEXT_LEN_MAX 16
74
75 #define INDEX_HEIGHT 45
76 #define BUTTONS_AREA 0.055
77 /*================================ ALL_APPS.C=================================*/
78 #define APP_ROWS 5
79 #define APP_COLS 4
80
81 #define APPS_SHOW_HIDE_ANIMATION_TIME 0.35
82 #define ALL_APPS_ANIMATION_DELTA_Y (0.2*(double)ROOT_WIN_H)
83 #define ALL_APPS_ANIMATION_HOME_DELTA_Y (0.8 * (double) ROOT_WIN_H)
84
85 /*================================ APP_ICON.C=================================*/
86 #define DEFAULT_APP_ICON  \
87         IMAGE_DIR "/default.png"
88
89 #define BADGE_REL_X 0.85
90 #define BADGE_REL_Y 0.00
91
92 #define SIGNAL_HIGHLIGHT_FOLDER "highlight_folder"
93 #define SIGNAL_UNHIGHLIGHT_FOLDER "unhighlight_folder"
94 #define SIGNAL_HIGHLIGHT_IMPOSSIBLE_FOLDER "highlight_impossible_folder"
95
96 /*================================ APP_GRID.C=================================*/
97 #define GRID_CONTENT "elm.swallow.icon"
98 #define EDIT_MODE_SCALE 0.9
99 #define CHOOSE_MODE_SCALE 0.9
100 #define CHANGE_PAGE_TIMER 0.3
101 #define CHANGE_PAGE_LEFT_AREA 0.05
102 #define CHANGE_PAGE_RIGHT_AREA 0.95
103
104 #define SIGNAL_APP_GRID_FULL "app_grid_full"
105 #define SIGNAL_APP_GRID_BG_HIDE "signal_app_grid_bg_hide"
106
107 /*================================ DATA_MODEL.C===============================*/
108 #define APPS_PAGE APP_ROWS*APP_COLS
109 #define FOLDER_APPS_PAGE 9
110
111 /*================================ LIVEBOX CONFIG ============================*/
112 #define WIDGET_NR_OF_SIZE_LIST 13
113 #define LIVEBOX_ON_CREATE_SIZE 4
114 #define LIVEBOX_MIN_MOUSE_MOVE 100
115
116 #define TEST_PKG "/usr/apps/org.tizen.homescreen-efl/res/images/livebox/"
117 #define TEST_PKG_ALARM        TEST_PKG"preview_alarm.png"
118 #define TEST_PKG_DUAL_CLOCK   TEST_PKG"preview_dual_clock.png"
119 #define TEST_PKG_MUSIC        TEST_PKG"preview_music.png"
120 #define TEST_PKG_CALENDAR     TEST_PKG"preview_calendar.png"
121 #define TEST_PKG_FMRADIO      TEST_PKG"preview_FMradio.png"
122 #define TEST_PKG_SINGLE_CLOCK TEST_PKG"preview_singel_clock.png"
123 #define TEST_PKG_CONTACT_4_2  TEST_PKG"preview_contact_4x2.png"
124 #define TEST_PKG_GALERY       TEST_PKG"preview_gallery.png"
125 #define TEST_PKG_WEATHER_4_2  TEST_PKG"preview_weather_4x2.png"
126 #define TEST_PKG_CONTACT_4_4  TEST_PKG"preview_contact_4x4.png"
127 #define TEST_PKG_INTERNET     TEST_PKG"preview_internet_4x4.png"
128 #define TEST_PKG_WEATHER_4_4  TEST_PKG"preview_weather_4x4.png"
129
130 #define EDJE_LIVEBOX_CONTAINER_FILENAME EDJE_DIR"/livebox_container.edj"
131 #define GROUP_LIVEBOX_CONTAINER "livebox_container"
132
133 #define EDJE_LIVEBOX_LAYOUT_FILENAME EDJE_DIR"/livebox_layout.edj"
134 #define GROUP_LIVEBOX_LAYOUT "livebox"
135
136 #define LIVEBOX_SCROLLER_MAX_PAGES 6
137 #define LIVEBOX_GRID_ROWS 4
138 #define LIVEBOX_GRID_COLUMNS 4
139 #define LIVEBOX_GRID_ROWS_CELLS_MULTI 1
140 #define LIVEBOX_TOTAL_ROWS (LIVEBOX_GRID_ROWS * LIVEBOX_GRID_ROWS_CELLS_MULTI)
141 #define LIVEBOX_TOTAL_COLUMNS \
142         (LIVEBOX_GRID_COLUMNS * LIVEBOX_GRID_ROWS_CELLS_MULTI)
143
144 #define LIVEBOX_RESIZE_POS_MULTI_ROWS (1.0 / LIVEBOX_TOTAL_ROWS)
145 #define LIVEBOX_RESIZE_POS_MULTI_COLS (1.0 / LIVEBOX_TOTAL_COLUMNS)
146 #define LIVEBOX_GRID_BG_PADDING 3
147 #define LIVEBOX_MAX_BUTTON_NAME_LENGTH 15
148 #define LIVEBOX_PAGE_HEIGHT_REL (1.0*ROOT_WIN_W/ROOT_WIN_H)
149 /*this should be smaller than scroller page*/
150 #define LIVEBOX_SIZE_REL (1.0*ROOT_WIN_W/ROOT_WIN_H)
151 /*size of the area which causes page change during drag'n drop*/
152 #define LIVEBOX_PAGE_CHANGE_RECT_SIZE 60
153 #define LIVEBOX_PAGE_NO_CHANGE -1
154 #define LIVEBOX_DRAGGED_ITEM_ALPHA 96
155 #define LIVEBOX_LONGPRESS_TIME 1
156 #define LIVEBOX_PAGE_CHANGE_PERIOD 0.75
157 #define LIVEBOX_MAX_STATE_LEN 10
158 #define LIVEBOX_HORIZONTAL_PADDING 10
159 #define LIVEBOX_MAKE_SPACE_ANIM_TIME 0.33
160 #define LIVEBOX_GRID_BG_ALPHA 40 + 51
161 #define LIVEBOX_REPOSITION_ANIM_TIME 0.33
162
163 #define PART_LIVEBOX "livebox"
164 #define PART_RESIZE_BUTTON_DOWN  "button.down"
165 #define PART_RESIZE_BUTTON_LEFT  "button.left"
166 #define PART_RESIZE_BUTTON_UP    "button.up"
167 #define PART_RESIZE_BUTTON_RIGHT "button.right"
168 #define PART_ADD_PAGE_BUTTON "add_page_button"
169 #define PART_PAGE_BG "bg"
170 #define PART_GRID_BG "grid_bg"
171 #define PART_GRID "grid"
172
173 #define SIGNAL_CONTENT_SOURCE "content"
174 #define SIGNAL_LIVEBOX_SOURCE "livebox"
175 #define SIGNAL_LAYOUT_SOURCE "layout"
176 #define SIGNAL_REMOVE_SOURCE "remove_button"
177 #define SIGNAL_RESIZING    "drag"
178 #define SIGNAL_RESIZE_END  "drag,stop"
179 #define SIGNAL_RESIZE_SLIDER_DRAG_OK "drag,ok"
180 #define SIGNAL_RESIZE_SLIDER_DRAG_ERR "drag,outside"
181 #define SIGNAL_RESIZE_SLIDERS_SHOW "sliders,show"
182 #define SIGNAL_RESIZE_SLIDERS_HIDE "sliders,hide"
183 /*#define SIGNAL_REMOVE_BUTTON_CLICKED "remove_button,clicked" */
184 #define SIGNAL_CLICKED "mouse,clicked,*"
185 #define SIGNAL_LIVEBOX_REMOVE_BUTTON_SHOW "remove_button,show"
186 #define SIGNAL_LIVEBOX_REMOVE_BUTTON_HIDE "remove_button,hide"
187 #define SIGNAL_REMOVE_BUTTON_INSTANT_HIDE "remove_button,hide,instant"
188 #define SIGNAL_LIVEBOX_REPOSITION_BG_SHOW "reposition_bg,show"
189 #define SIGNAL_LIVEBOX_REPOSITION_BG_HIDE "reposition_bg,hide"
190 #define SIGNAL_EMPTY_PAGE_SHOW "empty_page,show"
191 #define SIGNAL_EMPTY_PAGE_HIDE "empty_page,hide"
192 #define SIGNAL_EMPTY_PAGE_EDIT_START "empty_page,edit,start"
193 #define SIGNAL_EMPTY_PAGE_EDIT_STOP "empty_page,edit,stop"
194 #define SIGNAL_EDIT_START "edit,start"
195 #define SIGNAL_EDIT_STOP "edit,stop"
196 #define SIGNAL_ADD_SHOW "add,show"
197 #define SIGNAL_ADD_HIDE "add,hide"
198 #define SIGNAL_ADD_PAGE_CLICKED "add_page_button_clicked"
199 #define SIGNAL_SCROLLER_PAGE_COUNT_CHANGED "scroller,count,changed"
200 #define SIGNAL_MOUSE_DOWN "mouse,down,*"
201 #define SIGNAL_MOUSE_UP "mouse,up,*"
202 #define SIGNAL_SCROLLER_DRAG_START "scroll,drag,start"
203 #define SIGNAL_SCROLLER_SCROLL "scroll"
204 #define SIGNAL_GRID_SHADOW_SHOW "grid,show"
205 #define SIGNAL_GRID_SHADOW_HIDE "grid,hide"
206 #define CANNOT_ADD_PAGE_INFO "There is not enough space on the home screen."
207 #define CANNOT_ADD_WIDGET_INFO "Unsupported widget size."
208
209 /*========================== ALL PAGES CONFIG ================================*/
210 #define GENGRID_ITEM_CONTENT "elm.swallow.icon"
211
212 #define IMAGE_ADD_PAGE_FILENAME \
213         "/usr/apps/com.samsung.home-lite/res/images/edit_all_page_create.png"
214
215 #define ALL_PAGES_X 0
216 #define ALL_PAGES_Y 0
217
218 #define THUMB_W_REL (320.0/ROOT_WIN_W)
219 #define THUMB_H_REL (320.0/ROOT_WIN_H)
220
221 #define ITEM_W_REL (336.0/ROOT_WIN_W)
222 #define ITEM_H_REL (397.0/ROOT_WIN_H)
223
224 #define MAX_ITEMS 6
225 #define ITEM_CREATE_TIME 0.5
226 #define OFFSET 100
227 /*========================== KEY CONFIG ======================================*/
228
229 #define KEY_HOME "XF86Home"
230 #define KEY_MENU "XF86Menu"
231 #define KEY_BACK "XF86Back"
232 #define KEY_RETURN "Return"
233
234
235 /*======================== FOLDER CONFIG =====================================*/
236 #define FOLDER_MAX_ITEMS 9
237 #define FOLDER_POPUP_Y_REL 0.1677
238
239 /*======================== POPUP CONFIG ================================*/
240 #define POPUP_MAX_FOLDER_ITEMS_TEXT "There is not enough space in folder"
241
242 /*******************************************************************************
243 *
244 *
245 *                       EDC FILE CONFIGURATIONS
246 *
247 *
248 *******************************************************************************/
249 #define SIGNAL_SOURCE "layout"
250
251 /*========================== HOME VIEW CONFIG ================================*/
252 #define _HOME_WGT_MIN_Y 80
253 #define _HOME_WGT_MAX_Y 1140
254 #define _HOME_WGT_EDIT_MAX_Y 1034
255
256 #define _HOME_BTNS_Y_MIN 1188
257 #define _HOME_BTNS_Y_MAX 1263
258 #define _HOME_MENU_BTN_X_MIN 32
259 #define _HOME_MENU_BTN_X_MAX 161
260
261 #define _HOME_HOME_BTN_X_MIN 559
262 #define _HOME_HOME_BTN_X_MAX 688
263 #define _HOME_CHOOSER_CAPTION_Y_MIN 0
264 #define _HOME_CHOOSER_CAPTION_Y_MAX 80
265
266 #define _HOME_PG_INDEX_X_MIN 161
267 #define _HOME_PG_INDEX_X_MAX 559
268
269 #define INDICE_NEXT_PAGE_X_MIN 0.99
270 #define INDICE_NEXT_PAGE_X_MAX 1.00
271 #define INDICE_PREV_PAGE_X_MIN 0.00
272 #define INDICE_PREV_PAGE_X_MAX 0.01
273
274 #define _MAIN_CONTENT_Y_MIN 72 /*TODO: This value should be 42*/
275 #define _MAIN_CONTENT_Y_MAX 862
276 #define _APP_CONTENT_Y_MAX 1172
277
278 #define CONTENT_Y_MIN _MAIN_CONTENT_Y_MIN/ROOT_WIN_H;
279 #define CONTENT_Y_MAX _MAIN_CONTENT_Y_MAX/ROOT_WIN_H;
280 #define CONTENT_APP_Y_MAX _APP_CONTENT_Y_MAX/ROOT_WIN_H;
281
282 #define HOME_WGT_MIN_Y _HOME_WGT_MIN_Y/ROOT_WIN_H
283 #define HOME_WGT_MAX_Y _HOME_WGT_MAX_Y/ROOT_WIN_H
284 #define HOME_WGT_EDIT_MAX_Y _HOME_WGT_EDIT_MAX_Y/ROOT_WIN_H
285
286 #define HOME_BTNS_Y_MIN _HOME_BTNS_Y_MIN/ROOT_WIN_H
287 #define HOME_BTNS_Y_MAX _HOME_BTNS_Y_MAX/ROOT_WIN_H
288 #define HOME_MENU_BTN_X_MIN _HOME_MENU_BTN_X_MIN/ROOT_WIN_W
289 #define HOME_MENU_BTN_X_MAX _HOME_MENU_BTN_X_MAX/ROOT_WIN_W
290 #define HOME_HOME_BTN_X_MIN _HOME_HOME_BTN_X_MIN/ROOT_WIN_W
291 #define HOME_HOME_BTN_X_MAX _HOME_HOME_BTN_X_MAX/ROOT_WIN_W
292 #define HOME_CHOOSER_CAPTION_Y_MIN _HOME_CHOOSER_CAPTION_Y_MIN/ROOT_WIN_H
293 #define HOME_CHOOSER_CAPTION_Y_MAX _HOME_CHOOSER_CAPTION_Y_MAX/ROOT_WIN_H
294
295 #define HOME_PG_INDEX_X_MIN _HOME_PG_INDEX_X_MIN/ROOT_WIN_W
296 #define HOME_PG_INDEX_X_MAX _HOME_PG_INDEX_X_MAX/ROOT_WIN_W
297
298 #define SIGNAL_MENU_BTN_CLICKED "menu_clicked"
299 #define SIGNAL_HOME_BTN_CLICKED "home_clicked"
300 #define SIGNAL_CHOOSER_CAPTION_ACTIVATE "chooser,caption,activate"
301 #define SIGNAL_CHOOSER_CAPTION_DEACTIVATE "chooser,caption,deactivate"
302
303 #define GROUP_HOME_LY "home_ly"
304 #define PART_CONTENT "content"
305 #define PART_INDEX "index"
306 #define PART_EDIT_BG "edit_bg"
307 #define PART_NEXT_PAGE_INDICE "next_page_indice"
308 #define PART_PREV_PAGE_INDICE "prev_page_indice"
309 #define PART_EVENT_BLOCKER "part_event_blocker"
310 #define PART_CHOOSER_CAPTION_RIGHT_LABEL "chooser_caption_right_label"
311 #define PART_CHOOSER_CAPTION_LEFT_LABEL "chooser_caption_left_label"
312 #define PART_CHOOSER_CAPTION_MIDDLE_LABEL "chooser_caption_middle_label"
313
314 #define SIGNAL_EDIT_BG_ON "edit_bg_on"
315 #define SIGNAL_EDIT_BG_OFF "edit_bg_off"
316 #define SIGNAL_NEXT_PAGE_INDICE_SHOW "next_page_show"
317 #define SIGNAL_PREV_PAGE_INDICE_SHOW "prev_page_show"
318 #define SIGNAL_INDICE_HIDE "page_indice_hide"
319
320 #define SIGNAL_BLOCK_EVENTS "block_home_events"
321 #define SIGNAL_UNBLOCK_EVENTS "unblock_home_events"
322
323 /*this signals is used for change page on reposition action */
324 #define SIGNAL_NEXT_PAGE_CHANGE "next_page_change"
325 #define SIGNAL_PREV_PAGE_CHANGE "prev_page_change"
326
327 /*these signals change states of bottom buttons (menu and home/all apps) */
328 #define SIGNAL_BOTTOM_BUTTONS_HOME_STATE_SET "menu_icon_home_state_set"
329 #define SIGNAL_BOTTOM_BUTTONS_ALL_APPS_STATE_SET "menu_icon_all_apps_state_set"
330 #define SIGNAL_BOTTOM_BUTTONS_HOME_EDIT_STATE_SET "menu_icon_home_edit_state_set"
331 #define SIGNAL_BOTTOM_BUTTONS_ALL_APPS_EDIT_STATE_SET "menu_icon_edit_state_set"
332
333 /*========================== LIVEBOX EDC CONFIG ==============================*/
334 #define _LIVEBOX_X_MARGIN 6
335 #define _LIVEBOX_X_MIN _LIVEBOX_X_MARGIN
336 #define _LIVEBOX_X_MAX (ROOT_WIN_W - _LIVEBOX_X_MARGIN)
337
338 #define _LIVEBOX_EDIT_X_MARGIN 30
339 #define _LIVEBOX_EDIT_Y_MARGIN 30
340 #define _LIVEBOX_EDIT_X_MIN _LIVEBOX_EDIT_X_MARGIN
341 #define _LIVEBOX_EDIT_X_MAX (ROOT_WIN_W - _LIVEBOX_EDIT_X_MARGIN)
342 #define _LIVEBOX_EDIT_Y_MIN _LIVEBOX_EDIT_X_MARGIN
343 /*square area of screen width size is required */
344 #define _LIVEBOX_EDIT_Y_MAX (ROOT_WIN_W - _LIVEBOX_EDIT_X_MARGIN)
345
346 #define _LIVEBOX_ADD_PAGE_BUTTON_SIZE_HALF 60
347 #define _LIVEBOX_ADD_PAGE_BUTTON_X_MIN \
348         (ROOT_WIN_W / 2 - _LIVEBOX_ADD_PAGE_BUTTON_SIZE_HALF)
349 #define _LIVEBOX_ADD_PAGE_BUTTON_X_MAX \
350         (ROOT_WIN_W / 2 + _LIVEBOX_ADD_PAGE_BUTTON_SIZE_HALF)
351 #define _LIVEBOX_ADD_PAGE_BUTTON_Y_MIN \
352         (ROOT_WIN_W / 2 - _LIVEBOX_ADD_PAGE_BUTTON_SIZE_HALF)
353 #define _LIVEBOX_ADD_PAGE_BUTTON_Y_MAX \
354         (ROOT_WIN_W / 2 + _LIVEBOX_ADD_PAGE_BUTTON_SIZE_HALF)
355
356 #define LIVEBOX_REMOVE_BUTTON_SIZE 48
357 #define LIVEBOX_SLIDER_BUTTON_SIZE 12
358 #define LIVEBOX_SLIDER_FRAME_OFFSET_1 5
359 #define LIVEBOX_SLIDER_FRAME_OFFSET_2 8
360
361 #define LIVEBOX_REMOVE_LB_BUTTON_SIZE 24
362 #define LIVEBOX_REMOVE_LB_OFFSET_X 9
363 #define LIVEBOX_REMOVE_LB_OFFSET_Y 8
364
365 #define LIVEBOX_REPOSITION_BG_BORDER 10
366 #define LIVEBOX_REPOSITION_BG_COLOR 162
367 #define LIVEBOX_REPOSITION_SHADOW_COLOR 96
368
369 #define LIVEBOX_X_MIN _LIVEBOX_X_MIN/ROOT_WIN_W
370 #define LIVEBOX_X_MAX _LIVEBOX_X_MAX/ROOT_WIN_W
371
372 #define LIVEBOX_EDIT_X_MIN _LIVEBOX_EDIT_X_MIN/ROOT_WIN_W
373 #define LIVEBOX_EDIT_X_MAX _LIVEBOX_EDIT_X_MAX/ROOT_WIN_W
374 #define LIVEBOX_EDIT_Y_MIN _LIVEBOX_EDIT_Y_MIN/ROOT_WIN_W
375 #define LIVEBOX_EDIT_Y_MAX _LIVEBOX_EDIT_Y_MAX/ROOT_WIN_W
376
377 #define LIVEBOX_ADD_PAGE_BUTTON_X_MIN _LIVEBOX_ADD_PAGE_BUTTON_X_MIN/ROOT_WIN_W
378 #define LIVEBOX_ADD_PAGE_BUTTON_X_MAX _LIVEBOX_ADD_PAGE_BUTTON_X_MAX/ROOT_WIN_W
379 #define LIVEBOX_ADD_PAGE_BUTTON_Y_MIN _LIVEBOX_ADD_PAGE_BUTTON_Y_MIN/ROOT_WIN_W
380 #define LIVEBOX_ADD_PAGE_BUTTON_Y_MAX _LIVEBOX_ADD_PAGE_BUTTON_Y_MAX/ROOT_WIN_W
381
382 #define LIVEBOX_RESIZE_FRAME_REL_1 \
383         (1.0 * LIVEBOX_SLIDER_FRAME_OFFSET_1 / LIVEBOX_SLIDER_BUTTON_SIZE)
384 #define LIVEBOX_RESIZE_FRAME_REL_2 \
385         (1.0 * LIVEBOX_SLIDER_FRAME_OFFSET_2 / LIVEBOX_SLIDER_BUTTON_SIZE)
386
387 /*========================== APP ICON CONFIG =================================*/
388 #define FOLDER_ICON_MAX_MINIATURES 4
389
390 #define ICON_CONTAINER_W 132
391 #define ICON_CONTAINER_H 159
392
393 #define ICON_BADGE_W 30
394 #define ICON_BADGE_H 30
395
396 #define _ICON_Y_MIN 8
397 #define _ICON_Y_MAX 96
398 #define _ICON_X_MIN 22
399 #define _ICON_X_MAX 110
400
401 #define _ICON_NAME_X_MIN 6
402 #define _ICON_NAME_X_MAX 126
403 #define _ICON_NAME_Y_MIN 98
404 #define _ICON_NAME_Y_MAX 156
405 #define _ICON_NAME_EDIT_Y_MAX 144
406
407 #define _ICON_UNINSTALL_BTN_X_MAX 60
408 #define _ICON_UNINSTALL_BTN_Y_MAX 60
409
410 #define ICON_Y_MIN _ICON_Y_MIN/ICON_CONTAINER_H
411 #define ICON_Y_MAX _ICON_Y_MAX/ICON_CONTAINER_H
412 #define ICON_X_MIN _ICON_X_MIN/ICON_CONTAINER_W
413 #define ICON_X_MAX _ICON_X_MAX/ICON_CONTAINER_W
414
415 #define ICON_NAME_X_MIN _ICON_NAME_X_MIN/ICON_CONTAINER_W
416 #define ICON_NAME_X_MAX _ICON_NAME_X_MAX/ICON_CONTAINER_W
417 #define ICON_NAME_Y_MIN _ICON_NAME_Y_MIN/ICON_CONTAINER_H
418 #define ICON_NAME_Y_MAX _ICON_NAME_Y_MAX/ICON_CONTAINER_H
419 #define ICON_NAME_EDIT_Y_MAX _ICON_NAME_EDIT_Y_MAX/ICON_CONTAINER_H
420
421 #define ICON_UNINSTALL_BTN_X_MAX _ICON_UNINSTALL_BTN_X_MAX/ICON_CONTAINER_W
422 #define ICON_UNINSTALL_BTN_Y_MAX _ICON_UNINSTALL_BTN_Y_MAX/ICON_CONTAINER_H
423
424 #define ICON_BADGE_CHECKBOX_REL1_X 0.6588
425 #define ICON_BADGE_CHECKBOX_REL1_Y 0.0498
426 #define ICON_BADGE_CHECKBOX_REL2_X 0.9412
427 #define ICON_BADGE_CHECKBOX_REL2_Y 0.2886
428
429 #define GROUP_ICON_LY "app_icon_layout"
430 #define PART_ICON_CONTENT "icon_content"
431 #define PART_ICON_NAME "icon_name"
432
433 #define SIGNAL_PRESS_SOURCE "icon_content_touch"
434
435 #define SIGNAL_ICON_PRESS "icon,pressed"
436 #define SIGNAL_UNINSTALL_BUTTON_SHOW "uninstall_button,show"
437 #define SIGNAL_UNINSTALL_BUTTON_HIDE "uninstall_button,hide"
438 #define SIGNAL_UNINSTALL_BUTTON_CLICKED "uninstall_button,clicked"
439 #define SIGNAL_CHECKBOX_SHOW_UNCHECKED "checkbox,show,unchecked"
440 #define SIGNAL_CHECKBOX_SHOW_CHECKED "checkbox,show,checked"
441 #define SIGNAL_CHECKBOX_SHOW_DIMMED "checkbox,show,dimmed"
442 #define SIGNAL_CHECKBOX_HIDE "checkbox,hide"
443 #define SIGNAL_CHECKBOX_CHECKED "checkbox,checked"
444 #define SIGNAL_CHECKBOX_UNCHECKED "checkbox,unchecked"
445 #define SIGNAL_CHECKBOX_BLOCK "checkbox,block"
446 #define SIGNAL_CHECKBOX_UNBLOCK "checkbox,unblock"
447 #define SIGNAL_LABEL_SHOW "label,show"
448 #define SIGNAL_LABEL_HIDE "label,hide"
449 #define SIGNAL_BADGE_SHOW "badge,show"
450 #define SIGNAL_BADGE_HIDE "badge,hide"
451 #define SIGNAL_BADGE_FOLDER_SHOW "folder,badge,show"
452 #define SIGNAL_BADGE_FOLDER_HIDE "folder,badge,hide"
453 #define SIGNAL_ICON_CLICKED "icon_clicked"
454 #define SIGNAL_EDIT_MODE_ON "edit_mode_on"
455 #define SIGNAL_EDIT_MODE_OFF "edit_mode_off"
456 #define SIGNAL_EDIT_MODE_BLACK_ON "edit_mode_black_on"
457 #define SIGNAL_EDIT_MODE_BLACK_OFF "edit_mode_black_off"
458 #define SIGNAL_CHOOSE_MODE_ON "choose_mode_on"
459 #define SIGNAL_CHOOSE_MODE_OFF "choose_mode_off"
460 #define SIGNAL_FRAME_POSSIBLE_SHOW "show_frame_possible"
461 #define SIGNAL_FRAME_IMPOSSIBLE_SHOW "show_frame_impossible"
462 #define SIGNAL_FRAME_HIDE "hide_frame"
463 #define SIGNAL_EMPTY_BG_SHOW "empty_bg"
464 #define SIGNAL_BLACK_TEXT "label,text,black"
465 #define PART_CAPTION_MENU_CENTER_LABEL_NAME "chooser_caption_middle_label"
466 #define PART_CAPTION_MENU_LEFT_LABEL "chooser_caption_left_label"
467 #define PART_CAPTION_MENU_RIGHT_LABEL "chooser_caption_right_label"
468
469 /*========================== INDEX ELEMENT CONFIG ============================*/
470 #define INDEX_MAX_PAGE_COUNT 7
471 #define SIGNAL_SET_CURRENT "set_current"
472 #define SIGNAL_SET_DEFAULT "set_default"
473 #define INDICE_SIZE_SETTER "indice_size_setter"
474
475 #define INDEX_IMAGE IMAGE_DIR"/core_page_indicator_horizontal.png"
476 #define INDEX_EDJE EDJE_DIR"/index_element.edj"
477 #define GROUP_INDEX_ELEMENT "index_element"
478 #define PART_INDEX_ELEMENT "element"
479
480 #define INDEX_ELEMENT_CONTAINER_WIDTH 38.0
481 #define INDEX_ELEMENT_CONTAINER_HEIGHT 38.0
482
483 #define INDEX_CURRENT_SIZE 0.03
484 #define INDEX_NORMAL_SIZE 0.015
485 #define INDEX_CURRENT_ALPHA 255
486 #define INDEX_NORMAL_ALPHA 100
487
488 /*========================== APP_GRID.EDC CONFIG =============================*/
489 #define GROUP_APP_GRID "app_grid_ly"
490 #define GROUP_APP_GRID_ITEM_CONTAINER "app_grid_item_container"
491
492 #define PART_APP_GRID_BG "app_grid_bg"
493 #define PART_APP_GRID_EDIT_BG "app_grid_edit_bg"
494 #define PART_APP_GRID_CONTENT "app_grid_content"
495 #define PART_APP_GRID_ITEM "app_grid_item"
496
497 #define PART_APP_GRID_SIZE_SETTER "size_setter"
498
499 #define ANIMATION_RESIZE_TIME 0.2
500
501 /*========================== FOLDER.EDC CONFIG ===============================*/
502 #define MINIATURE_COL_1_MIN 0.18
503 #define MINIATURE_COL_1_MAX 0.48
504 #define MINIATURE_COL_2_MIN 0.52
505 #define MINIATURE_COL_2_MAX 0.82
506 #define MINIATURE_ROW_1_MIN 0.18
507 #define MINIATURE_ROW_1_MAX 0.48
508 #define MINIATURE_ROW_2_MIN 0.52
509 #define MINIATURE_ROW_2_MAX 0.82
510 #define MINIATURE_CENTER_MIN 0.35
511 #define MINIATURE_CENTER_MAX 0.65
512
513 #define FOLDER_HEIGHT 569
514
515 #define _NAME_Y_MIN 0
516 #define _NAME_Y_MAX 62
517
518 #define _SEPARATOR_Y_MIN 62
519 #define _SEPARATOR_Y_MAX 64
520
521 #define _CONTENT_Y_MIN 53
522 #define _CONTENT_Y_MAX 569
523
524 #define _INDEX_Y_MIN 355
525 #define _INDEX_Y_MAX 421
526
527 #define FOLDER_NAME_Y_MIN _NAME_Y_MIN/FOLDER_HEIGHT
528 #define FOLDER_NAME_Y_MAX _NAME_Y_MAX/FOLDER_HEIGHT
529
530 #define FOLDER_SEPARATOR_Y_MIN _SEPARATOR_Y_MIN/FOLDER_HEIGHT
531 #define FOLDER_SEPARATOR_Y_MAX _SEPARATOR_Y_MAX/FOLDER_HEIGHT
532
533 #define FOLDER_CONTENT_Y_MIN _CONTENT_Y_MIN/FOLDER_HEIGHT
534 #define FOLDER_CONTENT_Y_MAX _CONTENT_Y_MAX/FOLDER_HEIGHT
535
536 #define INDEX_Y_MIN _INDEX_Y_MIN/FOLDER_3_R_IND_HEIGHT
537 #define INDEX_Y_MAX _INDEX_Y_MAX/FOLDER_3_R_IND_HEIGHT
538
539 #define GROUP_FOLDER_ICON_LAYOUT "folder_icon_layout"
540 #define GROUP_FOLDER_ADD_ICON "folder_add_icon"
541 #define GROUP_FOLDER_WINDOW "folder_window"
542 #define GROUP_FOLDER_POPUP "folder_popup"
543 #define PART_FOLDER_NAME "folder_name_entry"
544 #define PART_FOLDER_CONTENT "folder_content"
545 #define PART_FOLDER_UNNAMED_TEXT "Unnamed folder"
546
547 #define SIGNAL_CLEAR_BTN_SHOW "clear_btn_show"
548 #define SIGNAL_CLEAR_BTN_HIDE "clear_btn_hide"
549 #define SIGNAL_CLEAR_BTN_CLICKED "clear_btn_clicked"
550 #define SIGNAL_ENTRY_BLOCK_ON "folder_entry,block,on"
551 #define SIGNAL_ENTRY_BLOCK_OFF "folder_entry,block,off"
552
553 #define SIGNAL_BG_CLICKED "bg_clicked"
554
555 #define SIGNAL_FOLDER_PANEL_OPEN "folder_open"
556 #define SIGNAL_FOLDER_PANEL_CLOSE "folder_close"
557 #define SIGNAL_FOLDER_ANIM_DONE "anim_done"
558 #define SIGNAL_FOLDER_UNNAMED_TEXT_SHOW "unnamed_text_show"
559 #define SIGNAL_FOLDER_UNNAMED_TEXT_HIDE "unnamed_text_hide"
560
561 #define FOLDER_1_ROW_H_REL 0.25875
562 #define FOLDER_2_ROW_H_REL 0.42375
563 #define FOLDER_3_ROW_H_REL 0.59125
564
565 #define FOLDER_ROW_W_REL 0.7
566 #define FOLDER_POPUP_W_REL 0.9118
567 #define FOLDER_POPUP_X_REL 0.0441
568
569 #define FOLDER_GRID_W_REL 0.9
570 #define FOLDER_GRID_H_REL 0.58
571 #define FOLDER_ITEM_MARGIN 0.04
572
573 #define FOLDER_LEFT_MARGIN 0.07
574 #define FOLDER_RIGHT_MARGIN 0.93
575
576 #define FOLDER_WINDOW_W home_screen_get_root_width()
577 #define FOLDER_WINDOW_H home_screen_get_root_height()
578
579 #define FOLDER_ROW_APPS 3
580 #define FOLDER_COL_APPS 3
581
582 #define POPUP_SHIFT 15
583 #define KEYPAD_SPACE 5
584 #define DEFAULT_FOLDER_NAME "Unnamed folder"
585
586 /*========================== ALL PAGES EDC ===================================*/
587 #define GROUP_ALL_PAGES "page_edit_view"
588 #define GROUP_GRID_ITEM "grid_item"
589 #define GROUP_THUMB "thumb"
590
591 #define PART_LAYOUT_CONTENT "content"
592 #define PART_GRID_ITEM_CONTENT "grid_item_content"
593 #define PART_THUMB_CONTENT "page_thumbnail"
594
595 #define SIGNAL_BG_HIDE "bg_hide"
596 #define SIGNAL_BG_NORMAL "bg_normal"
597 #define SIGNAL_BG_REPOSITON "bg_reposition"
598 #define SIGNAL_REMOVE_BUTTON_CLICKED "remove_button_clicked"
599 #define SIGNAL_THUMBNAIL_CLICKED "thumbnail_clicked"
600 #define SIGNAL_ADD_ICON_SHOW "add_icon_show"
601 #define SIGNAL_REMOVE_BUTTON_SHOW "remove_button_show"
602 #define SIGNAL_REMOVE_BUTTON_HIDE "remove_button_hide"
603 #define SIGNAL_REMOVE_BUTTON_HIDE_INSTANT "remove_button_hide_instant"
604
605 #define BADGE_REL1_X 0.060
606 #define BADGE_REL1_Y 0.118
607 #define BADGE_REL2_X 0.250
608 #define BADGE_REL2_Y 0.284
609
610 #define ROW_SHIFT 0.45
611 #define COL_SHIFT 0.32
612 #endif /* CONF_H_ */