4 * Copyright (c) 2000 - 2010 Samsung Electronics Co., Ltd.
6 * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>,
7 * Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>,
8 * Hyunsil Park <hyunsil.park@samsung.com>, Sohyun Kim <anna1014.kim@samsung.com>, Seunggyun Kim <sgyun.kim@samsung.com>
10 * This library is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU Lesser General Public License as published by the
12 * Free Software Foundation; either version 2.1 of the License, or (at your option)
15 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
16 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 * License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this library; if not, write to the Free Software Foundation, Inc., 51
22 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 /*************************************************/
27 /* elm_layout -> integrated style */
28 /*************************************************/
29 group { name: "elm/standard/window/integration";
31 /* for event blocking */
32 part { name: "base_event";
35 description { state: "default" 0.0;
39 description { state: "block_events" 0.0;
40 inherit: "default" 0.0;
42 description { state: "repeat_events" 0.0;
43 inherit: "default" 0.0;
51 description { state: "default" 0.0;
52 color: LAYOUT_BG_COLOR_INC;
54 description { state: "white_bg" 0.0;
55 color: 255 255 255 255;
57 description { state: "black_bg" 0.0;
60 description { state: "beige_bg" 0.0;
61 color: 246 245 237 255;
63 description { state: "group_list_bg" 0.0;
64 color: LAYOUT_GROUP_LIST_BG_COLOR_INC;
66 description { state: "transparent_bg" 0.0;
69 description { state: "edit_mode" 0.0;
70 color: LAYOUT_EDIT_MODE_BG_COLOR_INC;
73 part { name: "indicator_bg";
77 description { state: "default" 0.0;
79 rel1.to: "elm.swallow.indicator";
80 rel2.to: "elm.swallow.indicator";
83 description { state: "show" 0.0;
84 inherit: "default" 0.0;
88 part { name: "elm.swallow.indicator";
91 description { state: "default" 0.0;
95 rel1 { relative: 0.0 0.0; }
96 rel2 { relative: 1.0 0.0; }
99 description { state: "show" 0.0;
100 inherit: "default" 0.0;
104 part { name: "elm.swallow.content";
107 state: "default" 0.0;
109 rel1 { relative: 0.0 0.0; }
110 rel2 { relative: 1.0 1.0; }
112 description { state: "show" 0.0;
113 inherit: "default" 0.0;
116 description { state: "show_with_indicator" 0.0;
117 inherit: "default" 0.0;
119 rel1 { relative: 0.0 1.0; to_y: "elm.swallow.indicator"; }
121 description { state: "show_with_navi_bar" 0.0;
122 inherit: "default" 0.0;
124 rel1 { relative: 0.0 1.0; to_y: "elm.swallow.navi_bar"; }
126 description { state: "show" 1.0;
127 inherit: "default" 0.0;
129 rel2 { relative: 1.0 0.0; to_y: "elm.swallow.controlbar"; }
131 description { state: "show_with_indicator" 1.0;
132 inherit: "default" 0.0;
134 rel1 { relative: 0.0 1.0; to_y: "elm.swallow.indicator"; }
135 rel2 { relative: 1.0 0.0; to_y: "elm.swallow.controlbar"; }
137 description { state: "show_with_navi_bar" 1.0;
138 inherit: "default" 0.0;
140 rel1 { relative: 0.0 1.0; to_y: "elm.swallow.navi_bar"; }
141 rel2 { relative: 1.0 0.0; to_y: "elm.swallow.controlbar"; }
144 part { name: "elm.swallow.navi_bar";
148 state: "default" 0.0;
152 rel1 { relative: 0.0 0.0; }
153 rel2 { relative: 1.0 0.0; }
156 description { state: "show" 0.0;
157 inherit: "default" 0.0;
160 description { state: "show_with_indicator" 0.0;
161 inherit: "default" 0.0;
163 rel1 { relative: 0.0 1.0; to_y: "elm.swallow.indicator"; }
164 rel2 { relative: 1.0 1.0; to_y: "elm.swallow.indicator"; }
167 part { name: "elm.swallow.controlbar";
170 description { state: "default" 0.0;
174 rel1 { relative: 0.0 1.0; }
175 rel2 { relative: 1.0 1.0; }
178 description { state: "show" 0.0;
179 inherit: "default" 0.0;
185 program { name: "block_events";
186 signal: "elm,base_event,block_events";
188 action: STATE_SET "block_events" 0.0;
189 target: "base_event";
191 program { name: "repeat_events";
192 signal: "elm,base_event,repeat_events";
194 action: STATE_SET "repeat_events" 0.0;
195 target: "base_event";
197 program { name: "show_default_bg";
198 signal: "elm,bg,show,default";
201 set_state(PART:"base", "default", 0.0);
204 program { name: "show_black_bg";
205 signal: "elm,bg,show,black";
208 set_state(PART:"base", "black_bg", 0.0);
211 program { name: "show_white_bg";
212 signal: "elm,bg,show,white";
215 set_state(PART:"base", "white_bg", 0.0);
218 program { name: "show_beige_bg";
219 signal: "elm,bg,show,beige";
222 set_state(PART:"base", "beige_bg", 0.0);
225 program { name: "show_group_list_bg";
226 signal: "elm,bg,show,group_list";
229 set_state(PART:"base", "group_list_bg", 0.0);
232 program { name: "show_transparent_bg";
233 signal: "elm,bg,show,transparent";
236 set_state(PART:"base", "transparent_bg", 0.0);
239 program { name: "show_edit_mode_bg";
240 signal: "elm,bg,show,edit_mode";
243 set_state(PART:"base", "edit_mode", 0.0);
246 program { name: "show_indicator";
247 signal: "elm,state,show,indicator";
250 set_state(PART:"elm.swallow.indicator", "show", 0.0);
251 set_state(PART:"indicator_bg", "show", 0.0);
252 run_program(PROGRAM:"check_location");
255 program { name: "hide_indicator";
256 signal: "elm,state,hide,indicator";
259 set_state(PART:"elm.swallow.indicator", "default", 0.0);
260 set_state(PART:"indicator_bg", "default", 0.0);
261 run_program(PROGRAM:"check_location");
264 program { name: "show_navi_bar";
265 signal: "elm,state,show,navi_bar";
268 set_state(PART:"elm.swallow.navi_bar", "show", 0.0);
269 run_program(PROGRAM:"check_location");
272 program { name: "hide_navi_bar";
273 signal: "elm,state,hide,navi_bar";
276 set_state(PART:"elm.swallow.navi_bar", "default", 0.0);
277 run_program(PROGRAM:"check_location");
280 program { name: "show_content";
281 signal: "elm,state,show,content";
284 set_state(PART:"elm.swallow.content", "show", 0.0);
285 run_program(PROGRAM:"check_location");
288 program { name: "hide_content";
289 signal: "elm,state,hide,content";
292 set_state(PART:"elm.swallow.content", "hide", 0.0);
293 run_program(PROGRAM:"check_location");
296 program { name: "show_controlbar";
297 signal: "elm,state,show,controlbar";
300 set_state(PART:"elm.swallow.controlbar", "show", 0.0);
301 run_program(PROGRAM:"check_location");
304 program { name: "hide_controlbar";
305 signal: "elm,state,hide,controlbar";
308 set_state(PART:"elm.swallow.controlbar", "default", 0.0);
309 run_program(PROGRAM:"check_location");
312 program { name: "check_location";
316 new indicator = 0, navi_bar = 0, content = 0, controlbar = 0;
318 get_state(PART:"elm.swallow.indicator", st, 30, vl)
319 if (!strncmp(st, "show", 4)) indicator = 1;
320 get_state(PART:"elm.swallow.navi_bar", st, 30, vl)
321 if (!strncmp(st, "show", 4)) navi_bar = 1;
322 get_state(PART:"elm.swallow.content", st, 30, vl)
323 if (!strncmp(st, "show", 4)) content = 1;
324 get_state(PART:"elm.swallow.controlbar", st, 30, vl)
325 if (!strncmp(st, "show", 4)) controlbar = 1;
329 if (indicator == 1) {
330 set_state(PART:"elm.swallow.navi_bar", "show_with_indicator", 0.0)
332 set_state(PART:"elm.swallow.navi_bar", "show", 0.0)
339 set_state(PART:"elm.swallow.content", "show_with_navi_bar", 0.0)
340 } else if (indicator == 1) {
341 set_state(PART:"elm.swallow.content", "show_with_indicator", 0.0)
343 set_state(PART:"elm.swallow.content", "show", 0.0)
345 get_state(PART:"elm.swallow.content", st, 30, vl)
347 if (controlbar == 1) {
348 set_state(PART:"elm.swallow.content", st, 1.0)
356 /*************************************************/
357 /* elm_layout -> searchbar style */
358 /*************************************************/
359 group { name: "elm/layout/searchbar/default";
364 description { state: "default" 0.0;
369 part { name: "searchbar";
371 source: "elm/searchbar";
374 description { state: "default" 0.0;
384 //string: "label" "my test";
385 bool: "cancel_button_animation" "1";
388 description { state: "visible" 0.0;
389 inherit: "default" 0.0;
393 part { name: "elm.swallow.content";
397 description { state: "default" 0.0;
408 program { name: "show_searchbar";
409 signal: "elm,state,show,searchbar";
411 action: STATE_SET "visible" 0.0;
414 program { name: "show_searchbar_with_animation";
415 signal: "elm,state,show,searchbar,animation";
417 action: STATE_SET "visible" 0.0;
418 transition: DECELERATE 0.3;
421 program { name: "hide_searchbar";
422 signal: "elm,state,hide,searchbar";
424 action: STATE_SET "default" 0.0;
427 program { name: "hide_searchbar_with_animation";
428 signal: "elm,state,hide,searchbar,animation";
430 action: STATE_SET "default" 0.0;
431 transition: ACCELERATE 0.3;