fix build break
[apps/core/preloaded/email.git] / composer / theme / email-composer-edc-common.edc
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
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
7  *
8  *    http://www.tizenopensource.org/license
9  *
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.
15  */
16
17 #define PART_BG(pName) \
18         part { \
19                 name: pName; \
20                 type: RECT; \
21                 mouse_events: 0; \
22                 scale: 1; \
23                 description { \
24                         state: "default" 0.0; \
25                         color: 0 0 0 0; \
26                 } \
27         }
28
29 #define PART_RECT(pName, pR1x, pR1y, pR1xt, pR1yt, pR2x, pR2y, pR2xt, pR2yt) \
30         part { \
31                 name: pName; \
32                 type: RECT; \
33                 mouse_events: 0; \
34                 scale: 1; \
35                 description { \
36                         state: "default" 0.0; \
37                         rel1 { relative: pR1x pR1y; to_x: pR1xt; to_y: pR1yt; } \
38                         rel2 { relative: pR2x pR2y; to_x: pR2xt; to_y: pR2yt; } \
39                         color: 0 0 0 0; \
40                 } \
41         }
42
43 #define PART_PIXEL_RECT(pName, pX, pY, pAx, pAy, pRx, pRy, pRt) \
44         part { \
45                 name: pName; \
46                 type: RECT; \
47                 mouse_events: 0; \
48                 scale: 1; \
49                 description { \
50                         state: "default" 0.0; \
51                         min: pX pY; \
52                         align: pAx pAy; \
53                         rel1 { relative: pRx pRy; to: pRt; } \
54                         rel2 { relative: pRx pRy; to: pRt; } \
55                         color: 0 0 0 0; \
56                 } \
57         }
58
59 #define PART_PIXEL_RECT_EX(pName, pX, pY, pAx, pAy, pR1x, pR1y, pR2x, pR2y, pRt) \
60         part { \
61                 name: pName; \
62                 type: RECT; \
63                 mouse_events: 0; \
64                 scale: 1; \
65                 description { \
66                         state: "default" 0.0; \
67                         min: pX pY; \
68                         align: pAx pAy; \
69                         rel1 { relative: pR1x pR1y; to: pRt; } \
70                         rel2 { relative: pR2x pR2y; to: pRt; } \
71                         color: 0 0 0 0; \
72                 } \
73         }
74
75
76 #define PART_V_PIXEL_RECT(pName, pY, pAy, pRy, pRt) \
77         part { \
78                 name: pName; \
79                 type: RECT; \
80                 mouse_events: 0; \
81                 scale: 1; \
82                 description { \
83                         state: "default" 0.0; \
84                         min: 0 pY; \
85                         fixed: 0 1; \
86                         align: 0.5 pAy; \
87                         rel1 { relative: 0.0 pRy; to: pRt; } \
88                         rel2 { relative: 1.0 pRy; to: pRt; } \
89                         color: 0 0 0 0; \
90                 } \
91         }
92
93 #define PART_H_PIXEL_RECT(pName, pX, pAx, pRx, pRt) \
94         part { \
95                 name: pName; \
96                 type: RECT; \
97                 mouse_events: 0; \
98                 scale: 1; \
99                 description { \
100                         state: "default" 0.0; \
101                         min: pX 0; \
102                         fixed: 1 0; \
103                         align: pAx 0.5; \
104                         rel1 { relative: pRx 0.0; to: pRt; } \
105                         rel2 { relative: pRx 1.0; to: pRt; } \
106                         color: 0 0 0 0; \
107                 } \
108         }
109
110 #define PART_SWALLOW(pName, pTo) \
111         part { \
112                 name: pName; \
113                 type: SWALLOW; \
114                 mouse_events: 1; \
115                 scale: 1; \
116                 description { \
117                         state: "default" 0.0; \
118                         rel1 { relative: 0.0 0.0; to: pTo; } \
119                         rel2 { relative: 1.0 1.0; to: pTo; } \
120                 } \
121         }
122
123 #define PART_EVENT_RECT(pName, pTo) \
124         part { \
125                 name: pName; \
126                 type: RECT; \
127                 mouse_events: 1; \
128                 repeat_events: 1; \
129                 scale: 1; \
130                 description { \
131                         state: "default" 0.0; \
132                         rel1 { relative: 0.0 0.0; to: pTo; } \
133                         rel2 { relative: 1.0 1.0; to: pTo; } \
134                         color: 0 0 0 0; \
135                         visible: 1; \
136                 } \
137                 description { \
138                         state: "disabled" 0.0; \
139                         inherit: "default" 0.0; \
140                         visible: 0; \
141                 } \
142         }
143
144 #define PART_COLOR_RECT(pName, pCr, pCg, pCb, pCa, pTo) \
145         part { \
146                 name: pName; \
147                 type: RECT; \
148                 mouse_events: 0; \
149                 scale: 1; \
150                 description { \
151                         state: "default" 0.0; \
152                         rel1 { relative: 0.0 0.0; to: pTo; } \
153                         rel2 { relative: 1.0 1.0; to: pTo; } \
154                         color: pCr pCg pCb pCa; \
155                 } \
156         }
157
158 #define PART_SWALLOW_RECT_BAR(pName, pTo, pRx1, pRy1, pRx2, pRy2)\
159         part{\
160                 name: pName;\
161                 type: SWALLOW;\
162                 mouse_events: 0; \
163                 scale: 1;\
164                 description{\
165                         state: "default" 0.0;\
166                         rel1 { relative: pRx1 pRy1; to: pTo;}\
167                         rel2 { relative: pRx2 pRy2; to: pTo;}\
168                 }\
169         }
170
171 #define PART_TEXT(pName, pTo, pString, pFont, pClass, pSize, pAx, pAy, pCr, pCg, pCb, pCa) \
172         part { \
173                 name: pName; \
174                 type: TEXT; \
175                 mouse_events: 0; \
176                 scale: 1; \
177                 description { \
178                         state: "default" 0.0; \
179                         rel1 { relative: 0.0 0.0; to: pTo; } \
180                         rel2 { relative: 1.0 1.0; to: pTo; } \
181                         text { \
182                                 text: pString; \
183                                 font: pFont; \
184                                 text_class: pClass; \
185                                 size: pSize; \
186                                 align: pAx pAy; \
187                         } \
188                         color: pCr pCg pCb pCa; \
189                 } \
190         }
191
192 #define PART_IMAGE(pName, pTo, pImage) \
193         part { \
194                 name: pName; \
195                 type: IMAGE; \
196                 mouse_events: 0; \
197                 scale: 1; \
198                 description { \
199                         state: "default" 0.0; \
200                         rel1 { relative: 0.0 0.0; to: pTo; } \
201                         rel2 { relative: 1.0 1.0; to: pTo; } \
202                         image.normal: pImage; \
203                 } \
204         }
205
206 #define PART_BORDER_IMAGE(pName, pTo, pImage, pL, pR, pT, pB) \
207         part { \
208                 name: pName; \
209                 type: IMAGE; \
210                 mouse_events: 0; \
211                 scale: 1; \
212                 description { \
213                         state: "default" 0.0; \
214                         rel1 { relative: 0.0 0.0; to: pTo; } \
215                         rel2 { relative: 1.0 1.0; to: pTo; } \
216                         image.normal: pImage; \
217                         image.border: pL pR pT pB; \
218                 } \
219         }
220
221 #define PART_TOP_LINE(pName, pTo) \
222         part \
223         { \
224                 name: pName; \
225                 type: RECT; \
226                 mouse_events: 0; \
227                 description { \
228                         state: "default" 0.0; \
229                         min: 0 1; \
230                         fixed: 0 1; \
231                         visible: 1; \
232                         color: 187 187 187 255; \
233                         rel1 { relative: 0.0 0.0; to: pTo; offset: 0 0; } \
234                         rel2 { relative: 1.0 0.0; to: pTo; offset: 0 0; } \
235                 } \
236         } \
237
238 #define PART_LEFT_LINE(pName, pTo) \
239         part \
240         { \
241                 name: pName; \
242                 type: RECT; \
243                 mouse_events: 0; \
244                 description { \
245                         state: "default" 0.0; \
246                         min: 1 0; \
247                         fixed: 1 0; \
248                         visible: 1; \
249                         color: 187 187 187 255; \
250                         rel1 { relative: 0.0 0.0; to: pTo; offset: 0 0; } \
251                         rel2 { relative: 0.0 1.0; to: pTo; offset: 0 0; } \
252                 } \
253         } \
254
255 #define PART_RIGHT_LINE(pName, pTo) \
256         part \
257         { \
258                 name: pName; \
259                 type: RECT; \
260                 mouse_events: 0; \
261                 description { \
262                         state: "default" 0.0; \
263                         min: 1 0; \
264                         fixed: 1 0; \
265                         visible: 1; \
266                         color: 187 187 187 255; \
267                         rel1 { relative: 1.0 0.0; to: pTo; offset: 0 0; } \
268                         rel2 { relative: 1.0 1.0; to: pTo; offset: 0 0; } \
269                 } \
270         } \
271
272 #define PART_BOTTOM_LINE(pName, pTo) \
273         part \
274         { \
275                 name: pName; \
276                 type: RECT; \
277                 mouse_events: 0; \
278                 description { \
279                         state: "default" 0.0; \
280                         min: 0 1; \
281                         fixed: 0 1; \
282                         visible: 1; \
283                         color: 187 187 187 255; \
284                         rel1 { relative: 0.0 1.0; to: pTo; offset: 0 0; } \
285                         rel2 { relative: 1.0 1.0; to: pTo; offset: 0 0; } \
286                 } \
287         } \
288
289 #define PART_PADDING_TOP(pName, pSize, pTo) \
290         PART_V_PIXEL_RECT(pName, pSize, 0.0, 0.0, pTo)
291
292 #define PART_PADDING_BOTTOM(pName, pSize, pTo) \
293         PART_V_PIXEL_RECT(pName, pSize, 1.0, 1.0, pTo)
294
295 #define PART_PADDING_LEFT(pName, pSize, pTo) \
296         PART_H_PIXEL_RECT(pName, pSize, 0.0, 0.0, pTo)
297
298 #define PART_PADDING_RIGHT(pName, pSize, pTo) \
299         PART_H_PIXEL_RECT(pName, pSize, 1.0, 1.0, pTo)
300
301 #define SCRIPT_CUSTOM_PART(pPart) \
302         custom_state(PART:pPart, "default", 0.0); \
303         set_state(PART:pPart, "custom", 0.0);
304
305 #define SCRIPT_SET_IMAGE(pPart, pVal) \
306         set_state_val(PART:pPart, STATE_IMAGE, IMAGE:pVal);
307
308 #define SCRIPT_SET_VISIBLE(pPart, pVal) \
309         set_state_val(PART:pPart, STATE_VISIBLE, pVal);
310
311 #define SCRIPT_SET_STATE_DISABLED(pPart) \
312         set_state(PART:pPart, "disabled", 0.0);
313
314 #define SCRIPT_SET_STATE_DEFAULT(pPart) \
315         set_state(PART:pPart, "default", 0.0);
316
317 #define SCRIPT_SET_STATE_SHOW(pPart) \
318         set_state(PART:pPart, "show", 0.0);
319
320 #define PROGRAM_SET_VISIBLE(pName, pSignal, pSource, pPart) \
321         program { \
322                 name: pName; \
323                 signal: pSignal; \
324                 source: pSource; \
325                 script { \
326                         SCRIPT_SET_STATE_SHOW(pPart) \
327                 } \
328         }
329
330 #define PROGRAM_SET_INVISIBLE(pName, pSignal, pSource, pPart) \
331         program { \
332                 name: pName; \
333                 signal: pSignal; \
334                 source: pSource; \
335                 script { \
336                         SCRIPT_SET_STATE_DEFAULT(pPart) \
337                 } \
338         }
339