[N_SE-4398]Options does not appear while pressing long tap in Time zone text fie.
[apps/home/libug-worldclock-efl.git] / include / worldclock_const.h
1 /*
2 *
3 * Copyright 2012  Samsung Electronics Co., Ltd
4 *
5 * Licensed under the Flora License, Version 1.0 (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://www.tizenopensource.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
19 #ifndef __DEF_WORLDCLOCK_CONST_H_
20 #define __DEF_WORLDCLOCK_CONST_H_
21
22 #ifndef _
23 #define _(s)  dgettext(PACKAGE, s)
24 #endif
25 #ifndef S_
26 #define S_(x) dgettext("sys_string", x)
27 #endif
28 #ifndef _EDJ
29 #define _EDJ(o)         elm_layout_edje_get(o)
30 #endif
31
32 #define BUF_SIZE                256
33 #define BUF_MIN_SIZE            32
34 #define BUF_LARGE_SIZE          512
35
36 #define CITY_BUF_SIZE           128
37 #define COUNTRY_BUF_SIZE        128
38 #define TIMEZONE_BUF_SIZE       32
39 #define TZPATH_BUF_SIZE         128
40
41 #define WORLDCLOCK_MAX_CITY_COUNT   20
42
43 #define WCL_EDJ_PATH                EDJDIR
44 #define WCL_IMAGE_PATH              IMAGEDIR"/code"
45 #define WCL_EDJ_NAME                WCL_EDJ_PATH"/ug_worldclock.edj"
46 #define WCL_THEME_NAME              WCL_EDJ_PATH"/ug_worldclock_theme.edj"
47
48 //#define WORLDCLOCK_FILE_PATH  "/opt/.worldclock.txt"
49 #define WORLDCLOCK_DB           "/opt/dbspace/.worldclock.db"
50
51 #define VCONFKEY_SETAPPL_PREFIX         "db/setting"
52 #define SETTING_THEME_SELECTED_THEME    VCONFKEY_SETAPPL_PREFIX"/selected_theme"
53
54 //#define BG_PATH                               PREFIX"/share/bg"
55 //#define EARTH_PATH                            WCL_IMAGE_PATH"/earth"
56
57 #define WCL_IMAGE_ADD WCL_IMAGE_PATH"/01_controlbar_icon_create.png"
58 #define WCL_IMAGE_DEL WCL_IMAGE_PATH"/01_controlbar_icon_delete.png"
59 #define WCL_IMAGE_CLOSE WCL_IMAGE_PATH"/01_controlbar_icon_close.png"
60
61 /* group name */
62 #define GRP_MAIN                "main_layout"
63 #define GRP_MAIN2               "main_layout2"
64 #define GRP_MAP                 "map"
65 #define GRP_TIMEZONE            "timezone"
66 #define GRP_DELETE              "delete_layout"
67 #define GRP_SEARCH              "search_area"
68 #define GRP_CLOCK               "clock"
69 #define GRP_DST                 "dst"
70 #define GRP_ADD                 "ug_add_layout"
71 #define GRP_ADD2                "ug_add_layout2"
72 #define GRP_SEGMENT_PANEL       "segment_panel_layout"
73 #define GRP_POPUP               "popup"
74 #define GRP_SELECT_ALL          "select_all"
75 #define GRP_EDIT                "edit_layout"
76 #define GRP_EDIT2               "edit_layout2"
77 #define GRP_CHECK               "check"
78
79
80 //////////////////////////////////////////////////////////////////////////////////////////////
81 //    codes below will be removed
82 /////////////////////////////////////////////////////////////////////////////////////////////
83
84 //#define ENGLISH                                       "en_US.UTF-8"
85 //#define ELEKTRA_BACKGROUND            "system/launcher/background-set"
86 //#define KEYDOWN_INTERVAL              1.4
87 //#define DATA_DIR                              "/root/.worldclock"
88 //#define DATA_PATH                             "/root/.worldclock/worldclock.dat"
89
90 #define ZOOM_IMG_WIDTH          80
91 #define ZOOM_IMG_HEIGHT         80
92 #define ZOOM_BAR_IMG_WIDTH      80
93 #define ZOOM_BAR_IMG_HEIGHT     14
94 #define ZOOM_CENTER_POS_Y       95
95 #define ZOOM_HIDING_TIME        0.5
96 #define ZOOMING_OPERATION_TIME  0.5
97 #define TOUCH_HOLD_RANGE        20
98 #define ZOOM_BETWEEN_BAR_AND_BELOW_ZOOM  8
99 #define ZOOM_CURSOR_X_SEPERATED_DISTANCE 92
100
101 #define TIME_HOUR_MAX_0     12
102 #define TIME_HOUR_MAX_12    12
103
104 #define FLOAT_COMPARE_EPSILON   0.001
105
106 #define WCL_DAY_TIME        6
107 #define WCL_NIGHT_TIME      18
108
109 ///////////////////////// layout //////////////////////////////////////////
110 #define INDICATOR_H             27
111 //#define HEADER_H                              134
112 #define SOFTKEY_H               96
113 #define NAVIGATION_BAR_H        67
114 #define CONTROL_BAR_H           78
115 #define INPUT_PANEL_H           358
116
117 #define SOFTKEY_YREL            0.9025
118 #define WIDTH                   480
119 #define HEIGHT                  800
120
121 #define LABEL_POS_Y             481
122
123 #define DST_W                   50
124 #define DST_H                   50
125
126 #define MAP_SHOW_W              480
127 #define MAP_SHOW_H              480
128
129 #define EARTH_W                 417
130 #define EARTH_H                 415
131
132 #define EARTH_BG_POS_Y          180
133 #define EARTH_BG_W              880
134 #define EARTH_BG_H              440
135 #define EARTH_BG_OFFSET         22
136
137 #define WORLD_CLOCK_W           3500
138 #define WORLD_CLOCK_H           1700
139
140 #define WORLD_TIME_W            306
141 #define WORLD_TIME_H            108
142 #define XRES    480
143 #define YRES    800
144
145 #define DST_SAVING_TIME (60*60)
146
147 #define LIST_HEIGHT             92
148 #define LIST_Y                  118     //800*480  115
149
150 #define TB_PORTRAIT_X (0)
151 #define TB_PORTRAIT_Y (0)
152 #define TB_PORTRAIT_W (480)
153 #define TB_PORTRAIT_H (90)
154
155 #define SK_PORTRAIT_X (0)
156 #define SK_PORTRAIT_Y (722)
157 #define SK_PORTRAIT_W (480)
158 #define SK_PORTRAIT_H (78)
159
160 #define WIDTH               480
161 #define SOFTKEY_H           96
162
163 #define FONT_NANE           "HelveN_Asia"
164 #define TEXT_CLASS_NAME     "worldclock"
165 #define FONT_SIZE           18
166 #define SELECTFONT_SIZE     20
167 #define FONT_COLOR          255 255 255 120
168 #define SELECT_FONT_COLOR   255 255 255 255
169
170 #define MAP_BG_W                    2048
171 #define MAP_BG_H                    1024
172
173 #define CITY_W              24
174 #define CITY_H              24
175
176 #define DST_BG_W                    93
177 #define DST_BG_H                    92
178 #define DST_ICON_START_X          22/DST_BG_W
179 #define DST_ICON_START_Y          21/DST_BG_H
180 #define DST_ICON_END_X          (22 + 50)/DST_BG_W
181 #define DST_ICON_END_Y          (21+50)/DST_BG_H
182
183 #define CLOCK_CHECK_BG_W   50
184 #define CLOCK_CHECK_BG_H   50
185
186 /* for add list view */
187 #define ADD_SEARCH_YREL     0.14
188
189 #define ADD_BG_W                    480
190 #define ADD_BG_H                    319
191
192 #define TIME_W              480
193 #define TIME_H              70
194
195 #define DATE_W              480
196 #define DATE_H              32
197
198 #define FONT_NANE           "HelveN_Asia"
199 #define TIME_CLASS          "time"
200 #define DATE_CLASS          "time"
201 #define TIME_SIZE           42
202 #define DATE_SIZE           28
203
204 /*For select all view*/
205 #define SELECTALL_Y     82
206 #define SELECTALL_DELETE_VIEW_H (800-SELECTALL_Y)
207 #define SELECTALL_H     70
208 #define SELECTALL_TEXT_R1_X     25
209 #define SELECTALL_TEXT_R2_X     -200
210 #define SELECTALL_CHECK_R1_X    415
211 #define SELECTALL_CHECK_R1_Y    21
212 #define SELECTALL_CHECK_R2_X    -35
213 #define SELECTALL_CHECK_R2_Y    -21
214
215 /*For search view*/
216 #define SEARCHVIEW_Y    38
217 #define SEARCHVIEW_H    (800-SEARCHVIEW_Y)
218 #define SEARCHBAR_H     67
219
220 #define SEARCH_BUTTON_W         60
221 #define SEARCH_BUTTON_H         60
222 #define SEARCH_ENTRY_L_W        1
223 #define SEARCH_ENTRY_R_W        3
224 #define SEARCH_ENTRY_H          64
225
226 #define SEARCH_ENTRY_L_R1_X     12
227 #define SEARCH_ENTRY_L_R1_Y     2
228 #define SEARCH_ENTRY_L_R2_Y     (SEARCH_ENTRY_L_R1_Y+SEARCH_ENTRY_H)
229
230 #define SEARCH_ENTRY_C_R1_X     (SEARCH_ENTRY_L_R1_X+1)
231 #define SEARCH_ENTRY_C_R1_Y     (SEARCH_ENTRY_L_R1_Y+4)
232 #define SEARCH_ENTRY_C_LENGTH   389
233 #define SEARCH_ENTRY_C_R2_X     (SEARCH_ENTRY_L_R1_X+SEARCH_ENTRY_C_LENGTH+1)
234 #define SEARCH_ENTRY_C_R2_Y     (SEARCH_ENTRY_L_R2_Y-5)
235
236 #define SEARCH_ENTRY_R_R1_X     (SEARCH_ENTRY_C_R1_X+SEARCH_ENTRY_C_LENGTH)
237 #define SEARCH_ENTRY_R_R1_Y     SEARCH_ENTRY_L_R1_Y
238
239 #define SEARCH_ENTRY_R_R2_X     SEARCH_ENTRY_R_R1_X
240 #define SEARCH_ENTRY_R_R2_Y     SEARCH_ENTRY_L_R2_Y
241
242 #define SEARCH_BUTTON_R1_X      412
243 #define SEARCH_BUTTON_R1_Y      3
244 #define SEARCH_BUTTON_R2_X      -8
245 #define SEARCH_BUTTON_R2_Y      (SEARCH_BUTTON_R1_Y+60)
246
247 #define SEARCH_CONTENT_X        20
248 #define SEARCH_SELECTALL_FONT_SIZE      34
249
250 ////////////////////// layout finish ////////////////////////////
251 #endif                          /* __DEF_WORLDCLOCK_CONST_H_ */