Update camera code
[apps/core/preloaded/camera.git] / edc / style_genlist_normal.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    group { name: "elm/genlist/item/camera/1text.1icon/default";
18       alias: "elm/genlist/item_odd/camera/1text.1icon/default";
19       alias: "elm/genlist/item_compress/camera/1text.1icon/default";
20       alias: "elm/genlist/item_compress_odd/camera/1text.1icon/default";
21       data.item: "stacking" "above";
22       data.item: "selectraise" "on";
23       data.item: "texts" "elm.text";
24       data.item: "contents" "elm.icon";
25       data.item: "flips" "elm.flip.content";
26
27       parts {
28          GENLIST_PART_BASE( GENLIST_HEIGHT_103_INC )
29          GENLIST_PART_BG_IMAGE
30          GENLIST_PART_BOTTOM_LINE
31          GENLIST_PART_PADDING_LEFT( GENLIST_PADDING_34_INC )
32          GENLIST_PART_PADDING_RIGHT( GENLIST_PADDING_14_INC )
33          part { name: "elm.icon";
34             clip_to: "disclip";
35             type: SWALLOW;
36             scale: 1;
37             description { state: "default" 0.0;
38                fixed: 1 1;
39                            min: 86 84;
40                            max: 86 84;
41                            aspect: 1.0 1.0;
42                rel1.to_x: "elm.padding.right";
43                rel2 {
44                   relative: 0.0 1.0;
45                   to_x: "elm.padding.right";
46                }
47                align: 1 0.5;
48             }
49             GENLIST_DESCRIPTION_FLIP_ENABLED
50          }
51          part { name: "elm.padding.icon.left";
52             clip_to: "disclip";
53             type: RECT;
54             scale: 1;
55             description { state: "default" 0.0;
56                min: GENLIST_PADDING_14_INC 0;
57                fixed: 1 0;
58                rel1.to_x: "elm.icon";
59                rel2 {
60                   relative: 0.0 1.0;
61                   to_x: "elm.icon";
62                }
63                align: 1.0 0.0;
64                visible: 0;
65             }
66          }
67          part { name: "elm.text";
68             clip_to: "disclip";
69             type: TEXT;
70             mouse_events: 0;
71             scale: 1;
72             description { state: "default" 0.0;
73                rel1 {
74                   relative: 1.0 0.0;
75                   to_x: "elm.padding.left";
76                }
77                rel2 {
78                   relative: 0.0 1.0;
79                   to_x: "elm.padding.icon.left";
80                }
81                align: 0.0 0.5;
82                color: GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC;
83                text {
84                   font: "SLP:style=Helveca";
85                   size: GENLIST_FONT_40_INC;
86                   min: 0 1;
87                   align: 0.0 0.5;
88                }
89             }
90             description { state: "selected" 0.0;
91                inherit: "default" 0.0;
92                color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
93             }
94             GENLIST_DESCRIPTION_FLIP_ENABLED
95          }
96          GENLIST_PART_FLIP
97          GENLIST_PART_DISCLIP
98       }
99       programs {
100          program { name: "go_active";
101             signal: "elm,state,selected";
102             source: "elm";
103             action: STATE_SET "selected" 0.0;
104             target: "bg_image";
105             target: "elm.text";
106          }
107          program { name: "go_passive";
108             signal: "elm,state,unselected";
109             source: "elm";
110             action: STATE_SET "default" 0.0;
111             target: "bg_image";
112             target: "elm.text";
113             transition: LINEAR 0.1;
114          }
115          program { name: "go_disabled";
116             signal: "elm,state,disabled";
117             source: "elm";
118             action: STATE_SET "disabled" 0.0;
119             target: "disclip";
120          }
121          program { name: "go_enabled";
122             signal: "elm,state,enabled";
123             source: "elm";
124             action: STATE_SET "default" 0.0;
125             target: "disclip";
126          }
127          GENLIST_PROGRAM_FLIP_1TEXT_1ICON
128       }
129    }
130    // 4.1.2
131           group { name: "elm/genlist/item/camera/dialogue/1text.1icon/default";
132                  alias: "elm/genlist/item_odd/camera/dialogue/1text.1icon/default";
133                  alias: "elm/genlist/item_compress/camera/dialogue/1text.1icon/default";
134                  alias: "elm/genlist/item_compress_odd/camera/dialogue/1text.1icon/default";
135                  alias: "elm/layout/dialogue/1text.1icon";
136                  data.item: "stacking" "above";
137                  data.item: "selectraise" "on";
138                  data.item: "texts" "elm.text";
139                  data.item: "contents" "elm.icon";
140                  data.item: "flips" "elm.flip.content";
141                  parts {
142                         GENLIST_PART_BASE( GENLIST_HEIGHT_113_INC )
143                         GENLIST_PART_BG_IMAGE
144                         GENLIST_PART_BOTTOM_LINE
145                         GENLIST_PART_PADDING_LEFT( GENLIST_PADDING_32_INC )
146                         GENLIST_PART_PADDING_RIGHT( GENLIST_PADDING_16_INC )
147                         GENLIST_PART_DIALOGUE_ITEM
148                         part { name: "elm.icon";
149                            clip_to: "disclip";
150                            type: SWALLOW;
151                            scale: 1;
152                            description { state: "default" 0.0;
153                                   fixed: 1 1;
154                                   rel1.to_x: "elm.padding.right";
155                                   rel2 {
156                                          relative: 0.0 1.0;
157                                          to_x: "elm.padding.right";
158                                   }
159                                   align: 1.0 0.5;
160                            }
161                            GENLIST_DESCRIPTION_FLIP_ENABLED
162                         }
163                         part { name: "elm.padding.icon.left";
164                            clip_to: "disclip";
165                            type: RECT;
166                            scale: 1;
167                            description { state: "default" 0.0;
168                                   min: GENLIST_PADDING_16_INC 0;
169                                   fixed: 1 0;
170                                   rel1.to_x: "elm.icon";
171                                   rel2 {
172                                          relative: 0.0 1.0;
173                                          to_x: "elm.icon";
174                                   }
175                                   align: 1.0 0.0;
176                                   visible: 0;
177                            }
178                         }
179                         part { name: "elm.text";
180                            clip_to: "disclip";
181                            type: TEXT;
182                            mouse_events: 0;
183                            scale: 1;
184                            description { state: "default" 0.0;
185                                   rel1 {
186                                          relative: 1.0 0.0;
187                                          to_x: "elm.padding.left";
188                                   }
189                                   rel2 {
190                                          relative: 0.0 1.0;
191                                          to_x: "elm.padding.icon.left";
192                                   }
193                                   align: 0.0 0.0;
194                                   color: GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC;
195                                   text {
196                                          font: "SLP:style=Roman";
197                                          size: GENLIST_FONT_44_INC;
198                                          min: 0 1;
199                                          align: 0.0 0.5;
200                                   }
201                            }
202                            description { state: "selected" 0.0;
203                                   inherit: "default" 0.0;
204                                   color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
205                            }
206                            GENLIST_DESCRIPTION_INVISIBLE_SELECTED
207                            GENLIST_DESCRIPTION_FLIP_ENABLED
208                         }
209                         GENLIST_PART_FLIP
210                         GENLIST_PART_DISCLIP
211                  }
212                  programs {
213                         program { name: "go_active";
214                            signal: "elm,state,selected";
215                            source: "elm";
216                            action: STATE_SET "selected" 0.0;
217                            GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_1TEXT
218                         }
219                         program { name: "go_passive";
220                            signal: "elm,state,unselected";
221                            source: "elm";
222                            action: STATE_SET "default" 0.0;
223                            target: "bg_image";
224                            target: "elm.text";
225                            transition: LINEAR 0.1;
226                         }
227                         program { name: "go_disabled";
228                            signal: "elm,state,disabled";
229                            source: "elm";
230                            action: STATE_SET "disabled" 0.0;
231                            target: "disclip";
232                         }
233                         program { name: "go_enabled";
234                            signal: "elm,state,enabled";
235                            source: "elm";
236                            action: STATE_SET "default" 0.0;
237                            target: "disclip";
238                         }
239                         GENLIST_PROGRAM_FLIP_1TEXT_1ICON
240                  }
241           }
242
243 ////////////////////////////////////////////////////////////////////////////////
244    group { name: "elm/check/base/genlist/on&off";
245       data {
246          item: "label_1" "text.on On";
247          item: "label_2" "text.off Off";
248       }
249       images {
250          image: "00_check_off.png" COMP;
251          image: "00_check_on.png" COMP;
252       }
253       parts {
254          part { name: "bg";
255             scale: 1;
256             type: RECT;
257             clip_to: "disclip";
258             description { state: "default" 0.0;
259                rel2.relative: 0.0 1.0;
260                fixed: 1 0;
261                align: 0.0 0.5;
262                min: 86 84;
263                max: 86 84;
264
265                color: 0 0 0 0;
266             }
267          }
268          part { name: "check";
269             mouse_events: 0;
270             scale: 1;
271             clip_to: "disclip";
272             description { state: "default" 0.0;
273                rel1.to: "bg";
274                rel2.to: "bg";
275                fixed: 1 0;
276                min: CHECK_ONOFF_BG_NORMAL_MIN_MAX_INC;
277                max: CHECK_ONOFF_BG_NORMAL_MIN_MAX_INC;
278                align: 0.5 0.5;
279                image {
280                   normal: "00_check_off.png";
281                   border: CHECK_ONOFF_CHECK_IMAGE_BORDER_INC;
282                   border_scale: 1;
283                }
284             }
285             description { state: "visible" 0.0;
286                inherit: "default" 0.0;
287                image.normal: "00_check_on.png";
288             }
289             description { state: "pressed" 0.0;
290                inherit: "default" 0.0;
291                image.normal: "00_check_off.png";
292             }
293             description { state: "visible_pressed" 0.0;
294                inherit: "default" 0.0;
295                image.normal: "00_check_on.png";
296             }
297          }
298          part { name: "text.on";
299             type: TEXT;
300             mouse_events: 0;
301             clip_to: "disclip";
302             scale:1;
303             description { state: "default" 0.0;
304                visible: 0;
305                rel1 {
306                   relative: 0.0 0.0;
307                   to: "check";
308                }
309                rel2 {
310                   relative: 1.0 0.5;
311                   to: "check";
312                }
313                text {
314                   font: "SLP:style=Medium";
315                   size: CHECK_ONOFF_ON_FONT_SIZE_INC;
316                   fit: 1 1;
317                   align: 0.2 0.5;
318                   size_range: 12 CHECK_ONOFF_ON_FONT_SIZE_INC;
319                   min: 0 0;
320                   text_class: "slp_medium";
321                }
322             }
323             description { state: "on" 0.0;
324                inherit: "default" 0.0;
325                visible:1;
326                color: 255 255 255 255;
327                rel1 {
328                   relative: 0.0 0.5;
329                   to: "check";
330                }
331                rel2 {
332                   relative: 1.0 1.0;
333                   to: "check";
334                }
335                text {
336                   font: "SLP:style=Medium";
337                   size: CHECK_ONOFF_ON_FONT_SIZE_INC;
338                   align: 0.2 0.5;
339                   fit: 1 1;
340                   size_range: 12 CHECK_ONOFF_ON_FONT_SIZE_INC;
341                   min: 0 0;
342                }
343             }
344          }
345          part { name: "text.off";
346             type: TEXT;
347             mouse_events: 0;
348             clip_to: "disclip";
349             scale:1;
350             description { state: "default" 0.0;
351                color: 107 107 81 255;
352                rel1.to: "check";
353                rel2 {
354                   relative: 1.0 0.5;
355                   to: "check";
356                }
357                text {
358                   font: "SLP:style=Medium";
359                   size: CHECK_ONOFF_OFF_FONT_SIZE_INC;
360                   fit: 1 1;
361                   align: 0.2 0.5;
362                   size_range: 12 CHECK_ONOFF_OFF_FONT_SIZE_INC;
363                   min: 0 0;
364                   text_class: "slp_medium";
365                }
366             }
367             description { state: "off" 0.0;
368                inherit: "default" 0.0;
369                visible: 0;
370                rel1 {
371                   relative: 0.0 0.5;
372                   to: "check";
373                }
374                rel2.to: "check";
375                text {
376                   font: "SLP:style=Medium";
377                   size: CHECK_ONOFF_OFF_FONT_SIZE_INC;
378                   align: 0.2 0.5;
379                   fit: 1 1;
380                   size_range: 12 CHECK_ONOFF_OFF_FONT_SIZE_INC;
381                   min: 0 0;
382                }
383             }
384          }
385          part { name: "elm.swallow.content";
386             type: SWALLOW;
387             clip_to: "disclip";
388             description { state: "default" 0.0;
389                fixed: 1 0;
390                visible: 0;
391                color: 255 255 255 255;
392                align: 0.0 0.5;
393                rel1 {
394                   to_x: "bg";
395                   relative: 1.0 0.0;
396                   offset: 1 1;
397                }
398                rel2 {
399                   to_x: "bg";
400                   relative: 1.0 1.0;
401                   offset: 2 -2;
402                }
403             }
404             description { state: "visible" 0.0;
405                inherit: "default" 0.0;
406                fixed: 1 1;
407                visible: 1;
408                aspect: 1.0 1.0;
409                aspect_preference: VERTICAL;
410             }
411             description { state: "disabled" 0.0;
412                inherit: "default" 0.0;
413             }
414             description { state: "disabled_visible" 0.0;
415                inherit: "default" 0.0;
416                fixed: 1 1;
417                visible: 1;
418                aspect: 1.0 1.0;
419             }
420          }
421          part { name: "elm.text";
422             type: TEXTBLOCK;
423             mouse_events: 0;
424             scale: 1;
425             clip_to: "disclip";
426             description { state: "default" 0.0;
427                visible: 0;
428                fixed: 0 1;
429                rel1 {
430                   relative: 1.0 0.5;
431                   offset: 1 1;
432                   to_x: "elm.swallow.content";
433                }
434                rel2 {
435                   relative: 1.0 0.5;
436                   offset: -2 -2;
437                }
438                align: 0.0 0.5;
439                text {
440                   style: "check_label_textblock_style";
441                   min: 0 0;
442                }
443                color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
444             }
445             description { state: "visible" 0.0;
446                inherit: "default" 0.0;
447                visible: 1;
448                text.min: 1 1;
449             }
450             description { state: "disabled" 0.0;
451                inherit: "default" 0.0;
452             }
453             description { state: "disabled_visible" 0.0;
454                inherit: "default" 0.0;
455                visible: 1;
456                text.min: 1 1;
457             }
458          }
459          part { name: "events";
460             type: RECT;
461             ignore_flags: ON_HOLD;
462             description { state: "default" 0.0;
463                color: 0 0 0 0;
464             }
465          }
466          part { name: "disclip";
467             type: RECT;
468             mouse_events: 0;
469             description { state: "default" 0.0;
470                color: 255 255 255 255;
471             }
472             description { state: "disabled" 0.0;
473                inherit: "default" 0.0;
474                color: 255 255 255 64;
475             }
476          }
477          part { name: "disabler";
478             type: RECT;
479             description { state: "default" 0.0;
480                color: 0 0 0 0;
481                visible: 0;
482             }
483             description { state: "disabled" 0.0;
484                inherit: "default" 0.0;
485                visible: 1;
486             }
487          }
488       }
489       programs {
490          program { name: "click";
491             signal: "mouse,up,1";
492             source: "events";
493             action: SIGNAL_EMIT "elm,action,check,toggle" "";
494          }
495          program { name: "pressed";
496             signal: "mouse,down,1";
497             source: "events";
498             script {
499                new st[31];
500                new Float:vl;
501                get_state(PART:"check", st, 30, vl);
502                if (!strcmp(st, "visible"))
503                  set_state(PART:"check", "visible_pressed", 0.0);
504                else if (!strcmp(st, "default"))
505                  set_state(PART:"check", "pressed", 0.0);
506             }
507          }
508          program { name: "mouseout";
509             signal: "mouse,out";
510             source: "events";
511             after: "bg_check_normal";
512          }
513          program { name: "bg_check_normal";
514             script {
515                new st[31];
516                new Float:vl;
517                get_state(PART:"check", st, 30, vl);
518                if (!strcmp(st, "pressed"))
519                  set_state(PART:"check", "default", 0.0);
520                else if (!strcmp(st, "visible_pressed"))
521                  set_state(PART:"check", "visible", 0.0);
522             }
523          }
524          program { name: "check_on";
525             signal: "elm,state,check,on";
526             source: "elm";
527             action: STATE_SET "visible" 0.0;
528             target: "check";
529             after:"text_off_off" ;
530          }
531          program { name: "text_off_off";
532             action: STATE_SET "off" 0.0;
533             target: "text.off";
534             after: "text_on";
535          }
536          program { name: "text_on";
537             action: STATE_SET "on" 0.0;
538             target: "text.on";
539          }
540          program { name: "check_off";
541             signal: "elm,state,check,off";
542             source: "elm";
543             action: STATE_SET "default" 0.0;
544             target: "check";
545             after: "text_on_off";
546          }
547          program { name: "text_on_off";
548             action: STATE_SET "default" 0.0;
549             target: "text.on";
550             after: "text_off";
551          }
552          program { name: "text_off";
553             action: STATE_SET "default" 0.0;
554             target: "text.off";
555          }
556          program { name: "text_show";
557             signal: "elm,state,text,visible";
558             source: "elm";
559             action: STATE_SET "visible" 0.0;
560             target: "elm.text";
561          }
562          program { name: "text_hide";
563             signal: "elm,state,text,hidden";
564             source: "elm";
565             action: STATE_SET "default" 0.0;
566             target: "elm.text";
567          }
568          program { name: "icon_show";
569             signal: "elm,state,icon,visible";
570             source: "elm";
571             action: STATE_SET "visible" 0.0;
572             target: "elm.swallow.content";
573          }
574          program { name: "icon_hide";
575             signal: "elm,state,icon,hidden";
576             source: "elm";
577             action: STATE_SET "default" 0.0;
578             target: "elm.swallow.content";
579          }
580          program { name: "disable";
581             signal: "elm,state,disabled";
582             source: "elm";
583             action: STATE_SET "disabled" 0.0;
584             target: "disabler";
585             target: "disclip";
586             after: "disable_text";
587          }
588          program { name: "disable_text";
589             script {
590                new st[31];
591                new Float:vl;
592                get_state(PART:"elm.text", st, 30, vl);
593                if (!strcmp(st, "visible"))
594                  set_state(PART:"elm.text", "disabled_visible", 0.0);
595                else
596                  set_state(PART:"elm.text", "disabled", 0.0);
597                get_state(PART:"elm.swallow.content", st, 30, vl);
598                if (!strcmp(st, "visible"))
599                  set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
600                else
601                  set_state(PART:"elm.swallow.content", "disabled", 0.0);
602             }
603          }
604          program { name: "enable";
605             signal: "elm,state,enabled";
606             source: "elm";
607             action: STATE_SET "default" 0.0;
608             target: "disabler";
609             target: "disclip";
610             after: "enable_text";
611          }
612          program { name: "enable_text";
613             script {
614                new st[31];
615                new Float:vl;
616                get_state(PART:"elm.text", st, 30, vl);
617                if (!strcmp(st, "disabled_visible"))
618                  set_state(PART:"elm.text", "visible", 0.0);
619                else
620                  set_state(PART:"elm.text", "default", 0.0);
621                get_state(PART:"elm.swallow.content", st, 30, vl);
622                if (!strcmp(st, "visible"))
623                  set_state(PART:"elm.swallow.content", "visible", 0.0);
624                else
625                  set_state(PART:"elm.swallow.content", "default", 0.0);
626             }
627          }
628       }
629    }
630
631 ///////////////////////////////////////////////////////////////////////////////////////
632
633
634 //end file