2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (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
8 * http://floralicense.org/license/
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.
18 #include "cam_funcs.edc"
19 #include "../include/edc_image_name.h"
21 #define CAM_FOCUS_IMG "CAMERA_FOCUS_IMG"
24 image: FOCUS_GUIDE_NOTREADY_IMAGE COMP;
25 image: FOCUS_GUIDE_FOCUSED_IMAGE COMP;
26 image: FOCUS_GUIDE_FAILED_IMAGE COMP;
27 image: SHOTTING_MODE_POPUP_BG_IMAGE COMP;
28 image: TIMER_ICON_BG_IMAGE COMP;
33 name: "textblock_style";
34 base: "font=SLP:style=Roman font_size=40 align=left valign=top color=#ffffff wrap=word";
39 name: "textblock_style_center";
40 base: "font=SLP:style=Roman font_size=40 align=center valign=top color=#ffffff wrap=word";
45 name: "textblock_style_shot_guide";
46 base: "font=SLP:style=Roman font_size=36 align=center color=#FFFFFF ellipise=1.0 wrap=mixed";
48 tag: "hilight" "+ font=SLP:style=Bold";
49 tag: "b" "+ font=SLP:style=Bold";
56 group { name: "focus_image";
57 min: CAMERA_FOCUS_W CAMERA_FOCUS_H;
58 max: CAMERA_FOCUS_W CAMERA_FOCUS_H;
69 rel1 { relative: 0.0 0.0; }
70 rel2 { relative: 1.0 1.0; }
74 state: "notready" 0.0;
75 inherit: "default" 0.0;
78 normal: FOCUS_GUIDE_NOTREADY_IMAGE;
85 inherit: "default" 0.0;
88 normal:FOCUS_GUIDE_FOCUSED_IMAGE;
95 inherit: "default" 0.0;
98 normal: FOCUS_GUIDE_FAILED_IMAGE;
108 program { name: "focus,hide";
110 signal: "focus,hide";
111 action: STATE_SET "default" 0.0;
112 target: CAM_FOCUS_IMG;
114 program { name: "focus,notready";
116 signal: "focus,notready";
117 action: STATE_SET "notready" 0.0;
118 target: CAM_FOCUS_IMG;
120 program { name: "focus,focused";
122 signal: "focus,focused";
123 action: STATE_SET "focused" 0.0;
124 target: CAM_FOCUS_IMG;
126 program { name: "focus,failed";
128 signal: "focus,failed";
129 action: STATE_SET "failed" 0.0;
130 target: CAM_FOCUS_IMG;
135 #define PX_POPUP_BOX_X 288
136 #define PX_POPUP_BOX_Y 239
137 #define VER_PX_POPUP_BOX_X 8
138 #define VER_PX_POPUP_BOX_Y 519
140 #define PX_POPUP_BOX_W 704
141 #define PX_POPUP_BOX_H 242
144 #define PX_POPUP_TEXT_Y 32
146 #define PX_POPUP_BAR_X 72
147 #define PX_POPUP_BAR_Y 182
148 #define PX_POPUP_BAR_W 560
149 #define PX_POPUP_BAR_H 21
152 group { name: "progress_popup";
155 name: "progress_popup_bg";
160 state: "default" 0.0;
162 rel1 { relative: PX_POPUP_BOX_X/MAIN_W PX_POPUP_BOX_Y/MAIN_H; }
163 rel2 { relative: (PX_POPUP_BOX_X+PX_POPUP_BOX_W)/MAIN_W (PX_POPUP_BOX_Y+PX_POPUP_BOX_H)/MAIN_H; }
164 image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; }
167 state: "landscape" 0.0;
169 rel1 { relative: PX_POPUP_BOX_X/MAIN_W PX_POPUP_BOX_Y/MAIN_H; }
170 rel2 { relative: (PX_POPUP_BOX_X+PX_POPUP_BOX_W)/MAIN_W (PX_POPUP_BOX_Y+PX_POPUP_BOX_H)/MAIN_H; }
171 image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; }
174 state: "vertical" 0.0;
176 rel1 { relative: VER_PX_POPUP_BOX_X/VER_MAIN_W VER_PX_POPUP_BOX_Y/VER_MAIN_H; }
177 rel2 { relative: (VER_PX_POPUP_BOX_X+PX_POPUP_BOX_W)/VER_MAIN_W (VER_PX_POPUP_BOX_Y+PX_POPUP_BOX_H)/VER_MAIN_H; }
178 image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; }
182 name: "progress_popup_text";
186 state: "default" 0.0;
189 rel1 { relative: 66/PX_POPUP_BOX_W PX_POPUP_TEXT_Y/PX_POPUP_BOX_H; to: progress_popup_bg; }
190 rel2 { relative: (PX_POPUP_BOX_W - 66)/PX_POPUP_BOX_W 152/PX_POPUP_BOX_H; to: progress_popup_bg; }
193 style: "textblock_style";
198 //to swallow progressbar
200 name: "progress_popup_bar";
204 state: "default" 0.0;
206 rel1 { relative: PX_POPUP_BAR_X/PX_POPUP_BOX_W PX_POPUP_BAR_Y/PX_POPUP_BOX_H;
207 to: progress_popup_bg; }
208 rel2 { relative: (PX_POPUP_BAR_X+PX_POPUP_BAR_W)/PX_POPUP_BOX_W (PX_POPUP_BAR_Y+PX_POPUP_BAR_H)/PX_POPUP_BOX_H;
209 to: progress_popup_bg; }
215 name: "progress_popup,default";
217 signal: "progress_popup,default";
219 set_state(PART:"progress_popup_bg", "landscape", 0.0);
223 name: "progress_popup,vertical";
225 signal: "progress_popup,vertical";
227 set_state(PART:"progress_popup_bg", "vertical", 0.0);
232 #if 1/*note: for burst mode*/
233 //#define PX_POPUP_BOX_W 704
234 //#define PX_POPUP_BOX_H 180
236 group { name: "burst_progress_popup";
239 name: "progress_popup_bg";
244 state: "default" 0.0;
246 rel1 { relative: PX_POPUP_BOX_X/MAIN_W PX_POPUP_BOX_Y/MAIN_H; }
247 rel2 { relative: (PX_POPUP_BOX_X+PX_POPUP_BOX_W)/MAIN_W (PX_POPUP_BOX_Y+PX_POPUP_BOX_H)/MAIN_H; }
248 image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; }
251 state: "landscape" 0.0;
253 rel1 { relative: PX_POPUP_BOX_X/MAIN_W PX_POPUP_BOX_Y/MAIN_H; }
254 rel2 { relative: (PX_POPUP_BOX_X+PX_POPUP_BOX_W)/MAIN_W (PX_POPUP_BOX_Y+PX_POPUP_BOX_H)/MAIN_H; }
255 image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; }
258 state: "vertical" 0.0;
260 rel1 { relative: VER_PX_POPUP_BOX_X/VER_MAIN_W VER_PX_POPUP_BOX_Y/VER_MAIN_H; }
261 rel2 { relative: (VER_PX_POPUP_BOX_X+PX_POPUP_BOX_W)/VER_MAIN_W (VER_PX_POPUP_BOX_Y+PX_POPUP_BOX_H)/VER_MAIN_H; }
262 image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; }
266 name: "progress_popup_text";
270 state: "default" 0.0;
273 rel1 { relative: 66/PX_POPUP_BOX_W PX_POPUP_TEXT_Y/PX_POPUP_BOX_H; to: progress_popup_bg; }
274 rel2 { relative: (PX_POPUP_BOX_W - 66)/PX_POPUP_BOX_W 152/PX_POPUP_BOX_H; to: progress_popup_bg; }
277 style: "textblock_style_center";
282 //to swallow progressbar
284 name: "progress_popup_bar";
288 state: "default" 0.0;
290 rel1 { relative: PX_POPUP_BAR_X/PX_POPUP_BOX_W PX_POPUP_BAR_Y/PX_POPUP_BOX_H;
291 to: progress_popup_bg; }
292 rel2 { relative: (PX_POPUP_BAR_X+PX_POPUP_BAR_W)/PX_POPUP_BOX_W (PX_POPUP_BAR_Y+PX_POPUP_BAR_H)/PX_POPUP_BOX_H;
293 to: progress_popup_bg; }
299 name: "progress_popup,default";
301 signal: "progress_popup,default";
303 set_state(PART:"progress_popup_bg", "landscape", 0.0);
307 name: "progress_popup,vertical";
309 signal: "progress_popup,vertical";
311 set_state(PART:"progress_popup_bg", "vertical", 0.0);
321 #define TIMER_ICON_W 188
322 #define TIMER_ICON_H 158
323 group{ name: "timer_icon_landscape";
331 state: "default" 0.0;
332 rel1 { relative: (1 - TIMER_ICON_W/MAIN_W)/2 (1 - TIMER_ICON_H/MAIN_H)/2; offset: 0 0; }
333 rel2 { relative: (1 + TIMER_ICON_W/MAIN_W)/2 (1 + TIMER_ICON_H/MAIN_H)/2; offset: -1 -1; }
334 image { normal: TIMER_ICON_BG_IMAGE; }
342 state: "default" 0.0;
343 rel1 { relative: 0.0 0.0; offset: 0 0; to: "icon"; }
344 rel2 { relative: 1.0 1.0; offset: -1 -1; to: "icon"; }
357 group{ name: "timer_icon_portrait";
365 state: "default" 0.0;
366 rel1 { relative: (1 - TIMER_ICON_W/MAIN_H)/2 (1 - TIMER_ICON_H/MAIN_W)/2; offset: 0 0; }
367 rel2 { relative: (1 + TIMER_ICON_W/MAIN_H)/2 (1 + TIMER_ICON_H/MAIN_W)/2; offset: -1 -1; }
368 image { normal: TIMER_ICON_BG_IMAGE; }
376 state: "default" 0.0;
377 rel1 { relative: 0.0 0.0; offset: 0 0; to: "icon"; }
378 rel2 { relative: 1.0 1.0; offset: -1 -1; to: "icon"; }
392 #define SHOT_GUIDE_POPUP_WIDTH 600
393 #define SHOT_GUIDE_POPUP_HEIGHT 72
394 group{ name: "shot_guide_landscape";
401 state: "default" 0.0;
402 rel1 { relative: (1 - SHOT_GUIDE_POPUP_WIDTH/MAIN_W)/2 0.8; offset: 0 0; }
403 rel2 { relative: (1 + SHOT_GUIDE_POPUP_WIDTH/MAIN_W)/2 1.0; offset: -1 -1; }
406 style: textblock_style_shot_guide;
415 group{ name: "shot_guide_potrait";
422 state: "default" 0.0;
423 rel1 { relative: (1 - SHOT_GUIDE_POPUP_WIDTH/MAIN_H)/2 0.75; offset: 0 0; }
424 rel2 { relative: (1 + SHOT_GUIDE_POPUP_WIDTH/MAIN_H)/2 0.85; offset: -1 -1; }
427 style: textblock_style_shot_guide;