2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://www.tizenopensource.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=system_content font_size=34 align=center valign=top color=#ffffff wrap=word";
40 group { name: "focus_image";
41 min: CAMERA_FOCUS_W CAMERA_FOCUS_H;
42 max: CAMERA_FOCUS_W CAMERA_FOCUS_H;
51 rel1 { relative: 0.0 0.0; }
52 rel2 { relative: 1.0 1.0; }
55 state: "notready" 0.0;
56 inherit: "default" 0.0;
58 image{ normal: FOCUS_GUIDE_NOTREADY_IMAGE; }
62 inherit: "default" 0.0;
64 image{ normal: FOCUS_GUIDE_FOCUSED_IMAGE; }
68 inherit: "default" 0.0;
70 image{ normal: FOCUS_GUIDE_FAILED_IMAGE; }
76 program { name: "focus,hide";
79 action: STATE_SET "default" 0.0;
80 target: CAM_FOCUS_IMG;
82 program { name: "focus,notready";
84 signal: "focus,notready";
85 action: STATE_SET "notready" 0.0;
86 target: CAM_FOCUS_IMG;
88 program { name: "focus,focused";
90 signal: "focus,focused";
91 action: STATE_SET "focused" 0.0;
92 target: CAM_FOCUS_IMG;
94 program { name: "focus,failed";
96 signal: "focus,failed";
97 action: STATE_SET "failed" 0.0;
98 target: CAM_FOCUS_IMG;
103 #define PX_POPUP_BOX_X 180
104 #define PX_POPUP_BOX_Y 84
105 #define PX_POPUP_BOX_W 440
106 #define PX_POPUP_BOX_H 242
108 #define PX_POPUP_TEXT_Y 40
110 #define PX_POPUP_BAR_X 40
111 #define PX_POPUP_BAR_Y 182
112 #define PX_POPUP_BAR_W 350
113 #define PX_POPUP_BAR_H 14
115 group { name: "progress_popup";
118 name: "progress_popup_bg";
122 state: "default" 0.0;
123 rel1 { relative: PX_POPUP_BOX_X/MAIN_W_AUTO PX_POPUP_BOX_Y/MAIN_H_AUTO; }
124 rel2 { relative: (PX_POPUP_BOX_X+PX_POPUP_BOX_W)/MAIN_W_AUTO (PX_POPUP_BOX_Y+PX_POPUP_BOX_H)/MAIN_H_AUTO; }
125 image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; }
129 name: "progress_popup_text";
132 state: "default" 0.0;
134 rel1 { relative: 0.0 PX_POPUP_TEXT_Y/PX_POPUP_BOX_H; to: progress_popup_bg; }
135 rel2 { relative: 1.0 1.0; to: progress_popup_bg; }
138 style: "textblock_style";
143 //to swallow progressbar
145 name: "progress_popup_bar";
148 state: "default" 0.0;
150 rel1 { relative: PX_POPUP_BAR_X/PX_POPUP_BOX_W PX_POPUP_BAR_Y/PX_POPUP_BOX_H;
151 to: progress_popup_bg; }
152 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;
153 to: progress_popup_bg; }
159 #define TIMER_ICON_W 188
160 #define TIMER_ICON_H 158
161 group{ name: "timer_icon_landscape";
168 state: "default" 0.0;
169 rel1 { relative: (1 - TIMER_ICON_W/MAIN_W)/2 (1 - TIMER_ICON_H/MAIN_H)/2; offset: 0 0; }
170 rel2 { relative: (1 + TIMER_ICON_W/MAIN_W)/2 (1 + TIMER_ICON_H/MAIN_H)/2; offset: -1 -1; }
171 image { normal: TIMER_ICON_BG_IMAGE; }
179 state: "default" 0.0;
180 rel1 { relative: 0.0 0.0; offset: 0 0; to: "icon"; }
181 rel2 { relative: 1.0 1.0; offset: -1 -1; to: "icon"; }
194 group{ name: "timer_icon_portrait";
201 state: "default" 0.0;
202 rel1 { relative: (1 - TIMER_ICON_W/MAIN_H)/2 (1 - TIMER_ICON_H/MAIN_W)/2; offset: 0 0; }
203 rel2 { relative: (1 + TIMER_ICON_W/MAIN_H)/2 (1 + TIMER_ICON_H/MAIN_W)/2; offset: -1 -1; }
204 image { normal: TIMER_ICON_BG_IMAGE; }
212 state: "default" 0.0;
213 rel1 { relative: 0.0 0.0; offset: 0 0; to: "icon"; }
214 rel2 { relative: 1.0 1.0; offset: -1 -1; to: "icon"; }