5d02699a431d0b2e3b816bc938b49ac88fa1c365
[apps/core/preloaded/ug-camera-efl.git] / edc / cam_zoom_layout_vertical_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 ZOOM_BG_X       188
22 #define ZOOM_BG_Y       89
23
24 #define ZOOM_BG_W       96
25 #define ZOOM_BG_H       542
26
27 #define ZOOM_TEXT_X     0
28 #define ZOOM_TEXT_Y     26
29 #define ZOOM_TEXT_W     96
30 #define ZOOM_TEXT_H     44
31
32 #define ZOOM_SLIDE_X    0
33 #define ZOOM_SLIDE_Y    104
34
35
36 images {
37         image: ZOOM_BG_VER_IMAGE COMP;
38 }
39
40 collections {
41         group {
42                 name: "main";
43
44                 parts {
45                         part {
46                                 name: "bg";
47                                 type: RECT;
48                                 scale: 1;
49                                 description {
50                                         state: "default" 0.0;
51                                         visible: 0.0;
52                                         min: MAIN_H MAIN_W;
53                                         max: MAIN_H MAIN_W;
54                                         fixed: 1 1;
55                                         rel1 { relative: 0.0 0.0;}
56                                         rel2 { relative: 1.0 1.0;}
57                                 }
58                         }
59                         part {
60                                 name: "bg_image";
61                                 type: IMAGE;
62                                 description {
63                                         state: "default" 0.0;
64                                         rel1 { relative: ZOOM_BG_Y/MAIN_H (1 - (ZOOM_BG_X+ZOOM_BG_W)/MAIN_W); offset: 0 0; to: "bg";}
65                                         rel2 { relative: (ZOOM_BG_Y+ZOOM_BG_H)/MAIN_H (1 - ZOOM_BG_X/MAIN_W); offset: -1 -1; to: "bg";}
66                                         image { normal: ZOOM_BG_VER_IMAGE; }
67
68                                 }
69                         }
70                         part {
71                                 name: "text_min";
72                                 type: TEXT;
73                                 scale: 1;
74                                 description {
75                                         state: "default" 0.0;
76                                         rel1 { relative: (ZOOM_BG_H-ZOOM_TEXT_H-ZOOM_TEXT_Y)/ZOOM_BG_H 0.0 ; to: "bg_image"; }
77                                         rel2 { relative: (ZOOM_BG_H-ZOOM_TEXT_Y)/ZOOM_BG_H 1.0; to: "bg_image"; }
78                                         text {
79                                                 font : FONT_NAME;
80                                                 size : 40;
81                                                 align: 0.5 0.5;
82                                         }
83                                 }
84                         }
85                         part {
86                                 name: "text_max";
87                                 type: TEXT;
88                                 scale: 1;
89                                 description {
90                                         state: "default" 0.0;
91                                         rel1 { relative: ZOOM_TEXT_Y/ZOOM_BG_H 0.0; to: "bg_image"; }
92                                         rel2 { relative: (ZOOM_TEXT_Y+ZOOM_TEXT_H)/ZOOM_BG_H 1.0; to: "bg_image"; }
93                                         text {
94                                                 font : FONT_NAME;
95                                                 size : 40;
96                                                 align: 0.5 0.5;
97                                         }
98                                 }
99                         }
100                         part {
101                                 name: "slider";
102                                 type: SWALLOW;
103                                 description {
104                                         state: "default" 0.0;
105                                         rel1 { relative: ZOOM_SLIDE_Y/ZOOM_BG_H 0.0; to: "bg_image"; }
106                                         rel2 { relative: (ZOOM_BG_H-ZOOM_SLIDE_Y)/ZOOM_BG_H 1.0; to: "bg_image"; }
107                                 }
108                         }
109                         programs {
110                                 program {
111                                         name:"set.zoom.default";
112                                         source: "prog";
113                                         signal: "set.zoom.default";
114                                         script: {
115                                                 set_state(PART:"bg_image", "default", 0.0);
116                                         }
117                                 }
118                                 program {
119                                         name:"set.zoom.landscape_inverse";
120                                         source: "prog";
121                                         signal: "set.zoom.landscape_inverse";
122                                         script: {
123                                                 set_state(PART:"bg_image", "landscape_inverse", 0.0);
124                                         }
125                                 }
126                                 program {
127                                         name:"set.zoom.portrait";
128                                         source: "prog";
129                                         signal: "set.zoom.portrait";
130                                         script: {
131                                                 set_state(PART:"bg_image", "portrait", 0.0);
132                                         }
133                                 }
134                                 program {
135                                         name:"set.zoom.portrait_inverse";
136                                         source: "prog";
137                                         signal: "set.zoom.portrait_inverse";
138                                         script: {
139                                                 set_state(PART:"bg_image", "portrait_inverse", 0.0);
140                                         }
141                                 }
142                         }
143                 }
144         }
145 }
146 //end files