Tizen 2.4.0 rev3 SDK Public Release
[apps/home/w3-home.git] / home / include / conf.h
1 /*
2  * Samsung API
3  * Copyright (c) 2013 Samsung Electronics Co., Ltd.
4  *
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
8  *
9  * http://floralicense.org/license/
10  *
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.
16  */
17
18 #ifndef _W_HOME_CONF_H_
19 #define _W_HOME_CONF_H_
20
21 /* Layout */
22 #define BASE_WIDTH (360.0)
23 #if CIRCLE_TYPE
24 #define BASE_HEIGHT (360.0)
25 #else
26 #define BASE_HEIGHT (480.0)
27 #endif
28
29 #define SCROLLER_NORMAL_HEIGHT BASE_HEIGHT
30 #define SCROLLER_EDIT_HEIGHT BASE_HEIGHT
31
32 #define NOTIFICATION_ICON_WIDTH ELM_SCALE_SIZE(60)
33 #define NOTIFICATION_ICON_HEIGHT ELM_SCALE_SIZE(60)
34
35 #if CIRCLE_TYPE
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)
40
41 #define INDEX_THUMBNAIL_HOME_BG_SIZE 20 20
42 #define INDEX_THUMBNAIL_HOME_IND_SIZE 20 20
43
44 #define PAGE_EDIT_PAD_WIDTH (5.0)
45 #define PAGE_EDIT_SIDE_PAD_WIDTH (40+16)
46
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)
51
52 #define ITEM_EDIT_WIDTH (206.0)
53 #define ITEM_EDIT_HEIGHT (206.0)
54 #define ITEM_EDIT_EF_MIN 234 234
55
56 #define ITEM_EDIT_LINE_WIDTH (234.0)
57 #define ITEM_EDIT_LINE_HEIGHT (234.0)
58
59 #define POPUP_TEXT_MAX_WIDTH (200.0)
60 #define POPUP_TEXT_MAX_HEIGHT (360.0)
61
62 #else
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)
67
68 #define INDEX_THUMBNAIL_HOME_BG_SIZE 20 15
69 #define INDEX_THUMBNAIL_HOME_IND_SIZE 15 15
70
71 #define PAGE_EDIT_PAD_WIDTH (16.0)
72 #define PAGE_EDIT_SIDE_PAD_WIDTH (40+16)
73
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)
76
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)
81
82 #define ITEM_EDIT_LINE_WIDTH (ITEM_EDIT_WIDTH+4)
83 #define ITEM_EDIT_LINE_HEIGHT (ITEM_EDIT_HEIGHT+4)
84
85 #define POPUP_TEXT_MAX_WIDTH (-1)
86 #define POPUP_TEXT_MAX_HEIGHT (377.0)
87
88 #define CLOSE_BUTTON_X 316.0
89 #define CLOSE_BUTTON_Y 41.0
90
91 #define IMAGE_Y 112.0
92 #endif
93
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
97 #if CIRCLE_TYPE
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
103 #else
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
109 #endif
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
116
117 #define CLOCK_SHORTCUT_AREA_W 90
118 #define CLOCK_SHORTCUT_AREA_H 90
119
120 #define BEZEL_MOVE_THRESHOLD 80
121
122 #define BUTTON_LOCATION 411.5
123 #define BUTTON_PRESSED_LOCATION 150
124 #define BUTTON_PRESSED_HEIGHT 165
125
126 /* Configuration */
127 #define BOOTING_STATE_DONE 1
128 #define MAX_WIDGET 5
129 #define LONGPRESS_THRESHOLD 15
130 #define LONGPRESS_TIME 0.5f
131 #define INDEX_UPDATE_TIME 0.1f
132
133 #define DEFAULT_XML_FILE RESDIR"/default_items.xml"
134 #define TTS_XML_FILE RESDIR"/default_items_tts.xml"
135
136 #if CIRCLE_TYPE
137 #define POPUP_STYLE_DEFAULT "circle"
138 #define POPUP_STYLE_TOAST "toast/circle"
139 #define BUTTON_STYLE_POPUP "popup/circle"
140 #else
141 #define POPUP_STYLE_DEFAULT "default"
142 #define POPUP_STYLE_TOAST "toast"
143 #define BUTTON_STYLE_POPUP "popup"
144 #endif
145
146 #endif // _W_HOME_CONF_H_
147 // End of file