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.
17 #define PADDING_TOP_POR 60
18 #define PADDING_BOTTOM_POR 50
19 #define PADDING_LEFT_POR 24
20 #define PADDING_RIGHT_POR 24
39 rel1 { relative: 0.0 0.0;}
40 rel2 { relative: 1.0 50/1280;}
45 rel1 { relative: 0.0 0.0;}
46 rel2 { relative: 0.0 0.0;}
56 rel1 { relative: 0.0 50/1280;}
57 rel2 { relative: 1.0 (1.0+1.0/1280);}
61 //EDC_PART_IMAGE("bg_img", "bg", EDC_IMAGE("images/59_calculator_bg.png")) /* DON'T REMOVE */
62 EDC_PART_IMAGE("bg_img", "bg", EDC_IMAGE("images/P04_calculator_bg.png"))
64 EDC_PART_PADDING_BR("entry_img_pad_br_por", EDC_SIZE(PADDING_RIGHT_POR, 0), "bg")
79 rel1 {relative: 24/720 110/1280;}
80 rel2 {relative: (720-24)/720 (50+60+252)/1280;}
82 normal: "images/P04_calculator_input_bg.png";
89 EDC_PART_PADDING_TL("entry_swl_pad_tl_por", EDC_SIZE(32, 38), "entry/rect")
90 EDC_PART_PADDING_BR("entry_swl_pad_br_por", EDC_SIZE(32, 46), "entry/rect")
99 rel1 {relative: 1.0 1.0; to: "entry_swl_pad_tl_por";}
100 rel2 {relative: 0.0 0.0; to: "entry_swl_pad_br_por";}
106 name: "history_rect_padding_br";
110 state: "default" 0.0;
111 rel1 {relative: 24/720 (1280-61)/1280;}
112 rel2 {relative: (720-24)/720 1.0;}
117 name: "history/rect";
121 state: "default" 0.0;
123 rel1 { relative: 0.0 0.0; to: "entry/rect";}
127 to_y: "history_rect_padding_br";
130 normal: "images/P04_calculator_input_bg.png";
137 inherit: "default" 0.0;
140 normal: "images/P04_calculator_input_bg_02.png";
147 EDC_PART_RECT_PADDING("history/rect2", "history/rect",
148 EDC_COOR(32, 32), EDC_COOR(32, 42))
149 EDC_PART_SWALLOW_HIDE_SHOW("history/scroll", "history/rect2")
152 EDC_PART_SWALLOW_SHOW_HIDE("por_pannel/rect", "bg")
153 EDC_PART_SWALLOW_SHOW_HIDE("lan_pannel/rect", "bg")
156 name: "history/clear/image";
160 state: "default" 0.0;
163 rel1 { relative: 0.0 0.0; to: "history/rect"; offset: 32 38;}
164 rel2 { relative: 0.0 0.0; to: "history/rect"; offset: 96 102;}
166 normal: "images/P04_calculator_button_clear_dim.png";
167 // border: 24 24 79 24;
173 inherit: "default" 0.0;
176 normal: "images/P04_calculator_button_clear_dim.png";
183 inherit: "default" 0.0;
186 normal: "images/P04_calculator_button_clear_press.png";
199 set_int(result_show, 0);
204 name: "show_history";
208 set_state(PART:"history/scroll", "show", 0.0);
209 set_state(PART:"history/rect", "show", 0.0);
210 set_state(PART:"history/clear/image", "up", 0.0);
215 name: "hide_history";
219 set_state(PART:"history/scroll", "default", 0.0);
220 set_state(PART:"history/rect", "default", 0.0);
221 set_state(PART:"history/clear/image", "default", 0.0);
230 set_state(PART:"entry/rect", "default", 0.0);
231 set_state(PART:"input/entry", "default", 0.0);
232 set_state(PART:"lan_pannel/rect", "hide", 0.0);
233 set_state(PART:"por_pannel/rect", "default", 0.0);
234 set_state(PART:"bg_img", "default", 0.0);
235 set_state(PART:"bg", "default", 0.0);
236 set_state(PART:"head", "default", 0.0);
242 signal: "mouse,clicked,1";
243 source: "history/clear/image";
244 action: SIGNAL_EMIT "clicked" "";
247 name: "clear_click1";
248 signal: "mouse,down,1";
249 source: "history/clear/image";
250 action: STATE_SET "press" 0.0;
251 target: "history/clear/image";
254 name: "clear_click2";
255 signal: "mouse,up,1";
256 source: "history/clear/image";
257 action: STATE_SET "up" 0.0;
258 target: "history/clear/image";