4 #include "ug-calendar-picker-efl_macro.edc"
11 image: "00_calend_picker_panel.png" COMP;
12 image: "00_picker_bg_brown.png" COMP;
16 part { name: "background";
22 rel1 { relative: 0.0 0.0; }
23 rel2 { relative: 1.0 1.0; }
38 rel1 { relative: 0.0 0.0; to: background; }
39 rel2 { relative: 1.0 0.0; to: background; }
40 image.normal: "00_calend_picker_panel.png";
44 PADDING("padding.top", 0, 8, 0, 1, 0.0, 0.0,
45 0.0, 0.0, 1.0, 1.0, panel, panel)
46 PADDING("padding.left", 5, 0, 1, 0, 0.0, 0.0,
47 0.0, 0.0, 1.0, 1.0, panel, panel)
48 PADDING("padding.right", 5, 0, 1, 0, 1.0, 0.0,
49 0.0, 0.0, 1.0, 1.0, panel, panel)
51 part { name: "btn_prev";
60 rel1 { relative: 1.0 1.0; to_x:padding.left; to_y: padding.top; }
61 rel2 { relative: 1.0 1.0; to_x: padding.left; to_y: padding.top; }
65 PADDING("padding.btn_prev.right", 5, 0, 1, 0, 0.0, 0.0,
66 1.0, 0.0, 1.0, 1.0, btn_prev, btn_prev)
68 part { name: "btn_next";
77 rel1 { relative: 1.0 1.0; to_x: padding.btn_prev.right; to_y: padding.top; }
78 rel2 { relative: 1.0 1.0; to_x: padding.btn_prev.right; to_y: padding.top; }
82 part { name: "btn_done";
91 rel1 { relative: 0.0 1.0; to_x:padding.right; to_y: padding.top; }
92 rel2 { relative: 0.0 1.0; to_x: padding.right; to_y: padding.top; }
96 part { name: "separation_line";
100 state: "default" 0.0;
106 color: 104 97 92 255;
107 rel1 { relative: 0.0 1.0; to: panel; }
108 rel2 { relative: 1.0 1.0; to: panel; }
112 part { name: "list_bg";
116 state: "default" 0.0;
119 rel1 { relative: 0.0 1.0; to: separation_line; }
120 rel2 { relative: 1.0 1.0; to: background; }
121 image.normal: "00_picker_bg_brown.png";
125 part { name: "list_options";
129 state: "default" 0.0;
131 rel1 { relative: 0.0 0.0; to: list_bg; }
132 rel2 { relative: 1.0 1.0; to: list_bg; }
138 #define CAL_BTN_W 170
139 #define CAL_BTN_H 100
140 #define CAL_PADDING_H 20
141 #define CAL_SHOW_H 335
142 #define PICKER_SHOW_H 400
143 #define CAL_BTN_BASE_H 66
144 #define CAL_BTN_BASE_NBEAT_H 54
147 name: "calendar_picker";
149 image: "00_picker_arrow_left.png" COMP;
150 image: "00_picker_arrow_left_press.png" COMP;
151 image: "00_picker_arrow_right.png" COMP;
152 image: "00_picker_arrow_right_press.png" COMP;
153 image: "00_calend_picker_bar_button.png" COMP;
154 image: "00_calend_picker_bar_button_press.png" COMP;
155 image: "00_picker_btn_normal.png" COMP;
156 image: "00_picker_btn_press.png" COMP;
162 description { state: "default" 0.0;
163 rel1 { relative: 0 0; }
164 rel2 { relative: 1 1; }
169 part { name: "picker_base";
172 description { state: "default" 0.0;
174 min: 0 PICKER_SHOW_H;
176 rel1 { relative: 0.0 1.1; to: "base"; }
177 rel2 { relative: 1.0 1.0; to: "base"; }
183 inherit: "default" 0.0;
184 rel1 { relative: 0.0 350/800; to: "base"; }
185 rel2 { relative: 1.0 1.0; to: "base"; }
190 part { name: "swallow.calendar";
193 description { state: "default" 0.0;
197 // rel1 { relative: 0.0 1.0; to: "button_base"; }
198 rel1 { relative: 0.0 1.0; to: "picker_base"; }
199 rel2 { relative: 1.0 1.0; to: "picker_base"; }
204 inherit: "default" 0.0;
208 part { name: "button_base";
212 description { state: "default" 0.0;
214 min: 24 CAL_BTN_BASE_NBEAT_H;
215 max: 800 CAL_BTN_BASE_NBEAT_H;
217 // rel2 { relative: 1.0 54/400; to: "picker_base"; }
218 // rel2 { relative: 1.0 0.0; to: "picker_base"; }
219 rel1 { relative: 0.0 0.0; to: "swallow.calendar"; }
220 rel2 { relative: 1.0 0.0; to: "swallow.calendar"; }
221 color: 176 176 176 255;
225 description { state: "show" 0.0;
226 inherit: "default" 0.0;
230 part { name: "btn_prev";
233 description { state: "default" 0.0;
238 rel1.to: "button_base";
240 rel2.to: "button_base";
242 normal: "00_picker_btn_normal.png";
248 description { state: "show" 0.0;
249 inherit: "default" 0.0;
252 description { state: "clicked" 0.0;
253 inherit: "default" 0.0;
256 normal: "00_picker_btn_press.png";
262 part { name: "btn_prev_icon";
265 description { state: "default" 0.0;
274 normal: "00_picker_arrow_left.png";
280 description { state: "show" 0.0;
281 inherit: "default" 0.0;
284 description { state: "clicked" 0.0;
286 image.normal: "00_picker_arrow_left_press.png";
289 part { name: "btn_next";
292 description { state: "default" 0.0;
303 normal: "00_picker_btn_normal.png";
309 description { state: "show" 0.0;
310 inherit: "default" 0.0;
313 description { state: "clicked" 0.0;
314 inherit: "default" 0.0;
317 normal: "00_picker_btn_press.png";
323 part { name: "btn_next_icon";
326 description { state: "default" 0.0;
335 normal: "00_picker_arrow_right.png";
341 description { state: "show" 0.0;
342 inherit: "default" 0.0;
345 description { state: "clicked" 0.0;
347 image.normal: "00_picker_arrow_right_press.png";
350 part { name: "btn_done";
353 description { state: "default" 0.0;
358 rel1.to: "button_base";
359 rel2.to: "button_base";
363 normal: "00_picker_btn_normal.png";
368 description { state: "show" 0.0;
369 inherit: "default" 0.0;
372 description { state: "clicked" 0.0;
373 inherit: "default" 0.0;
376 normal: "00_picker_btn_press.png";
382 part { name: "btn_done_text";
386 description { state: "default" 0.0;
393 font: "SLP:style=Medium";
399 description { state: "show" 0.0;
400 inherit: "default" 0.0;
407 name: "calendar.show.effect";
408 signal: "calendar.show";
410 action: STATE_SET "show" 0.0;
411 target: "button_base";
413 target: "btn_prev_icon";
415 target: "btn_next_icon";
417 target: "btn_done_text";
418 target: "swallow.calendar";
419 after : "calendar.show.transition";
422 name: "calendar.hide.effect";
423 action: STATE_SET "default" 0.0;
424 target: "swallow.calendar";
425 target: "button_base";
427 target: "btn_prev_icon";
429 target: "btn_next_icon";
431 target: "btn_done_text";
434 name: "calendar.show.transition";
435 action: STATE_SET "show" 0.0;
436 target: "picker_base";
437 // transition: SINUSOIDAL 0.5;
438 transition: DECELERATE 0.5;
441 name: "calendar.hide.transition";
442 signal: "calendar.hide";
444 action: STATE_SET "default" 0.0;
445 target: "picker_base";
446 transition: SINUSOIDAL 0.6;
447 after : "calendar.hide.effect";
450 name: "prev_bt_click";
451 signal: "mouse,down,1";
453 action: STATE_SET "clicked" 0.0;
457 name: "prev_bt_unclick";
458 signal: "mouse,up,1";
460 action: STATE_SET "show" 0.0;
464 name: "next_bt_click";
465 signal: "mouse,down,1";
467 action: STATE_SET "clicked" 0.0;
471 name: "next_bt_unclick";
472 signal: "mouse,up,1";
474 action: STATE_SET "show" 0.0;
478 name: "done_bt_click";
479 signal: "mouse,down,1";
481 action: STATE_SET "clicked" 0.0;
485 name: "done_bt_unclick";
486 signal: "mouse,up,1";
488 action: STATE_SET "show" 0.0;