Updating INI configuration file to work with most cameras.
[profile/ivi/camera.git] / edc / cam_toolbar_layout.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_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
32                         TOOLBAR_BACKGROUND_IMAGE("left_bg", 0, 0, TOOLBAR_W, MAIN_H, LEFT_TOOLBAR_BG_IMAGE)
33                         TOOLBAR_BACKGROUND_IMAGE("right_bg", MAIN_W-TOOLBAR_W, 0, TOOLBAR_W, MAIN_H, RIGHT_TOOLBAR_BG_IMAGE)
34
35                         part { name: "popup_area";
36                                 mouse_events: 0;
37                                 description{
38                                         state:"default" 0.0;
39                                         rel1{ relative: ((TOOLBAR_W+20)/MAIN_W) 0.0;}
40                                         rel2{ relative: ((MAIN_W-TOOLBAR_W-20)/MAIN_W) 1.0;}
41                                 }
42                         }
43
44                         part { name: "setting_popup";
45                                 type: SWALLOW;
46                                 description{
47                                         state:"default" 0.0;
48                                         rel1{ relative: ((TOOLBAR_W+20)/MAIN_W) 0.0;}
49                                         rel2{ relative: ((MAIN_W-TOOLBAR_W-20)/MAIN_W) 1.0;}
50                                 }
51                         }
52
53                         part { name: "shortcuts_popup";
54                                 type: SWALLOW;
55                                 description{
56                                         state:"default" 0.0;
57                                         rel1{ relative: (TOOLBAR_W+20)/MAIN_W) 0.0;}
58                                         rel2{ relative: ((TOOLBAR_W+740+20)/MAIN_W) (MAIN_H - 138)/MAIN_H;}
59                                 }
60                                 description{
61                                         state:"wide" 0.0;
62                                         rel1{ relative: (TOOLBAR_W+20)/MAIN_W) 0.0;}
63                                         rel2{ relative: ((TOOLBAR_W+740+20)/MAIN_W) 1.0;}
64                                 }
65                         }
66
67                         part { name: "shortcuts_popup_description";
68                                 type: SWALLOW;
69                                 description{
70                                         state:"default" 0.0;
71                                         min:0   138;
72                                         fixed:0         1;
73                                         align: 0 0;
74                                         rel1{ relative: 0.0 1.0;to: "shortcuts_popup";}
75                                         rel2{ relative: 1.0 1.0;to: "shortcuts_popup";}
76                                 }
77                                 description{
78                                         state:"wide" 0.0;
79                                         inherit: "default" 0.0;
80                                         visible: 0;
81                                 }
82                         }
83
84                         TOOLBAR_ITEM_BUTTON("toolbar_0_button", TOOLBAR_0_X, TOOLBAR_0_Y)
85                         TOOLBAR_ITEM_BUTTON("toolbar_1_button", TOOLBAR_1_X, TOOLBAR_1_Y)
86                         TOOLBAR_ITEM_BUTTON("toolbar_2_button", TOOLBAR_2_X, TOOLBAR_2_Y)
87                         TOOLBAR_ITEM_BUTTON("toolbar_3_button", TOOLBAR_3_X, TOOLBAR_3_Y)
88                         TOOLBAR_ITEM_BUTTON("toolbar_4_button", TOOLBAR_4_X, TOOLBAR_4_Y)
89
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                         TOOLBAR_ITEM_SWALLOW_ICON("toolbar_0_icon", TOOLBAR_0_X, TOOLBAR_0_Y, TOOLBAR_ITEM_W, TOOLBAR_ITEM_H)
95
96
97                         part { name: "shutter_button";
98                                 type: SWALLOW;
99                                 mouse_events: 1;
100                                 description {
101                                         state: "default" 0.0;
102                                         rel1 { relative: SHUTTER_X/MAIN_W SHUTTER_Y/MAIN_H; offset: 0 0; }
103                                         rel2 { relative: (SHUTTER_X+SHUTTER_W)/MAIN_W (SHUTTER_Y+SHUTTER_H)/MAIN_H; offset: -1 -1; }
104                                 }
105                         }
106                         part { name: "mode_item";
107                                 type: SWALLOW;
108                                 mouse_events: 1;
109                                 description {
110                                         state: "default" 0.0;
111                                         rel1 { relative: (MAIN_W - TOOLBAR_W)/MAIN_W 0.0; offset: 0 0; }
112                                         rel2 { relative: 1.0 TOOLBAR_RIGHT_ITEM_H/MAIN_H; offset: -1 -1; }
113                                 }
114                         }
115                         part { name: "quickview_item";
116                                 type: SWALLOW;
117                                 mouse_events: 1;
118                                 description {
119                                         state: "default" 0.0;
120                                         rel1 { relative: QUICKVIEW_X/MAIN_W QUICKVIEW_Y/MAIN_H; offset: 0 0; }
121                                         rel2 { relative: (QUICKVIEW_X+QUICKVIEW_W)/MAIN_W (QUICKVIEW_Y+QUICKVIEW_H)/MAIN_H; offset: -1 -1; }
122                                 }
123                         }
124                         part { name: "backbutton_item";
125                                 type: SWALLOW;
126                                 mouse_events: 1;
127                                 description {
128                                         state: "default" 0.0;
129                                         rel1 { relative: BACKBTN_X/MAIN_W BACKBTN_Y/MAIN_H; offset: 0 0; }
130                                         rel2 { relative: (BACKBTN_X+BACKBTN_W)/MAIN_W (BACKBTN_Y+BACKBTN_H)/MAIN_H; offset: -1 -1; }
131                                 }
132                         }
133                         part { name: "capture_button_item";
134                                 type: SWALLOW;
135                                 mouse_events: 1;
136                                 description {
137                                         state: "default" 0.0;
138                                         rel1 { relative: CAPTUREBTN_X/MAIN_W CAPTUREBTN_Y/MAIN_H; offset: 0 0; }
139                                         rel2 { relative: (MAIN_W-10)/MAIN_W (CAPTUREBTN_Y+108)/MAIN_H; offset: -1 -1; }
140                                 }
141                         }
142
143                 }/*end parts*/
144
145                 programs {
146                         program {
147                                 name: "shortcuts,normal";
148                                 source: "prog";
149                                 signal: "shortcuts,normal";
150                                 script: {
151                                         set_state(PART:"shortcuts_popup", "default", 0.0);
152                                         set_state(PART:"shortcuts_popup_description", "default", 0.0);
153                                 }
154                         }
155                         program {
156                                 name: "shortcuts,wide";
157                                 source: "prog";
158                                 signal: "shortcuts,wide";
159                                 script: {
160                                         set_state(PART:"shortcuts_popup", "wide", 0.0);
161                                         set_state(PART:"shortcuts_popup_description", "wide", 0.0);
162                                 }
163                         }
164                         program {
165                                 name: "toolbar_bg,show";
166                                         source: "program";
167                                         signal: "toolbar_bg,show";
168                                         action: STATE_SET "default" 0.0;
169                                         target: "left_bg";
170                         }
171
172                         program {
173                                 name: "toolbar_bg,hide";
174                                         source: "program";
175                                         signal: "toolbar_bg,hide";
176                                         action: STATE_SET "hide" 0.0;
177                                         target: "left_bg";
178                         }
179
180                         TOOLBAR_LEFT_ITEM_PROGRAM("toolbar_0_button", "toolbar_0_icon", "toolbar_0_press_sig", "toolbar_0_release_sig", "toolbar_0_click_sig")
181                         TOOLBAR_LEFT_ITEM_PROGRAM("toolbar_1_button", "toolbar_1_icon", "toolbar_1_press_sig", "toolbar_1_release_sig", "toolbar_1_click_sig")
182                         TOOLBAR_LEFT_ITEM_PROGRAM("toolbar_2_button", "toolbar_2_icon", "toolbar_2_press_sig", "toolbar_2_release_sig", "toolbar_2_click_sig")
183                         TOOLBAR_LEFT_ITEM_PROGRAM("toolbar_3_button", "toolbar_3_icon", "toolbar_3_press_sig", "toolbar_3_release_sig", "toolbar_3_click_sig")
184                         TOOLBAR_LEFT_ITEM_PROGRAM("toolbar_4_button", "toolbar_4_icon", "toolbar_4_press_sig", "toolbar_4_release_sig", "toolbar_4_click_sig")
185                 }/*end programs*/
186         }/*end group :toolbar*/
187
188         group {
189                 name: "toolbar_mode_item";
190                 min: TOOLBAR_MODE_ITEM_W TOOLBAR_MODE_ITEM_H;
191
192                 images {
193                         image:  MODE_BG_IMAGE COMP;
194                         image:  MODE_BUTTON_IMAGE COMP;
195                 }
196
197                 parts {
198                         part { name: "rect";
199                                 type: RECT;
200                                 mouse_events: 1;
201                                 description {
202                                         state: "default" 0.0;
203                                         rel1 { relative: 0.0 0.0; offset: 0 0; }
204                                         rel2 { relative: 1.0 1.0; offset: -1 -1; }
205                                         color : 0 0 0 0;
206                                 }
207                         }
208
209                         part { name: "bg";
210                                 type: IMAGE;
211                                 mouse_events: 0;
212                                 description {
213                                         state: "default" 0.0;
214                                         rel1 {
215                                                 relative: TOOLBAR_MODE_ITEM_BG_X/TOOLBAR_MODE_ITEM_W
216                                                                 TOOLBAR_MODE_ITEM_BG_Y/TOOLBAR_MODE_ITEM_H;
217                                                 offset: 0 0;
218                                         }
219                                         rel2 {
220                                                 relative: (TOOLBAR_MODE_ITEM_BG_X+TOOLBAR_MODE_ITEM_BG_W)/TOOLBAR_MODE_ITEM_W
221                                                                 (TOOLBAR_MODE_ITEM_BG_Y+TOOLBAR_MODE_ITEM_BG_H)/TOOLBAR_MODE_ITEM_H;
222                                                 offset: -1 -1;
223                                         }
224                                         image{ normal: MODE_BG_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: CAMERA_BUTTON_X/TOOLBAR_MODE_ITEM_W CAMERA_BUTTON_Y/TOOLBAR_MODE_ITEM_H; offset: 0 0;}
247                                         rel2 { relative: (CAMERA_BUTTON_X+CAMERA_BUTTON_W)/TOOLBAR_MODE_ITEM_W (CAMERA_BUTTON_Y+CAMERA_BUTTON_H)/TOOLBAR_MODE_ITEM_H; offset: -1 -1;}
248                                         image{ normal: MODE_BUTTON_IMAGE; }
249                                         visible: 1;
250                                 }
251                                 description {
252                                         state: "camcorder" 0.0;
253                                         rel1 { relative: CAMCORDER_BUTTON_X/TOOLBAR_MODE_ITEM_W CAMCORDER_BUTTON_Y/TOOLBAR_MODE_ITEM_H; offset: 0 0;}
254                                         rel2 { relative: (CAMCORDER_BUTTON_X+CAMCORDER_BUTTON_W)/TOOLBAR_MODE_ITEM_W (CAMCORDER_BUTTON_Y+CAMCORDER_BUTTON_H)/TOOLBAR_MODE_ITEM_H; offset: -1 -1;}
255                                         image{ normal: MODE_BUTTON_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: CAMERA_ICON_X/TOOLBAR_MODE_ITEM_W CAMERA_ICON_Y/TOOLBAR_MODE_ITEM_H; offset: 0 0; }
270                                         rel2 { relative: (CAMERA_ICON_X+CAMERA_ICON_W)/TOOLBAR_MODE_ITEM_W (CAMERA_ICON_Y+CAMERA_ICON_H)/TOOLBAR_MODE_ITEM_H; 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: CAMCORDER_ICON_X/TOOLBAR_MODE_ITEM_W CAMCORDER_ICON_Y/TOOLBAR_MODE_ITEM_H; offset: 0 0;}
295                                         rel2 { relative: (CAMCORDER_ICON_X+CAMCORDER_ICON_W)/TOOLBAR_MODE_ITEM_W (CAMCORDER_ICON_Y+CAMCORDER_ICON_H)/TOOLBAR_MODE_ITEM_H; 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_IMAGE COMP;
353                         image: SHUTTER_PRESS_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_IMAGE; }
373                                 }
374                                 description {
375                                         state: "press" 0.0;
376                                         inherit: "default" 0.0;
377                                         visible: 1;
378                                         image { normal: SHUTTER_PRESS_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