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;\
88 color: DATETIME_SEPARATOR_TEXT_COLOR_INC;\
90 font: "Tizen:style=Regular";\
91 size: DATETIME_SEPARATOR_TEXT_FONT_SIZE_INC;\
96 description { state: "enable" 0.0;\
97 inherit: "default" 0.0;\
100 description { state: "hide" 0.0;\
101 inherit: "default" 0.0;\
108 name: "separator"#_pos",enabled";\
109 signal: "field"#_pos",separator,enable";\
111 action: STATE_SET "enable" 0.0;\
112 target: "separator"#_pos;\
115 name: "separator"#_pos",disabled";\
116 signal: "field"#_pos",separator,disable";\
121 get_state(PART:"separator"#_pos, st, 30, vl);\
122 if (strcmp(st, "hide")) \
124 set_state(PART:"separator"#_pos, "default", 0.0);\
129 name: "separator"#_pos",hide";\
130 signal: "field"#_pos",disable";\
132 action: STATE_SET "hide" 0.0;\
133 target: "separator"#_pos;\
138 group { name: "elm/datetime/base/default";
145 state: "default" 0.0;
150 name: "left.padding";
156 state: "default" 0.0;
158 min: DATETIME_LEFT_PADDING_SIZE_INC;
159 max: DATETIME_LEFT_PADDING_SIZE_INC;
176 state: "default" 0.0;
183 to_x: "left.padding";
187 to_x: "left.padding";
190 description { state: "enable" 0.0;
191 inherit: "default" 0.0;
193 min: DATETIME_FIELD_MIN_SIZE_INC;
196 DATETIME_SEPARATOR(0)
198 DATETIME_SEPARATOR(1)
200 DATETIME_SEPARATOR(2)
202 DATETIME_SEPARATOR(3)
204 DATETIME_SEPARATOR(4)
206 DATETIME_SEPARATOR(5)
208 name: "right.padding";
214 state: "default" 0.0;
216 min: DATETIME_LEFT_PADDING_SIZE_INC;
217 max: DATETIME_LEFT_PADDING_SIZE_INC;
230 description { state: "default" 0.0;
231 color: 255 255 255 255;
233 description { state: "visible" 0.0;
234 inherit: "default" 0.0;
235 color: 255 255 255 102;
241 description { state: "default" 0.0;
245 description { state: "visible" 0.0;
246 inherit: "default" 0.0;
253 name: "disble_datetime";
254 signal: "elm,state,disabled";
256 action: STATE_SET "visible" 0.0;
261 name: "enable_datetime";
262 signal: "elm,state,enabled";
264 action: STATE_SET "default" 0.0;
269 name: "field0,enabled";
270 signal: "field0,enable";
272 action: STATE_SET "enable" 0.0;
276 name: "field0,disabled";
277 signal: "field0,disable";
279 action: STATE_SET "default" 0.0;