Tizen 2.1 base
[apps/core/preloaded/calendar.git] / data / edc / layout / inc.main.edc
1 /*
2   *
3   *  Copyright 2012  Samsung Electronics Co., Ltd
4   *
5   *  Licensed under the Flora License, Version 1.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
8   *
9   *       http://floralicense.org/license/
10   *
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.
16   */
17
18 // Main view layout
19 #define HEIGHT_OF_MAIN_VIEW 1280
20 #define WIDTH_OF_MAIN_VIEW 720
21 #define HEIGHT_OF_TITLE 94
22 #define WIDTH_OF_TABLBAR 80
23 #define HEIGHT_OF_TABBAR 1008
24 #define HEIGHT_OF_TABBAR_ITEM 168
25 #define OFFSET_OF_TRANSPARENT 8
26 #define HEIGHT_OF_TITLE_BOTTOM_LINE 2
27
28 group { name, "main";
29
30         parts {
31                 part { name, "base";
32                         type, RECT;
33                         description {
34                                 state, "default" 0.0;
35                                 color, 0 0 0 0;
36                         }
37                 }
38
39                 part { name, "bg";
40                         type, RECT;
41                         scale, 1;
42                         description {
43                                 state, "default" 0.0;
44                                 rel1 {
45                                         relative, 1.0 0.0;
46                                         to_x, "cont/left"; to_y, "base";
47                                 }
48                                 rel2 {
49                                         relative, 0.0 1.0;
50                                         to_x, "cont/right"; to_y, "base";
51                                 }
52                                 color, 246 246 246 255;
53                         }
54                 }
55
56                 part { name, "cont/left";
57                         type, RECT;
58                         scale, 1;
59                         description {
60                                 state, "default" 0.0;
61                                 min, 0 0;
62                                 fixed, 1 0;
63                                 rel1 { relative, 0.0 0.0; to, base; }
64                                 rel2 { relative, 0.0 1.0; to, base; }
65                                 align, 0.0 0.5;
66                                 color, 0 0 0 0;
67                         }
68                 }
69
70                 part { name, "cont/right";
71                         type, RECT;
72                         scale, 1;
73                         description {
74                                 state, "default" 0.0;
75                                 min, 0 0;
76                                 fixed, 1 0;
77                                 rel1 { relative, 1.0 0.0; to, base; }
78                                 rel2 { relative, 1.0 1.0; to, base; }
79                                 align, 1.0 0.5;
80                                 color, 0 0 0 0;
81                         }
82                 }
83
84                 part { name, "cont";
85                         type, SWALLOW;
86                         clip_to, "clip";
87                         scale, 1;
88                         description {
89                                 state, "default" 0.0;
90                                 rel1 {
91                                         relative, 1.0 0.0;
92                                         to_x, "cont/left"; to_y, "base";
93                                 }
94                                 rel2 {
95                                         relative, 0.0 1.0;
96                                         to_x, "cont/right"; to_y, "base";
97                                 }
98                         }
99                         description {
100                                 state, "no_title" 0.0;
101                                 rel1 {
102                                         relative, 1.0 0.0;
103                                         to_x, "cont/left"; to_y, "base";
104                                 }
105                                 rel2 {
106                                         relative, 0.0 1.0;
107                                         to_x, "cont/right"; to_y, "base";
108                                 }
109                         }
110                 }
111
112                 part { name, "clip";
113                         type, RECT;
114                         description {
115                                 state, "default" 0.0;
116                                 rel1.to, "cont";
117                                 rel2 { relative, 1.0 1.0; to, "cont"; }
118                         }
119                 }
120
121
122                 part { name, "title_bottom_line";
123                         type, RECT;
124                         description {
125                                 state, "default" 0.0;
126                                 min, 0 0;
127                                 fixed, 1 0;
128                                 rel1 { relative, 0.0 0.0; offset, 0 -HEIGHT_OF_TITLE_BOTTOM_LINE; to, cont; }
129                                 rel2 { relative, 1.0 0.0; to, cont; }
130                                 color, COLOR_OF_TITLE_BOTTOM_LINE;
131                         }
132                 }
133         }
134
135         programs {
136                 program { name, "main/title/hide";
137                         signal, "hide,title";
138                         source, "prog";
139                         action, STATE_SET "no_title" 0.0;
140                         target, "cont";
141                 }
142
143                 program { name, "main/title/show";
144                         signal, "show,title";
145                         source, "prog";
146                         action, STATE_SET "default" 0.0;
147                         target, "cont";
148                 }
149         }
150 }