Making changes to make gstreamer calls work correctly on IVI
[profile/ivi/camera.git] / edc / cam_toolbar_layout_vertical.edc
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.0 (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://www.tizenopensource.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
18 #include "cam_funcs.edc"
19 #include "../include/edc_image_name.h"
20 #include "cam_toolbar_layout_vertical_inc.edc"
21 #include "cam_setting_popup_layout.edc"
22
23
24 collections {
25
26         group {
27                 name: "toolbar";
28                 min: MAIN_H MAIN_W;
29
30                 parts {
31                         TOOLBAR_BACKGROUND_IMAGE("left_bg", 0, 0, TOOLBAR_W, MAIN_H, LEFT_TOOLBAR_BG_VER_IMAGE)
32                         TOOLBAR_BACKGROUND_IMAGE("right_bg", MAIN_W-TOOLBAR_W, 0, TOOLBAR_W, MAIN_H, RIGHT_TOOLBAR_BG_VER_IMAGE)
33
34                         part { name: "popup_area";
35                                 mouse_events: 0;
36                                 description{
37                                         state:"default" 0.0;
38                                         rel1{ relative: 0.0 (TOOLBAR_W+20)/MAIN_W;}
39                                         rel2{ relative: 1.0 (MAIN_W-TOOLBAR_W-20)/MAIN_W;}
40                                 }
41                         }
42
43                         part { name: "setting_popup";
44                                 type: SWALLOW;
45                                 description{
46                                         state:"default" 0.0;
47                                         rel1{ relative: 0.0 ((TOOLBAR_W+20)/MAIN_W);}
48                                         rel2{ relative: 1.0 ((MAIN_W-TOOLBAR_W-20)/MAIN_W);}
49                                 }
50                         }
51
52                         part { name: "shortcuts_popup";
53                                 type: SWALLOW;
54                                 description{
55                                         state:"default" 0.0;
56                                         rel1{ relative: 0.0 (TOOLBAR_W+20)/MAIN_W);}
57                                         rel2{ relative: 1.0 ((TOOLBAR_W+740+20 - 138)/MAIN_W);}
58                                 }
59                                 description{
60                                         state:"wide" 0.0;
61                                         rel1{ relative: 0.0 (TOOLBAR_W+20)/MAIN_W);}
62                                         rel2{ relative: 1.0 ((TOOLBAR_W+740+20)/MAIN_W);}
63                                 }
64                         }
65
66                         part { name: "shortcuts_popup_description";
67                                 type: SWALLOW;
68                                 description{
69                                         state:"default" 0.0;
70                                         min:0   138;
71                                         fixed:0         1;
72                                         align: 0 0;
73                                         rel1{ relative: 0.0 1.0;to: "shortcuts_popup";}
74                                         rel2{ relative: 1.0 1.0;to: "shortcuts_popup";}
75                                 }
76                                 description{
77                                         state:"wide" 0.0;
78                                         inherit: "default" 0.0;
79                                         visible: 0;
80                                 }
81                         }
82
83                         TOOLBAR_ITEM_BUTTON("toolbar_0_button", TOOLBAR_0_X, TOOLBAR_0_Y)
84                         TOOLBAR_ITEM_BUTTON("toolbar_1_button", TOOLBAR_1_X, TOOLBAR_1_Y)
85                         TOOLBAR_ITEM_BUTTON("toolbar_2_button", TOOLBAR_2_X, TOOLBAR_2_Y)
86                         TOOLBAR_ITEM_BUTTON("toolbar_3_button", TOOLBAR_3_X, TOOLBAR_3_Y)
87                         TOOLBAR_ITEM_BUTTON("toolbar_4_button", TOOLBAR_4_X, TOOLBAR_4_Y)
88
89                         TOOLBAR_ITEM_SWALLOW_ICON("toolbar_0_icon", TOOLBAR_0_X, TOOLBAR_0_Y, TOOLBAR_ITEM_W, TOOLBAR_ITEM_H)
90                         TOOLBAR_ITEM_SWALLOW_ICON("toolbar_1_icon", TOOLBAR_1_X, TOOLBAR_1_Y, TOOLBAR_ITEM_W, TOOLBAR_ITEM_H)
91                         TOOLBAR_ITEM_SWALLOW_ICON("toolbar_2_icon", TOOLBAR_2_X, TOOLBAR_2_Y, TOOLBAR_ITEM_W, TOOLBAR_ITEM_H)
92                         TOOLBAR_ITEM_SWALLOW_ICON("toolbar_3_icon", TOOLBAR_3_X, TOOLBAR_3_Y, TOOLBAR_ITEM_W, TOOLBAR_ITEM_H)
93                         TOOLBAR_ITEM_SWALLOW_ICON("toolbar_4_icon", TOOLBAR_4_X, TOOLBAR_4_Y, TOOLBAR_ITEM_W, TOOLBAR_ITEM_H)
94
95                         part { name: "shutter_button";
96                                 type: SWALLOW;
97                                 mouse_events: 1;
98                                 scale: 1;
99                                 description {
100                                         state: "default" 0.0;
101                                         rel1 { relative: (1 - (SHUTTER_Y+SHUTTER_H)/MAIN_H) SHUTTER_X/MAIN_W; offset: 0 0; }
102                                         rel2 { relative: (1 - SHUTTER_Y/MAIN_H) (SHUTTER_X+SHUTTER_W)/MAIN_W; offset: -1 -1; }
103                                 }
104                         }
105                         part { name: "mode_item";
106                                 type: SWALLOW;
107                                 mouse_events: 1;
108                                 description {
109                                         state: "default" 0.0;
110                                         rel1 { relative: (1 - TOOLBAR_RIGHT_ITEM_H/MAIN_H) (MAIN_W - TOOLBAR_W)/MAIN_W; offset: 0 0; }
111                                         rel2 { relative:  1.0 1.0; offset: -1 -1; }
112                                 }
113                         }
114                         part { name: "quickview_item";
115                                 type: SWALLOW;
116                                 mouse_events: 1;
117                                 description {
118                                         state: "default" 0.0;
119                                         rel1 { relative: (1.0 - (QUICKVIEW_Y+QUICKVIEW_H)/MAIN_H) QUICKVIEW_X/MAIN_W; offset: 0 0; }
120                                         rel2 { relative: (1.0 - QUICKVIEW_Y/MAIN_H) (QUICKVIEW_X+QUICKVIEW_W)/MAIN_W; offset: -1 -1; }
121                                 }
122                         }
123                         part { name: "backbutton_item";
124                                 type: SWALLOW;
125                                 mouse_events: 1;
126                                 description {
127                                         state: "default" 0.0;
128                                         rel1 { relative: (1.0 - (BACKBTN_Y+BACKBTN_H)/MAIN_H) BACKBTN_X/MAIN_W; offset: 0 0; }
129                                         rel2 { relative: (1.0 - BACKBTN_Y/MAIN_H) (BACKBTN_X+BACKBTN_W)/MAIN_W; offset: -1 -1; }
130                                 }
131                         }
132                         part { name: "capture_button_item";
133                                 type: SWALLOW;
134                                 mouse_events: 1;
135                                 description {
136                                         state: "default" 0.0;
137                                         rel1 { relative: (1.0 - (CAPTUREBTN_Y+108)/MAIN_H) CAPTUREBTN_X/MAIN_W; offset: 0 0; }
138                                         rel2 { relative: (1.0 - CAPTUREBTN_Y/MAIN_H) (MAIN_W-10)/MAIN_W; offset: -1 -1; }
139                                 }
140                         }
141
142                 }/*end parts*/
143
144                 programs {
145                         program {
146                                 name: "shortcuts,normal";
147                                 source: "prog";
148                                 signal: "shortcuts,normal";
149                                 script: {
150                                         set_state(PART:"shortcuts_popup", "default", 0.0);
151                                         set_state(PART:"shortcuts_popup_description", "default", 0.0);
152                                 }
153                         }
154                         program {
155                                 name: "shortcuts,wide";
156                                 source: "prog";
157                                 signal: "shortcuts,wide";
158                                 script: {
159                                         set_state(PART:"shortcuts_popup", "wide", 0.0);
160                                         set_state(PART:"shortcuts_popup_description", "wide", 0.0);
161                                 }
162                         }
163                         program {
164                                 name: "toolbar_bg,show";
165                                         source: "program";
166                                         signal: "toolbar_bg,show";
167                                         action: STATE_SET "default" 0.0;
168                                         target: "left_bg";
169                         }
170
171                         program {
172                                 name: "toolbar_bg,hide";
173                                         source: "program";
174                                         signal: "toolbar_bg,hide";
175                                         action: STATE_SET "hide" 0.0;
176                                         target: "left_bg";
177                         }
178                         TOOLBAR_LEFT_ITEM_PROGRAM("toolbar_0_button", "toolbar_0_icon", "toolbar_0_press_sig", "toolbar_0_release_sig", "toolbar_0_click_sig")
179                         TOOLBAR_LEFT_ITEM_PROGRAM("toolbar_1_button", "toolbar_1_icon", "toolbar_1_press_sig", "toolbar_1_release_sig", "toolbar_1_click_sig")
180                         TOOLBAR_LEFT_ITEM_PROGRAM("toolbar_2_button", "toolbar_2_icon", "toolbar_2_press_sig", "toolbar_2_release_sig", "toolbar_2_click_sig")
181                         TOOLBAR_LEFT_ITEM_PROGRAM("toolbar_3_button", "toolbar_3_icon", "toolbar_3_press_sig", "toolbar_3_release_sig", "toolbar_3_click_sig")
182                         TOOLBAR_LEFT_ITEM_PROGRAM("toolbar_4_button", "toolbar_4_icon", "toolbar_4_press_sig", "toolbar_4_release_sig", "toolbar_4_click_sig")
183                 }/*end programs*/
184         }/*end group :toolbar*/
185
186         group {
187                 name: "toolbar_mode_item";
188                 min: TOOLBAR_MODE_ITEM_W TOOLBAR_MODE_ITEM_H;
189
190                 images {
191                         image:  MODE_BG_VER_IMAGE COMP;
192                         image:  MODE_BUTTON_VER_IMAGE COMP;
193                 }
194
195                 parts {
196                         part { name: "rect";
197                                 type: RECT;
198                                 mouse_events: 1;
199                                 description {
200                                         state: "default" 0.0;
201                                         rel1 { relative: 0.0 0.0; offset: 0 0; }
202                                         rel2 { relative: 1.0 1.0; offset: -1 -1; }
203                                         color : 0 0 0 0;
204                                 }
205                         }
206
207                         part { name: "bg";
208                                 type: IMAGE;
209                                 mouse_events: 0;
210                                 description {
211                                         state: "default" 0.0;
212                                         rel1 {
213                                                 relative: (1 - (TOOLBAR_MODE_ITEM_BG_Y+TOOLBAR_MODE_ITEM_BG_H)/TOOLBAR_MODE_ITEM_H)
214                                                         TOOLBAR_MODE_ITEM_BG_X/TOOLBAR_MODE_ITEM_W
215                                                                 ;
216                                                 offset: 0 0;
217                                         }
218                                         rel2 {
219                                                 relative: (1 - TOOLBAR_MODE_ITEM_BG_Y/TOOLBAR_MODE_ITEM_H)
220                                                         (TOOLBAR_MODE_ITEM_BG_X+TOOLBAR_MODE_ITEM_BG_W)/TOOLBAR_MODE_ITEM_W
221                                                                 ;
222                                                 offset: -1 -1;
223                                         }
224                                         image{ normal: MODE_BG_VER_IMAGE; }
225                                 }
226                                 description {
227                                         state: "invisible" 0.0;
228                                         inherit: "default" 0.0;
229                                         visible: 0;
230                                 }
231                         }
232
233
234
235                         part { name: "button";
236                                 type: IMAGE;
237                                 mouse_events: 0;
238                                 description {
239                                         state: "default" 0.0;
240                                         rel1 { relative: 0.0 0.0; offset: 0 0; }
241                                         rel2 { relative: 1.0 1.0; offset: -1 -1; }
242                                         visible: 0;
243                                 }
244                                 description {
245                                         state: "camera" 0.0;
246                                         rel1 { relative: (1 - (CAMERA_BUTTON_Y+CAMERA_BUTTON_H)/TOOLBAR_MODE_ITEM_H) CAMERA_BUTTON_X/TOOLBAR_MODE_ITEM_W ; offset: 0 0;}
247                                         rel2 { relative: (1 - CAMERA_BUTTON_Y/TOOLBAR_MODE_ITEM_H) (CAMERA_BUTTON_X+CAMERA_BUTTON_W)/TOOLBAR_MODE_ITEM_W; offset: -1 -1;}
248                                         image{ normal: MODE_BUTTON_VER_IMAGE; }
249                                         visible: 1;
250                                 }
251                                 description {
252                                         state: "camcorder" 0.0;
253                                         rel1 { relative: (1- (CAMCORDER_BUTTON_Y+CAMCORDER_BUTTON_H)/TOOLBAR_MODE_ITEM_H) CAMCORDER_BUTTON_X/TOOLBAR_MODE_ITEM_W ; offset: 0 0;}
254                                         rel2 { relative: (1 - CAMCORDER_BUTTON_Y/TOOLBAR_MODE_ITEM_H) (CAMCORDER_BUTTON_X+CAMCORDER_BUTTON_W)/TOOLBAR_MODE_ITEM_W; offset: -1 -1;}
255                                         image{ normal: MODE_BUTTON_VER_IMAGE; }
256                                         visible: 1;
257                                 }
258                         }
259
260
261
262                         part { name: "camera_icon";
263                                 type: SWALLOW;
264                                 mouse_events: 1;
265                                 description {
266                                         state: "default" 0.0;
267                                         aspect: 1.0 1.0;
268                                         align: 0.5 0.5;
269                                         rel1 { relative: (1 - (CAMERA_ICON_Y+CAMERA_ICON_H)/TOOLBAR_MODE_ITEM_H) CAMERA_ICON_X/TOOLBAR_MODE_ITEM_W; offset: 0 0; }
270                                         rel2 { relative: (1 - CAMERA_ICON_Y/TOOLBAR_MODE_ITEM_H) (CAMERA_ICON_X+CAMERA_ICON_W)/TOOLBAR_MODE_ITEM_W; offset: -1 -1;}
271                                         visible: 1;
272                                 }
273                                 description {
274                                         state: "normal" 0.0;
275                                         inherit: "default" 0.0;
276                                         visible: 1;
277                                 }
278                                 description {
279                                         state: "dim" 0.0;
280                                         inherit: "default" 0.0;
281                                         visible: 0;
282                                 }
283                         }
284
285
286
287                         part { name: "camcorder_icon";
288                                 type: SWALLOW;
289                                 mouse_events: 1;
290                                 description {
291                                         state: "default" 0.0;
292                                         aspect: 1.0 1.0;
293                                         align: 0.5 0.5;
294                                         rel1 { relative: (1 - (CAMCORDER_ICON_Y+CAMCORDER_ICON_H)/TOOLBAR_MODE_ITEM_H) CAMCORDER_ICON_X/TOOLBAR_MODE_ITEM_W; offset: 0 0;}
295                                         rel2 { relative: (1 - CAMCORDER_ICON_Y/TOOLBAR_MODE_ITEM_H) (CAMCORDER_ICON_X+CAMCORDER_ICON_W)/TOOLBAR_MODE_ITEM_W; offset: -1 -1;}
296                                         visible: 1;
297                                 }
298                                 description {
299                                         state: "normal" 0.0;
300                                         inherit: "default" 0.0;
301                                         visible: 1;
302                                 }
303                                 description {
304                                         state: "dim" 0.0;
305                                         inherit: "default" 0.0;
306                                         visible: 0;
307                                 }
308                         }
309                 }/*end parts*/
310
311                 programs{
312                         program {
313                                 name:"prog_set_camera";
314                                 source: "prog";
315                                 signal: "SET_MODE_CAMERA";
316                                 script: {
317                                         set_state(PART:"bg", "default", 0.0);
318                                         set_state(PART:"button", "camera", 0.0);
319                                         set_state(PART:"camera_icon", "normal", 0.0);
320                                         set_state(PART:"camcorder_icon", "normal", 0.0);
321                                 }
322                         }
323                         program {
324                                 name: "prog_set_camcorder";
325                                 source: "prog";
326                                 signal: "SET_MODE_CAMCORDER";
327                                 script: {
328                                         set_state(PART:"bg", "default", 0.0);
329                                         set_state(PART:"button", "camcorder", 0.0);
330                                         set_state(PART:"camera_icon", "normal", 0.0);
331                                         set_state(PART:"camcorder_icon", "normal", 0.0);
332                                 }
333                         }
334                         program {
335                                 name: "prog_set_invisible";
336                                 source: "prog";
337                                 signal: "SET_INVISIBLE";
338                                 script: {
339                                         set_state(PART:"bg", "invisible", 0.0);
340                                         set_state(PART:"button", "default", 0.0);
341                                         set_state(PART:"camera_icon", "dim", 0.0);
342                                         set_state(PART:"camcorder_icon", "dim", 0.0);
343                                 }
344                         }
345                 }/*end programs*/
346         }/*end group:toolbar_mode_item*/
347
348         group {
349                 name: "shutter_button";
350
351                 images {
352                         image: SHUTTER_NORMAL_VER_IMAGE COMP;
353                         image: SHUTTER_PRESS_VER_IMAGE COMP;
354                         image: CAMERA_SHUTTER_ICON_IMAGE COMP;
355                         image: CAMCORDER_SHUTTER_ICON_IMAGE COMP;
356                 }
357
358                 parts {
359                         part { name: "capture_button";
360                                 type: IMAGE;
361                                 mouse_events: 1;
362                                 description {
363                                         state: "default" 0.0;
364                                         rel1 { relative: 0.0 0.0; offset: 0 0; }
365                                         rel2 { relative: 1.0 1.0; offset: -1 -1; }
366                                         visible: 0;
367                                 }
368                                 description {
369                                         state: "normal" 0.0;
370                                         inherit: "default" 0.0;
371                                         visible: 1;
372                                         image { normal: SHUTTER_NORMAL_VER_IMAGE; }
373                                 }
374                                 description {
375                                         state: "press" 0.0;
376                                         inherit: "default" 0.0;
377                                         visible: 1;
378                                         image { normal: SHUTTER_PRESS_VER_IMAGE; }
379                                 }
380                                 description {
381                                         state: "dim" 0.0;
382                                         inherit: "default" 0.0;
383                                         visible: 0;
384                                 }
385                         }
386
387                         part { name: "camera_icon";
388                                 type: SWALLOW;
389                                 scale: 1;
390                                 mouse_events: 0;
391                                 description {
392                                         state: "default" 0.0;
393                                         aspect: 1.0 1.0;
394                                         align: 0.5 0.5;
395                                         max: 60 60;
396                                         visible: 1;
397                                 }
398
399                                 description {
400                                         state: "normal" 0.0;
401                                         inherit: "default" 0.0;
402                                         visible: 1;
403                                 }
404                                 description {
405                                         state: "dim" 0.0;
406                                         inherit: "default" 0.0;
407                                         visible: 0;
408                                 }
409                         }
410                         part { name: "camcorder_icon";
411                                 type: SWALLOW;
412                                 scale: 1;
413                                 mouse_events: 0;
414                                 description {
415                                         state: "default" 0.0;
416                                         aspect: 1.0 1.0;
417                                         align: 0.5 0.5;
418                                         max: 106 106;
419                                         visible: 1;
420                                 }
421                                 description {
422                                         state: "normal" 0.0;
423                                         inherit: "default" 0.0;
424                                         visible: 1;
425                                 }
426                                 description {
427                                         state: "dim" 0.0;
428                                         inherit: "default" 0.0;
429                                         visible: 0;
430                                 }
431                         }
432                 }/*end parts*/
433
434                 programs {
435                         TOOLBAR_RIGHT_ITEM_PROGRAM("capture_button", "press_shutter_sig", "release_shutter_sig", "move_shutter_sig")
436
437                         program {
438                                 name: "camera_icon,normal";
439                                 source: "prog";
440                                 signal: "camera_icon,normal";
441                                 script: { set_state(PART:"camera_icon", "normal", 0.0); }
442                         }
443                         program {
444                                 name: "camera_icon,invisible";
445                                 source: "prog";
446                                 signal: "camera_icon,invisible";
447                                 script: { set_state(PART:"camera_icon", "dim", 0.0); }
448                         }
449                         program {
450                                 name: "camcorder_icon,normal";
451                                 source: "prog";
452                                 signal: "camcorder_icon,normal";
453                                 script: { set_state(PART:"camcorder_icon", "normal", 0.0); }
454                         }
455                         program {
456                                 name: "camcorder_icon,invisible";
457                                 source: "prog";
458                                 signal: "camcorder_icon,invisible";
459                                 script: { set_state(PART:"camcorder_icon", "dim", 0.0); }
460                         }
461                 }/*end programs*/
462         }/*end group*/
463
464         group {
465                 name: "toolbar_quickview_item";
466
467                 images {
468                         image: THUMBNAIL_BG_NORMAL_IMAGE COMP;
469                 }
470
471                 parts {
472                         part { name: "bg";
473                                 type: IMAGE;
474                                 mouse_events: 1;
475                                 description {
476                                         state: "default" 0.0;
477                                         rel1 { relative: 0.0 0.0; offset: 0 0; }
478                                         rel2 { relative: 1.0 1.0; offset: -1 -1; }
479                                         image {
480                                                 normal: THUMBNAIL_BG_NORMAL_IMAGE ;
481                                         }
482                                 }
483                                 description {
484                                         state: "invisible" 0.0;
485                                         inherit: "default" 0.0;
486                                         visible: 0;
487                                 }
488                         }
489                         part { name: "thumbnail";
490                                 type: SWALLOW;
491                                 mouse_events: 0;
492                                 description {
493                                         state: "default" 0.0;
494                                         rel1 { relative: 1/9 1/9; offset: 0 0; to: "bg"; }
495                                         rel2 { relative: 8/9 8/9; offset: -1 -1;  to: "bg"; }
496                                 }
497                                 description {
498                                         state: "invisible" 0.0;
499                                         inherit: "default" 0.0;
500                                         visible: 0;
501                                 }
502                         }
503
504                         part { name: "thumbnail_area"; /*note: just for c codes get thumbnail x,y,w,h*/
505                                 type: RECT;
506                                 mouse_events: 0;
507                                 description {
508                                         state: "default" 0.0;
509                                         rel1 { relative: 0.0 0.0; to: "thumbnail"; }
510                                         rel2 { relative: 1.0 1.0; to: "thumbnail"; }
511                                         color: 0 0 0 0;
512                                 }
513                         }
514
515                 }/*end parts*/
516
517                 programs {
518                         program {
519                                 name: "quickview_bg,mouse,down,1";
520                                 signal: "mouse,down,1";
521                                 source: "bg";
522                                 action: SIGNAL_EMIT "landscape,quickview,press"  "toolbar_signal";
523                         }
524                         program {
525                                 name: "quickview_bg,mouse,up,1";
526                                 signal: "mouse,up,1";
527                                 source: "bg";
528                                 action: SIGNAL_EMIT "landscape,quickview,release"  "toolbar_signal";
529                         }
530                         program {
531                                 name: "prog_set_default";
532                                 source: "prog";
533                                 signal: "SET_DEFAULT";
534                                 script: {
535                                         set_state(PART:"bg", "default", 0.0);
536                                         set_state(PART:"thumbnail", "default", 0.0);
537                                 }
538                         }
539                         program {
540                                 name: "prog_set_invisible";
541                                 source: "prog";
542                                 signal: "SET_INVISIBLE";
543                                 script: {
544                                         set_state(PART:"bg", "invisible", 0.0);
545                                         set_state(PART:"thumbnail", "invisible", 0.0);
546                                 }
547                         }
548                 }/*end programs*/
549         }/*end toolbar_quickview_item*/
550
551         group{
552                 name: "toolbar_backbutton_item";
553
554                 images{
555                         image: BACK_BUTTON_NORMAL_IMAGE COMP;
556                         image: BACK_BUTTON_PRESS_IMAGE COMP;
557                 }
558
559                 parts{
560                         part{
561                                 name: "back_button";
562                                 type: IMAGE;
563                                 mouse_events: 1;
564                                 description{
565                                         state: "default" 0.0;
566                                         rel1 { relative: 0.0 0.0; offset: 0 0;}
567                                         rel2 { relative: 1.0 1.0; offset: -1 -1;}
568                                         image {
569                                                 normal : BACK_BUTTON_NORMAL_IMAGE;
570                                         }
571                                 }
572                                 description{
573                                         state: "press" 0.0;
574                                         rel1 { relative: 0.0 0.0; offset: 0 0;}
575                                         rel2 { relative: 1.0 1.0; offset: -1 -1;}
576                                         image {
577                                                 normal : BACK_BUTTON_PRESS_IMAGE;
578                                         }
579                                 }
580                         }
581                 }/*end parts*/
582
583                 programs {
584                         program {
585                                 name: "back_button_press";
586                                 signal: "mouse,down,1";
587                                 source: "back_button";
588                                 action: STATE_SET  "press" 0.0;
589                                 target:  "back_button";
590                         }
591                         program {
592                                 name: "back_button_release";
593                                 signal: "mouse,up,1";
594                                 source: "back_button";
595                                 action: STATE_SET  "default" 0.0;
596                                 target:  "back_button";
597                         }
598                         program {
599                                 name: "back_button_clicked";
600                                 signal: "mouse,clicked,1";
601                                 source: "back_button";
602                                 action: SIGNAL_EMIT "landscape,backbutton,clicked"  "toolbar_signal";
603                         }
604                 }/*end programs*/
605         }/*end toolbar_backbutton_item*/
606
607         group{
608                 name: "toolbar_capture_button_item";
609
610                 images{
611                         image: SNAPSHOT_PRESS_IMAGE COMP;
612                         image: SNAPSHOT_NORMAL_IMAGE COMP;
613                 }
614
615                 parts{
616                         part{
617                                 name: "capture_button";
618                                 type: IMAGE;
619                                 mouse_events: 1;
620                                 description{
621                                         state: "default" 0.0;
622                                         rel1 { relative: 0.0 0.0; offset: 0 0;}
623                                         rel2 { relative: 1.0 1.0; offset: -1 -1;}
624                                         image {
625                                                 normal : SNAPSHOT_NORMAL_IMAGE;
626                                         }
627                                 }
628                                 description{
629                                         state: "press" 0.0;
630                                         rel1 { relative: 0.0 0.0; offset: 0 0;}
631                                         rel2 { relative: 1.0 1.0; offset: -1 -1;}
632                                         image {
633                                                 normal : SNAPSHOT_PRESS_IMAGE;
634                                         }
635                                 }
636                         }
637                 }/*end parts*/
638
639                 programs {
640                         program {
641                                 name: "capture_button_press";
642                                 signal: "mouse,down,1";
643                                 source: "capture_button";
644                                 action: STATE_SET  "press" 0.0;
645                                 target:  "capture_button";
646                         }
647                         program {
648                                 name: "capture_button_release";
649                                 signal: "mouse,up,1";
650                                 source: "capture_button";
651                                 action: STATE_SET  "default" 0.0;
652                                 target:  "capture_button";
653                         }
654                         program {
655                                 name: "capture_button_clicked";
656                                 signal: "mouse,clicked,1";
657                                 source: "capture_button";
658                                 action: SIGNAL_EMIT "capture_button_click"  "capture_button_click";
659                         }
660                 }/*end programs*/
661         }
662 }/*end collections*/
663 //end file