abed57527bd0156d194c6e859d7202297a6cfa4f
[platform/framework/web/livebox-viewer.git] / live.viewer / res / live-viewer.edc
1 /*
2  * Copyright 2013  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://floralicense.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 images {
18         /* image: "a" COMP; */
19 }
20
21 collections {
22         group {
23                 name: "layout";
24                 parts {
25                         part {
26                                 name: "indicator";
27                                 type: RECT;
28                                 mouse_events: 0;
29                                 description {
30                                         state: "default" 0.0;
31                                         rel1 { relative: 0.0 0.0; }
32                                         rel2 { relative: 1.0 100/1280; }
33                                         color: 0 0 0 0;
34                                 }
35                         }
36
37                         part {
38                                 name: "delete,btn";
39                                 type: SWALLOW;
40                                 mouse_events: 1;
41                                 description {
42                                         state: "default" 0.0;
43                                         rel1 { relative: 4/720 1.0; to_y, "viewer"; }
44                                         rel2 { relative: 716/720 900/1280; }
45                                 }
46                         }
47
48                         part {
49                                 name: "controller"; /* size list */
50                                 type: SWALLOW;
51                                 mouse_events: 1;
52                                 description {
53                                         state: "default" 0.0;
54                                         rel1 { relative: 0.0 1.0; to_y, "delete,btn"; }
55                                         rel2 { relative: 0.3 1.0; }
56                                 }
57                         }
58
59                         part {
60                                 name: "logger";
61                                 type: SWALLOW;
62                                 mouse_events: 1;
63                                 description {
64                                         state: "default" 0.0;
65                                         rel1 { relative: 1.0 1.0; to_x: "controller"; to_y: "delete,btn"; }
66                                         rel2 { relative: 1.0 1.0; }
67                                 }
68                         }
69
70                         part {
71                                 name: "viewer";
72                                 type: RECT;
73                                 mouse_events: 1;
74                                 description {
75                                         state: "default" 0.0;
76                                         rel1 { relative: 4/720 1.0; to, "indicator"; }
77                                         rel2 { relative: 716/720 800/1280; }
78                                         color: 255 255 255 255;
79                                 }
80                         }
81
82                         part {
83                                 name: "event,blocker";
84                                 type: RECT;
85                                 mouse_events: 1;
86                                 description {
87                                         state: "default" 0.0;
88                                         rel1 { relative: 0.0 0.0; }
89                                         rel2 { relative: 1.0 1.0; }
90                                         color: 0 0 0 0;
91                                         visible: 0;
92                                 }
93                                 description {
94                                         state: "show" 0.0;
95                                         inherit: "default" 0.0;
96                                         color: 50 50 50 50;
97                                         visible: 1;
98                                 }
99                         }
100
101                         part {
102                                 name: "livebox";
103                                 type: SWALLOW;
104                                 mouse_events: 1;
105                                 description {
106                                         state: "default" 0.0;
107                                         rel1 { relative: 0.4 0.4; to, "viewer"; }
108                                         rel2 { relative: 0.6 0.6; to, "viewer"; }
109                                 }
110                         }
111
112                         part {
113                                 name: "pd";
114                                 type: SWALLOW;
115                                 mouse_events: 1;
116                                 description {
117                                         state: "default" 0.0;
118                                         rel1 { relative: 0.0 0.95; to_y, "livebox"; }
119                                         rel2 { relative: 1.0 1.0; to_y, "livebox"; }
120                                         visible: 0;
121                                         align: 0.0 0.0;
122                                 }
123
124                                 description {
125                                         state: "show" 0.0;
126                                         rel1 { relative: 0.0 1.0; to_y, "livebox"; }
127                                         rel2 { relative: 1.0 1.0; }
128                                         visible: 1;
129                                         align: 0.0 0.0;
130                                 }
131                         }
132                 }
133
134                 programs {
135                         program {
136                                 name: "open,pd";
137                                 source: "pd";
138                                 signal: "open";
139                                 action: STATE_SET "show" 0.0;
140                                 target: "pd";
141                                 target: "event,blocker";
142                                 transition: LINEAR 0.2;
143                         }
144                         program {
145                                 name: "hide,pd";
146                                 source: "pd";
147                                 signal: "close";
148                                 action: STATE_SET "default" 0.0;
149                                 target: "pd";
150                                 target: "event,blocker";
151                                 transition: LINEAR 0.1;
152                                 after: "hide,pd,done";
153                         }
154
155                         program {
156                                 name: "hide,pd,done";
157                                 action: SIGNAL_EMIT "hide,done" "pd";
158                         }
159
160                         program {
161                                 name: "event,blocker";
162                                 source: "event,blocker";
163                                 signal: "mouse,clicked,1";
164                                 action: SIGNAL_EMIT "close" "pd";
165                         }
166
167                         program {
168                                 name: "pd,close,pd";
169                                 source: "viewer";
170                                 signal: "mouse,clicked,1";
171                                 action: SIGNAL_EMIT "close" "pd";
172                         }
173                 }
174         }
175 }