57cac3598470c7abeb29446b7edb55df72e7e2c5
[apps/core/preloaded/ug-camera-efl.git] / edc / style_slider_camera.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://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
18 #include "../include/edc_image_name.h"
19 #include "style_tizen_hd_inc.edc"
20
21 images {
22         image: SLIDER_BAR_IMAGE COMP;
23         image: SLIDER_BAR_VER_IMAGE COMP;
24         image: SLIDER_HANDLER_IMAGE COMP;
25 }
26
27 collections {
28
29         group {
30                 name: "elm/slider/vertical/camera";
31
32                 parts {
33                         part {
34                                 name: "base";
35                                 mouse_events: 0;
36                                 description {
37                                         state: "default" 0.0;
38                                         max: 20 99999;
39                                         min: 6 0;
40                                         rel1 { to: "bg"; offset: 0 0; }
41                                         rel2 { to: "bg"; offset: -1 -1; }
42                                         image.normal: SLIDER_BAR_IMAGE;
43                                         fill.smooth: 0;
44                                 }
45                         }
46                         part {
47                                 name: "bg";
48                                 type: RECT;
49                                 mouse_events: 0;
50                                 scale: 1;
51                                 description {
52                                         state: "default" 0.0;
53                                         visible: 0;
54                                         rel1.to: "elm.swallow.bar";
55                                         rel2.to: "elm.swallow.bar";
56                                         color: 0 0 0 0;
57                                 }
58                         }
59                         part {
60                                 name: "elm.swallow.bar";
61                                 type: SWALLOW;
62                                 scale: 1;
63                                 description {
64                                         state: "default" 0.0;
65                                         min: 20 58;
66                                         max: 20 9999;
67                                         align: 0.5 1.0;
68                                 }
69                         }
70                         part {
71                                 name: "elm.swallow.icon";
72                                 type: SWALLOW;
73                                 scale: 1;
74                                 description {
75                                         state: "default" 0.0;
76                                         visible: 0;
77                                         align: 0.5 0.0;
78                                         rel1 { offset: 0 4; to_x: "elm.swallow.bar"; }
79                                         rel2 { offset: -1 3; relative: 1.0 0.0; to_x: "elm.swallow.bar"; }
80                                 }
81                                 description {
82                                         state: "visible" 0.0;
83                                         inherit: "default" 0.0;
84                                         visible: 1;
85                                         aspect: 1.0 1.0;
86                                         aspect_preference: HORIZONTAL;
87                                         rel2.offset: -1 4;
88                                 }
89                         }
90                         part {
91                                 name: "elm.swallow.end";
92                                 type: SWALLOW;
93                                 description {
94                                         state: "default" 0.0;
95                                         visible: 0;
96                                         align: 0.5 1.0;
97                                         rel1 { offset: 0 -4; relative: 0.0 1.0; to_x: "elm.swallow.bar"; }
98                                         rel2 { offset: -1 -3; to_x: "elm.swallow.bar"; }
99                                 }
100                                 description {
101                                         state: "visible" 0.0;
102                                         inherit: "default" 0.0;
103                                         visible: 1;
104                                         aspect: 1.0 1.0;
105                                         aspect_preference: HORIZONTAL;
106                                         rel2.offset: -1 -4;
107                                 }
108                         }
109                         part {
110                                 name: "elm.dragable.slider";
111                                 type: GROUP;
112                                 source: "elm/slider/vertical/indicator/camera";
113                                 mouse_events: 1;
114                                 repeat_events: 1;
115                                 scale: 1;
116                                 dragable {
117                                         x: 0 0 0;
118                                         y: 1 1 0;
119                                         confine: "bg";
120                                 }
121                                 description {
122                                         state: "default" 0.0;
123                                         min: 20 20;
124                                         fixed: 1 1;
125                                         align: 0.5 0.5;
126                                         color: 0 0 0 0;
127                                 }
128                         }
129                         part {
130                                 name: "disabler";
131                                 type: RECT;
132                                 description {
133                                         state: "default" 0.0;
134                                         color: SLIDER_DISABLER_PART_COLOR_INC;
135                                         visible: 0;
136                                 }
137                                 description {
138                                         state: "disabled" 0.0;
139                                         inherit: "default" 0.0;
140                                         visible: 1;
141                                 }
142                         }
143                 }
144
145                 programs {
146                         program {
147                                 name: "icon_show";
148                                 signal: "elm,state,icon,visible";
149                                 source: "elm";
150                                 action:  STATE_SET "visible" 0.0;
151                                 target: "elm.swallow.icon";
152                         }
153                         program {
154                                 name: "icon_hide";
155                                 signal: "elm,state,icon,hidden";
156                                 source: "elm";
157                                 action:  STATE_SET "default" 0.0;
158                                 target: "elm.swallow.icon";
159                         }
160                         program {
161                                 name: "end_show";
162                                 signal: "elm,state,end,visible";
163                                 source: "elm";
164                                 action:  STATE_SET "visible" 0.0;
165                                 target: "elm.swallow.end";
166                         }
167                         program {
168                                 name: "end_hide";
169                                 signal: "elm,state,end,hidden";
170                                 source: "elm";
171                                 action:  STATE_SET "default" 0.0;
172                                 target: "elm.swallow.end";
173                         }
174                         program {
175                                 name:   "slider_disable";
176                                 signal: "elm,state,disabled";
177                                 source: "elm";
178                                 action: STATE_SET "disabled" 0.0;
179                                 target: "disabler";
180                                 after: "disable_ind";
181                         }
182                         program {
183                                 name: "disable_ind";
184                                 action: SIGNAL_EMIT "elm.dragable.slider:elm,state,disabled" "elm";
185                         }
186                         program {
187                                 name: "slider_enable";
188                                 signal: "elm,state,enabled";
189                                 source: "elm";
190                                 action: STATE_SET "default" 0.0;
191                                 target: "disabler";
192                                 after: "enable_ind";
193                         }
194                         program {
195                                 name: "enable_ind";
196                                 action: SIGNAL_EMIT "elm.dragable.slider:elm,state,enabled" "elm";
197                         }
198                 }
199         }
200
201         group {
202                 name: "elm/slider/vertical/indicator/camera";
203
204                 parts {
205                         part {
206                                 name: "button_events";
207                                 type: RECT;
208                                 mouse_events: 1;
209                                 scale: 1;
210                                 description {
211                                         state: "default" 0.0;
212                                         fixed: 1 1;
213                                         min: 60 60;
214                                         aspect: 1.0 1.0;
215                                         aspect_preference: VERTICAL;
216                                         color: 0 0 0 0;
217                                 }
218                         }
219                         part {
220                                 name: "button0";
221                                 mouse_events: 0;
222                                 scale: 1;
223                                 description {
224                                         state: "default" 0.0;
225                                         fixed: 1 1;
226                                         min: 60 60;
227                                         image {
228                                                 normal: SLIDER_HANDLER_IMAGE;
229                                         }
230                                         fill.smooth: 0;
231                                 }
232                                 description {
233                                         state: "disabled" 0.0;
234                                         inherit: "default" 0.0;
235                                 }
236                         }
237                 }
238
239                 programs {
240                         program {
241                                 name: "slider_disable";
242                                 signal: "elm,state,disabled";
243                                 source: "elm";
244                                 action: STATE_SET "disabled" 0.0;
245                                 target: "button0";
246                         }
247                         program {
248                                 name: "slider_enable";
249                                 signal: "elm,state,enabled";
250                                 source: "elm";
251                                 action: STATE_SET "default" 0.0;
252                                 target: "button0";
253                         }
254                 }
255         }
256
257 /*hor edc*/
258 /////////////////////////////////////////////////////////////////
259         group {
260                 name: "elm/slider/horizontal/camera";
261
262                 parts {
263                         part {
264                                 name: "base";
265                                 mouse_events: 0;
266                                 scale: 1;
267                                 description {
268                                         state: "default" 0.0;
269                                         min: 0 6;
270                                         max: 99999 20;
271                                         rel1 { to: "bg"; offset: 0 0; }
272                                         rel2 { to: "bg"; offset: -1 -1; }
273                                         image.normal: SLIDER_BAR_VER_IMAGE;
274                                         fill.smooth: 0;
275                                 }
276                         }
277                         part {
278                                 name: "bg";
279                                 type: RECT;
280                                 mouse_events: 0;
281                                 scale: 1;
282                                 description {
283                                         state: "default" 0.0;
284                                         visible: 0;
285                                         rel1.to: "elm.swallow.bar";
286                                         rel2.to: "elm.swallow.bar";
287                                         color: 0 0 0 0;
288                                 }
289                         }
290                         part {
291                                 name: "elm.swallow.bar";
292                                 type: SWALLOW;
293                                 scale: 1;
294                                 description {
295                                         state: "default" 0.0;
296                                         min: 58 20;
297                                         max: 99999 20;
298                                         align: 1.0 0.5;
299                                 }
300                         }
301                         part {
302                                 name: "elm.swallow.icon";
303                                 type: SWALLOW;
304                                 scale: 1;
305                                 description {
306                                         state: "default" 0.0;
307                                         visible: 0;
308                                         align: 0.0 0.5;
309                                         rel1 { to_y: "elm.swallow.bar"; }
310                                         rel2 { relative: 0.0 1.0; to_y: "elm.swallow.bar"; }
311                                 }
312                                 description {
313                                         state: "visible" 0.0;
314                                         inherit: "default" 0.0;
315                                         visible: 1;
316                                         aspect: 1.0 1.0;
317                                         aspect_preference: VERTICAL;
318                                 }
319                         }
320                         part {
321                                 name: "elm.swallow.end";
322                                 type: SWALLOW;
323                                 scale: 1;
324                                 description {
325                                         state: "default" 0.0;
326                                         visible: 0;
327                                         align: 1.0 0.5;
328                                         rel1 { relative: 1.0 0.0; to_y: "elm.swallow.bar"; }
329                                         rel2 { relative: 1.0 1.0; to_y: "elm.swallow.bar"; }
330                                 }
331                                 description {
332                                         state: "visible" 0.0;
333                                         inherit: "default" 0.0;
334                                         visible: 1;
335                                         aspect: 1.0 1.0;
336                                         aspect_preference: VERTICAL;
337                                 }
338                         }
339
340                         part {
341                                 name: "elm.dragable.slider";
342                                 type: GROUP;
343                                 source: "elm/slider/horizontal/indicator/camera";
344                                 mouse_events: 1;
345                                 repeat_events: 1;
346                                 scale: 1;
347                                 dragable {
348                                         x: 1 1 0;
349                                         y: 0 0 0;
350                                         confine: "bg";
351                                 }
352                                 description {
353                                         state: "default" 0.0;
354                                         min: 20 20;
355                                         fixed: 1 1;
356                                         align: 0.5 0.5;
357                                         color: 0 0 0 0;
358                                 }
359                         }
360                         part {
361                                 name: "disabler";
362                                 type: RECT;
363                                 scale: 1;
364                                 description {
365                                         state: "default" 0.0;
366                                         visible: 0;
367                                         color: SLIDER_DISABLER_PART_COLOR_INC;
368                                 }
369                                 description {
370                                         state: "disabled" 0.0;
371                                         inherit: "default" 0.0;
372                                         visible: 1;
373                                 }
374                         }
375                 }
376
377                 programs {
378                         program {
379                                 name: "icon_show";
380                                 signal: "elm,state,icon,visible";
381                                 source: "elm";
382                                 action:  STATE_SET "visible" 0.0;
383                                 target: "elm.swallow.icon";
384                         }
385                         program {
386                                 name: "icon_hide";
387                                 signal: "elm,state,icon,hidden";
388                                 source: "elm";
389                                 action:  STATE_SET "default" 0.0;
390                                 target: "elm.swallow.icon";
391                         }
392                         program {
393                                 name: "end_show";
394                                 signal: "elm,state,end,visible";
395                                 source: "elm";
396                                 action:  STATE_SET "visible" 0.0;
397                                 target: "elm.swallow.end";
398                         }
399                         program {
400                                 name: "end_hide";
401                                 signal: "elm,state,end,hidden";
402                                 source: "elm";
403                                 action:  STATE_SET "default" 0.0;
404                                 target: "elm.swallow.end";
405                         }
406                         program {
407                                 name: "slider_disable";
408                                 signal: "elm,state,disabled";
409                                 source: "elm";
410                                 action: STATE_SET "disabled" 0.0;
411                                 target: "disabler";
412                                 after: "disable_ind";
413                         }
414                         program {
415                                 name: "disable_ind";
416                                 action: SIGNAL_EMIT "elm.dragable.slider:elm,state,disabled" "elm";
417                         }
418                         program {
419                                 name: "slider_enable";
420                                 signal: "elm,state,enabled";
421                                 source: "elm";
422                                 action: STATE_SET "default" 0.0;
423                                 target: "disabler";
424                                 after: "enable_ind";
425                         }
426                         program {
427                                 name: "enable_ind";
428                                 action: SIGNAL_EMIT "elm.dragable.slider:elm,state,enabled" "elm";
429                         }
430                 }
431         }
432
433         group {
434                 name: "elm/slider/horizontal/indicator/camera";
435
436                 parts {
437                         part {
438                                 name: "button_events";
439                                 type: RECT;
440                                 mouse_events: 1;
441                                 scale: 1;
442                                 description {
443                                         state: "default" 0.0;
444                                         fixed: 1 1;
445                                         min: 60 60;
446                                         aspect: 1.0 1.0;
447                                         aspect_preference: VERTICAL;
448                                         color: 0 0 0 0;
449                                 }
450                         }
451                         part {
452                                 name: "button0";
453                                 mouse_events: 0;
454                                 scale: 1;
455                                 description {
456                                         state: "default" 0.0;
457                                         fixed: 1 1;
458                                         min: 60 60;
459                                         image {
460                                                 normal: SLIDER_HANDLER_IMAGE;
461                                         }
462                                         fill.smooth: 0;
463                                 }
464                                 description {
465                                         state: "disabled" 0.0;
466                                         inherit: "default" 0.0;
467                                 }
468                         }
469                 }
470                 programs {
471                         program { name: "slider_disable";
472                                 signal: "elm,state,disabled";
473                                 source: "elm";
474                                 action:  STATE_SET "disabled" 0.0;
475                                 target: "button0";
476                         }
477                         program { name: "slider_enable";
478                                 signal: "elm,state,enabled";
479                                 source: "elm";
480                                 action:  STATE_SET "default" 0.0;
481                                 target: "button0";
482                         }
483                 }
484         }
485 }
486
487 //end file
488