upload codes for TIZEN 2.0
[apps/home/clock.git] / worldclock / res / edc / worldclock_edit.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://www.tizenopensource.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 #define EDIT_VIEW_HEIGHT    (HEIGHT-INDICATOR_H-NAVIGATION_BAR_H)
19 #define EDIT_SELECT_ALL_H   (SELECTALL_H/EDIT_VIEW_HEIGHT)
20 #define EDIT_TOOL_BAR_H     (86/EDIT_VIEW_HEIGHT)
21
22 group {
23     name: "edit_layout";
24
25     parts {
26         /* background */
27         part {
28             name: "edit/bg";
29             type: RECT;
30             scale: 1;
31             description {
32                 state: "default" 0.0;
33                 rel1 { relative: 0.0 0.0; }
34                 rel2 { relative: 1.0 1.0; }
35                 color: 0 0 0 255;
36             }
37         }
38
39         /* select all swallow */
40         part {
41             name: "edit/sel_all";
42             type: SWALLOW;
43             mouse_events: 1;
44             scale: 1;
45             description {
46                 state: "default" 0.0;
47                 rel1 { relative: 0.0 0.0; }
48                 rel2 { relative: 1.0 EDIT_SELECT_ALL_H; }
49             }
50         }
51
52         /* genlist swallow */
53         part {
54             name: "edit/genlist";
55             type: SWALLOW;
56             mouse_events: 1;
57             scale: 1;
58             description {
59                 state: "default" 0.0;
60                 rel1 { relative: 0.0 1.0;  to: edit/sel_all;}
61                 //rel2 { relative: 1.0 1.0; }
62                 rel2 { relative: 1.0 ((EDIT_VIEW_HEIGHT-CONTROL_BAR_H)/EDIT_VIEW_HEIGHT); }
63             }
64         }
65
66         /* controlbar */
67         part {
68             name: "edit/controlbar";
69             type: RECT;
70             scale: 1;
71             description {
72                 state: "default" 0.0;
73                 visible : 0;
74                 rel1 { relative: 0.0 ((EDIT_VIEW_HEIGHT-CONTROL_BAR_H)/EDIT_VIEW_HEIGHT); }
75                 rel2 { relative: 1.0 1.0; }
76             }
77         }
78     } // end of parts
79 }
80
81 group {
82     name: "edit_layout2";
83
84     parts {
85         /* background */
86         part {
87             name: "edit/bg";
88             type: RECT;
89             scale: 1;
90             description {
91                 state: "default" 0.0;
92                 rel1 { relative: 0.0 0.0; }
93                 rel2 { relative: 1.0 1.0; }
94                 color: 0 0 0 255;
95             }
96         }
97
98         /* select all swallow */
99         part {
100             name: "edit/sel_all";
101             type: SWALLOW;
102             mouse_events: 1;
103             scale: 1;
104             description {
105                 state: "default" 0.0;
106                 rel1 { relative: 0.0 0.0; }
107                 rel2 { relative: 1.0 EDIT_SELECT_ALL_H; }
108             }
109         }
110
111         /* genlist swallow */
112         part {
113             name: "edit/genlist";
114             type: SWALLOW;
115             mouse_events: 1;
116             scale: 1;
117             description {
118                 state: "default" 0.0;
119                 rel1 { relative: 0.0 1.0;  to: "edit/sel_all";}
120                 //rel2 { relative: 1.0 0.0;  to: "edit/tool_bar";}
121                 rel2 { relative: 1.0 1.0;  to: "edit/bg";}
122             }
123         }
124
125         part {
126             name: "edit/tool_bar";
127             type: SWALLOW;
128             mouse_events: 1;
129             scale: 1;
130             description {
131                 state: "default" 0.0;
132                 min: 480 66;
133                 fixed: 1 1;
134                 align: 0.0 0.0;
135                 rel1 { relative: 0.0 1.0; offset: 0 -86;   to: "edit/bg";}
136                 rel2 { relative: 1.0 1.0;  to: "edit/bg";}
137             }
138         }
139
140         part {
141             name: "edit/delete_btn";
142             type: SWALLOW;
143             mouse_events: 1;
144             scale: 1;
145             description {
146                 state: "default" 0.0;
147                 fixed: 1 1;
148                 align: 0.0 0.0;
149                 rel1 { relative: (1.0-EDIT_TOOL_BAR_H) 0.0;  to: "edit/tool_bar";}
150                 rel2 { relative: 1.0 1.0;  to: "edit/tool_bar";}
151             }
152         }
153
154     } // end of parts
155 }
156