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 #define BEAT_GENLIST_PART_BASE( param_item_height ) \
27 part { name: "base"; \
31 description { state: "default" 0.0; \
32 min: 0 param_item_height; \
33 color: GENLIST_PART_BG_COLOR_INC; \
37 #define BEAT_GENLIST_PART_BG \
42 description { state: "default" 0.0; \
43 color: GENLIST_PART_BG_COLOR_INC; \
45 description { state: "hide" 0.0; \
46 inherit: "default" 0.0; \
47 rel1 { relative: 0.025 0.0; } \
48 rel2 { relative: 1.025 1.0; } \
50 description { state: "hide" 0.1; \
51 inherit: "default" 0.0; \
52 rel1 { relative: 0.13 0.0; } \
53 rel2 { relative: 1.13 1.0; } \
55 description { state: "hide" 0.2; \
56 inherit: "default" 0.0; \
57 rel1 { relative: 0.5 0.0; } \
58 rel2 { relative: 1.5 1.0; } \
60 description { state: "hide" 0.3; \
61 inherit: "default" 0.0; \
62 rel1 { relative: 1.0 0.0; } \
63 rel2 { relative: 2.0 1.0; } \
67 #define BEAT_GENLIST_PART_BG_IMAGE \
68 part { name: "bg_image"; \
72 description { state: "default" 0.0; \
74 color: GENLIST_PART_BG_SELECTED_COLOR_INC; \
76 description { state: "selected" 0.0; \
77 inherit: "default" 0.0; \
82 #define BEAT_GENLIST_PART_BOTTOM_LINE \
83 part { name: "bottom_line"; \
87 description { state: "default" 0.0; \
91 color: GENLIST_PART_BOTTOM_LINE_INC; \
99 #define BEAT_GENLIST_PART_BOTTOM_EFFECT_LINE \
100 part { name: "bottom_line"; \
102 clip_to: "disclip"; \
104 description { state: "default" 0.0; \
108 color: GENLIST_PART_BOTTOM_LINE_INC; \
114 BEAT_GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
115 BEAT_GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
118 #define BEAT_GENLIST_PART_PADDING_TOP( param_padding_size ) \
119 part { name: "elm.padding.top"; \
123 state: "default" 0.0; \
124 min: 0 param_padding_size; \
127 rel2.relative: 1.0 0.0; \
132 #define BEAT_GENLIST_PART_PADDING_TEXT_TOP( param_padding_size ) \
133 part { name: "elm.padding.text.top"; \
137 state: "default" 0.0; \
138 min: 0 param_padding_size; \
141 rel2.relative: 1.0 0.0; \
146 #define BEAT_GENLIST_PART_PADDING_BOTTOM( param_padding_size ) \
147 part { name: "elm.padding.bottom"; \
150 description { state: "default" 0.0; \
151 min: 0 param_padding_size; \
154 rel1.relative: 0.0 1.0; \
159 #define BEAT_GENLIST_PART_PADDING_LEFT( param_padding_size ) \
160 part { name: "elm.padding.left"; \
163 description { state: "default" 0.0; \
164 min: param_padding_size 0; \
167 rel2.relative: 0.0 1.0; \
172 #define BEAT_GENLIST_PART_PADDING_RIGHT( param_padding_size ) \
173 part { name: "elm.padding.right"; \
176 description { state: "default" 0.0; \
177 min: param_padding_size 0; \
180 rel1.relative: 1.0 0.0; \
185 #define BEAT_GENLIST_PART_DIALOGUE_BASE( param_item_height ) \
186 part { name: "base"; \
190 description { state: "default" 0.0; \
191 min: 0 param_item_height; \
192 color: 242 238 233 255; \
196 #define BEAT_GENLIST_PART_DIALOGUE_PADDING_RIGHT( param_padding_size ) \
197 part { name: "elm.padding.right"; \
200 description { state: "default" 0.0; \
201 min: param_padding_size 0; \
204 rel1.relative: 1.0 0.0; \
207 description { state: "editing" 0.0; \
208 inherit: "default" 0.0; \
211 color: 242 238 233 255; \
215 #define BEAT_GENLIST_PART_DIALOGUE_ITEM \
216 part { name: "elm.rect.dialogue"; \
219 description { state: "default" 0.0; \
222 color: 199 199 199 255; \
223 rel2.relative: 0.0 1.0; \
228 #define BEAT_GENLIST_PART_SWALLOW_END( param_padding_size ) \
229 part { name: "elm.padding.left.swallow.end";\
230 clip_to: "disclip"; \
233 description { state: "default" 0.0;\
234 min: param_padding_size 0;\
237 rel1.to_x: "elm.swallow.end";\
240 to_x: "elm.swallow.end";\
245 part { name: "elm.swallow.end";\
246 clip_to: "disclip"; \
249 description { state: "default" 0.0;\
252 rel1.to_x: "elm.padding.right";\
255 to_x: "elm.padding.right";\
260 #define BEAT_GENLIST_PART_DISCLIP \
261 part { name: "disclip"; \
263 description { state: "default" 0.0; \
265 description { state: "disabled" 0.0; \
266 inherit: "default" 0.0; \
267 color: 255 255 255 64; \
271 #define BEAT_GENLIST_PART_LIST_PICKER_BASE( param_item_height ) \
272 part { name: "base"; \
276 description { state: "default" 0.0; \
277 min: 0 param_item_height; \
278 color: 71 61 53 255; \
282 #define BEAT_GENLIST_PART_LIST_PICKER_BOTTOM_LINE \
283 part { name: "bottom_line"; \
285 clip_to: "disclip"; \
287 description { state: "default" 0.0; \
291 color: 104 97 92 255; \
299 #define GENLIST_EXPANDABLE_PART_PERSPECTIVE_POINT() \
300 part { name: "point"; \
304 state: "default" 0.0; \
306 rel1 { relative: 0.0 0.0; } \
307 rel2 { relative: 1.0 0.0; } \
311 #define BEAT_GENLIST_PART_MAP_START( param_x, param_y, param_z ) \
312 description { state: "map_transition" 0.0; \
313 inherit: "default" 0.0; \
315 perspective: "point"; \
330 inherit: "default" 0.0; \
334 #define BEAT_GENLIST_PART_MAP_FINISH( param_x, param_y, param_z ) \
336 state: "map_rotate" 0.0; \
337 inherit: "default" 0.0; \
339 perspective: "point"; \
353 #define BEAT_GENLIST_PART_MAP_BASE( param_item_height ) \
354 part { name: "base"; \
358 description { state: "default" 0.0; \
359 min: 0 param_item_height; \
360 color: GENLIST_PART_BG_COLOR_INC; \
362 BEAT_GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
363 BEAT_GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
366 #define GENLIST_EXPANDABLE_PART_BASE( GE_HEIGHT , GE_COLOR ) \
367 part { name: "base"; \
371 description { state: "default" 0.0; \
375 description { state: "selected" 0.0; \
376 inherit: "default" 0.0; \
377 color: GENLIST_PART_BG_SELECTED_COLOR_INC; \
379 BEAT_GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
380 BEAT_GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
383 #define BEAT_GENLIST_PROGRAM_MAP_ROTATE_START() \
384 name: "rotaion_transition"; \
385 signal: "flip_item"; \
386 action: STATE_SET "map_transition" 0.0; \
389 #define BEAT_GENLIST_PROGRAM_MAP_ROTATE_FINISH( second ) \
391 action: STATE_SET "map_rotate" 0.0; \
392 transition: LINEAR second; \
393 after: "rotation_end";
395 #define BEAT_GENLIST_PROGRAM_MAP_END() \
396 name: "rotation_end"; \
397 action: STATE_SET "default" 0.0;
399 #define BEAT_GENLIST_PROGRAM_MAP_ROTATE_START2() \
400 name: "rotaion_transition2"; \
401 signal: "elm,state,contract_flip"; \
402 action: STATE_SET "map_rotate" 0.0; \
405 #define BEAT_GENLIST_PROGRAM_MAP_ROTATE_FINISH2( second ) \
407 action: STATE_SET "map_transition" 0.0; \
408 transition: LINEAR second; \
411 #define BEAT_GENLIST_PROGRAM_MAP_END2() \
413 action: STATE_SET "hide" 0.0;
415 #define BEAT_GENLIST_PART_EXPANDABLE2_NOSHADOW_BASE( param_item_height ) \
416 part { name: "base"; \
420 description { state: "default" 0.0; \
421 min: 0 param_item_height; \
422 color: GENLIST_EXPANDABLE2_NOSHADOW_BG_COLOR_INC; \
424 BEAT_GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
425 BEAT_GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
428 #define BEAT_GENLIST_PART_EXPANDABLE_SWALLOW_PADDING \
429 part { name: "elm.swallow.pad"; \
431 description { state: "default" 0.0; \
436 to_x: "elm.padding.left"; \
438 rel2.to_x: "elm.padding.left"; \
440 BEAT_GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
441 BEAT_GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
444 #define BEAT_GENLIST_PART_PADDING_LEFT_SLIDE( param_padding_size ) \
445 part { name: "elm.padding.left"; \
449 state: "default" 0.0; \
450 min: param_padding_size 0; \
453 rel1 { relative: 0.0 0.0; to: "bg"; } \
454 rel2 { relative: 0.0 1.0; to: "bg"; } \
460 #define BEAT_GENLIST_PART_BUTTON( param_name, param_text_name, param_text, param_left, param_right, param_top, param_bottom ) \
461 part { name: param_name; \
463 description { state: "default" 0.0; \
465 rel1 { relative: param_left param_top; offset: 0 0; } \
466 rel2 { relative: param_right param_bottom; offset: -1 -1; } \
468 normal: "btn_normal.png"; \
469 border: 10 10 10 10; \
472 image.middle: SOLID; \
475 description { state: "selected" 0.0; \
476 inherit: "default" 0.0; \
478 normal: "btn_selected.png"; \
482 part { name: param_text_name; \
488 state: "default" 0.0; \
490 rel1 { relative: 0.0 0.0; to: param_name; } \
491 rel2 { relative: 1.0 1.0; to: param_name; } \
494 font: "SLP:style=Roman"; \
503 #define BEAT_GENLIST_PROGRAM_BUTTON( param_name_focused, param_name_normal, param_part_name ) \
504 program { name: param_name_focused; \
505 source: param_part_name; \
506 signal: "mouse,down,1"; \
507 action: STATE_SET "selected" 0.0; \
508 target: param_part_name; \
510 program { name: param_name_normal; \
511 source: param_part_name; \
512 signal: "mouse,up,1"; \
513 action: STATE_SET "default" 0.0; \
514 target: param_part_name; \
517 #define BEAT_GENLIST_PROGRAM_SLIDE_WITH_AFTER( param_name, param_state, param_next ) \
518 program { name: param_name; \
519 action: STATE_SET "hide" param_state; \
521 transition: LINEAR 0.3; \
525 #define BEAT_GENLIST_PROGRAM_SLIDE( param_name, param_state_name, param_state_value ) \
526 program { name: param_name; \
527 action: STATE_SET param_state_name param_state_value; \
529 transition: LINEAR 0.3; \
532 #define DESC_FLIP_IMAGE( param_state_value, param_image_file_name ) \
533 description { state: "flipping" param_state_value; \
534 inherit: "default" 0.0; \
535 image { normal: param_image_file_name; } \
538 #define DESC_TEXT_HIDE( param_state_value ) \
539 description { state: "hide" param_state_value; \
540 inherit: "default" 0.0; \
541 color: 0 0 0 (255*(1-param_state_value/0.20)); \
544 #define BEAT_GENLIST_EDIT_PART_BASE( param_item_height ) \
545 part { name: "base"; \
549 description { state: "default" 0.0; \
550 min: 0 param_item_height; \
555 #define BEAT_GENLIST_PROGRAM_RENAME \
556 program { name: "rename_enabled"; \
557 signal: "elm,state,rename,enabled"; \
559 action: STATE_SET "rename_enabled" 0.0; \
560 target: "elm.text"; \
561 target: "elm.edit.rename"; \
563 program { name: "rename_disabled"; \
564 signal: "elm,state,rename,disabled"; \
566 action: STATE_SET "default" 0.0; \
567 target: "elm.text"; \
568 target: "elm.edit.rename"; \