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, sip: enable
44 rel1.relative: 0.0 1.0;
45 rel1.to: "elm.swallow.indicator";
46 rel2.relative: 1.0 0.0;
49 description { state: "nooverlap_disable_sip" 0.0; //indi: nooverlap, sip: disable
50 inherit: "default" 0.0;
51 rel2.relative: 1.0 1.0;
52 rel2.to: "elm.swallow.bg";
54 description { state: "overlap" 0.0; //indi: overlap, sip: enable
55 inherit: "default" 0.0;
56 rel1.relative: 0.0 0.0;
57 rel1.to: "elm.swallow.indicator";
59 description { state: "overlap_disable_sip" 0.0; //indi: overlap, sip: disable
60 inherit: "default" 0.0;
61 rel1.relative: 0.0 0.0;
62 rel1.to: "elm.swallow.indicator";
63 rel2.relative: 1.0 1.0;
64 rel2.to: "elm.swallow.bg";
67 part { name: "elm.swallow.ug";
70 description { state: "default" 0.0;
72 rel1.relative: 0.0 1.0;
73 rel1.to: "elm.swallow.indicator";
74 rel2.relative: 1.0 0.0;
77 description { state: "overlap" 0.0;
78 inherit: "default" 0.0;
80 rel1.relative: 0.0 0.0;
81 rel1.to: "elm.swallow.indicator";
82 rel2.relative: 1.0 0.0;
86 part { name: "indicator_bg";
90 description { state: "default" 0.0;
93 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
94 rel2.relative: 1.0 0.0;
96 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
98 description { state: "translucent" 0.0;
101 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
102 rel2.relative: 1.0 0.0;
104 color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
106 description { state: "transparent" 0.0;
109 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
110 rel2.relative: 1.0 0.0;
112 color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
114 description { state: "hide" 0.0;
115 inherit: "default" 0.0;
120 part { name: "elm.swallow.indicator";
123 description { state: "default" 0.0;
126 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
127 rel2.relative: 1.0 0.0;
130 description { state: "hide" 0.0;
131 inherit: "default" 0.0;
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;
172 name: "show_indicator";
173 signal: "elm,state,indicator,show";
176 set_int(indicator_visible, 1);
177 set_state(PART:"elm.swallow.indicator", "default", 0.0);
178 if (get_int(indicator_opacity) == 0)
179 set_state(PART:"indicator_bg", "opaque", 0.0);
180 if (get_int(indicator_opacity) == 1)
181 set_state(PART:"indicator_bg", "translucent", 0.0);
182 if (get_int(indicator_opacity) == 2)
183 set_state(PART:"indicator_bg", "transparent", 0.0);
187 name: "hide_indicator";
188 signal: "elm,state,indicator,hide";
191 set_int(indicator_visible, 0);
192 set_state(PART:"elm.swallow.indicator", "hide", 0.0);
193 set_state(PART:"indicator_bg", "hide", 0.0);
197 name: "opaque_indicator";
198 signal: "elm,state,indicator,opaque";
201 set_int(indicator_opacity, 0);
202 if (get_int(indicator_visible) == 1)
203 set_state(PART:"indicator_bg", "opaque", 0.0);
207 name: "translucent_indicator";
208 signal: "elm,state,indicator,translucent";
211 set_int(indicator_opacity, 1);
212 if (get_int(indicator_visible) == 1)
213 set_state(PART:"indicator_bg", "translucent", 0.0);
217 name: "transparent_indicator";
218 signal: "elm,state,indicator,transparent";
221 set_int(indicator_opacity, 2);
222 if (get_int(indicator_visible) == 1)
223 set_state(PART:"indicator_bg", "transparent", 0.0);
227 name: "overlap_indicator";
228 signal: "elm,state,indicator,overlap";
231 set_int(indicator_overlap, 1);
232 set_state(PART:"elm.swallow.ug", "overlap", 0.0);
233 if ((get_int(keypad_disable) == 1) && (get_int(clipboard_disable) == 1))
234 set_state(PART:"elm.swallow.content", "overlap_disable_sip", 0.0);
236 set_state(PART:"elm.swallow.content", "overlap", 0.0);
240 name: "nooverlap_indicator";
241 signal: "elm,state,indicator,nooverlap";
244 //Only portrait state get nooverlap mode
245 set_int(portrait_overlap, 0);
246 if (get_int(landscape) == 0)
248 set_int(indicator_overlap, 0);
249 set_state(PART:"elm.swallow.ug", "default", 0.0);
250 if ((get_int(keypad_disable) == 1) && (get_int(clipboard_disable) == 1))
251 set_state(PART:"elm.swallow.content", "nooverlap_disable_sip", 0.0);
253 set_state(PART:"elm.swallow.content", "default", 0.0);
257 program { name: "enable_clipboard";
258 signal: "elm,state,clipboard,enable";
261 set_int(clipboard_disable, 0);
263 if (get_int(indicator_overlap) == 0)
264 set_state(PART:"elm.swallow.content", "default", 0.0);
266 set_state(PART:"elm.swallow.content", "overlap", 0.0);
269 program { name: "disable_clipboard";
270 signal: "elm,state,clipboard,disable";
273 set_int(clipboard_disable, 1);
274 set_state(PART:"sip_area", "default", 0.0);
275 if (get_int(indicator_overlap) == 0)
277 if (get_int(keypad_disable) == 1)
278 set_state(PART:"elm.swallow.content", "nooverlap_disable_sip", 0.0);
280 set_state(PART:"elm.swallow.content", "default", 0.0);
284 if (get_int(keypad_disable) == 1)
285 set_state(PART:"elm.swallow.content", "overlap_disable_sip", 0.0);
287 set_state(PART:"elm.swallow.content", "overlap", 0.0);
291 program { name: "enable_virtualkeypad";
292 signal: "elm,state,virtualkeypad,enable";
295 set_int(keypad_disable, 0);
296 if (get_int(indicator_overlap) == 0)
297 set_state(PART:"elm.swallow.content", "default", 0.0);
299 set_state(PART:"elm.swallow.content", "overlap", 0.0);
302 program { name: "disable_virtualkeypad";
303 signal: "elm,state,virtualkeypad,disable";
306 set_int(keypad_disable, 1);
307 if (get_int(clipboard_disable) == 1)
309 set_state(PART:"sip_area", "clipboard_on", 0.0);
310 if (get_int(indicator_overlap) == 0)
311 set_state(PART:"elm.swallow.content", "nooverlap_disable_sip", 0.0);
313 set_state(PART:"elm.swallow.content", "overlap_disable_sip", 0.0);
317 if (get_int(indicator_overlap) == 0)
318 set_state(PART:"elm.swallow.content", "default", 0.0);
320 set_state(PART:"elm.swallow.content", "overlap", 0.0);
325 name: "change_to_landscape";
326 signal: "elm,state,landscape";
329 if (get_int(landscape) == 0) {
330 set_int(portrait_overlap, get_int(indicator_overlap));
331 set_int(portrait_opacity, get_int(indicator_opacity));
332 set_int(landscape, 1);
333 run_program(PROGRAM:"overlap_indicator");
334 run_program(PROGRAM:"transparent_indicator");
339 name: "change_to_portrait";
340 signal: "elm,state,portrait";
343 if (get_int(landscape) == 1) { //content start (0, indicator height)
344 set_int(indicator_overlap, get_int(portrait_overlap));
345 set_int(indicator_opacity, get_int(portrait_opacity));
346 set_int(landscape, 0);
347 if (get_int(indicator_overlap) == 0) { //start (0,60)
348 run_program(PROGRAM:"nooverlap_indicator");
351 else { //content start (0, 0)
352 run_program(PROGRAM:"overlap_indicator");
354 if (get_int(portrait_opacity) == 2) //transparent
355 run_program(PROGRAM:"transparent_indicator");
356 else if (get_int(portrait_opacity) == 1) //translucent
357 run_program(PROGRAM:"translucent_indicator");
359 run_program(PROGRAM:"opaque_indicator");
363 program { name: "landscape_mode";
365 signal: "elm,state,orient,90";
366 action: SIGNAL_EMIT "elm,state,landscape" "elm";
368 program { name: "landscape_mode2";
370 signal: "elm,state,orient,270";
371 action: SIGNAL_EMIT "elm,state,landscape" "elm";
373 program { name: "portrait_mode";
375 signal: "elm,state,orient,0";
376 action: SIGNAL_EMIT "elm,state,portrait" "elm";
378 program { name: "portrait_mode2";
380 signal: "elm,state,orient,180";
381 action: SIGNAL_EMIT "elm,state,portrait" "elm";
384 name: "clipboard_on";
385 signal: "elm,state,clipboard,on";
387 action: STATE_SET "clipboard_on" 0.0;
391 name: "clipboard_off";
392 signal: "elm,state,clipboard,off";
394 action: STATE_SET "default" 0.0;
399 group { name: "elm/conformant/base/indicator_overlap";
401 public indicator_visible = 0; //Indicator visible check
402 public indicator_opacity = 0; //0=opaque, 1=translucent, 2=transparent
405 part { name: "elm.swallow.bg";
408 description { state: "default" 0.0;
411 part { name: "elm.swallow.content";
414 description { state: "default" 0.0;
416 rel2.relative: 1.0 0.0;
420 part { name: "elm.swallow.ug";
423 description { state: "default" 0.0;
425 rel1.relative: 0.0 1.0;
426 rel1.to: "elm.swallow.indicator";
427 rel2.relative: 1.0 0.0;
431 part { name: "indicator_bg";
434 description { state: "default" 0.0;
437 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
438 rel2.relative: 1.0 0.0;
440 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
442 description { state: "translucent" 0.0;
445 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
446 rel2.relative: 1.0 0.0;
448 color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
450 description { state: "transparent" 0.0;
453 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
454 rel2.relative: 1.0 0.0;
456 color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
458 description { state: "hide" 0.0;
459 inherit: "default" 0.0;
464 part { name: "elm.swallow.indicator";
467 description { state: "default" 0.0;
470 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
471 rel2.relative: 1.0 0.0;
474 description { state: "hide" 0.0;
475 inherit: "default" 0.0;
480 part { name: "sip_area";
482 description { state: "default" 0.0;
485 rel1.relative: 0.0 0.0;
486 rel1.to_y: "elm.swallow.virtualkeypad";
487 rel2.relative: 1.0 1.0;
488 rel2.to_y: "elm.swallow.virtualkeypad";
491 description { state: "clipboard_on" 0.0;
492 inherit: "default" 0.0;
493 rel1.to_y: "elm.swallow.clipboard";
494 rel2.to_y: "elm.swallow.clipboard";
497 part { name: "elm.swallow.clipboard";
499 description { state: "default" 0.0;
502 rel1.relative: 0.0 1.0;
505 part { name: "elm.swallow.virtualkeypad";
507 description { state: "default" 0.0;
510 rel1.relative: 0.0 1.0;
516 name: "show_indicator";
517 signal: "elm,state,indicator,show";
520 set_int(indicator_visible, 1);
521 set_state(PART:"elm.swallow.indicator", "default", 0.0);
522 if (get_int(indicator_opacity) == 0)
523 set_state(PART:"indicator_bg", "opaque", 0.0);
524 if (get_int(indicator_opacity) == 1)
525 set_state(PART:"indicator_bg", "translucent", 0.0);
526 if (get_int(indicator_opacity) == 2)
527 set_state(PART:"indicator_bg", "transparent", 0.0);
531 name: "hide_indicator";
532 signal: "elm,state,indicator,hide";
535 set_int(indicator_visible, 0);
536 set_state(PART:"elm.swallow.indicator", "hide", 0.0);
537 set_state(PART:"indicator_bg", "hide", 0.0);
541 name: "opaque_indicator";
542 signal: "elm,state,indicator,opaque";
545 set_int(indicator_opacity, 0);
546 if (get_int(indicator_visible) == 1)
547 set_state(PART:"indicator_bg", "opaque", 0.0);
551 name: "translucent_indicator";
552 signal: "elm,state,indicator,translucent";
555 set_int(indicator_opacity, 1);
556 if (get_int(indicator_visible) == 1)
557 set_state(PART:"indicator_bg", "translucent", 0.0);
561 name: "transparent_indicator";
562 signal: "elm,state,indicator,transparent";
565 set_int(indicator_opacity, 2);
566 if (get_int(indicator_visible) == 1)
567 set_state(PART:"indicator_bg", "transparent", 0.0);
571 name: "clipboard_on";
572 signal: "elm,state,clipboard,on";
574 action: STATE_SET "clipboard_on" 0.0;
578 name: "clipboard_off";
579 signal: "elm,state,clipboard,off";
581 action: STATE_SET "default" 0.0;
587 group { name: "elm/conformant/base/nokeypad";
589 public indicator_visible = 0; //Indicator visible check
590 public indicator_opacity = 0; //0=opaque, 1=translucent, 2=transparent
593 part { name: "elm.swallow.bg";
596 description { state: "default" 0.0;
599 part { name: "elm.swallow.content";
602 description { state: "default" 0.0;
604 rel1.relative: 0.0 1.0;
605 rel1.to: "elm.swallow.indicator";
608 part { name: "elm.swallow.ug";
611 description { state: "default" 0.0;
613 rel1.relative: 0.0 1.0;
614 rel1.to: "elm.swallow.indicator";
617 part { name: "indicator_bg";
620 description { state: "default" 0.0;
623 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
624 rel2.relative: 1.0 0.0;
626 color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
628 description { state: "translucent" 0.0;
631 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
632 rel2.relative: 1.0 0.0;
634 color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
636 description { state: "transparent" 0.0;
639 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
640 rel2.relative: 1.0 0.0;
642 color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
644 description { state: "hide" 0.0;
645 inherit: "default" 0.0;
650 part { name: "elm.swallow.indicator";
653 description { state: "default" 0.0;
656 min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
657 rel2.relative: 1.0 0.0;
660 description { state: "hide" 0.0;
661 inherit: "default" 0.0;
669 name: "show_indicator";
670 signal: "elm,state,indicator,show";
673 set_int(indicator_visible, 1);
674 set_state(PART:"elm.swallow.indicator", "default", 0.0);
675 if (get_int(indicator_opacity) == 0)
676 set_state(PART:"indicator_bg", "opaque", 0.0);
677 if (get_int(indicator_opacity) == 1)
678 set_state(PART:"indicator_bg", "translucent", 0.0);
679 if (get_int(indicator_opacity) == 2)
680 set_state(PART:"indicator_bg", "transparent", 0.0);
684 name: "hide_indicator";
685 signal: "elm,state,indicator,hide";
688 set_int(indicator_visible, 0);
689 set_state(PART:"elm.swallow.indicator", "hide", 0.0);
690 set_state(PART:"indicator_bg", "hide", 0.0);
694 name: "opaque_indicator";
695 signal: "elm,state,indicator,opaque";
698 set_int(indicator_opacity, 0);
699 if (get_int(indicator_visible) == 1)
700 set_state(PART:"indicator_bg", "opaque", 0.0);
704 name: "translucent_indicator";
705 signal: "elm,state,indicator,translucent";
708 set_int(indicator_opacity, 1);
709 if (get_int(indicator_visible) == 1)
710 set_state(PART:"indicator_bg", "translucent", 0.0);
714 name: "transparent_indicator";
715 signal: "elm,state,indicator,transparent";
718 set_int(indicator_opacity, 2);
719 if (get_int(indicator_visible) == 1)
720 set_state(PART:"indicator_bg", "transparent", 0.0);