3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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 image: "org.tizen.setting.png" COMP;
21 image: "org.tizen.setting.png" COMP;
22 image: "org.tizen.setting.png" COMP;
23 image: "org.tizen.setting.png" COMP;
24 image: "org.tizen.setting.png" COMP;
29 #define PART_SHOW_REPEAT_ICON(title, offset_value, ref) \
35 state: "default" 0.0; \
36 aspect_preference: BOTH; \
37 rel1 { relative: 1.0 0.0; offset: offset_value 0; to: ref;} \
38 rel2 { relative: 1.0 1.0; offset: (offset_value+100) 0; to: ref;} \
39 image { normal: "org.tizen.setting.png" ;} \
43 inherit: "default" 0.0; \
44 image { normal: "org.tizen.setting.png" ;} \
47 state: "landscape" 0.0; \
48 inherit: "default" 0.0; \
49 rel1 { relative: 1.0 0.0; offset: offset_value 0; to: ref;} \
50 rel2 { relative: 1.0 1.0; offset: (offset_value+180) 0; to: ref;} \
51 image { normal: "org.tizen.setting.png" ;} \
54 state: "landscape_on" 0.0; \
55 inherit: "landscape" 0.0; \
56 image { normal: "org.tizen.setting.png" ;} \
59 part { name: title".onoff.bg"; \
63 state: "default" 0.0; \
66 rel1 { relative: 0.0 0.0; offset: 0 76; to: title; } \
67 rel2 { relative: 1.0 0.0; offset: 0 96; to: title; } \
68 image { normal : "org.tizen.setting.png"; } \
72 part { name: title".onoff.icon"; \
76 state: "default" 0.0; \
79 rel1.to: title".onoff.bg"; \
80 rel2.to: title".onoff.bg"; \
81 image { normal: "org.tizen.setting.png"; } \
86 inherit: "default" 0.0; \
87 image{ normal: "org.tizen.setting.png"; } \
90 state: "landscape" 0.0; \
91 inherit: "default" 0.0; \
92 image { normal: "org.tizen.setting.png"; } \
95 state: "landscape_on" 0.0; \
96 inherit: "landscape" 0.0; \
97 image{ normal: "org.tizen.setting.png"; } \
101 #define PART_SHOW_REPEAT_TEXT(title, reference) \
108 state: "default" 0.0; \
110 rel1 { relative: 0.0 0.0; offset: 0 20; to: reference; } \
111 rel2 { relative: 1.0 0.0; offset: 0 70; to: reference; } \
114 font: "Tizen:style=Bold"; \
115 text_class: "tizen"; \
122 inherit: "default" 0.0; \
123 color: 135 226 45 255; \
126 state: "landscape" 0.0; \
127 inherit: "default" 0.0; \
130 state: "landscape_on" 0.0; \
131 inherit: "landscape" 0.0; \
132 color: 135 226 45 255; \
136 inherit: "default" 0.0; \
137 color: 85 19 19 255; \
140 #define PROGRAM_SHOW_CTRL(title) \
144 signal: "on,"title; \
146 action: STATE_SET "on" 0.0; \
148 target: "text."title; \
149 target: title".onoff.icon"; \
154 signal: "off,"title; \
156 action: STATE_SET "default" 0.0; \
158 target: "text."title; \
159 target: title".onoff.icon"; \
164 signal: "sun,"title; \
166 action: STATE_SET "sun" 0.0; \
167 target: "text."title; \
171 name: title"/landscape_off"; \
172 signal: "landscape_off,"title; \
174 action: STATE_SET "landscape" 0.0; \
176 target: "text."title; \
177 target: title".onoff.icon"; \
181 name: title"/landscape_on"; \
182 signal: "landscape_on,"title; \
184 action: STATE_SET "landscape_on" 0.0; \
186 target: "text."title; \
187 target: title".onoff.icon"; \
191 name: title"/clicked"; \
192 signal: "mouse,clicked,1"; \
194 action: SIGNAL_EMIT "mouse,clicked" title; \
197 group { name: "repeat_set";
199 GENLIST_PART_BASE( 115 )
200 //GENLIST_PART_PADDING_TOP( 115 )
201 part { name: "elm.padding.left";
205 state: "default" 0.0;
210 rel2.relative: 0.0 1.0;
214 PART_SHOW_REPEAT_ICON("1", 4, "elm.padding.left")
215 PART_SHOW_REPEAT_TEXT("text.1", "1")
216 PART_SHOW_REPEAT_ICON("2", 2, "1")
217 PART_SHOW_REPEAT_TEXT("text.2", "2")
218 PART_SHOW_REPEAT_ICON("3", 2, "2")
219 PART_SHOW_REPEAT_TEXT("text.3", "3")
220 PART_SHOW_REPEAT_ICON("4", 2, "3")
221 PART_SHOW_REPEAT_TEXT("text.4", "4")
222 PART_SHOW_REPEAT_ICON("5", 2, "4")
223 PART_SHOW_REPEAT_TEXT("text.5", "5")
226 PROGRAM_SHOW_CTRL(1);
227 PROGRAM_SHOW_CTRL(2);
228 PROGRAM_SHOW_CTRL(3);
229 PROGRAM_SHOW_CTRL(4);
230 PROGRAM_SHOW_CTRL(5);