Added new winset styles (2.2.2.38-2.2.2.44) according to the GUI Guide 1.8
[profile/ivi/efl-theme-tizen.git] / themes / widgets / datetime.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved 
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of SAMSUNG
7  * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8  * software is owned by Samsung and you shall not disclose such Confidential
9  * Information and shall use it only in accordance with the terms of the license
10  * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11  * representations or warranties about the suitability of the software, either
12  * express or implied, including but not limited to the implied warranties of
13  * merchantability, fitness for a particular purpose, or non-infringement.
14  * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15  * of or releated to this software.
16  *
17  */
18 ///////////////////////////////////////////////////////////////////////////////
19 // datetime
20 ///////////////////////////////////////////////////////////////////////////////
21
22 #define DATETIME_FIELD(_pos) \
23    part {\
24       name: "field"#_pos; \
25       type: SWALLOW; \
26       scale: 1;\
27       clip_to: "clipper";\
28       description { state: "default" 0.0; \
29          visible: 0;\
30          min: 0 0;\
31          align: 0.0 0.5;\
32          fixed: 1 1;\
33          rel1 {\
34             relative: 1.0 0.0;\
35             to: "separator"#_pos;\
36          }\
37          rel2 {\
38             relative: 1.0 1.0;\
39             to: "separator"#_pos;\
40          }\
41       }\
42       description { state: "enable" 0.0;\
43          inherit: "default" 0.0;\
44          visible: 1;\
45          min: DATETIME_FIELD_MIN_SIZE_INC;\
46       }\
47    }\
48    programs{\
49       program {\
50          name: "field_"#_pos"enabled";\
51          signal: "field"#_pos",enable";\
52          source: "elm";\
53          action: STATE_SET "enable" 0.0;\
54          target: "field"#_pos;\
55       }\
56       program {\
57          name: "field_"#_pos"disabled";\
58          signal: "field"#_pos",disable";\
59          source: "elm";\
60          action: STATE_SET "default" 0.0;\
61          target: "field"#_pos;\
62       }\
63     }
64
65 #define DATETIME_SEPARATOR(_pos,_after) \
66    part {\
67       name: "separator"#_pos; \
68       type: TEXT;\
69       scale: 1;\
70       description {\
71          state: "default" 0.0;\
72          visible: 0;\
73          min: 0 0;\
74          align: 0.0 0.5;\
75          fixed: 1 1;\
76          rel1 {\
77             relative: 1.0 0.0;\
78             to: "field"#_after;\
79          }\
80          rel2 {\
81             relative: 1.0 1.0;\
82             to: "field"#_after;\
83          }\
84          color: DATETIME_SEPARATOR_TEXT_COLOR_INC;\
85          text {\
86             font: "SLP:style=Roman";\
87             size: DATETIME_TEXT_FONT_SIZE_INC;\
88             min:  1 0;\
89             align: 0.2 0.5;\
90             text_class: "slp_roman";\
91          }\
92       }\
93       description { state: "enable" 0.0;\
94          inherit: "default" 0.0;\
95          visible: 1;\
96          min: DATETIME_SEPARATOR_MIN_SIZE_INC;\
97       }\
98    }\
99    programs {\
100       program {\
101          name: "separator"#_pos",enabled";\
102          signal: "field"#_after",enable";\
103          source: "elm";\
104          action: STATE_SET "enable" 0.0;\
105          target: "separator"#_pos;\
106       }\
107       program {\
108          name: "separator"#_pos",disabled";\
109          signal: "field"#_after",disable";\
110          source: "elm";\
111          action: STATE_SET "default" 0.0;\
112          target: "separator"#_pos;\
113       }\
114    }
115
116
117 group { name: "elm/datetime/base/default";
118    parts {
119       part {
120          name: "bg";
121          type: RECT;
122          scale: 1;
123          description {
124             state: "default" 0.0;
125             color: 0 0 0 0;
126          }
127       }
128       part {
129          name: "separator0";
130          type: RECT;
131          scale: 1;
132          description {
133             state: "default" 0.0;
134             visible: 0;
135             min: 0 0;
136             align: 0.0 0.5;
137             fixed: 1 0;
138             rel2 {
139                relative: 0.0 1.0;
140                to: "bg";
141             }
142          }
143       }
144       DATETIME_FIELD(0)
145       DATETIME_SEPARATOR(1,0)
146       DATETIME_FIELD(1)
147       DATETIME_SEPARATOR(2,1)
148       DATETIME_FIELD(2)
149       DATETIME_SEPARATOR(3,2)
150       DATETIME_FIELD(3)
151       DATETIME_SEPARATOR(4,3)
152       DATETIME_FIELD(4)
153       DATETIME_SEPARATOR(5,4)
154       DATETIME_FIELD(5)
155       DATETIME_SEPARATOR(6,5)
156       part {
157          name: "clipper";
158          type: RECT;
159          description { state: "default" 0.0;
160             rel1 {
161                relative: 0.0 0.0;
162                to: "separator0";
163             }
164             rel2 {
165                relative: 1.0 1.0;
166                to: "separator6";
167             }
168             color: 255 255 255 255;
169          }
170          description { state: "enable" 0.0;
171             inherit: "default" 0.0;
172             color: 255 255 255 127;
173          }
174       }
175       part {
176          name: "disabler";
177          type: RECT;
178          description { state: "default" 0.0;
179             color: 0 0 0 0;
180             visible: 0;
181          }
182          description { state: "visible" 0.0;
183             inherit: "default" 0.0;
184             visible: 1;
185          }
186       }
187    }
188    programs {
189       program {
190          name: "disble_datetime";
191          signal: "elm,state,disabled";
192          source: "elm";
193          action: STATE_SET "visible" 0.0;
194          target: "disabler";
195          target: "clipper";
196       }
197       program {
198          name: "enable_datetime";
199          signal: "elm,state,enabled";
200          source: "elm";
201          action: STATE_SET "default" 0.0;
202          target: "disabler";
203          target: "clipper";
204       }
205    }
206 }