Tizen 2.1 base
[apps/core/preloaded/ug-camera-efl.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://floralicense.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  styles {
19         style {
20                 name: "cam_textblock_gl_default";
21                 base: "font=SLP:style=Roman font_size="GENLIST_FONT_40_INC" color=#FFFFFF ellipise=1.0 wrap=mixed";
22                 tag:  "br" "\n";
23                 tag:  "hilight" "+ font=SLP:style=Bold";
24                 tag:  "b" "+ font=SLP:style=Bold";
25                 tag:  "tab" "\t";
26         }
27         style {
28                 name: "cam_textblock_gl_align_left";
29                 base: "font=SLP:style=Roman font_size=30 color=#000000 ellipise=1.0 wrap=mixed";
30                 tag:  "br" "\n";
31                 tag:  "hilight" "+ font=SLP:style=Bold";
32                 tag:  "b" "+ font=SLP:style=Bold";
33                 tag:  "tab" "\t";
34         }
35 }
36    group { name: "elm/genlist/item/camera/1text.1icon/default";
37       alias: "elm/genlist/item_odd/camera/1text.1icon/default";
38       alias: "elm/genlist/item_compress/camera/1text.1icon/default";
39       alias: "elm/genlist/item_compress_odd/camera/1text.1icon/default";
40       data.item: "stacking" "above";
41       data.item: "selectraise" "on";
42       data.item: "texts" "elm.text";
43       data.item: "contents" "elm.icon";
44       data.item: "flips" "elm.flip.content";
45
46       parts {
47          GENLIST_PART_BASE( GENLIST_HEIGHT_104_INC )
48          GENLIST_PART_BG_IMAGE
49          GENLIST_PART_BOTTOM_LINE
50          GENLIST_PART_PADDING_LEFT( GENLIST_PADDING_34_INC )
51          GENLIST_PART_PADDING_RIGHT( GENLIST_PADDING_14_INC )
52          part { name: "elm.icon";
53             clip_to: "disclip";
54             type: SWALLOW;
55             scale: 1;
56             description { state: "default" 0.0;
57                fixed: 1 1;
58                            min: 86 84;
59                            max: 86 84;
60                            aspect: 1.0 1.0;
61                rel1.to_x: "elm.padding.right";
62                rel2 {
63                   relative: 0.0 1.0;
64                   to_x: "elm.padding.right";
65                }
66                align: 1 0.5;
67             }
68             GENLIST_DESCRIPTION_FLIP_ENABLED
69          }
70          part { name: "elm.padding.icon.left";
71             clip_to: "disclip";
72             type: RECT;
73             scale: 1;
74             description { state: "default" 0.0;
75                min: GENLIST_PADDING_14_INC 0;
76                fixed: 1 0;
77                rel1.to_x: "elm.icon";
78                rel2 {
79                   relative: 0.0 1.0;
80                   to_x: "elm.icon";
81                }
82                align: 1.0 0.0;
83                visible: 0;
84             }
85          }
86          part { name: "elm.text";
87             clip_to: "disclip";
88             type: TEXTBLOCK;
89             mouse_events: 0;
90             scale: 1;
91             description { state: "default" 0.0;
92                rel1 {
93                   relative: 1.0 0.0;
94                   to_x: "elm.padding.left";
95                }
96                rel2 {
97                   relative: 0.0 1.0;
98                   to_x: "elm.padding.icon.left";
99                }
100                align: 0.0 0.5;
101                color: GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC;
102                text {
103                   style: "cam_textblock_gl_default";
104                   min: 0 0;
105                   max: 0 1;
106                   align: 0.0 0.5;
107                }
108             }
109             description { state: "selected" 0.0;
110                inherit: "default" 0.0;
111                color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
112             }
113             GENLIST_DESCRIPTION_FLIP_ENABLED
114          }
115          GENLIST_PART_FLIP
116          GENLIST_PART_DISCLIP
117       }
118       programs {
119          program { name: "go_active";
120             signal: "elm,state,selected";
121             source: "elm";
122             action: STATE_SET "selected" 0.0;
123             target: "bg_image";
124             target: "elm.text";
125          }
126          program { name: "go_passive";
127             signal: "elm,state,unselected";
128             source: "elm";
129             action: STATE_SET "default" 0.0;
130             target: "bg_image";
131             target: "elm.text";
132             transition: LINEAR 0.1;
133          }
134          program { name: "go_disabled";
135             signal: "elm,state,disabled";
136             source: "elm";
137             action: STATE_SET "disabled" 0.0;
138             target: "disclip";
139          }
140          program { name: "go_enabled";
141             signal: "elm,state,enabled";
142             source: "elm";
143             action: STATE_SET "default" 0.0;
144             target: "disclip";
145          }
146          GENLIST_PROGRAM_FLIP_1TEXT_1ICON
147       }
148    }
149
150 group { name: "elm/genlist/item/camera/1text.2icon/default";
151    alias: "elm/genlist/item_odd/camera/1text.2icon/default";
152    alias: "elm/genlist/item_compress/camera/1text.2icon/default";
153    alias: "elm/genlist/item_compress_odd/camera/1text.2icon/default";
154    data.item: "stacking" "above";
155    data.item: "selectraise" "on";
156    data.item: "texts" "elm.text";
157    data.item: "contents" "elm.icon elm.radio";
158    data.item: "flips" "elm.flip.content";
159
160    parts {
161       GENLIST_PART_BASE( GENLIST_HEIGHT_104_INC )
162       GENLIST_PART_BG_IMAGE
163       GENLIST_PART_BOTTOM_LINE
164       GENLIST_PART_PADDING_LEFT( GENLIST_PADDING_14_INC )
165       GENLIST_PART_PADDING_RIGHT( GENLIST_PADDING_14_INC )
166       part { name: "elm.radio";
167          clip_to: "disclip";
168          type: SWALLOW;
169          scale: 1;
170          description { state: "default" 0.0;
171             fixed: 1 1;
172                         min: 86 70;
173                         max: 86 70;
174                         aspect: 1.0 1.0;
175             rel1 {
176                 relative: 1.0 0.0;
177                 to_x: "elm.padding.left";
178             }
179             rel2 {
180                relative: 1.0 1.0;
181                to_x: "elm.padding.left";
182             }
183             align: 0 0.5;
184          }
185          GENLIST_DESCRIPTION_FLIP_ENABLED
186       }
187      part { name: "elm.padding.radio.right";
188          clip_to: "disclip";
189          type: RECT;
190          scale: 1;
191          description { state: "default" 0.0;
192             min: GENLIST_PADDING_14_INC 0;
193             fixed: 1 0;
194             rel1 {
195                 relative: 1.0 0.0;
196                 to_x: "elm.radio";
197             }
198             rel2 {
199                relative: 1.0 1.0;
200                to_x: "elm.radio";
201             }
202             align: 0.0 0.0;
203             visible: 0;
204          }
205       }
206       part { name: "elm.icon";
207          clip_to: "disclip";
208          type: SWALLOW;
209          scale: 1;
210          description { state: "default" 0.0;
211             fixed: 1 1;
212                         min: 86 84;
213                         max: 86 84;
214                         aspect: 1.0 1.0;
215             rel1 {
216                 relative: 1.0 0.0;
217                 to_x: "elm.padding.radio.right";
218             }
219             rel2 {
220                relative: 1.0 1.0;
221                to_x: "elm.padding.radio.right";
222             }
223             align: 0 0.5;
224          }
225          GENLIST_DESCRIPTION_FLIP_ENABLED
226       }
227
228      part { name: "elm.padding.icon.right";
229          clip_to: "disclip";
230          type: RECT;
231          scale: 1;
232          description { state: "default" 0.0;
233             min: GENLIST_PADDING_28_INC 0;
234             fixed: 1 0;
235             rel1 {
236                 relative: 1.0 0.0;
237                 to_x: "elm.icon";
238             }
239             rel2 {
240                relative: 1.0 1.0;
241                to_x: "elm.icon";
242             }
243             align: 0.0 0.0;
244             visible: 0;
245          }
246       }
247       part { name: "elm.text";
248          clip_to: "disclip";
249          type: TEXTBLOCK;
250          mouse_events: 0;
251          scale: 1;
252          description { state: "default" 0.0;
253             rel1 {
254                relative: 1.0 0.0;
255                to_x: "elm.padding.icon.right";
256             }
257             rel2 {
258                relative: 0.0 1.0;
259                to_x: "elm.padding.right";
260             }
261             align: 0.0 0.5;
262             color: GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC;
263             text {
264                   style: "cam_textblock_gl_default";
265                   min: 0 0;
266                   max: 0 1;
267                   align: 0.0 0.5;
268             }
269          }
270          description { state: "selected" 0.0;
271             inherit: "default" 0.0;
272             color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
273          }
274          GENLIST_DESCRIPTION_FLIP_ENABLED
275       }
276       GENLIST_PART_FLIP
277       GENLIST_PART_DISCLIP
278    }
279    programs {
280       program { name: "go_active";
281          signal: "elm,state,selected";
282          source: "elm";
283          action: STATE_SET "selected" 0.0;
284          target: "bg_image";
285          target: "elm.text";
286       }
287       program { name: "go_passive";
288          signal: "elm,state,unselected";
289          source: "elm";
290          action: STATE_SET "default" 0.0;
291          target: "bg_image";
292          target: "elm.text";
293          transition: LINEAR 0.1;
294       }
295       program { name: "go_disabled";
296          signal: "elm,state,disabled";
297          source: "elm";
298          action: STATE_SET "disabled" 0.0;
299          target: "disclip";
300       }
301       program { name: "go_enabled";
302          signal: "elm,state,enabled";
303          source: "elm";
304          action: STATE_SET "default" 0.0;
305          target: "disclip";
306       }
307       GENLIST_PROGRAM_FLIP_1TEXT_1ICON
308    }
309 }
310
311 group { name: "elm/genlist/item/camera/1text.2icon.2/default";
312    alias: "elm/genlist/item_odd/camera/1text.2icon.2/default";
313    alias: "elm/genlist/item_compress/camera/1text.2icon.2/default";
314    alias: "elm/genlist/item_compress_odd/camera/1text.2icon.2/default";
315    data.item: "stacking" "above";
316    data.item: "selectraise" "on";
317    data.item: "texts" "elm.text";
318    data.item: "contents" "elm.icon elm.radio";
319    data.item: "flips" "elm.flip.content";
320
321    parts {
322       GENLIST_PART_BASE( GENLIST_HEIGHT_86_INC )
323       GENLIST_PART_BG_IMAGE
324       GENLIST_PART_BOTTOM_LINE
325       GENLIST_PART_PADDING_LEFT( GENLIST_PADDING_14_INC )
326       GENLIST_PART_PADDING_RIGHT( GENLIST_PADDING_14_INC )
327       part { name: "elm.radio";
328          clip_to: "disclip";
329          type: SWALLOW;
330          scale: 1;
331          description { state: "default" 0.0;
332             fixed: 1 1;
333                         min: 86 70;
334                         max: 86 70;
335                         aspect: 1.0 1.0;
336             rel1 {
337                 relative: 1.0 0.0;
338                 to_x: "elm.padding.left";
339             }
340             rel2 {
341                relative: 1.0 1.0;
342                to_x: "elm.padding.left";
343             }
344             align: 0 0.5;
345          }
346          GENLIST_DESCRIPTION_FLIP_ENABLED
347       }
348      part { name: "elm.padding.radio.right";
349          clip_to: "disclip";
350          type: RECT;
351          scale: 1;
352          description { state: "default" 0.0;
353             min: GENLIST_PADDING_14_INC 0;
354             fixed: 1 0;
355             rel1 {
356                 relative: 1.0 0.0;
357                 to_x: "elm.radio";
358             }
359             rel2 {
360                relative: 1.0 1.0;
361                to_x: "elm.radio";
362             }
363             align: 0.0 0.0;
364             visible: 0;
365          }
366       }
367       part { name: "elm.icon";
368          clip_to: "disclip";
369          type: SWALLOW;
370          scale: 1;
371          description { state: "default" 0.0;
372             fixed: 1 1;
373                         min: 86 84;
374                         max: 86 84;
375                         aspect: 1.0 1.0;
376             rel1 {
377                 relative: 1.0 0.0;
378                 to_x: "elm.padding.radio.right";
379             }
380             rel2 {
381                relative: 1.0 1.0;
382                to_x: "elm.padding.radio.right";
383             }
384             align: 0 0.5;
385          }
386          GENLIST_DESCRIPTION_FLIP_ENABLED
387       }
388
389      part { name: "elm.padding.icon.right";
390          clip_to: "disclip";
391          type: RECT;
392          scale: 1;
393          description { state: "default" 0.0;
394             min: GENLIST_PADDING_28_INC 0;
395             fixed: 1 0;
396             rel1 {
397                 relative: 1.0 0.0;
398                 to_x: "elm.icon";
399             }
400             rel2 {
401                relative: 1.0 1.0;
402                to_x: "elm.icon";
403             }
404             align: 0.0 0.0;
405             visible: 0;
406          }
407       }
408       part { name: "elm.text";
409          clip_to: "disclip";
410          type: TEXT;
411          mouse_events: 0;
412          scale: 1;
413          description { state: "default" 0.0;
414             rel1 {
415                relative: 1.0 0.0;
416                to_x: "elm.padding.icon.right";
417             }
418             rel2 {
419                relative: 0.0 1.0;
420                to_x: "elm.padding.right";
421             }
422             align: 0.0 0.5;
423             color: GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC;
424             text {
425                   style: "btn_multiline_naviframe_controlbar_style";
426                   min: 0 0;
427                   max: 0 1;
428                   align: 0.0 0.5;
429             }
430          }
431          description { state: "selected" 0.0;
432             inherit: "default" 0.0;
433             color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
434          }
435          GENLIST_DESCRIPTION_FLIP_ENABLED
436       }
437       GENLIST_PART_FLIP
438       GENLIST_PART_DISCLIP
439    }
440    programs {
441       program { name: "go_active";
442          signal: "elm,state,selected";
443          source: "elm";
444          action: STATE_SET "selected" 0.0;
445          target: "bg_image";
446          target: "elm.text";
447       }
448       program { name: "go_passive";
449          signal: "elm,state,unselected";
450          source: "elm";
451          action: STATE_SET "default" 0.0;
452          target: "bg_image";
453          target: "elm.text";
454          transition: LINEAR 0.1;
455       }
456       program { name: "go_disabled";
457          signal: "elm,state,disabled";
458          source: "elm";
459          action: STATE_SET "disabled" 0.0;
460          target: "disclip";
461       }
462       program { name: "go_enabled";
463          signal: "elm,state,enabled";
464          source: "elm";
465          action: STATE_SET "default" 0.0;
466          target: "disclip";
467       }
468       GENLIST_PROGRAM_FLIP_1TEXT_1ICON
469    }
470 }
471
472
473 ////////////////////////////////////////////////////////////////////////////////
474    group { name: "elm/check/base/genlist/on&off";
475       data {
476          item: "label_1" "text.on On";
477          item: "label_2" "text.off Off";
478       }
479       images {
480          image: SETTING_POPUP_CHECK_BUTTON_ON_IMAGE  COMP;
481          image: SETTING_POPUP_CHECK_BUTTON_OFF_IMAGE  COMP;
482       }
483       parts {
484          part { name: "bg";
485             scale: 1;
486             type: RECT;
487             clip_to: "disclip";
488             description { state: "default" 0.0;
489                rel2.relative: 0.0 1.0;
490                fixed: 1 0;
491                align: 0.0 0.5;
492                min: 86 84;
493                max: 86 84;
494
495                color: 0 0 0 0;
496             }
497          }
498          part { name: "check";
499             mouse_events: 0;
500             scale: 1;
501             clip_to: "disclip";
502             description { state: "default" 0.0;
503                rel1.to: "bg";
504                rel2.to: "bg";
505                fixed: 1 0;
506                min: CHECK_ONOFF_BG_NORMAL_MIN_MAX_INC;
507                max: CHECK_ONOFF_BG_NORMAL_MIN_MAX_INC;
508                align: 0.5 0.5;
509                image {
510                   normal: SETTING_POPUP_CHECK_BUTTON_OFF_IMAGE ;
511                   border: CHECK_ONOFF_CHECK_IMAGE_BORDER_INC;
512                   border_scale: 1;
513                }
514             }
515             description { state: "visible" 0.0;
516                inherit: "default" 0.0;
517                image.normal: SETTING_POPUP_CHECK_BUTTON_ON_IMAGE ;
518             }
519             description { state: "pressed" 0.0;
520                inherit: "default" 0.0;
521                image.normal: SETTING_POPUP_CHECK_BUTTON_OFF_IMAGE ;
522             }
523             description { state: "visible_pressed" 0.0;
524                inherit: "default" 0.0;
525                image.normal: SETTING_POPUP_CHECK_BUTTON_ON_IMAGE ;
526             }
527          }
528          part { name: "text.on";
529             type: TEXT;
530             mouse_events: 0;
531             clip_to: "disclip";
532             scale:1;
533             description { state: "default" 0.0;
534                visible: 0;
535                rel1 {
536                   relative: 0.0 0.0;
537                   to: "check";
538                }
539                rel2 {
540                   relative: 1.0 0.5;
541                   to: "check";
542                }
543                text {
544                   font: "SLP:style=Medium";
545                   size: CHECK_ONOFF_ON_FONT_SIZE_INC;
546                   fit: 1 1;
547                   align: 0.2 0.5;
548                   size_range: 12 CHECK_ONOFF_ON_FONT_SIZE_INC;
549                   min: 0 0;
550                   text_class: "slp_medium";
551                }
552             }
553             description { state: "on" 0.0;
554                inherit: "default" 0.0;
555                visible:1;
556                color: 255 255 255 255;
557                rel1 {
558                   relative: 0.0 0.5;
559                   to: "check";
560                }
561                rel2 {
562                   relative: 1.0 1.0;
563                   to: "check";
564                }
565                text {
566                   font: "SLP:style=Medium";
567                   size: CHECK_ONOFF_ON_FONT_SIZE_INC;
568                   align: 0.2 0.5;
569                   fit: 1 1;
570                   size_range: 12 CHECK_ONOFF_ON_FONT_SIZE_INC;
571                   min: 0 0;
572                }
573             }
574          }
575          part { name: "text.off";
576             type: TEXT;
577             mouse_events: 0;
578             clip_to: "disclip";
579             scale:1;
580             description { state: "default" 0.0;
581                color: 107 107 81 255;
582                rel1.to: "check";
583                rel2 {
584                   relative: 1.0 0.5;
585                   to: "check";
586                }
587                text {
588                   font: "SLP:style=Medium";
589                   size: CHECK_ONOFF_OFF_FONT_SIZE_INC;
590                   fit: 1 1;
591                   align: 0.2 0.5;
592                   size_range: 12 CHECK_ONOFF_OFF_FONT_SIZE_INC;
593                   min: 0 0;
594                   text_class: "slp_medium";
595                }
596             }
597             description { state: "off" 0.0;
598                inherit: "default" 0.0;
599                visible: 0;
600                rel1 {
601                   relative: 0.0 0.5;
602                   to: "check";
603                }
604                rel2.to: "check";
605                text {
606                   font: "SLP:style=Medium";
607                   size: CHECK_ONOFF_OFF_FONT_SIZE_INC;
608                   align: 0.2 0.5;
609                   fit: 1 1;
610                   size_range: 12 CHECK_ONOFF_OFF_FONT_SIZE_INC;
611                   min: 0 0;
612                }
613             }
614          }
615          part { name: "elm.swallow.content";
616             type: SWALLOW;
617             clip_to: "disclip";
618             description { state: "default" 0.0;
619                fixed: 1 0;
620                visible: 0;
621                color: 255 255 255 255;
622                align: 0.0 0.5;
623                rel1 {
624                   to_x: "bg";
625                   relative: 1.0 0.0;
626                   offset: 1 1;
627                }
628                rel2 {
629                   to_x: "bg";
630                   relative: 1.0 1.0;
631                   offset: 2 -2;
632                }
633             }
634             description { state: "visible" 0.0;
635                inherit: "default" 0.0;
636                fixed: 1 1;
637                visible: 1;
638                aspect: 1.0 1.0;
639                aspect_preference: VERTICAL;
640             }
641             description { state: "disabled" 0.0;
642                inherit: "default" 0.0;
643             }
644             description { state: "disabled_visible" 0.0;
645                inherit: "default" 0.0;
646                fixed: 1 1;
647                visible: 1;
648                aspect: 1.0 1.0;
649             }
650          }
651          part { name: "elm.text";
652             type: TEXTBLOCK;
653             mouse_events: 0;
654             scale: 1;
655             clip_to: "disclip";
656             description { state: "default" 0.0;
657                visible: 0;
658                fixed: 0 1;
659                rel1 {
660                   relative: 1.0 0.5;
661                   offset: 1 1;
662                   to_x: "elm.swallow.content";
663                }
664                rel2 {
665                   relative: 1.0 0.5;
666                   offset: -2 -2;
667                }
668                align: 0.0 0.5;
669                text {
670                   style: "cam_textblock_gl_default";
671                   min: 0 0;
672                   max: 0 1;
673                   align: 0.0 0.5;
674                }
675                color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
676             }
677             description { state: "visible" 0.0;
678                inherit: "default" 0.0;
679                visible: 1;
680                text.min: 1 1;
681             }
682             description { state: "disabled" 0.0;
683                inherit: "default" 0.0;
684             }
685             description { state: "disabled_visible" 0.0;
686                inherit: "default" 0.0;
687                visible: 1;
688                text.min: 1 1;
689             }
690          }
691          part { name: "events";
692             type: RECT;
693             ignore_flags: ON_HOLD;
694             description { state: "default" 0.0;
695                color: 0 0 0 0;
696             }
697          }
698          part { name: "disclip";
699             type: RECT;
700             mouse_events: 0;
701             description { state: "default" 0.0;
702                color: 255 255 255 255;
703             }
704             description { state: "disabled" 0.0;
705                inherit: "default" 0.0;
706                color: 255 255 255 64;
707             }
708          }
709          part { name: "disabler";
710             type: RECT;
711             description { state: "default" 0.0;
712                color: 0 0 0 0;
713                visible: 0;
714             }
715             description { state: "disabled" 0.0;
716                inherit: "default" 0.0;
717                visible: 1;
718             }
719          }
720       }
721       programs {
722          program { name: "click";
723             signal: "mouse,up,1";
724             source: "events";
725             action: SIGNAL_EMIT "elm,action,check,toggle" "";
726          }
727          program { name: "pressed";
728             signal: "mouse,down,1";
729             source: "events";
730             script {
731                new st[31];
732                new Float:vl;
733                get_state(PART:"check", st, 30, vl);
734                if (!strcmp(st, "visible"))
735                  set_state(PART:"check", "visible_pressed", 0.0);
736                else if (!strcmp(st, "default"))
737                  set_state(PART:"check", "pressed", 0.0);
738             }
739          }
740          program { name: "mouseout";
741             signal: "mouse,out";
742             source: "events";
743             after: "bg_check_normal";
744          }
745          program { name: "bg_check_normal";
746             script {
747                new st[31];
748                new Float:vl;
749                get_state(PART:"check", st, 30, vl);
750                if (!strcmp(st, "pressed"))
751                  set_state(PART:"check", "default", 0.0);
752                else if (!strcmp(st, "visible_pressed"))
753                  set_state(PART:"check", "visible", 0.0);
754             }
755          }
756          program { name: "check_on";
757             signal: "elm,state,check,on";
758             source: "elm";
759             action: STATE_SET "visible" 0.0;
760             target: "check";
761             after:"text_off_off" ;
762          }
763          program { name: "text_off_off";
764             action: STATE_SET "off" 0.0;
765             target: "text.off";
766             after: "text_on";
767          }
768          program { name: "text_on";
769             action: STATE_SET "on" 0.0;
770             target: "text.on";
771          }
772          program { name: "check_off";
773             signal: "elm,state,check,off";
774             source: "elm";
775             action: STATE_SET "default" 0.0;
776             target: "check";
777             after: "text_on_off";
778          }
779          program { name: "text_on_off";
780             action: STATE_SET "default" 0.0;
781             target: "text.on";
782             after: "text_off";
783          }
784          program { name: "text_off";
785             action: STATE_SET "default" 0.0;
786             target: "text.off";
787          }
788          program { name: "text_show";
789             signal: "elm,state,text,visible";
790             source: "elm";
791             action: STATE_SET "visible" 0.0;
792             target: "elm.text";
793          }
794          program { name: "text_hide";
795             signal: "elm,state,text,hidden";
796             source: "elm";
797             action: STATE_SET "default" 0.0;
798             target: "elm.text";
799          }
800          program { name: "icon_show";
801             signal: "elm,state,icon,visible";
802             source: "elm";
803             action: STATE_SET "visible" 0.0;
804             target: "elm.swallow.content";
805          }
806          program { name: "icon_hide";
807             signal: "elm,state,icon,hidden";
808             source: "elm";
809             action: STATE_SET "default" 0.0;
810             target: "elm.swallow.content";
811          }
812          program { name: "disable";
813             signal: "elm,state,disabled";
814             source: "elm";
815             action: STATE_SET "disabled" 0.0;
816             target: "disabler";
817             target: "disclip";
818             after: "disable_text";
819          }
820          program { name: "disable_text";
821             script {
822                new st[31];
823                new Float:vl;
824                get_state(PART:"elm.text", st, 30, vl);
825                if (!strcmp(st, "visible"))
826                  set_state(PART:"elm.text", "disabled_visible", 0.0);
827                else
828                  set_state(PART:"elm.text", "disabled", 0.0);
829                get_state(PART:"elm.swallow.content", st, 30, vl);
830                if (!strcmp(st, "visible"))
831                  set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
832                else
833                  set_state(PART:"elm.swallow.content", "disabled", 0.0);
834             }
835          }
836          program { name: "enable";
837             signal: "elm,state,enabled";
838             source: "elm";
839             action: STATE_SET "default" 0.0;
840             target: "disabler";
841             target: "disclip";
842             after: "enable_text";
843          }
844          program { name: "enable_text";
845             script {
846                new st[31];
847                new Float:vl;
848                get_state(PART:"elm.text", st, 30, vl);
849                if (!strcmp(st, "disabled_visible"))
850                  set_state(PART:"elm.text", "visible", 0.0);
851                else
852                  set_state(PART:"elm.text", "default", 0.0);
853                get_state(PART:"elm.swallow.content", st, 30, vl);
854                if (!strcmp(st, "visible"))
855                  set_state(PART:"elm.swallow.content", "visible", 0.0);
856                else
857                  set_state(PART:"elm.swallow.content", "default", 0.0);
858             }
859          }
860       }
861    }
862
863 ///////////////////////////////////////////////////////////////////////////////////////
864
865
866 //end file