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 ENTRY_TEXT_SIZE_INC 44
19 #define EDITFIELD_GUIDE_TEXT_COLOR_INC 189 189 189 255 // 70 70 70 255
20 #define EDITFIELD_DEFAULT_ERASER_MINW_INC 48
21 #define EDITFIELD_DEFAULT_ERASER_MINH_INC 48
22 #define EDITFIELD_DEFAULT_MINH_INC 112
23 #define EDITFIELD_DEFAULT_TOP1_SINGLE_INC 20
24 #define EDITFIELD_DEFAULT_TOP2_INC 6
25 #define EDITFIELD_DEFAULT_LEFT1_INC 0
26 #define EDITFIELD_DEFAULT_LEFT2_INC 0
27 #define EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 56
28 #define EDITFIELD_DEFAULT_RIGHT2_INC 0
29 #define EDITFIELD_DEFAULT_BOTTOM1_SINGLE_INC 20
30 #define EDITFIELD_DEFAULT_BOTTOM2_SINGLE_INC 32
31 #define EDITFIELD_DEFAULT_BOTTOM3_SINGLE_INC 85
34 group { name: "elm/layout/editfield/gallery";
36 image: GALLERY_EDC_IMAGE_FIELD_BTN_DELETE COMP;
43 ignore_flags: ON_HOLD;
46 min: 0 EDITFIELD_DEFAULT_MINH_INC;
54 ignore_flags: ON_HOLD;
58 min: 0 EDITFIELD_DEFAULT_TOP1_SINGLE_INC;
60 rel1.relative: 0.0 0.0;
61 rel2.relative: 1.0 0.0;
69 ignore_flags: ON_HOLD;
73 min: 0 EDITFIELD_DEFAULT_TOP2_INC;
75 rel1.relative: 0.0 0.0;
76 rel2.relative: 1.0 0.0;
84 ignore_flags: ON_HOLD;
88 min: EDITFIELD_DEFAULT_LEFT1_INC 0;
91 rel1.relative : 0.0 0.0;
92 rel2.relative : 0.0 1.0;
99 ignore_flags: ON_HOLD;
101 state: "default" 0.0;
103 min: EDITFIELD_DEFAULT_LEFT2_INC 0;
106 rel1.relative : 0.0 0.0;
107 rel2.relative : 0.0 1.0;
114 ignore_flags: ON_HOLD;
116 state: "default" 0.0;
118 min: EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 0;
121 rel1.relative : 1.0 0.0;
122 rel2.relative : 1.0 1.0;
129 ignore_flags: ON_HOLD;
131 state: "default" 0.0;
133 min: EDITFIELD_DEFAULT_RIGHT2_INC 0;
136 rel1.relative : 1.0 0.0;
137 rel2.relative : 1.0 1.0;
144 ignore_flags: ON_HOLD;
146 state: "default" 0.0;
148 min: 0 EDITFIELD_DEFAULT_BOTTOM1_SINGLE_INC;
151 rel1.relative: 0.0 1.0;
158 ignore_flags: ON_HOLD;
160 state: "default" 0.0;
162 min: 0 EDITFIELD_DEFAULT_BOTTOM2_SINGLE_INC;
164 rel1.relative: 0.0 1.0;
172 ignore_flags: ON_HOLD;
174 state: "default" 0.0;
176 min: 0 EDITFIELD_DEFAULT_BOTTOM3_SINGLE_INC;
178 rel1.relative: 0.0 1.0;
183 name: "elm.guidetext";
186 ignore_flags: ON_HOLD;
188 state: "default" 0.0;
191 rel1.to: "elm.swallow.content";
192 rel2.to: "elm.swallow.content";
193 color: EDITFIELD_GUIDE_TEXT_COLOR_INC;
195 font: "SLP:style=Roman";
196 size: ENTRY_TEXT_SIZE_INC;
203 inherit: "default" 0.0;
208 name: "elm.swallow.content";
211 ignore_flags: ON_HOLD;
213 state: "default" 0.0;
229 name: "eraser_image";
232 state: "default" 0.0;
234 min: EDITFIELD_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_ERASER_MINH_INC;
248 normal: GALLERY_EDC_IMAGE_FIELD_BTN_DELETE;
254 state: "elm.eraser.show" 0.0;
255 inherit: "default" 0.0;
262 ignore_flags: ON_HOLD;
264 state: "default" 0.0;
269 to_x : "eraser_image";
274 state: "elm.eraser.show" 0.0;
275 inherit: "default" 0.0;
282 name: "guidetext_show";
283 signal: "elm,state,guidetext,show";
285 action: STATE_SET "default" 0.0;
286 target: "elm.guidetext";
289 name: "guidetext_hide";
290 signal: "elm,state,guidetext,hide";
292 action: STATE_SET "hidden" 0.0;
293 target: "elm.guidetext";
297 signal: "elm,state,eraser,show";
299 action: STATE_SET "elm.eraser.show" 0.0;
300 target: "eraser_image";
305 signal: "elm,state,eraser,hide";
307 action: STATE_SET "default" 0.0;
308 target: "eraser_image";
312 name: "eraser_clicked";
313 signal: "mouse,clicked,1";
315 action: SIGNAL_EMIT "elm,eraser,clicked" "elm";