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; \
84 state, "clicked" 0.0; \
85 inherit, "default" 0.0; \
89 state, "disabled" 0.0; \
90 inherit, "default" 0.0; \
95 state, "focused" 0.0; \
96 inherit, "default" 0.0; \
107 ignore_flags, ON_HOLD; \
110 state, "default" 0.0; \
115 state, "disabled" 0.0; \
116 inherit, "default" 0.0; \
128 state, "default" 0.0; \
133 state, "clicked" 0.0; \
134 inherit, "default" 0.0; \
146 state, "default" 0.0; \
147 color, 255 255 255 0; \
152 state, "disabled" 0.0; \
153 inherit, "default" 0.0; \
162 signal, "elm,action,focus"; \
164 action, STATE_SET "focused" 0.0; \
165 target, "button_image"; \
170 signal, "elm,action,unfocus"; \
172 action, STATE_SET "default" 0.0; \
173 target, "button_image"; \
176 #define PROG_ENABLE \
180 signal: "elm,state,disabled"; \
182 action: STATE_SET "disabled" 0.0; \
183 target: "button_image"; \
185 target: "disabler"; \
190 signal: "elm,state,enabled"; \
192 action: STATE_SET "default" 0.0; \
193 target: "button_image"; \
195 target: "disabler"; \
201 name: "button_click"; \
202 signal: "mouse,down,1"; \
204 action: SIGNAL_EMIT "elm,action,press" ""; \
205 after: "button_click_anim"; \
209 name: "button_click_anim"; \
210 action: STATE_SET "clicked" 0.0; \
211 target: "button_image"; \
215 name: "button_unclick"; \
216 signal: "mouse,up,1"; \
218 action: SIGNAL_EMIT "elm,action,unpress" ""; \
219 after: "button_unclick_anim"; \
223 name: "button_unclick_anim"; \
224 action: STATE_SET "default" 0.0; \
225 target: "button_image"; \
229 name: "button_mouseout_clicked"; \
230 signal: "mouse,out"; \
236 get_state(PART:"button_image", st, 30, vl); \
237 if (!strcmp(st, "clicked")) \
239 set_state(PART:"button_image", "visible", 0.0); \
245 name: "button_click2"; \
246 signal: "mouse,down,1"; \
248 action: STATE_SET "clicked" 0.0; \
250 action: SIGNAL_EMIT "elm,action,click" ""; \
254 name: "button_unclick2"; \
255 signal: "mouse,up,1"; \
257 action: STATE_SET "default" 0.0; \
262 name: "button_unclick3"; \
263 signal: "mouse,up,1"; \
267 #define VIC_BUTTON() \
270 name, "elm/button/base/vic/micbutton"; \