merge with master
[apps/core/preloaded/ug-camera-efl.git] / edc / cam_ev_layout_inverse.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 "../include/edc_string.h"
20
21 #define EV_BG_X         188
22 #define EV_BG_Y         72
23 #define EV_BG_W         116
24 #define EV_BG_H         576
25
26 #define EV_ICON_X       15
27 #define EV_ICON_Y       14
28 #define EV_ICON_W       86
29 #define EV_ICON_H       86
30
31 #define EV_SLIDE_X      0
32 #define EV_SLIDE_Y      120
33
34
35 images {
36         image: ZOOM_BG_IMAGE COMP;
37         image: EXPOSURE_VALUE_MINUS_2_0_ICON COMP;
38         image: EXPOSURE_VALUE_MINUS_2_0_PRESS_ICON COMP;
39         image: EXPOSURE_VALUE_PLUS_2_0_ICON COMP;
40         image: EXPOSURE_VALUE_PLUS_2_0_PRESS_ICON COMP;
41 }
42
43 collections {
44         group {
45                 name: "main";
46
47                 parts {
48                         part {
49                                 name: "bg";
50                                 type: RECT;
51                                 scale: 1;
52                                 description {
53                                         state: "default" 0.0;
54                                         visible: 0.0;
55                                         min: MAIN_W MAIN_H;
56                                         max: MAIN_W MAIN_H;
57                                         fixed: 1 1;
58                                         rel1 { relative: 0.0 0.0;}
59                                         rel2 { relative: 1.0 1.0;}
60                                 }
61                         }
62                         part {
63                                 name: "bg_image";
64                                 type: IMAGE;
65                                 description {
66                                         state: "default" 0.0;
67                                         rel1 { relative: (1 - (EV_BG_X+EV_BG_W)/MAIN_W) (1 - (EV_BG_Y+EV_BG_H)/MAIN_H); to: "bg";}
68                                         rel2 { relative: (1 - EV_BG_X/MAIN_W) (1 - EV_BG_Y/MAIN_H); to: "bg";}
69                                         image { normal: ZOOM_BG_IMAGE; }
70                                 }
71                         }
72                         part {
73                                 name: "icon_minus";
74                                 type: IMAGE;
75                                 scale: 1;
76                                 description {
77                                         state: "default" 0.0;
78                                         rel1 { relative: (1 - (EV_ICON_X+EV_ICON_W)/EV_BG_W) (1 - (EV_BG_H-EV_ICON_Y)/EV_BG_H); to: "bg_image"; }
79                                         rel2 { relative: (1 - EV_ICON_X/EV_BG_W) (1 - (EV_BG_H-EV_ICON_Y-EV_ICON_H)/EV_BG_H); to: "bg_image"; }
80                                         image { normal: EXPOSURE_VALUE_MINUS_2_0_ICON; }
81                                 }
82                                 description {
83                                         state: "press" 0.0;
84                                         inherit: "default" 0.0;
85                                         image { normal: EXPOSURE_VALUE_MINUS_2_0_PRESS_ICON; }
86                                 }
87                         }
88                         part {
89                                 name: "icon_plus";
90                                 type: IMAGE;
91                                 scale: 1;
92                                 description {
93                                         state: "default" 0.0;
94                                         rel1 { relative: (1 - (EV_ICON_X+EV_ICON_W)/EV_BG_W) (1 - (EV_ICON_Y+EV_ICON_H)/EV_BG_H); to: "bg_image"; }
95                                         rel2 { relative: (1 - EV_ICON_X/EV_BG_W) (1 - EV_ICON_Y/EV_BG_H); to: "bg_image"; }
96                                         image { normal: EXPOSURE_VALUE_PLUS_2_0_ICON; }
97                                 }
98                                 description {
99                                         state: "press" 0.0;
100                                         inherit: "default" 0.0;
101                                         image { normal: EXPOSURE_VALUE_PLUS_2_0_PRESS_ICON; }
102                                 }
103                         }
104                         part {
105                                 name: "slider";
106                                 type: SWALLOW;
107                                 description {
108                                         state: "default" 0.0;
109                                         rel1 { relative: 0.0 (1 - (EV_BG_H-EV_SLIDE_Y)/EV_BG_H); to: "bg_image"; }
110                                         rel2 { relative: 1.0 (1 - EV_SLIDE_Y/EV_BG_H); to: "bg_image"; }
111                                 }
112                         }
113                 }
114
115                 programs {
116                         program {
117                                 name: "icon_minus_press";
118                                 signal: "mouse,down,1";
119                                 source: "icon_minus";
120                                 action: STATE_SET "press" 0.0;
121                                 target: "icon_minus";
122                         }
123                         program {
124                                 name: "icon_minus_release";
125                                 signal: "mouse,up,1";
126                                 source: "icon_minus";
127                                 action: STATE_SET "default" 0.0;
128                                 target: "icon_minus";
129                         }
130                         program {
131                                 name: "icon_minus_clicked";
132                                 signal: "mouse,clicked,1";
133                                 source: "icon_minus";
134                                 action: SIGNAL_EMIT "icon_minus,clicked" "ev_icon_signal";
135                         }
136                         program {
137                                 name: "icon_plus_press";
138                                 signal: "mouse,down,1";
139                                 source: "icon_plus";
140                                 action: STATE_SET "press" 0.0;
141                                 target: "icon_plus";
142                         }
143                         program {
144                                 name: "icon_plus_release";
145                                 signal: "mouse,up,1";
146                                 source: "icon_plus";
147                                 action: STATE_SET "default" 0.0;
148                                 target: "icon_plus";
149                         }
150                         program {
151                                 name: "icon_plus_clicked";
152                                 signal: "mouse,clicked,1";
153                                 source: "icon_plus";
154                                 action: SIGNAL_EMIT "icon_plus,clicked" "ev_icon_signal";
155                         }
156                 }
157         }
158 }
159 //end files