summaryrefslogtreecommitdiff
path: root/edc/cam_zoom_layout_inverse.edc
blob: 8eefd89180c5da4ac79d26aa9d614c9a10d5eb2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/*
 * Copyright 2012  Samsung Electronics Co., Ltd
 *
 * Licensed under the Flora License, Version 1.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *	  http://floralicense.org/license/
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


#include "../include/edc_image_name.h"
#include "../include/edc_string.h"

#define ZOOM_BG_X	188
#define ZOOM_BG_Y	89

#define ZOOM_BG_W	96
#define ZOOM_BG_H	542

#define ZOOM_TEXT_X	0
#define ZOOM_TEXT_Y	26
#define ZOOM_TEXT_W	96
#define ZOOM_TEXT_H	44

#define ZOOM_SLIDE_X	0
#define ZOOM_SLIDE_Y	104


images {
	image: ZOOM_BG_IMAGE COMP;
}

collections {
	group {
		name: "main";

		parts {
			part {
				name: "bg";
				type: RECT;
				scale: 1;
				description {
					state: "default" 0.0;
					visible: 0.0;
					min: MAIN_W MAIN_H;
					max: MAIN_W MAIN_H;
					fixed: 1 1;
					rel1 { relative: 0.0 0.0;}
					rel2 { relative: 1.0 1.0;}
				}
			}
			part {
				name: "bg_image";
				type: IMAGE;
				description {
					state: "default" 0.0;
					rel1 { relative: (1 - (ZOOM_BG_X+ZOOM_BG_W)/MAIN_W) (1 - (ZOOM_BG_Y+ZOOM_BG_H)/MAIN_H) ; offset: 0 0; to: "bg";}
					rel2 { relative: (1 - ZOOM_BG_X/MAIN_W) (1 - ZOOM_BG_Y/MAIN_H); offset: -1 -1; to: "bg";}
					image { normal: ZOOM_BG_IMAGE; }

				}
			}
			part {
				name: "text_min";
				type: TEXT;
				scale: 1;
				description {
					state: "default" 0.0;
					rel1 { relative: 0.0 (1 - (ZOOM_BG_H-ZOOM_TEXT_Y)/ZOOM_BG_H); to: "bg_image"; }
					rel2 { relative: 1.0 (1 - (ZOOM_BG_H-ZOOM_TEXT_H-ZOOM_TEXT_Y)/ZOOM_BG_H); to: "bg_image"; }
					text {
						font : FONT_NAME;
						size : 40;
						align: 0.5 0.5;
					}
			      	}
			}
			part {
				name: "text_max";
				type: TEXT;
				scale: 1;
				description {
					state: "default" 0.0;
					rel1 { relative: 0.0 (1.0 - (ZOOM_TEXT_Y+ZOOM_TEXT_H)/ZOOM_BG_H); to: "bg_image"; }
					rel2 { relative: 1.0 (1.0 - ZOOM_TEXT_Y/ZOOM_BG_H); to: "bg_image"; }
					text {
						font : FONT_NAME;
						size : 40;
						align: 0.5 0.5;
					}
				}
			}
			part {
				name: "slider";
				type: SWALLOW;
				description {
					state: "default" 0.0;
					rel1 { relative: 0.0 (1.0 - (ZOOM_BG_H-ZOOM_SLIDE_Y)/ZOOM_BG_H); to: "bg_image"; }
					rel2 { relative: 1.0 (1.0 - ZOOM_SLIDE_Y/ZOOM_BG_H); to: "bg_image"; }
				}
			}
			programs {
				program {
					name:"set.zoom.default";
					source: "prog";
					signal: "set.zoom.default";
					script: {
						set_state(PART:"bg_image", "default", 0.0);
					}
				}
				program {
					name:"set.zoom.landscape_inverse";
					source: "prog";
					signal: "set.zoom.landscape_inverse";
					script: {
						set_state(PART:"bg_image", "landscape_inverse", 0.0);
					}
				}
				program {
					name:"set.zoom.portrait";
					source: "prog";
					signal: "set.zoom.portrait";
					script: {
						set_state(PART:"bg_image", "portrait", 0.0);
					}
				}
				program {
					name:"set.zoom.portrait_inverse";
					source: "prog";
					signal: "set.zoom.portrait_inverse";
					script: {
						set_state(PART:"bg_image", "portrait_inverse", 0.0);
					}
				}
			}
		}
	}
}
//end files