[Title] Initial upload the browser for tizen 2.0
[profile/ivi/org.tizen.browser.git] / edc / browser-settings.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
18 #include "browser-macro.edc"
19
20 collections {
21         group {
22                 name: "edit_homepage_view";
23
24                 parts {
25                         part {
26                         name: "bg";
27                                 mouse_events: 0;
28                                 type: RECT;
29                                 description
30                                 {
31                                         state: "default" 0.0;
32                                         visible: 1;
33                                         rel1 { relative: 0.0 0.0; }
34                                         rel2 { relative: 1.0 1.0; }
35                                         color: 0 0 0 0;
36                                 }
37                         }
38                         part {
39                                 name: "elm.swallow.entry";
40                                 type: SWALLOW;
41                                 mouse_events: 1;
42                                 description {
43                                         state: "default" 0.0;
44                                         visible: 1;
45                                         min: 0 80;
46                                         fixed: 0 1;
47                                         align: 0.0 0.0;
48                                         rel1 { relative: 0.0 0.0; to: bg; offset: 20 0; }
49                                         rel2 { relative: 1.0 0.0; to: bg; offset: -20 0; }
50                                 }
51                         }
52                 }
53         }
54
55         group { name: "elm/genlist/item/browser-settings/select_all/default";
56       alias: "elm/genlist/item_odd/browser-settings/select_all/default";
57       alias: "elm/genlist/item_compress/browser-settings/select_all/default";
58       alias: "elm/genlist/item_compress_odd/browser-settings/select_all/default";
59
60       data.item: "stacking" "above";
61       data.item: "selectraise" "on";
62       data.item: "texts" "elm.text";
63       data.item: "contents" "elm.swallow.icon elm.swallow.end";
64       parts {
65          BEAT_GENLIST_PART_BASE( 120 )
66
67          part { name: "bg";
68             type: RECT;
69             clip_to: "disclip";
70             mouse_events: 0;
71             description { state: "default" 0.0;
72                color: 52 74 85 255;
73             }
74          }
75
76          BEAT_GENLIST_PART_BG_IMAGE
77          BEAT_GENLIST_PART_BOTTOM_LINE
78          BEAT_GENLIST_PART_PADDING_LEFT( 15 )
79          BEAT_GENLIST_PART_PADDING_RIGHT( 22 )
80          part { name: "elm.swallow.end";
81             clip_to: "disclip";
82             type: SWALLOW;
83             scale: 1;
84             description { state: "default" 0.0;
85                fixed: 1 0;
86                align: 1.0 0.5;
87                rel1.to_x: "elm.padding.right";
88                rel2 {
89                   relative: 0.0  1.0;
90                   to_x: "elm.padding.right";
91                }
92             }
93          }
94          part { name: "elm.text";
95             clip_to: "disclip";
96             type: TEXT;
97             mouse_events: 0;
98             scale: 1;
99             description { state: "default" 0.0;
100                rel1 {
101                   relative: 1.0  0.0;
102                   offset: 30 0;
103                   to_x: "elm.swallow.icon";
104                }
105                rel2 {
106                   to_x: "elm.swallow.end";
107                   relative: 0.0  1.0;
108                   offset:   30   0;
109                }
110                color: 255 255 255 255;
111                text {
112                   font: "SLP:style=Roman";
113                   size: 48;
114                   min: 0 1;
115                   align: 0.0 0.5;
116                }
117             }
118             description { state: "selected" 0.0;
119                inherit: "default" 0.0;
120                color: 255 255 255 255;
121             }
122          }
123          part { name: "elm.swallow.icon";
124             clip_to: "disclip";
125             type: SWALLOW;
126             scale: 1;
127             description { state: "default" 0.0;
128             align: 0.0 0.5;
129                fixed: 1 1;
130                visible:1;
131                min: 63 63;
132                max: 63 63;
133                rel1 {
134                   relative: 1.0 0.0;
135                   to_x: "elm.padding.left";
136                }
137                rel2.to_x: "elm.padding.left";
138            }
139          }
140
141          BEAT_GENLIST_SELECT_ALL_PART_DISCLIP
142       }
143       programs {
144          // signal: elm,state,%s,active
145          //   a "check" item named %s went active
146          // signal: elm,state,%s,passive
147          //   a "check" item named %s went passive
148          // default is passive
149          program { name: "go_active";
150             signal: "elm,state,selected";
151             source: "elm";
152             action: STATE_SET "selected" 0.0;
153             target: "bg_image";
154             target: "elm.text";
155          }
156          program { name: "go_passive";
157             signal: "elm,state,unselected";
158             source: "elm";
159             action: STATE_SET "default" 0.0;
160             target: "bg_image";
161             target: "elm.text";
162             transition: LINEAR 0.1;
163          }
164          program { name: "go_disabled";
165             signal: "elm,state,disabled";
166             source: "elm";
167             action: STATE_SET "disabled" 0.0;
168             target: "disclip";
169          }
170          program { name: "go_enabled";
171             signal: "elm,state,enabled";
172             source: "elm";
173             action: STATE_SET "default" 0.0;
174             target: "disclip";
175          }
176       }
177    }
178 }
179