2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://www.tizenopensource.org/license
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.
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";
28 GENLIST_PART_BASE( GENLIST_HEIGHT_103_INC )
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";
37 description { state: "default" 0.0;
42 rel1.to_x: "elm.padding.right";
45 to_x: "elm.padding.right";
49 GENLIST_DESCRIPTION_FLIP_ENABLED
51 part { name: "elm.padding.icon.left";
55 description { state: "default" 0.0;
56 min: GENLIST_PADDING_14_INC 0;
58 rel1.to_x: "elm.icon";
67 part { name: "elm.text";
72 description { state: "default" 0.0;
75 to_x: "elm.padding.left";
79 to_x: "elm.padding.icon.left";
82 color: GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC;
84 font: "SLP:style=Helveca";
85 size: GENLIST_FONT_40_INC;
90 description { state: "selected" 0.0;
91 inherit: "default" 0.0;
92 color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
94 GENLIST_DESCRIPTION_FLIP_ENABLED
100 program { name: "go_active";
101 signal: "elm,state,selected";
103 action: STATE_SET "selected" 0.0;
107 program { name: "go_passive";
108 signal: "elm,state,unselected";
110 action: STATE_SET "default" 0.0;
113 transition: LINEAR 0.1;
115 program { name: "go_disabled";
116 signal: "elm,state,disabled";
118 action: STATE_SET "disabled" 0.0;
121 program { name: "go_enabled";
122 signal: "elm,state,enabled";
124 action: STATE_SET "default" 0.0;
127 GENLIST_PROGRAM_FLIP_1TEXT_1ICON
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";
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";
152 description { state: "default" 0.0;
154 rel1.to_x: "elm.padding.right";
157 to_x: "elm.padding.right";
161 GENLIST_DESCRIPTION_FLIP_ENABLED
163 part { name: "elm.padding.icon.left";
167 description { state: "default" 0.0;
168 min: GENLIST_PADDING_16_INC 0;
170 rel1.to_x: "elm.icon";
179 part { name: "elm.text";
184 description { state: "default" 0.0;
187 to_x: "elm.padding.left";
191 to_x: "elm.padding.icon.left";
194 color: GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC;
196 font: "SLP:style=Roman";
197 size: GENLIST_FONT_44_INC;
202 description { state: "selected" 0.0;
203 inherit: "default" 0.0;
204 color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
206 GENLIST_DESCRIPTION_INVISIBLE_SELECTED
207 GENLIST_DESCRIPTION_FLIP_ENABLED
213 program { name: "go_active";
214 signal: "elm,state,selected";
216 action: STATE_SET "selected" 0.0;
217 GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_1TEXT
219 program { name: "go_passive";
220 signal: "elm,state,unselected";
222 action: STATE_SET "default" 0.0;
225 transition: LINEAR 0.1;
227 program { name: "go_disabled";
228 signal: "elm,state,disabled";
230 action: STATE_SET "disabled" 0.0;
233 program { name: "go_enabled";
234 signal: "elm,state,enabled";
236 action: STATE_SET "default" 0.0;
239 GENLIST_PROGRAM_FLIP_1TEXT_1ICON
243 ////////////////////////////////////////////////////////////////////////////////
244 group { name: "elm/check/base/genlist/on&off";
246 item: "label_1" "text.on On";
247 item: "label_2" "text.off Off";
250 image: "00_check_off.png" COMP;
251 image: "00_check_on.png" COMP;
258 description { state: "default" 0.0;
259 rel2.relative: 0.0 1.0;
268 part { name: "check";
272 description { state: "default" 0.0;
276 min: CHECK_ONOFF_BG_NORMAL_MIN_MAX_INC;
277 max: CHECK_ONOFF_BG_NORMAL_MIN_MAX_INC;
280 normal: "00_check_off.png";
281 border: CHECK_ONOFF_CHECK_IMAGE_BORDER_INC;
285 description { state: "visible" 0.0;
286 inherit: "default" 0.0;
287 image.normal: "00_check_on.png";
289 description { state: "pressed" 0.0;
290 inherit: "default" 0.0;
291 image.normal: "00_check_off.png";
293 description { state: "visible_pressed" 0.0;
294 inherit: "default" 0.0;
295 image.normal: "00_check_on.png";
298 part { name: "text.on";
303 description { state: "default" 0.0;
314 font: "SLP:style=Medium";
315 size: CHECK_ONOFF_ON_FONT_SIZE_INC;
318 size_range: 12 CHECK_ONOFF_ON_FONT_SIZE_INC;
320 text_class: "slp_medium";
323 description { state: "on" 0.0;
324 inherit: "default" 0.0;
326 color: 255 255 255 255;
336 font: "SLP:style=Medium";
337 size: CHECK_ONOFF_ON_FONT_SIZE_INC;
340 size_range: 12 CHECK_ONOFF_ON_FONT_SIZE_INC;
345 part { name: "text.off";
350 description { state: "default" 0.0;
351 color: 107 107 81 255;
358 font: "SLP:style=Medium";
359 size: CHECK_ONOFF_OFF_FONT_SIZE_INC;
362 size_range: 12 CHECK_ONOFF_OFF_FONT_SIZE_INC;
364 text_class: "slp_medium";
367 description { state: "off" 0.0;
368 inherit: "default" 0.0;
376 font: "SLP:style=Medium";
377 size: CHECK_ONOFF_OFF_FONT_SIZE_INC;
380 size_range: 12 CHECK_ONOFF_OFF_FONT_SIZE_INC;
385 part { name: "elm.swallow.content";
388 description { state: "default" 0.0;
391 color: 255 255 255 255;
404 description { state: "visible" 0.0;
405 inherit: "default" 0.0;
409 aspect_preference: VERTICAL;
411 description { state: "disabled" 0.0;
412 inherit: "default" 0.0;
414 description { state: "disabled_visible" 0.0;
415 inherit: "default" 0.0;
421 part { name: "elm.text";
426 description { state: "default" 0.0;
432 to_x: "elm.swallow.content";
440 style: "check_label_textblock_style";
443 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
445 description { state: "visible" 0.0;
446 inherit: "default" 0.0;
450 description { state: "disabled" 0.0;
451 inherit: "default" 0.0;
453 description { state: "disabled_visible" 0.0;
454 inherit: "default" 0.0;
459 part { name: "events";
461 ignore_flags: ON_HOLD;
462 description { state: "default" 0.0;
466 part { name: "disclip";
469 description { state: "default" 0.0;
470 color: 255 255 255 255;
472 description { state: "disabled" 0.0;
473 inherit: "default" 0.0;
474 color: 255 255 255 64;
477 part { name: "disabler";
479 description { state: "default" 0.0;
483 description { state: "disabled" 0.0;
484 inherit: "default" 0.0;
490 program { name: "click";
491 signal: "mouse,up,1";
493 action: SIGNAL_EMIT "elm,action,check,toggle" "";
495 program { name: "pressed";
496 signal: "mouse,down,1";
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);
508 program { name: "mouseout";
511 after: "bg_check_normal";
513 program { name: "bg_check_normal";
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);
524 program { name: "check_on";
525 signal: "elm,state,check,on";
527 action: STATE_SET "visible" 0.0;
529 after:"text_off_off" ;
531 program { name: "text_off_off";
532 action: STATE_SET "off" 0.0;
536 program { name: "text_on";
537 action: STATE_SET "on" 0.0;
540 program { name: "check_off";
541 signal: "elm,state,check,off";
543 action: STATE_SET "default" 0.0;
545 after: "text_on_off";
547 program { name: "text_on_off";
548 action: STATE_SET "default" 0.0;
552 program { name: "text_off";
553 action: STATE_SET "default" 0.0;
556 program { name: "text_show";
557 signal: "elm,state,text,visible";
559 action: STATE_SET "visible" 0.0;
562 program { name: "text_hide";
563 signal: "elm,state,text,hidden";
565 action: STATE_SET "default" 0.0;
568 program { name: "icon_show";
569 signal: "elm,state,icon,visible";
571 action: STATE_SET "visible" 0.0;
572 target: "elm.swallow.content";
574 program { name: "icon_hide";
575 signal: "elm,state,icon,hidden";
577 action: STATE_SET "default" 0.0;
578 target: "elm.swallow.content";
580 program { name: "disable";
581 signal: "elm,state,disabled";
583 action: STATE_SET "disabled" 0.0;
586 after: "disable_text";
588 program { name: "disable_text";
592 get_state(PART:"elm.text", st, 30, vl);
593 if (!strcmp(st, "visible"))
594 set_state(PART:"elm.text", "disabled_visible", 0.0);
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);
601 set_state(PART:"elm.swallow.content", "disabled", 0.0);
604 program { name: "enable";
605 signal: "elm,state,enabled";
607 action: STATE_SET "default" 0.0;
610 after: "enable_text";
612 program { name: "enable_text";
616 get_state(PART:"elm.text", st, 30, vl);
617 if (!strcmp(st, "disabled_visible"))
618 set_state(PART:"elm.text", "visible", 0.0);
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);
625 set_state(PART:"elm.swallow.content", "default", 0.0);
631 ///////////////////////////////////////////////////////////////////////////////////////