Making changes to make gstreamer calls work correctly on IVI
[profile/ivi/camera.git] / edc / cam_zoom_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://www.tizenopensource.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       (1280 - 250)
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_IMAGE COMP;
38         image: ZOOM_BG_VER_IMAGE COMP;
39 }
40
41 collections {
42         group {
43                 name: "main";
44
45                 parts {
46                         part {
47                                 name: "bg_image";
48                                 type: IMAGE;
49                                 description {
50                                         state: "landscape_inverse" 0.0;
51                                         rel1 { relative: (1 - (ZOOM_BG_X+ZOOM_BG_W)/MAIN_W) (1 - (ZOOM_BG_Y+ZOOM_BG_H)/MAIN_H) ; offset: 0 0; }
52                                         rel2 { relative: (1 - ZOOM_BG_X/MAIN_W) (1 - ZOOM_BG_Y/MAIN_H); offset: -1 -1; }
53                                         image { normal: ZOOM_BG_IMAGE; }
54
55                                 }
56                         }
57                         part {
58                                 name: "text_min";
59                                 type: TEXT;
60                                 scale: 1;
61                                 description {
62                                         state: "default" 0.0;
63                                         rel1 { relative: 0.0 (1 - (ZOOM_BG_H-ZOOM_TEXT_Y)/ZOOM_BG_H); to: "bg_image"; }
64                                         rel2 { relative: 1.0 (1 - (ZOOM_BG_H-ZOOM_TEXT_H-ZOOM_TEXT_Y)/ZOOM_BG_H); to: "bg_image"; }
65                                         text {
66                                                 font : FONT_NAME;
67                                                 size : 40;
68                                                 align: 0.5 0.5;
69                                         }
70                                 }
71                         }
72                         part {
73                                 name: "text_max";
74                                 type: TEXT;
75                                 scale: 1;
76                                 description {
77                                         state: "default" 0.0;
78                                         rel1 { relative: 0.0 (1.0 - (ZOOM_TEXT_Y+ZOOM_TEXT_H)/ZOOM_BG_H); to: "bg_image"; }
79                                         rel2 { relative: 1.0 (1.0 - ZOOM_TEXT_Y/ZOOM_BG_H); to: "bg_image"; }
80                                         text {
81                                                 font : FONT_NAME;
82                                                 size : 40;
83                                                 align: 0.5 0.5;
84                                         }
85                                 }
86                         }
87                         part {
88                                 name: "slider";
89                                 type: SWALLOW;
90                                 description {
91                                         state: "default" 0.0;
92                                         rel1 { relative: 0.0 (1.0 - (ZOOM_BG_H-ZOOM_SLIDE_Y)/ZOOM_BG_H); to: "bg_image"; }
93                                         rel2 { relative: 1.0 (1.0 - ZOOM_SLIDE_Y/ZOOM_BG_H); to: "bg_image"; }
94                                 }
95                         }
96                         programs {
97                                 program {
98                                         name:"set.zoom.default";
99                                         source: "prog";
100                                         signal: "set.zoom.default";
101                                         script: {
102                                                 set_state(PART:"bg_image", "default", 0.0);
103                                         }
104                                 }
105                                 program {
106                                         name:"set.zoom.landscape_inverse";
107                                         source: "prog";
108                                         signal: "set.zoom.landscape_inverse";
109                                         script: {
110                                                 set_state(PART:"bg_image", "landscape_inverse", 0.0);
111                                         }
112                                 }
113                                 program {
114                                         name:"set.zoom.portrait";
115                                         source: "prog";
116                                         signal: "set.zoom.portrait";
117                                         script: {
118                                                 set_state(PART:"bg_image", "portrait", 0.0);
119                                         }
120                                 }
121                                 program {
122                                         name:"set.zoom.portrait_inverse";
123                                         source: "prog";
124                                         signal: "set.zoom.portrait_inverse";
125                                         script: {
126                                                 set_state(PART:"bg_image", "portrait_inverse", 0.0);
127                                         }
128                                 }
129                         }
130                 }
131         }
132 }
133 //end files