3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 /////////////////////////////////////////////////////////////////////////////
21 group { name: "elm/conformant/base/default";
23 public indicator_effect = 0; //Indicator need effect
24 public indicator_visible = 0; //Indicator visible check
25 public indicator_opacity = 0; //0=opaque, 1=translucent, 2=transparent
26 public indicator_overlap = 0; //check indicator overlap/nooverlap
27 public clipboard_disable = 0; //check clipboard enable/disable
28 public keypad_disable = 0; //check virtualkeypad enable/disable
29 public landscape = 0; //Landscape mode status
30 public portrait_overlap = 0; //save portrait_overlap mode
31 public portrait_opacity = 0; //save portrait_opacity
34 part { name: "elm.swallow.bg";
37 description { state: "default" 0.0;
40 part { name: "indicator_base";
44 description { state: "default" 0.0;
47 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
48 rel2.relative: 1.0 0.0;
51 description { state: "hide" 0.0;
52 inherit: "default" 0.0;
56 part { name: "indicator_overlap_base";
58 description { state: "default" 0.0; //nooverlap
59 rel1 { relative: 0.0 0.0; to: "indicator_base"; }
60 rel2 { relative: 1.0 1.0; to: "indicator_base"; }
63 description { state: "overlap" 0.0; //content start (0,0)
64 inherit: "default" 0.0;
65 rel2 { relative: 1.0 0.0; to: "indicator_base"; }
68 part { name: "elm.swallow.content";
71 description { state: "default" 0.0; //sip: enable
73 rel1.relative: 0.0 1.0;
74 rel1.to: "indicator_overlap_base";
75 rel2.relative: 1.0 0.0;
78 description { state: "disable_sip" 0.0; //sip: disable
79 inherit: "default" 0.0;
80 rel2.relative: 1.0 1.0;
81 rel2.to: "elm.swallow.bg";
84 part { name: "elm.swallow.ug";
87 description { state: "default" 0.0;
89 rel1.relative: 0.0 1.0;
90 rel1.to: "indicator_overlap_base";
91 rel2.relative: 1.0 0.0;
94 description { state: "disable_sip" 0.0; //sip: disable
95 inherit: "default" 0.0;
96 rel2.relative: 1.0 1.0;
97 rel2.to: "elm.swallow.bg";
100 part { name: "indicator_clipper";
102 description { state: "default" 0.0;
103 rel1 { relative: 0.0 0.0; to: "indicator_base"; }
104 rel2 { relative: 1.0 1.0; to: "indicator_base"; }
107 description { state: "hide" 0.0;
108 inherit: "default" 0.0;
109 rel1 { relative: 0.0 -1.0; to: "indicator_base"; }
110 rel2 { relative: 1.0 0.0; to: "indicator_base"; }
113 part { name: "indicator_bg";
116 clip_to: "indicator_clipper";
117 description { state: "default" 0.0;
118 rel1 { relative: 0.0 0.0; to: "indicator_clipper"; }
119 rel2 { relative: 1.0 1.0; to: "indicator_clipper"; }
120 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
122 description { state: "translucent" 0.0;
123 inherit: "default" 0.0;
124 color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
127 part { name: "elm.swallow.indicator";
130 clip_to: "indicator_clipper";
131 description { state: "default" 0.0;
132 rel1 { relative: 0.0 0.0; to: "indicator_clipper"; }
133 rel2 { relative: 1.0 1.0; to: "indicator_clipper"; }
136 part { name: "sip_area";
138 description { state: "default" 0.0;
141 rel1.relative: 0.0 0.0;
142 rel1.to_y: "elm.swallow.virtualkeypad";
143 rel2.relative: 1.0 1.0;
144 rel2.to_y: "elm.swallow.virtualkeypad";
147 description { state: "clipboard_on" 0.0;
148 inherit: "default" 0.0;
149 rel1.to_y: "elm.swallow.clipboard";
150 rel2.to_y: "elm.swallow.clipboard";
153 part { name: "elm.swallow.clipboard";
155 description { state: "default" 0.0;
158 rel1.relative: 0.0 1.0;
161 part { name: "elm.swallow.virtualkeypad";
163 description { state: "default" 0.0;
166 rel1.relative: 0.0 1.0;
169 part { name: "elm.swallow.indicator_event";
171 description { state: "default" 0.0;
172 rel1 { relative: 0.0 0.0; to: "indicator_base"; }
173 rel2 { relative: 1.0 1.0; to: "indicator_base"; }
179 name: "hide_indicator";
180 signal: "elm,state,indicator,hide";
183 set_int(indicator_visible, 0);
184 set_state(PART:"indicator_base", "hide", 0.0);
188 name: "show_indicator_transition"; //show indicator using effect
189 action: STATE_SET "default" 0.0;
190 target: "indicator_clipper";
191 transition: DECELERATE 0.5;
194 name: "hide_indicator_transition"; //show indicator using effect
195 action: STATE_SET "hide" 0.0;
196 target: "indicator_clipper";
197 transition: DECELERATE 0.5;
200 name: "show_indicator_effect"; //show indicator using effect
201 signal: "indicator,show,effect";
204 if (get_int(indicator_visible) == 1)
205 run_program(PROGRAM:"show_indicator_transition");
209 name: "hide_indicator_effect"; //show indicator using effect
210 signal: "indicator,hide,effect";
213 if (get_int(indicator_visible) == 1)
214 run_program(PROGRAM:"hide_indicator_transition");
218 name: "opaque_state";
220 set_state(PART:"indicator_bg", "default", 0.0);
221 set_state(PART:"indicator_clipper", "default", 0.0);
222 set_state(PART:"indicator_overlap_base", "default", 0.0);
226 name: "translucent_state";
228 set_state(PART:"indicator_bg", "translucent", 0.0);
229 set_state(PART:"indicator_clipper", "default", 0.0);
230 set_state(PART:"indicator_overlap_base", "overlap", 0.0);
234 name: "transparent_state";
236 set_state(PART:"indicator_bg", "default", 0.0);
237 set_state(PART:"indicator_clipper", "hide", 0.0);
238 set_state(PART:"indicator_overlap_base", "overlap", 0.0);
242 name: "opaque_indicator";
243 signal: "elm,state,indicator,opaque";
246 set_int(indicator_opacity, 0);
247 if ((get_int(indicator_visible) == 1) && (get_int(landscape) == 0))
248 run_program(PROGRAM:"opaque_state");
252 name: "translucent_indicator";
253 signal: "elm,state,indicator,translucent";
256 set_int(indicator_opacity, 1);
257 if ((get_int(indicator_visible) == 1) && (get_int(landscape) == 0))
258 run_program(PROGRAM:"translucent_state");
262 name: "transparent_indicator";
263 signal: "elm,state,indicator,transparent";
266 set_int(indicator_opacity, 2);
267 if (get_int(indicator_visible) == 1)
268 run_program(PROGRAM:"transparent_state");
272 name: "overlap_indicator";
273 signal: "elm,state,indicator,overlap";
276 set_int(indicator_overlap, 1);
277 set_state(PART:"indicator_overlap_base", "overlap", 0.0);
281 name: "nooverlap_indicator";
282 signal: "elm,state,indicator,nooverlap";
285 //Only portrait state get nooverlap mode
286 set_int(indicator_overlap, 0);
287 if (get_int(indicator_visible) == 1)
288 if (get_int(indicator_opacity) == 0) { //only opaque can be nooverlap
289 if (get_int(landscape) == 0) { //landscape should be overlap
290 set_state(PART:"indicator_overlap_base", "default", 0.0);
295 program { name: "enable_clipboard";
296 signal: "elm,state,clipboard,enable";
299 set_int(clipboard_disable, 0);
301 set_state(PART:"elm.swallow.content", "default", 0.0);
304 program { name: "disable_clipboard";
305 signal: "elm,state,clipboard,disable";
308 set_int(clipboard_disable, 1);
309 set_state(PART:"sip_area", "default", 0.0);
310 if (get_int(keypad_disable) == 1)
311 set_state(PART:"elm.swallow.content", "disable_sip", 0.0);
313 set_state(PART:"elm.swallow.content", "default", 0.0);
316 program { name: "enable_virtualkeypad";
317 signal: "elm,state,virtualkeypad,enable";
320 set_int(keypad_disable, 0);
321 set_state(PART:"elm.swallow.content", "default", 0.0);
324 program { name: "disable_virtualkeypad";
325 signal: "elm,state,virtualkeypad,disable";
328 set_int(keypad_disable, 1);
329 if (get_int(clipboard_disable) == 1)
331 set_state(PART:"sip_area", "clipboard_on", 0.0);
332 set_state(PART:"elm.swallow.content", "disable_sip", 0.0);
335 set_state(PART:"elm.swallow.content", "default", 0.0);
339 name: "change_to_landscape";
340 signal: "elm,state,landscape";
343 if (get_int(landscape) == 0) {
344 set_int(landscape, 1);
345 if (get_int(indicator_visible) == 1)
346 run_program(PROGRAM:"transparent_state");
351 name: "change_to_portrait";
352 signal: "elm,state,portrait";
355 if (get_int(indicator_visible) == 1) {
356 if (get_int(landscape) == 1) { //content start (0, indicator height)
357 set_int(landscape, 0);
358 if (get_int(indicator_opacity) == 2)
359 run_program(PROGRAM:"transparent_state");
360 else if (get_int(indicator_opacity) == 1)
361 run_program(PROGRAM:"translucent_state");
363 run_program(PROGRAM:"opaque_state");
368 program { name: "landscape_mode";
370 signal: "elm,state,orient,90";
371 action: SIGNAL_EMIT "elm,state,landscape" "elm";
373 program { name: "landscape_mode2";
375 signal: "elm,state,orient,270";
376 action: SIGNAL_EMIT "elm,state,landscape" "elm";
378 program { name: "portrait_mode";
380 signal: "elm,state,orient,0";
381 action: SIGNAL_EMIT "elm,state,portrait" "elm";
383 program { name: "portrait_mode2";
385 signal: "elm,state,orient,180";
386 action: SIGNAL_EMIT "elm,state,portrait" "elm";
389 name: "clipboard_on";
390 signal: "elm,state,clipboard,on";
392 action: STATE_SET "clipboard_on" 0.0;
396 name: "clipboard_off";
397 signal: "elm,state,clipboard,off";
399 action: STATE_SET "default" 0.0;
404 group { name: "elm/conformant/base/indicator_overlap";
406 public indicator_visible = 0; //Indicator visible check
407 public indicator_opacity = 0; //0=opaque, 1=translucent, 2=transparent
410 part { name: "elm.swallow.bg";
413 description { state: "default" 0.0;
416 part { name: "elm.swallow.content";
419 description { state: "default" 0.0;
421 rel2.relative: 1.0 0.0;
425 part { name: "elm.swallow.ug";
428 description { state: "default" 0.0;
430 rel1.relative: 0.0 1.0;
431 rel1.to: "elm.swallow.indicator";
432 rel2.relative: 1.0 0.0;
436 part { name: "indicator_bg";
439 description { state: "default" 0.0;
442 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
443 rel2.relative: 1.0 0.0;
445 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
447 description { state: "translucent" 0.0;
450 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
451 rel2.relative: 1.0 0.0;
453 color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
455 description { state: "transparent" 0.0;
458 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
459 rel2.relative: 1.0 0.0;
461 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
463 description { state: "hide" 0.0;
464 inherit: "default" 0.0;
469 part { name: "elm.swallow.indicator";
472 description { state: "default" 0.0;
475 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
476 rel2.relative: 1.0 0.0;
479 description { state: "hide" 0.0;
480 inherit: "default" 0.0;
485 part { name: "sip_area";
487 description { state: "default" 0.0;
490 rel1.relative: 0.0 0.0;
491 rel1.to_y: "elm.swallow.virtualkeypad";
492 rel2.relative: 1.0 1.0;
493 rel2.to_y: "elm.swallow.virtualkeypad";
496 description { state: "clipboard_on" 0.0;
497 inherit: "default" 0.0;
498 rel1.to_y: "elm.swallow.clipboard";
499 rel2.to_y: "elm.swallow.clipboard";
502 part { name: "elm.swallow.clipboard";
504 description { state: "default" 0.0;
507 rel1.relative: 0.0 1.0;
510 part { name: "elm.swallow.virtualkeypad";
512 description { state: "default" 0.0;
515 rel1.relative: 0.0 1.0;
521 name: "hide_indicator";
522 signal: "elm,state,indicator,hide";
525 set_int(indicator_visible, 0);
526 set_state(PART:"elm.swallow.indicator", "hide", 0.0);
527 set_state(PART:"indicator_bg", "hide", 0.0);
531 name: "opaque_indicator";
532 signal: "elm,state,indicator,opaque";
535 set_int(indicator_opacity, 0);
536 if (get_int(indicator_visible) == 1)
537 set_state(PART:"indicator_bg", "opaque", 0.0);
541 name: "translucent_indicator";
542 signal: "elm,state,indicator,translucent";
545 set_int(indicator_opacity, 1);
546 if (get_int(indicator_visible) == 1)
547 set_state(PART:"indicator_bg", "translucent", 0.0);
551 name: "transparent_indicator";
552 signal: "elm,state,indicator,transparent";
555 set_int(indicator_opacity, 2);
556 if (get_int(indicator_visible) == 1)
557 set_state(PART:"indicator_bg", "transparent", 0.0);
561 name: "clipboard_on";
562 signal: "elm,state,clipboard,on";
564 action: STATE_SET "clipboard_on" 0.0;
568 name: "clipboard_off";
569 signal: "elm,state,clipboard,off";
571 action: STATE_SET "default" 0.0;
577 group { name: "elm/conformant/base/nokeypad";
579 public indicator_visible = 0; //Indicator visible check
580 public indicator_opacity = 0; //0=opaque, 1=translucent, 2=transparent
583 part { name: "elm.swallow.bg";
586 description { state: "default" 0.0;
589 part { name: "elm.swallow.content";
592 description { state: "default" 0.0;
594 rel1.relative: 0.0 1.0;
595 rel1.to: "elm.swallow.indicator";
598 part { name: "elm.swallow.ug";
601 description { state: "default" 0.0;
603 rel1.relative: 0.0 1.0;
604 rel1.to: "elm.swallow.indicator";
607 part { name: "indicator_bg";
610 description { state: "default" 0.0;
613 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
614 rel2.relative: 1.0 0.0;
616 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
618 description { state: "translucent" 0.0;
621 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
622 rel2.relative: 1.0 0.0;
624 color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
626 description { state: "transparent" 0.0;
629 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
630 rel2.relative: 1.0 0.0;
632 color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
634 description { state: "hide" 0.0;
635 inherit: "default" 0.0;
640 part { name: "elm.swallow.indicator";
643 description { state: "default" 0.0;
646 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
647 rel2.relative: 1.0 0.0;
650 description { state: "hide" 0.0;
651 inherit: "default" 0.0;
659 name: "hide_indicator";
660 signal: "elm,state,indicator,hide";
663 set_int(indicator_visible, 0);
664 set_state(PART:"elm.swallow.indicator", "hide", 0.0);
665 set_state(PART:"indicator_bg", "hide", 0.0);
669 name: "opaque_indicator";
670 signal: "elm,state,indicator,opaque";
673 set_int(indicator_opacity, 0);
674 if (get_int(indicator_visible) == 1)
675 set_state(PART:"indicator_bg", "opaque", 0.0);
679 name: "translucent_indicator";
680 signal: "elm,state,indicator,translucent";
683 set_int(indicator_opacity, 1);
684 if (get_int(indicator_visible) == 1)
685 set_state(PART:"indicator_bg", "translucent", 0.0);
689 name: "transparent_indicator";
690 signal: "elm,state,indicator,transparent";
693 set_int(indicator_opacity, 2);
694 if (get_int(indicator_visible) == 1)
695 set_state(PART:"indicator_bg", "transparent", 0.0);
700 group { name: "elm/conformant/base/without_resize";
702 public indicator_visible = 0; //Indicator visible check
703 public indicator_opacity = 0; //0=opaque, 1=translucent, 2=transparent
706 part { name: "elm.swallow.bg";
709 description { state: "default" 0.0;
712 part { name: "elm.swallow.indicator_area";
715 description { state: "default" 0.0;
718 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
719 rel2.relative: 1.0 0.0;
723 part { name: "elm.swallow.content";
726 description { state: "default" 0.0;
728 rel1.relative: 0.0 1.0;
729 rel1.to: "elm.swallow.indicator_area";
732 part { name: "indicator_bg";
735 description { state: "default" 0.0;
738 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
739 rel2.relative: 1.0 0.0;
741 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
743 description { state: "translucent" 0.0;
746 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
747 rel2.relative: 1.0 0.0;
749 color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
751 description { state: "transparent" 0.0;
754 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
755 rel2.relative: 1.0 0.0;
757 color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
759 description { state: "hide" 0.0;
760 inherit: "default" 0.0;
765 part { name: "elm.swallow.indicator";
768 description { state: "default" 0.0;
771 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
772 rel2.relative: 1.0 0.0;
775 description { state: "hide" 0.0;
776 inherit: "default" 0.0;
784 name: "hide_indicator";
785 signal: "elm,state,indicator,hide";
788 set_int(indicator_visible, 0);
789 set_state(PART:"elm.swallow.indicator", "hide", 0.0);
790 set_state(PART:"indicator_bg", "hide", 0.0);
794 name: "opaque_indicator";
795 signal: "elm,state,indicator,opaque";
798 set_int(indicator_opacity, 0);
799 if (get_int(indicator_visible) == 1)
800 set_state(PART:"indicator_bg", "opaque", 0.0);
804 name: "translucent_indicator";
805 signal: "elm,state,indicator,translucent";
808 set_int(indicator_opacity, 1);
809 if (get_int(indicator_visible) == 1)
810 set_state(PART:"indicator_bg", "translucent", 0.0);
814 name: "transparent_indicator";
815 signal: "elm,state,indicator,transparent";
818 set_int(indicator_opacity, 2);
819 if (get_int(indicator_visible) == 1)
820 set_state(PART:"indicator_bg", "transparent", 0.0);