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.
20 #include "ug-calendar-picker-efl_macro.edc"
27 image: "00_calend_picker_panel.png" COMP;
28 image: "00_picker_bg_brown.png" COMP;
32 part { name: "background";
38 rel1 { relative: 0.0 0.0; }
39 rel2 { relative: 1.0 1.0; }
54 rel1 { relative: 0.0 0.0; to: background; }
55 rel2 { relative: 1.0 0.0; to: background; }
56 image.normal: "00_calend_picker_panel.png";
60 PADDING("padding.top", 0, 8, 0, 1, 0.0, 0.0,
61 0.0, 0.0, 1.0, 1.0, panel, panel)
62 PADDING("padding.left", 5, 0, 1, 0, 0.0, 0.0,
63 0.0, 0.0, 1.0, 1.0, panel, panel)
64 PADDING("padding.right", 5, 0, 1, 0, 1.0, 0.0,
65 0.0, 0.0, 1.0, 1.0, panel, panel)
67 part { name: "btn_prev";
76 rel1 { relative: 1.0 1.0; to_x:padding.left; to_y: padding.top; }
77 rel2 { relative: 1.0 1.0; to_x: padding.left; to_y: padding.top; }
81 PADDING("padding.btn_prev.right", 5, 0, 1, 0, 0.0, 0.0,
82 1.0, 0.0, 1.0, 1.0, btn_prev, btn_prev)
84 part { name: "btn_next";
93 rel1 { relative: 1.0 1.0; to_x: padding.btn_prev.right; to_y: padding.top; }
94 rel2 { relative: 1.0 1.0; to_x: padding.btn_prev.right; to_y: padding.top; }
98 part { name: "btn_done";
102 state: "default" 0.0;
107 rel1 { relative: 0.0 1.0; to_x:padding.right; to_y: padding.top; }
108 rel2 { relative: 0.0 1.0; to_x: padding.right; to_y: padding.top; }
112 part { name: "separation_line";
116 state: "default" 0.0;
122 color: 104 97 92 255;
123 rel1 { relative: 0.0 1.0; to: panel; }
124 rel2 { relative: 1.0 1.0; to: panel; }
128 part { name: "list_bg";
132 state: "default" 0.0;
135 rel1 { relative: 0.0 1.0; to: separation_line; }
136 rel2 { relative: 1.0 1.0; to: background; }
137 image.normal: "00_picker_bg_brown.png";
141 part { name: "list_options";
145 state: "default" 0.0;
147 rel1 { relative: 0.0 0.0; to: list_bg; }
148 rel2 { relative: 1.0 1.0; to: list_bg; }
154 #define CAL_BTN_W 170
155 #define CAL_BTN_H 100
156 #define CAL_PADDING_H 20
157 #define CAL_SHOW_H 335
158 #define PICKER_SHOW_H 400
159 #define CAL_BTN_BASE_H 66
160 #define CAL_BTN_BASE_NBEAT_H 54
163 name: "calendar_picker";
165 image: "00_picker_arrow_left.png" COMP;
166 image: "00_picker_arrow_left_press.png" COMP;
167 image: "00_picker_arrow_right.png" COMP;
168 image: "00_picker_arrow_right_press.png" COMP;
169 image: "00_calend_picker_bar_button.png" COMP;
170 image: "00_calend_picker_bar_button_press.png" COMP;
171 image: "00_picker_btn_normal.png" COMP;
172 image: "00_picker_btn_press.png" COMP;
178 description { state: "default" 0.0;
179 rel1 { relative: 0 0; }
180 rel2 { relative: 1 1; }
185 part { name: "picker_base";
188 description { state: "default" 0.0;
190 min: 0 PICKER_SHOW_H;
192 rel1 { relative: 0.0 1.1; to: "base"; }
193 rel2 { relative: 1.0 1.0; to: "base"; }
199 inherit: "default" 0.0;
200 rel1 { relative: 0.0 350/800; to: "base"; }
201 rel2 { relative: 1.0 1.0; to: "base"; }
206 part { name: "swallow.calendar";
209 description { state: "default" 0.0;
213 // rel1 { relative: 0.0 1.0; to: "button_base"; }
214 rel1 { relative: 0.0 1.0; to: "picker_base"; }
215 rel2 { relative: 1.0 1.0; to: "picker_base"; }
220 inherit: "default" 0.0;
224 part { name: "button_base";
228 description { state: "default" 0.0;
230 min: 24 CAL_BTN_BASE_NBEAT_H;
231 max: 800 CAL_BTN_BASE_NBEAT_H;
233 // rel2 { relative: 1.0 54/400; to: "picker_base"; }
234 // rel2 { relative: 1.0 0.0; to: "picker_base"; }
235 rel1 { relative: 0.0 0.0; to: "swallow.calendar"; }
236 rel2 { relative: 1.0 0.0; to: "swallow.calendar"; }
237 color: 176 176 176 255;
241 description { state: "show" 0.0;
242 inherit: "default" 0.0;
246 part { name: "btn_prev";
249 description { state: "default" 0.0;
254 rel1.to: "button_base";
256 rel2.to: "button_base";
258 normal: "00_picker_btn_normal.png";
264 description { state: "show" 0.0;
265 inherit: "default" 0.0;
268 description { state: "clicked" 0.0;
269 inherit: "default" 0.0;
272 normal: "00_picker_btn_press.png";
278 part { name: "btn_prev_icon";
281 description { state: "default" 0.0;
290 normal: "00_picker_arrow_left.png";
296 description { state: "show" 0.0;
297 inherit: "default" 0.0;
300 description { state: "clicked" 0.0;
302 image.normal: "00_picker_arrow_left_press.png";
305 part { name: "btn_next";
308 description { state: "default" 0.0;
319 normal: "00_picker_btn_normal.png";
325 description { state: "show" 0.0;
326 inherit: "default" 0.0;
329 description { state: "clicked" 0.0;
330 inherit: "default" 0.0;
333 normal: "00_picker_btn_press.png";
339 part { name: "btn_next_icon";
342 description { state: "default" 0.0;
351 normal: "00_picker_arrow_right.png";
357 description { state: "show" 0.0;
358 inherit: "default" 0.0;
361 description { state: "clicked" 0.0;
363 image.normal: "00_picker_arrow_right_press.png";
366 part { name: "btn_done";
369 description { state: "default" 0.0;
374 rel1.to: "button_base";
375 rel2.to: "button_base";
379 normal: "00_picker_btn_normal.png";
384 description { state: "show" 0.0;
385 inherit: "default" 0.0;
388 description { state: "clicked" 0.0;
389 inherit: "default" 0.0;
392 normal: "00_picker_btn_press.png";
398 part { name: "btn_done_text";
402 description { state: "default" 0.0;
409 font: "SLP:style=Medium";
415 description { state: "show" 0.0;
416 inherit: "default" 0.0;
423 name: "calendar.show.effect";
424 signal: "calendar.show";
426 action: STATE_SET "show" 0.0;
427 target: "button_base";
429 target: "btn_prev_icon";
431 target: "btn_next_icon";
433 target: "btn_done_text";
434 target: "swallow.calendar";
435 after : "calendar.show.transition";
438 name: "calendar.hide.effect";
439 action: STATE_SET "default" 0.0;
440 target: "swallow.calendar";
441 target: "button_base";
443 target: "btn_prev_icon";
445 target: "btn_next_icon";
447 target: "btn_done_text";
450 name: "calendar.show.transition";
451 action: STATE_SET "show" 0.0;
452 target: "picker_base";
453 // transition: SINUSOIDAL 0.5;
454 transition: DECELERATE 0.5;
457 name: "calendar.hide.transition";
458 signal: "calendar.hide";
460 action: STATE_SET "default" 0.0;
461 target: "picker_base";
462 transition: SINUSOIDAL 0.6;
463 after : "calendar.hide.effect";
466 name: "prev_bt_click";
467 signal: "mouse,down,1";
469 action: STATE_SET "clicked" 0.0;
473 name: "prev_bt_unclick";
474 signal: "mouse,up,1";
476 action: STATE_SET "show" 0.0;
480 name: "next_bt_click";
481 signal: "mouse,down,1";
483 action: STATE_SET "clicked" 0.0;
487 name: "next_bt_unclick";
488 signal: "mouse,up,1";
490 action: STATE_SET "show" 0.0;
494 name: "done_bt_click";
495 signal: "mouse,down,1";
497 action: STATE_SET "clicked" 0.0;
501 name: "done_bt_unclick";
502 signal: "mouse,up,1";
504 action: STATE_SET "show" 0.0;