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_visible = 0; //Indicator visible check
24 public indicator_opacity = 0; //0=opaque, 1=translucent, 2=transparent
25 public indicator_overlap = 0; //check indicator overlap/nooverlap
26 public clipboard_disable = 0; //check clipboard enable/disable
27 public keypad_disable = 0; //check virtualkeypad enable/disable
28 public landscape = 0; //Landscape mode status
29 public portrait_overlap = 0; //save portrait_overlap mode
30 public portrait_opacity = 0; //save portrait_opacity
33 part { name: "elm.swallow.bg";
36 description { state: "default" 0.0;
39 part { name: "elm.swallow.content";
42 description { state: "default" 0.0; //indi:nooverlap, clipboard: enable, keypad: enable/disable
44 rel1.relative: 0.0 1.0;
45 rel1.to: "elm.swallow.indicator";
46 rel2.relative: 1.0 0.0;
47 rel2.to: "elm.swallow.clipboard";
49 description { state: "nooverlap_disable_clipboard_enable_keypad" 0.0; //indi:nooverlap, clipboard: disable, keypad: enable
50 inherit: "default" 0.0;
51 rel2.to: "elm.swallow.virtualkeypad";
53 description { state: "nooverlap_disable_clipboard_disable_keypad" 0.0; //indi:nooverlap, clipboard: disable, keypad: disable
54 inherit: "default" 0.0;
55 rel2.relative: 1.0 1.0;
56 rel2.to: "elm.swallow.bg";
58 description { state: "overlap_enable_clipboard" 0.0; //indi:overlap, clipboard: enable, keypad: enable/disable
59 inherit: "default" 0.0;
60 rel1.relative: 0.0 0.0;
61 rel1.to: "elm.swallow.indicator";
63 description { state: "overlap_disable_clipboard_enable_keypad" 0.0; //indi:overlap, clipboard: disable, keypad: enable
64 inherit: "default" 0.0;
65 rel1.relative: 0.0 0.0;
66 rel1.to: "elm.swallow.indicator";
67 rel2.to: "elm.swallow.virtualkeypad";
69 description { state: "overlap_disable_clipboard_disable_keypad" 0.0; //indi:overlap, clipboard: disable, keypad: enable
70 inherit: "default" 0.0;
71 rel1.relative: 0.0 0.0;
72 rel1.to: "elm.swallow.indicator";
73 rel2.relative: 1.0 1.0;
74 rel2.to: "elm.swallow.bg";
77 part { name: "elm.swallow.ug";
80 description { state: "default" 0.0;
82 rel1.relative: 0.0 1.0;
83 rel1.to: "elm.swallow.indicator";
84 rel2.relative: 1.0 0.0;
85 rel2.to: "elm.swallow.clipboard";
87 description { state: "overlap" 0.0;
88 inherit: "default" 0.0;
90 rel1.relative: 0.0 0.0;
91 rel1.to: "elm.swallow.indicator";
92 rel2.relative: 1.0 0.0;
93 rel2.to: "elm.swallow.clipboard";
96 part { name: "indicator_bg";
99 description { state: "default" 0.0;
102 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
103 rel2.relative: 1.0 0.0;
105 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
107 description { state: "translucent" 0.0;
110 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
111 rel2.relative: 1.0 0.0;
113 color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
115 description { state: "transparent" 0.0;
118 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
119 rel2.relative: 1.0 0.0;
121 color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
123 description { state: "hide" 0.0;
124 inherit: "default" 0.0;
129 part { name: "elm.swallow.indicator";
132 description { state: "default" 0.0;
135 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
136 rel2.relative: 1.0 0.0;
139 description { state: "hide" 0.0;
140 inherit: "default" 0.0;
145 part { name: "access"; type: RECT;
147 description { state: "default" 0.0;
149 rel1 { relative: 0.9 0.0; to: "elm.swallow.indicator"; }
150 rel2 { relative: 1.0 1.0; to: "elm.swallow.indicator"; }
154 description { state: "visible" 0.0;
155 inherit: "default" 0.0;
159 part { name: "elm.swallow.clipboard";
161 description { state: "default" 0.0;
164 rel1.relative: 0.0 0.0;
165 rel1.to_y: "elm.swallow.virtualkeypad";
166 rel2.relative: 1.0 0.0;
167 rel2.to_y: "elm.swallow.virtualkeypad";
169 description { state: "disable_keypad" 0.0;
170 inherit: "default" 0.0;
171 rel1.relative: 0.0 1.0;
172 rel1.to_y: "elm.swallow.bg";
173 rel2.relative: 1.0 1.0;
174 rel2.to_y: "elm.swallow.bg";
177 part { name: "elm.swallow.virtualkeypad";
179 description { state: "default" 0.0;
182 rel1.relative: 0.0 1.0;
188 name: "show_indicator";
189 signal: "elm,state,indicator,show";
192 set_int(indicator_visible, 1);
193 set_state(PART:"elm.swallow.indicator", "default", 0.0);
194 if (get_int(indicator_opacity) == 0)
195 set_state(PART:"indicator_bg", "opaque", 0.0);
196 if (get_int(indicator_opacity) == 1)
197 set_state(PART:"indicator_bg", "translucent", 0.0);
198 if (get_int(indicator_opacity) == 2)
199 set_state(PART:"indicator_bg", "transparent", 0.0);
203 name: "hide_indicator";
204 signal: "elm,state,indicator,hide";
207 set_int(indicator_visible, 0);
208 set_state(PART:"elm.swallow.indicator", "hide", 0.0);
209 set_state(PART:"indicator_bg", "hide", 0.0);
213 name: "opaque_indicator";
214 signal: "elm,state,indicator,opaque";
217 set_int(indicator_opacity, 0);
218 if (get_int(indicator_visible) == 1)
219 set_state(PART:"indicator_bg", "opaque", 0.0);
223 name: "translucent_indicator";
224 signal: "elm,state,indicator,translucent";
227 set_int(indicator_opacity, 1);
228 if (get_int(indicator_visible) == 1)
229 set_state(PART:"indicator_bg", "translucent", 0.0);
233 name: "transparent_indicator";
234 signal: "elm,state,indicator,transparent";
237 set_int(indicator_opacity, 2);
238 if (get_int(indicator_visible) == 1)
239 set_state(PART:"indicator_bg", "transparent", 0.0);
243 name: "overlap_indicator";
244 signal: "elm,state,indicator,overlap";
247 set_int(indicator_overlap, 1);
248 set_state(PART:"elm.swallow.ug", "overlap", 0.0);
249 if (get_int(clipboard_disable) == 0)
250 set_state(PART:"elm.swallow.content", "overlap_enable_clipboard", 0.0);
253 if (get_int(keypad_disable) == 0)
254 set_state(PART:"elm.swallow.content", "overlap_disable_clipboard_enable_keypad", 0.0);
256 set_state(PART:"elm.swallow.content", "overlap_disable_clipboard_disable_keypad", 0.0);
261 name: "nooverlap_indicator";
262 signal: "elm,state,indicator,nooverlap";
265 set_int(indicator_overlap, 0);
266 set_state(PART:"elm.swallow.ug", "default", 0.0);
267 if (get_int(clipboard_disable) == 0)
268 set_state(PART:"elm.swallow.content", "default", 0.0);
271 if (get_int(keypad_disable) == 0)
272 set_state(PART:"elm.swallow.content", "nooverlap_disable_clipboard_enable_keypad", 0.0);
274 set_state(PART:"elm.swallow.content", "nooverlap_disable_clipboard_disable_keypad", 0.0);
278 program { name: "enable_clipboard";
279 signal: "elm,state,clipboard,enable";
282 set_int(clipboard_disable, 0);
284 if (get_int(indicator_overlap) == 0)
285 set_state(PART:"elm.swallow.content", "default", 0.0);
287 set_state(PART:"elm.swallow.content", "overlap_enable_clipboard", 0.0);
288 //set clipboard state
289 if (get_int(keypad_disable) == 1)
290 set_state(PART:"elm.swallow.clipboard", "disable_keypad", 0.0);
292 set_state(PART:"elm.swallow.clipboard", "default", 0.0);
295 program { name: "disable_clipboard";
296 signal: "elm,state,clipboard,disable";
299 set_int(clipboard_disable, 1);
300 set_state(PART:"elm.swallow.clipboard", "default", 0.0);
301 if (get_int(indicator_overlap) == 0)
303 if (get_int(keypad_disable) == 1)
304 set_state(PART:"elm.swallow.content", "nooverlap_disable_clipboard_disable_keypad", 0.0);
306 set_state(PART:"elm.swallow.content", "nooverlap_disable_clipboard_enable_keypad", 0.0);
310 if (get_int(keypad_disable) == 1)
311 set_state(PART:"elm.swallow.content", "overlap_disable_clipboard_disable_keypad", 0.0);
313 set_state(PART:"elm.swallow.content", "overlap_disable_clipboard_enable_keypad", 0.0);
317 program { name: "enable_virtualkeypad";
318 signal: "elm,state,virtualkeypad,enable";
321 set_int(keypad_disable, 0);
322 set_state(PART:"elm.swallow.clipboard", "default", 0.0);
323 if (get_int(clipboard_disable) == 1)
325 if (get_int(indicator_overlap) == 0)
326 set_state(PART:"elm.swallow.content", "nooverlap_disable_clipboard_enable_keypad", 0.0);
328 set_state(PART:"elm.swallow.content", "overlap_disable_clipboard_enable_keypad", 0.0);
332 if (get_int(indicator_overlap) == 0)
333 set_state(PART:"elm.swallow.content", "default", 0.0);
335 set_state(PART:"elm.swallow.content", "overlap_enable_clipboard", 0.0);
339 program { name: "disable_virtualkeypad";
340 signal: "elm,state,virtualkeypad,disable";
343 set_int(keypad_disable, 1);
344 if (get_int(clipboard_disable) == 1)
346 set_state(PART:"elm.swallow.clipboard", "default", 0.0);
347 if (get_int(indicator_overlap) == 0)
348 set_state(PART:"elm.swallow.content", "nooverlap_disable_clipboard_disable_keypad", 0.0);
350 set_state(PART:"elm.swallow.content", "overlap_disable_clipboard_disable_keypad", 0.0);
354 set_state(PART:"elm.swallow.clipboard", "disable_keypad", 0.0);
355 if (get_int(indicator_overlap) == 0)
356 set_state(PART:"elm.swallow.content", "default", 0.0);
358 set_state(PART:"elm.swallow.content", "overlap_enable_clipboard", 0.0);
362 program { name: "access_on";
363 signal: "elm,state,access,on";
365 action: STATE_SET "visible" 0.0;
368 program { name: "access_off";
369 signal: "elm,state,access,off";
371 action: STATE_SET "default" 0.0;
375 name: "change_to_landscape";
376 signal: "elm,state,landscape";
379 if (get_int(landscape) == 0) {
380 set_int(portrait_overlap, get_int(indicator_overlap));
381 set_int(landscape, 1);
382 set_int(portrait_opacity, get_int(indicator_visible));
383 run_program(PROGRAM:"overlap_indicator");
384 run_program(PROGRAM:"transparent_indicator");
389 name: "change_to_portrait";
390 signal: "elm,state,portrait";
393 if (get_int(landscape) == 1) { //content start (0, indicator height)
394 set_int(indicator_overlap, get_int(portrait_overlap));
395 set_int(indicator_opacity, get_int(portrait_opacity));
396 if (get_int(indicator_overlap) == 0) { //start (0,60)
397 run_program(PROGRAM:"nooverlap_indicator");
399 else { //content start (0, 0)
400 run_program(PROGRAM:"overlap_indicator");
402 if (get_int(portrait_opacity) == 2) //transparent
403 run_program(PROGRAM:"transparent_indicator");
404 else if (get_int(portrait_opacity) == 1) //translucent
405 run_program(PROGRAM:"translucent_indicator");
407 run_program(PROGRAM:"opaque_indicator");
408 set_int(landscape, 0);
412 program { name: "landscape_mode";
414 signal: "elm,state,orient,90";
415 action: SIGNAL_EMIT "elm,state,landscape" "elm";
417 program { name: "landscape_mode2";
419 signal: "elm,state,orient,270";
420 action: SIGNAL_EMIT "elm,state,landscape" "elm";
422 program { name: "portrait_mode";
424 signal: "elm,state,orient,0";
425 action: SIGNAL_EMIT "elm,state,portrait" "elm";
427 program { name: "portrait_mode2";
429 signal: "elm,state,orient,180";
430 action: SIGNAL_EMIT "elm,state,portrait" "elm";
434 group { name: "elm/conformant/base/indicator_overlap";
436 public indicator_visible = 0; //Indicator visible check
437 public indicator_opacity = 0; //0=opaque, 1=translucent, 2=transparent
440 part { name: "elm.swallow.bg";
443 description { state: "default" 0.0;
446 part { name: "elm.swallow.content";
449 description { state: "default" 0.0;
451 rel2.relative: 1.0 0.0;
452 rel2.to: "elm.swallow.clipboard";
455 part { name: "elm.swallow.ug";
458 description { state: "default" 0.0;
460 rel1.relative: 0.0 1.0;
461 rel1.to: "elm.swallow.indicator";
462 rel2.relative: 1.0 0.0;
463 rel2.to: "elm.swallow.clipboard";
466 part { name: "indicator_bg";
469 description { state: "default" 0.0;
472 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
473 rel2.relative: 1.0 0.0;
475 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
477 description { state: "translucent" 0.0;
480 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
481 rel2.relative: 1.0 0.0;
483 color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
485 description { state: "transparent" 0.0;
488 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
489 rel2.relative: 1.0 0.0;
491 color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
493 description { state: "hide" 0.0;
494 inherit: "default" 0.0;
499 part { name: "elm.swallow.indicator";
502 description { state: "default" 0.0;
505 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
506 rel2.relative: 1.0 0.0;
509 description { state: "hide" 0.0;
510 inherit: "default" 0.0;
515 part { name: "elm.swallow.clipboard";
517 description { state: "default" 0.0;
520 rel1.relative: 0.0 0.0;
521 rel1.to_y: "elm.swallow.virtualkeypad";
522 rel2.relative: 1.0 0.0;
523 rel2.to_y: "elm.swallow.virtualkeypad";
526 part { name: "elm.swallow.virtualkeypad";
528 description { state: "default" 0.0;
531 rel1.relative: 0.0 1.0;
537 name: "show_indicator";
538 signal: "elm,state,indicator,show";
541 set_int(indicator_visible, 1);
542 set_state(PART:"elm.swallow.indicator", "default", 0.0);
543 if (get_int(indicator_opacity) == 0)
544 set_state(PART:"indicator_bg", "opaque", 0.0);
545 if (get_int(indicator_opacity) == 1)
546 set_state(PART:"indicator_bg", "translucent", 0.0);
547 if (get_int(indicator_opacity) == 2)
548 set_state(PART:"indicator_bg", "transparent", 0.0);
552 name: "hide_indicator";
553 signal: "elm,state,indicator,hide";
556 set_int(indicator_visible, 0);
557 set_state(PART:"elm.swallow.indicator", "hide", 0.0);
558 set_state(PART:"indicator_bg", "hide", 0.0);
562 name: "opaque_indicator";
563 signal: "elm,state,indicator,opaque";
566 set_int(indicator_opacity, 0);
567 if (get_int(indicator_visible) == 1)
568 set_state(PART:"indicator_bg", "opaque", 0.0);
572 name: "translucent_indicator";
573 signal: "elm,state,indicator,translucent";
576 set_int(indicator_opacity, 1);
577 if (get_int(indicator_visible) == 1)
578 set_state(PART:"indicator_bg", "translucent", 0.0);
582 name: "transparent_indicator";
583 signal: "elm,state,indicator,transparent";
586 set_int(indicator_opacity, 2);
587 if (get_int(indicator_visible) == 1)
588 set_state(PART:"indicator_bg", "transparent", 0.0);
594 group { name: "elm/conformant/base/nokeypad";
596 public indicator_visible = 0; //Indicator visible check
597 public indicator_opacity = 0; //0=opaque, 1=translucent, 2=transparent
600 part { name: "elm.swallow.bg";
603 description { state: "default" 0.0;
606 part { name: "elm.swallow.content";
609 description { state: "default" 0.0;
611 rel1.relative: 0.0 1.0;
612 rel1.to: "elm.swallow.indicator";
615 part { name: "elm.swallow.ug";
618 description { state: "default" 0.0;
620 rel1.relative: 0.0 1.0;
621 rel1.to: "elm.swallow.indicator";
624 part { name: "indicator_bg";
627 description { state: "default" 0.0;
630 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
631 rel2.relative: 1.0 0.0;
633 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
635 description { state: "translucent" 0.0;
638 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
639 rel2.relative: 1.0 0.0;
641 color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
643 description { state: "transparent" 0.0;
646 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
647 rel2.relative: 1.0 0.0;
649 color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
651 description { state: "hide" 0.0;
652 inherit: "default" 0.0;
657 part { name: "elm.swallow.indicator";
660 description { state: "default" 0.0;
663 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
664 rel2.relative: 1.0 0.0;
667 description { state: "hide" 0.0;
668 inherit: "default" 0.0;
676 name: "show_indicator";
677 signal: "elm,state,indicator,show";
680 set_int(indicator_visible, 1);
681 set_state(PART:"elm.swallow.indicator", "default", 0.0);
682 if (get_int(indicator_opacity) == 0)
683 set_state(PART:"indicator_bg", "opaque", 0.0);
684 if (get_int(indicator_opacity) == 1)
685 set_state(PART:"indicator_bg", "translucent", 0.0);
686 if (get_int(indicator_opacity) == 2)
687 set_state(PART:"indicator_bg", "transparent", 0.0);
691 name: "hide_indicator";
692 signal: "elm,state,indicator,hide";
695 set_int(indicator_visible, 0);
696 set_state(PART:"elm.swallow.indicator", "hide", 0.0);
697 set_state(PART:"indicator_bg", "hide", 0.0);
701 name: "opaque_indicator";
702 signal: "elm,state,indicator,opaque";
705 set_int(indicator_opacity, 0);
706 if (get_int(indicator_visible) == 1)
707 set_state(PART:"indicator_bg", "opaque", 0.0);
711 name: "translucent_indicator";
712 signal: "elm,state,indicator,translucent";
715 set_int(indicator_opacity, 1);
716 if (get_int(indicator_visible) == 1)
717 set_state(PART:"indicator_bg", "translucent", 0.0);
721 name: "transparent_indicator";
722 signal: "elm,state,indicator,transparent";
725 set_int(indicator_opacity, 2);
726 if (get_int(indicator_visible) == 1)
727 set_state(PART:"indicator_bg", "transparent", 0.0);