3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 ///////////////////////////////////////////////////////////////////////////////
21 ///////////////////////////////////////////////////////////////////////////////
23 #define DATETIME_FIELD(_pos, _after) \
30 description { state: "default" 0.0; \
37 to: "separator"#_after;\
41 to: "separator"#_after;\
44 description { state: "enable" 0.0;\
45 inherit: "default" 0.0;\
47 min: DATETIME_FIELD_MIN_SIZE_INC;\
52 name: "field_"#_pos"enabled";\
53 signal: "field"#_pos",enable";\
55 action: STATE_SET "enable" 0.0;\
56 target: "field"#_pos;\
59 name: "field_"#_pos"disabled";\
60 signal: "field"#_pos",disable";\
62 action: STATE_SET "default" 0.0;\
63 target: "field"#_pos;\
67 #define DATETIME_SEPARATOR(_pos) \
69 name: "separator"#_pos; \
75 state: "default" 0.0;\
77 min: DATETIME_SEPARATOR_MIN_SIZE_INC;\
78 max: DATETIME_SEPARATOR_MIN_SIZE_INC;\
89 color: DATETIME_SEPARATOR_TEXT_COLOR_INC;\
91 font: "Tizen:style=Regular";\
92 size: DATETIME_SEPARATOR_TEXT_FONT_SIZE_INC;\
97 description { state: "enable" 0.0;\
98 inherit: "default" 0.0;\
101 description { state: "hide" 0.0;\
102 inherit: "default" 0.0;\
109 name: "separator"#_pos",enabled";\
110 signal: "field"#_pos",separator,enable";\
112 action: STATE_SET "enable" 0.0;\
113 target: "separator"#_pos;\
116 name: "separator"#_pos",disabled";\
117 signal: "field"#_pos",separator,disable";\
122 get_state(PART:"separator"#_pos, st, 30, vl);\
123 if (strcmp(st, "hide")) \
125 set_state(PART:"separator"#_pos, "default", 0.0);\
130 name: "separator"#_pos",hide";\
131 signal: "field"#_pos",disable";\
133 action: STATE_SET "hide" 0.0;\
134 target: "separator"#_pos;\
139 group { name: "elm/datetime/base/default";
146 state: "default" 0.0;
151 name: "left.padding";
157 state: "default" 0.0;
159 min: DATETIME_LEFT_PADDING_SIZE_INC;
160 max: DATETIME_LEFT_PADDING_SIZE_INC;
177 state: "default" 0.0;
184 to_x: "left.padding";
188 to_x: "left.padding";
191 description { state: "enable" 0.0;
192 inherit: "default" 0.0;
194 min: DATETIME_FIELD_MIN_SIZE_INC;
197 DATETIME_SEPARATOR(0)
199 DATETIME_SEPARATOR(1)
201 DATETIME_SEPARATOR(2)
203 DATETIME_SEPARATOR(3)
205 DATETIME_SEPARATOR(4)
207 DATETIME_SEPARATOR(5)
209 name: "right.padding";
215 state: "default" 0.0;
217 min: DATETIME_LEFT_PADDING_SIZE_INC;
218 max: DATETIME_LEFT_PADDING_SIZE_INC;
231 description { state: "default" 0.0;
232 color: 255 255 255 255;
234 description { state: "visible" 0.0;
235 inherit: "default" 0.0;
236 color: 255 255 255 102;
242 description { state: "default" 0.0;
246 description { state: "visible" 0.0;
247 inherit: "default" 0.0;
254 name: "disble_datetime";
255 signal: "elm,state,disabled";
257 action: STATE_SET "visible" 0.0;
262 name: "enable_datetime";
263 signal: "elm,state,enabled";
265 action: STATE_SET "default" 0.0;
270 name: "field0,enabled";
271 signal: "field0,enable";
273 action: STATE_SET "enable" 0.0;
277 name: "field0,disabled";
278 signal: "field0,disable";
280 action: STATE_SET "default" 0.0;