Tizen 2.0 Release
[profile/ivi/org.tizen.video-player.git] / res / edc / vp-speedbox-popup.edc
1 #include "image_res.edc"
2 #include "vp_font.edc"
3
4 #define SPEED_BOX_BG_COLOR 0 0 0 77
5 #define SPEED_BOX_PRESS_BG_COLOR 42 137 194 255
6 #define SPEED_BOX_LINE_COLOR 153 153 153 178
7
8 collections {
9         group {
10                 name: "speedbox";
11                 parts {
12                         part {
13                                 name: "speedbox.bg";
14                                 type: IMAGE;
15                                 mouse_events: 1;
16                                 scale: 1;
17                                 description {
18                                         state: "default" 0.0;
19                                         visible: 0;
20                                         rel1 { relative: 0.0 0.0;}
21                                         rel2 { relative: 1.0 1.0;}
22                                         image {normal: "white/common/T01-2_popup_bg.png"; border: 10 10 10 10;}
23                                 }
24                                 description {
25                                         state: "show" 0.0;
26                                         inherit: "default" 0.0;
27                                         visible: 1;
28                                 }
29                         }
30
31                         part {
32                                 name: "speedbox.step.1";
33                                 type: RECT;
34                                 mouse_events: 1;
35                                 scale: 1;
36                                 description {
37                                         state: "default" 0.0;
38                                         visible: 0;
39                                         min: 112 99;
40                                         fixed: 1 1;
41                                         align: 0.5 1.0;
42                                         rel1 { relative: 0.5 1.0; to: "speedbox.bg";}
43                                         rel2 { relative: 0.5 1.0; to: "speedbox.bg";}
44                                         color: SPEED_BOX_BG_COLOR;
45                                 }
46                                 description {
47                                         state: "show" 0.0;
48                                         inherit: "default" 0.0;
49                                         visible: 1;
50                                 }
51                                 description {
52                                         state: "focus" 0.0;
53                                         inherit: "default" 0.0;
54                                         visible: 1;
55                                         color: SPEED_BOX_PRESS_BG_COLOR;
56                                 }
57                         }
58
59                         part {
60                                 name: "speedbox.step.2";
61                                 type: RECT;
62                                 mouse_events: 1;
63                                 scale: 1;
64                                 description {
65                                         state: "default" 0.0;
66                                         visible: 0;
67                                         min: 112 99;
68                                         fixed: 1 1;
69                                         align: 0.5 1.0;
70                                         rel1 { relative: 0.5 0.0; to: "speedbox.step.1";}
71                                         rel2 { relative: 0.5 0.0; to: "speedbox.step.1";}
72                                         color: SPEED_BOX_BG_COLOR;
73                                 }
74                                 description {
75                                         state: "show" 0.0;
76                                         inherit: "default" 0.0;
77                                         visible: 1;
78                                 }
79                                 description {
80                                         state: "focus" 0.0;
81                                         inherit: "default" 0.0;
82                                         visible: 1;
83                                         color: SPEED_BOX_PRESS_BG_COLOR;
84                                 }
85                         }
86
87                         part {
88                                 name: "speedbox.step.3";
89                                 type: RECT;
90                                 mouse_events: 1;
91                                 scale: 1;
92                                 description {
93                                         state: "default" 0.0;
94                                         visible: 0;
95                                         min: 112 99;
96                                         fixed: 1 1;
97                                         align: 0.5 1.0;
98                                         rel1 { relative: 0.5 0.0; to: "speedbox.step.2";}
99                                         rel2 { relative: 0.5 0.0; to: "speedbox.step.2";}
100                                         color: SPEED_BOX_BG_COLOR;
101                                 }
102                                 description {
103                                         state: "hide" 0.0;
104                                         inherit: "default" 0.0;
105                                         visible: 1;
106                                 }
107                                 description {
108                                         state: "focus" 0.0;
109                                         inherit: "default" 0.0;
110                                         visible: 1;
111                                         color: SPEED_BOX_PRESS_BG_COLOR;
112                                 }
113                         }
114
115                         part {
116                                 name: "speedbox.step.1.line";
117                                 type: RECT;
118                                 mouse_events: 1;
119                                 scale: 1;
120                                 description {
121                                         state: "default" 0.0;
122                                         visible: 0;
123                                         min: 110 1;
124                                         fixed: 1 1;
125                                         align: 0.5 1.0;
126                                         rel1 { relative: 0.5 0.0; to: "speedbox.step.1";}
127                                         rel2 { relative: 0.5 0.0; to: "speedbox.step.1";}
128                                         color: SPEED_BOX_LINE_COLOR;
129                                 }
130                                 description {
131                                         state: "show" 0.0;
132                                         inherit: "default" 0.0;
133                                         visible: 1;
134                                 }
135                         }
136
137                         part {
138                                 name: "speedbox.step.2.line";
139                                 type: RECT;
140                                 mouse_events: 1;
141                                 scale: 1;
142                                 description {
143                                         state: "default" 0.0;
144                                         visible: 0;
145                                         min: 110 1;
146                                         fixed: 1 1;
147                                         align: 0.5 1.0;
148                                         rel1 { relative: 0.5 0.0; to: "speedbox.step.2";}
149                                         rel2 { relative: 0.5 0.0; to: "speedbox.step.2";}
150                                         color: SPEED_BOX_LINE_COLOR;
151                                 }
152                                 description {
153                                         state: "show" 0.0;
154                                         inherit: "default" 0.0;
155                                         visible: 1;
156                                 }
157                         }
158
159                         part {
160                                 name: "speedbox.step.1.txt";
161                                 type: TEXT;
162                                 mouse_events: 0;
163                                 scale: 1;
164                                 description {
165                                         state: "default" 0.0;
166                                         visible: 0;
167                                         align: 0.0 0.0;
168                                         rel1 { relative: 0.0 0.0; to: "speedbox.step.1";}
169                                         rel2 { relative: 1.0 1.0; to: "speedbox.step.1";}
170                                         color: FONT_PLAYBACK_SPEED_BTN_COLOR;
171                                         text {
172                                                 font: FONT_PLAYBACK_SPEED_FONT;
173                                                 text_class: FONT_PLAYBACK_SPEED_CLASS;
174                                                 size: FONT_PLAYBACK_SPEED_BTN_SIZE;
175                                                 text: "x2";
176                                                 align: 0.5 0.5;
177                                         }
178                                 }
179                                 description {
180                                         state: "show" 0.0;
181                                         inherit: "default" 0.0;
182                                         visible: 1;
183                                 }
184                         }
185
186                         part {
187                                 name: "speedbox.step.2.txt";
188                                 type: TEXT;
189                                 mouse_events: 0;
190                                 scale: 1;
191                                 description {
192                                         state: "default" 0.0;
193                                         visible: 0;
194                                         align: 0.0 0.0;
195                                         rel1 { relative: 0.0 0.0; to: "speedbox.step.2";}
196                                         rel2 { relative: 1.0 1.0; to: "speedbox.step.2";}
197                                         color: FONT_PLAYBACK_SPEED_BTN_COLOR;
198                                         text {
199                                                 font: FONT_PLAYBACK_SPEED_FONT;
200                                                 text_class: FONT_PLAYBACK_SPEED_CLASS;
201                                                 size: FONT_PLAYBACK_SPEED_BTN_SIZE;
202                                                 text: "x3";
203                                                 align: 0.5 0.5;
204                                         }
205                                 }
206                                 description {
207                                         state: "show" 0.0;
208                                         inherit: "default" 0.0;
209                                         visible: 1;
210                                 }
211                         }
212
213                         part {
214                                 name: "speedbox.step.3.txt";
215                                 type: TEXT;
216                                 mouse_events: 0;
217                                 scale: 1;
218                                 description {
219                                         state: "default" 0.0;
220                                         visible: 0;
221                                         align: 0.0 0.0;
222                                         rel1 { relative: 0.0 0.0; to: "speedbox.step.3";}
223                                         rel2 { relative: 1.0 1.0; to: "speedbox.step.3";}
224                                         color: FONT_PLAYBACK_SPEED_BTN_COLOR;
225                                         text {
226                                                 font: FONT_PLAYBACK_SPEED_FONT;
227                                                 text_class: FONT_PLAYBACK_SPEED_CLASS;
228                                                 size: FONT_PLAYBACK_SPEED_BTN_SIZE;
229                                                 text: "x4";
230                                                 align: 0.5 0.5;
231                                         }
232                                 }
233                                 description {
234                                         state: "show" 0.0;
235                                         inherit: "default" 0.0;
236                                         visible: 1;
237                                 }
238                         }
239                 } /* parts */
240                 programs {
241                         program {
242                                 signal: "signal.speedbox.visible.on";
243                                 source: "*";
244                                 after: "set.speedbox.visible.on";
245                         }
246
247                         program {
248                                 signal: "signal.speedbox.visible.off";
249                                 source: "*";
250                                 after: "set.speedbox.visible.off";
251                         }
252
253                         program {
254                                 name: "set.speedbox.visible.on";
255                                 source: "*";
256                                 action: STATE_SET "show" 0.0;
257
258                                 target: "speedbox.bg";
259                                 target: "speedbox.step.1";
260                                 target: "speedbox.step.2";
261                                 target: "speedbox.step.3";
262                                 target: "speedbox.step.1.line";
263                                 target: "speedbox.step.2.line";
264                                 target: "speedbox.step.1.txt";
265                                 target: "speedbox.step.2.txt";
266                                 target: "speedbox.step.3.txt";
267                         }
268
269                         program {
270                                 name: "set.speedbox.visible.off";
271                                 source: "*";
272                                 action: STATE_SET "default" 0.0;
273
274                                 target: "speedbox.bg";
275                                 target: "speedbox.step.1";
276                                 target: "speedbox.step.2";
277                                 target: "speedbox.step.3";
278                                 target: "speedbox.step.1.line";
279                                 target: "speedbox.step.2.line";
280                                 target: "speedbox.step.1.txt";
281                                 target: "speedbox.step.2.txt";
282                                 target: "speedbox.step.3.txt";
283                         }
284                         program {
285                                 signal: "signal.speedbox.set.mode.1";
286                                 source: "*";
287                                 script {
288                                         set_state(PART:"speedbox.step.1", "focus", 0.0);
289                                         set_state(PART:"speedbox.step.2", "show", 0.0);
290                                         set_state(PART:"speedbox.step.3", "show", 0.0);
291                                 }
292                         }
293                         program {
294                                 signal: "signal.speedbox.set.mode.2";
295                                 source: "*";
296                                 script {
297                                         set_state(PART:"speedbox.step.1", "show", 0.0);
298                                         set_state(PART:"speedbox.step.2", "focus", 0.0);
299                                         set_state(PART:"speedbox.step.3", "show", 0.0);
300                                 }
301                         }
302                         program {
303                                 signal: "signal.speedbox.set.mode.3";
304                                 source: "*";
305                                 script {
306                                         set_state(PART:"speedbox.step.1", "show", 0.0);
307                                         set_state(PART:"speedbox.step.2", "show", 0.0);
308                                         set_state(PART:"speedbox.step.3", "focus", 0.0);
309                                 }
310                         }
311
312                 } /* programs */
313         } /* groups */
314 } /* collections */