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