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