2 * Copyright 2012 Samsung Electronics Co., Ltd
\r
4 * Licensed under the Flora License, Version 1.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.tizenopensource.org/license
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
18 #ifndef __H_EDC_CAM_TOOLBAR_LAYOUT_INC_EDC_H__
\r
19 #define __H_EDC_CAM_TOOLBAR_LAYOUT_INC_EDC_H__
\r
21 #define SETTING_TOOLBAR_W 1156
\r
22 #define SETTING_TOOLBAR_H 116
\r
24 #define TOOLBAR_ITEM_W 86
\r
25 #define TOOLBAR_ITEM_H 86
\r
27 #define TOOLBAR_0_X 38
\r
28 #define TOOLBAR_0_Y 593
\r
30 #define TOOLBAR_1_X 38
\r
31 #define TOOLBAR_1_Y 455
\r
33 #define TOOLBAR_2_X 38
\r
34 #define TOOLBAR_2_Y 317
\r
36 #define TOOLBAR_3_X 38
\r
37 #define TOOLBAR_3_Y 179
\r
39 #define TOOLBAR_4_X 38
\r
40 #define TOOLBAR_4_Y 41
\r
43 #define SHUTTER_X 1160
\r
44 #define SHUTTER_Y 254
\r
45 #define SHUTTER_W 108
\r
46 #define SHUTTER_H 214
\r
48 #define QUICKVIEW_X 1162
\r
49 #define QUICKVIEW_Y 604
\r
50 #define QUICKVIEW_W 108
\r
51 #define QUICKVIEW_H 108
\r
53 #define THUMBNAIL_H 108
\r
54 #define THUMBNAIK_W 108
\r
56 #define BACKBTN_X 1173
\r
57 #define BACKBTN_Y 615
\r
58 #define BACKBTN_W 86
\r
59 #define BACKBTN_H 86
\r
61 #define CAPTUREBTN_X 1162
\r
62 #define CAPTUREBTN_Y 68
\r
64 /*NOTE:below is for toolbar mode item*/
\r
65 #define TOOLBAR_MODE_ITEM_BG_X 33
\r
66 #define TOOLBAR_MODE_ITEM_BG_Y 58
\r
67 #define TOOLBAR_MODE_ITEM_BG_W 71
\r
68 #define TOOLBAR_MODE_ITEM_BG_H 119
\r
70 #define CAMERA_BUTTON_X 38
\r
71 #define CAMERA_BUTTON_Y 65
\r
72 #define CAMERA_BUTTON_W 61
\r
73 #define CAMERA_BUTTON_H 61
\r
74 #define CAMCORDER_BUTTON_X 38
\r
75 #define CAMCORDER_BUTTON_Y 109
\r
76 #define CAMCORDER_BUTTON_W 61
\r
77 #define CAMCORDER_BUTTON_H 61
\r
78 #define CAMERA_ICON_X 38
\r
79 #define CAMERA_ICON_Y 10
\r
80 #define CAMERA_ICON_W 56
\r
81 #define CAMERA_ICON_H 48
\r
82 #define CAMCORDER_ICON_X 38
\r
83 #define CAMCORDER_ICON_Y 170
\r
84 #define CAMCORDER_ICON_W 56
\r
85 #define CAMCORDER_ICON_H 48
\r
87 #define TOOLBAR_MODE_ITEM_W TOOLBAR_W
\r
88 #define TOOLBAR_MODE_ITEM_H TOOLBAR_RIGHT_ITEM_H
\r
92 image: BUTTON_BG_NORMAL_IMAGE COMP;
\r
93 image: BUTTON_BG_PRESS_IMAGE COMP;
\r
95 image: SNAPSHOT_PRESS_IMAGE COMP;
\r
96 image: SNAPSHOT_NORMAL_IMAGE COMP;
\r
97 image: LEFT_TOOLBAR_BG_VER_IMAGE COMP;
\r
98 image: RIGHT_TOOLBAR_BG_VER_IMAGE COMP;
\r
101 #define TOOLBAR_BACKGROUND_IMAGE(part_name, x, y, w, h, img) \
\r
106 state: "default" 0.0;\
\r
107 rel1 { relative: (y)/MAIN_H (1 - (x+w)/MAIN_W); } \
\r
108 rel2 { relative: (y+h)/MAIN_H (1 - (x)/MAIN_W); } \
\r
109 image { normal: img; } \
\r
112 state: "hide" 0.0; \
\r
113 inherit:"default" 0.0; \
\r
119 #define TOOLBAR_ITEM_BUTTON_WITH_BG(button_name, x, y, bg_w, bg_h) \
\r
120 part { name: button_name; \
\r
124 state: "default" 0.0; \
\r
125 rel1 { relative: (y)/(bg_h) (1 - (x+TOOLBAR_ITEM_W)/(bg_w));} \
\r
126 rel2 { relative: (y+TOOLBAR_ITEM_H)/(bg_h) (1 - (x)/(bg_w));} \
\r
130 state: "normal" 0.0; \
\r
131 inherit: "default" 0.0; \
\r
133 image { normal: BUTTON_BG_NORMAL_IMAGE; } \
\r
136 state: "press" 0.0; \
\r
137 inherit: "default" 0.0; \
\r
139 image { normal: BUTTON_BG_PRESS_IMAGE; } \
\r
142 state: "dim" 0.0; \
\r
143 inherit: "default" 0.0; \
\r
148 #define TOOLBAR_ITEM_ICON_WITH_BG(icon_name, x, y, w, h, bg_w, bg_h, img_normal, img_press) \
\r
149 part { name: icon_name; \
\r
153 state: "default" 0.0; \
\r
154 rel1 { relative: (y)/(bg_h) (1 - (x+w)/(bg_w));} \
\r
155 rel2 { relative: (y+h)/(bg_h) (1 - (x)/(bg_w));} \
\r
159 state: "normal" 0.0; \
\r
160 inherit: "default" 0.0; \
\r
162 image { normal: img_normal; } \
\r
165 state: "press" 0.0; \
\r
166 inherit: "default" 0.0; \
\r
168 image { normal: img_press; } \
\r
171 state: "dim" 0.0; \
\r
172 inherit: "default" 0.0; \
\r
177 #define TOOLBAR_ITEM_SWALLOW_ICON_WITH_BG(icon_name, x, y, w, h, bg_w, bg_h) \
\r
178 part { name: icon_name; \
\r
182 state: "default" 0.0; \
\r
185 rel1 { relative: (y)/(bg_h) (1 - (x+w)/(bg_w));} \
\r
186 rel2 { relative: (y+h)/(bg_h) (1 - (x)/(bg_w));} \
\r
190 state: "normal" 0.0; \
\r
191 inherit: "default" 0.0; \
\r
195 state: "dim" 0.0; \
\r
196 inherit: "default" 0.0; \
\r
201 #define TOOLBAR_ITEM_ICON_WITH_DIM(icon_name, x, y, w, h, bg_w, bg_h, img_normal, img_press, img_dim) \
\r
202 part { name: icon_name; \
\r
206 state: "default" 0.0; \
\r
207 rel1 { relative: (y)/(bg_h) (1 - (x+w)/(bg_w));} \
\r
208 rel2 { relative: (y+h)/(bg_h) (1 - (x)/(bg_w));} \
\r
212 state: "normal" 0.0; \
\r
213 inherit: "default" 0.0; \
\r
215 image { normal: img_normal; } \
\r
218 state: "press" 0.0; \
\r
219 inherit: "default" 0.0; \
\r
221 image { normal: img_press; } \
\r
224 state: "dim" 0.0; \
\r
225 inherit: "default" 0.0; \
\r
227 image { normal: img_dim; } \
\r
231 #define TOOLBAR_LEFT_ITEM_PROGRAM(button_name, icon_name, press_signal, release_signal, click_signal) \
\r
233 name: "mouse_down_"icon_name; \
\r
234 signal: "mouse,down,1"; \
\r
235 source: icon_name; \
\r
239 get_state(PART:icon_name, st, 30, vl);\
\r
240 if (strcmp(st, "dim") != 0) { \
\r
241 emit( press_signal, "toolbar_signal" );\
\r
246 name: "mouse_up_"icon_name; \
\r
247 signal: "mouse,up,1"; \
\r
248 source: icon_name; \
\r
252 get_state(PART:icon_name, st, 30, vl);\
\r
253 if (strcmp(st, "dim") != 0) { \
\r
254 emit( release_signal, "toolbar_signal" );\
\r
259 name: "mouse_clicked_"icon_name; \
\r
260 signal: "mouse,clicked,1"; \
\r
261 source: icon_name; \
\r
265 get_state(PART:icon_name, st, 30, vl);\
\r
266 if (strcmp(st, "dim") != 0) \
\r
267 emit( click_signal, "toolbar_signal" );\
\r
271 name: icon_name",invisible"; \
\r
273 signal: icon_name",invisible"; \
\r
275 set_state(PART:button_name, "default", 0.0); \
\r
276 set_state(PART:icon_name, "default", 0.0); \
\r
280 name: icon_name",normal"; \
\r
282 signal: icon_name",normal"; \
\r
284 set_state(PART:button_name, "default", 0.0); \
\r
285 set_state(PART:icon_name, "normal", 0.0); \
\r
289 name: icon_name",edit"; \
\r
291 signal: icon_name",edit"; \
\r
293 set_state(PART:button_name, "normal", 0.0); \
\r
294 set_state(PART:icon_name, "normal", 0.0); \
\r
298 name: icon_name",dim"; \
\r
300 signal: icon_name",dim"; \
\r
302 set_state(PART:button_name, "default", 0.0); \
\r
303 set_state(PART:icon_name, "dim", 0.0); \
\r
308 #define TOOLBAR_RIGHT_ITEM_PROGRAM(icon_name, press_signal_name, release_signal_name, move_signal_name) \
\r
310 name: "mouse_down_"icon_name; \
\r
311 signal: "mouse,down,1"; \
\r
312 source: icon_name; \
\r
316 get_state(PART:icon_name, st, 30, vl);\
\r
317 if (strcmp(st, "dim") != 0) { \
\r
318 set_state(PART:icon_name, "press", 0.0);\
\r
319 emit( press_signal_name, "toolbar_signal" );\
\r
324 name: "mouse_up_"icon_name; \
\r
325 signal: "mouse,up,1"; \
\r
326 source: icon_name; \
\r
330 get_state(PART:icon_name, st, 30, vl);\
\r
331 if (strcmp(st, "dim") != 0) { \
\r
332 set_state(PART:icon_name, "normal", 0.0);\
\r
337 name: "mouse_move_"icon_name; \
\r
338 signal: "mouse,move"; \
\r
339 source: icon_name; \
\r
343 get_state(PART:icon_name, st, 30, vl);\
\r
344 if (strcmp(st, "dim") != 0) \
\r
345 emit( move_signal_name, "toolbar_signal" );\
\r
349 name: "mouse_clicked_"icon_name; \
\r
350 signal: "mouse,clicked,1"; \
\r
351 source: icon_name; \
\r
355 get_state(PART:icon_name, st, 30, vl);\
\r
356 if (strcmp(st, "dim") != 0) \
\r
357 emit( release_signal_name, "toolbar_signal" );\
\r
361 name: icon_name",invisible"; \
\r
363 signal: icon_name",invisible"; \
\r
365 set_state(PART:icon_name, "default", 0.0); \
\r
369 name: icon_name",normal"; \
\r
371 signal: icon_name",normal"; \
\r
373 set_state(PART:icon_name, "normal", 0.0); \
\r
377 name: icon_name",dim"; \
\r
379 signal: icon_name",dim"; \
\r
381 set_state(PART:icon_name, "dim", 0.0); \
\r
385 #define TOOLBAR_ITEM_BUTTON(name, x, y) \
\r
386 TOOLBAR_ITEM_BUTTON_WITH_BG(name, x, y, MAIN_W, MAIN_H)
\r
388 #define TOOLBAR_ITEM_ICON(name, x, y, w, h, img_normal, img_press) \
\r
389 TOOLBAR_ITEM_ICON_WITH_BG(name, x, y, w, h, MAIN_W, MAIN_H, img_normal, img_press)
\r
391 #define TOOLBAR_ITEM_SWALLOW_ICON(name, x, y, w, h) \
\r
392 TOOLBAR_ITEM_SWALLOW_ICON_WITH_BG(name, x, y, w, h, MAIN_W, MAIN_H)
\r
394 #endif /*__H_EDC_CAM_TOOLBAR_LAYOUT_INC_EDC_H__*/
\r