3 * Copyright 2012 Samsung Electronics Co., Ltd
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
9 * http://www.tizenopensource.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.
19 #ifndef __DEF_WORLDCLOCK_CONST_H_
20 #define __DEF_WORLDCLOCK_CONST_H_
23 #define _(s) dgettext(PACKAGE, s)
26 #define S_(x) dgettext("sys_string", x)
29 #define _EDJ(o) elm_layout_edje_get(o)
33 #define BUF_MIN_SIZE 32
34 #define BUF_LARGE_SIZE 512
36 #define CITY_BUF_SIZE 128
37 #define COUNTRY_BUF_SIZE 128
38 #define TIMEZONE_BUF_SIZE 32
39 #define TZPATH_BUF_SIZE 128
41 #define WORLDCLOCK_MAX_CITY_COUNT 20
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"
48 //#define WORLDCLOCK_FILE_PATH "/opt/.worldclock.txt"
49 #define WORLDCLOCK_DB "/opt/dbspace/.worldclock.db"
51 #define VCONFKEY_SETAPPL_PREFIX "db/setting"
52 #define SETTING_THEME_SELECTED_THEME VCONFKEY_SETAPPL_PREFIX"/selected_theme"
54 //#define BG_PATH PREFIX"/share/bg"
55 //#define EARTH_PATH WCL_IMAGE_PATH"/earth"
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"
62 #define GRP_MAIN "main_layout"
63 #define GRP_MAIN2 "main_layout2"
65 #define GRP_TIMEZONE "timezone"
66 #define GRP_DELETE "delete_layout"
67 #define GRP_SEARCH "search_area"
68 #define GRP_CLOCK "clock"
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"
80 //////////////////////////////////////////////////////////////////////////////////////////////
81 // codes below will be removed
82 /////////////////////////////////////////////////////////////////////////////////////////////
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"
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
101 #define TIME_HOUR_MAX_0 12
102 #define TIME_HOUR_MAX_12 12
104 #define FLOAT_COMPARE_EPSILON 0.001
106 #define WCL_DAY_TIME 6
107 #define WCL_NIGHT_TIME 18
109 ///////////////////////// layout //////////////////////////////////////////
110 #define INDICATOR_H 27
111 //#define HEADER_H 134
113 #define NAVIGATION_BAR_H 67
114 #define CONTROL_BAR_H 78
115 #define INPUT_PANEL_H 358
117 #define SOFTKEY_YREL 0.9025
121 #define LABEL_POS_Y 481
126 #define MAP_SHOW_W 480
127 #define MAP_SHOW_H 480
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
137 #define WORLD_CLOCK_W 3500
138 #define WORLD_CLOCK_H 1700
140 #define WORLD_TIME_W 306
141 #define WORLD_TIME_H 108
145 #define DST_SAVING_TIME (60*60)
147 #define LIST_HEIGHT 92
148 #define LIST_Y 118 //800*480 115
150 #define TB_PORTRAIT_X (0)
151 #define TB_PORTRAIT_Y (0)
152 #define TB_PORTRAIT_W (480)
153 #define TB_PORTRAIT_H (90)
155 #define SK_PORTRAIT_X (0)
156 #define SK_PORTRAIT_Y (722)
157 #define SK_PORTRAIT_W (480)
158 #define SK_PORTRAIT_H (78)
163 #define FONT_NANE "HelveN_Asia"
164 #define TEXT_CLASS_NAME "worldclock"
166 #define SELECTFONT_SIZE 20
167 #define FONT_COLOR 255 255 255 120
168 #define SELECT_FONT_COLOR 255 255 255 255
170 #define MAP_BG_W 2048
171 #define MAP_BG_H 1024
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
183 #define CLOCK_CHECK_BG_W 50
184 #define CLOCK_CHECK_BG_H 50
186 /* for add list view */
187 #define ADD_SEARCH_YREL 0.14
198 #define FONT_NANE "HelveN_Asia"
199 #define TIME_CLASS "time"
200 #define DATE_CLASS "time"
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
216 #define SEARCHVIEW_Y 38
217 #define SEARCHVIEW_H (800-SEARCHVIEW_Y)
218 #define SEARCHBAR_H 67
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
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)
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)
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
239 #define SEARCH_ENTRY_R_R2_X SEARCH_ENTRY_R_R1_X
240 #define SEARCH_ENTRY_R_R2_Y SEARCH_ENTRY_L_R2_Y
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)
247 #define SEARCH_CONTENT_X 20
248 #define SEARCH_SELECTALL_FONT_SIZE 34
250 ////////////////////// layout finish ////////////////////////////
251 #endif /* __DEF_WORLDCLOCK_CONST_H_ */