2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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.
18 #define NORMAL_BG_IMAGE "B09_voice_input_panel.png"
20 #define PROGRESSING_DELAY 0.03
21 #define PROGRESS_BG_DESC1( param_name, param_num ) \
24 state, "pulse" 0.#param_num; \
25 inherit, "default" 0.0; \
26 image.normal, "B09_"#param_name"_"#param_num".png"; \
29 #define LISTEN_BG_DESC( param_name, param_num ) \
32 state, "wave" 0.#param_num; \
33 inherit, "default" 0.0; \
34 image.normal, "B09_"#param_name"_"#param_num".png"; \
37 #define BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC 112 112
38 #define BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC 45 45
39 #define BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC 45 45
40 #define BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC 13 13
41 #define BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC 14 14
43 #define BUTTON_CIRCLE_STYLE_NORMAL_TOP_OFFSET_INC 0 2
44 #define BUTTON_CIRCLE_STYLE_NORMAL_BOTTOM_OFFSET_INC -1 1
45 #define BUTTON_CIRCLE_STYLE_PRESSED_TOP_OFFSET_INC 0 -2
46 #define BUTTON_CIRCLE_STYLE_PRESSED_BOTTOM_OFFSET_INC -1 -3
48 #define BUTTON_CIRCLE_STYLE_CLIPPER_DEFAULT_COLOR_INC 0 0 0 255
49 #define BUTTON_CIRCLE_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC 0 0 0 255
50 #define BUTTON_CIRCLE_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC 21 22 25 255
52 #define BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC 250 250 250 255
53 #define BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC 250 250 250 255
54 #define BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC 166 167 169 255
57 ///////////////////////////////////////////////////////////////////////////////////////
60 //============================================================================
61 //============================================================================
75 name, "button_image"; \
80 state, "default" 0.0; \
85 state, "clicked" 0.0; \
86 inherit, "default" 0.0; \
90 state, "disabled" 0.0; \
91 inherit, "default" 0.0; \
96 state, "focused" 0.0; \
97 inherit, "default" 0.0; \
108 ignore_flags, ON_HOLD; \
111 state, "default" 0.0; \
116 state, "disabled" 0.0; \
117 inherit, "default" 0.0; \
129 state, "default" 0.0; \
134 state, "clicked" 0.0; \
135 inherit, "default" 0.0; \
147 state, "default" 0.0; \
148 color, 255 255 255 0; \
153 state, "disabled" 0.0; \
154 inherit, "default" 0.0; \
163 signal, "elm,action,focus"; \
165 action, STATE_SET "focused" 0.0; \
166 target, "button_image"; \
171 signal, "elm,action,unfocus"; \
173 action, STATE_SET "default" 0.0; \
174 target, "button_image"; \
177 #define PROG_ENABLE \
181 signal: "elm,state,disabled"; \
183 action: STATE_SET "disabled" 0.0; \
184 target: "button_image"; \
186 target: "disabler"; \
191 signal: "elm,state,enabled"; \
193 action: STATE_SET "default" 0.0; \
194 target: "button_image"; \
196 target: "disabler"; \
202 name: "button_click"; \
203 signal: "mouse,down,1"; \
205 action: SIGNAL_EMIT "elm,action,press" ""; \
206 after: "button_click_anim"; \
210 name: "button_click_anim"; \
211 action: STATE_SET "clicked" 0.0; \
212 target: "button_image"; \
216 name: "button_unclick"; \
217 signal: "mouse,up,1"; \
219 action: SIGNAL_EMIT "elm,action,unpress" ""; \
220 after: "button_unclick_anim"; \
224 name: "button_unclick_anim"; \
225 action: STATE_SET "default" 0.0; \
226 target: "button_image"; \
230 name: "button_mouseout_clicked"; \
231 signal: "mouse,out"; \
237 get_state(PART:"button_image", st, 30, vl); \
238 if (!strcmp(st, "clicked")) \
240 set_state(PART:"button_image", "visible", 0.0); \
246 name: "button_click2"; \
247 signal: "mouse,down,1"; \
249 action: STATE_SET "clicked" 0.0; \
251 action: SIGNAL_EMIT "elm,action,click" ""; \
255 name: "button_unclick2"; \
256 signal: "mouse,up,1"; \
258 action: STATE_SET "default" 0.0; \
263 name: "button_unclick3"; \
264 signal: "mouse,up,1"; \
268 #define VIC_BUTTON() \
271 name, "elm/button/base/vic/micbutton"; \