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