/* * 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 "cam_funcs.edc" #include "../include/edc_image_name.h" #define CAM_FOCUS_IMG "CAMERA_FOCUS_IMG" images { image: FOCUS_GUIDE_NOTREADY_IMAGE COMP; image: FOCUS_GUIDE_FOCUSED_IMAGE COMP; image: FOCUS_GUIDE_FAILED_IMAGE COMP; image: SHOTTING_MODE_POPUP_BG_IMAGE COMP; image: TIMER_ICON_BG_IMAGE COMP; } styles { style { name: "textblock_style"; base: "font=SLP:style=Roman font_size=40 align=left valign=top color=#ffffff wrap=word"; tag: "br" " \n"; } style { name: "textblock_style_center"; base: "font=SLP:style=Roman font_size=40 align=center valign=top color=#ffffff wrap=word"; tag: "br" " \n"; } style { name: "textblock_style_shot_guide"; base: "font=SLP:style=Roman font_size=36 align=center color=#FFFFFF ellipise=1.0 wrap=mixed"; tag: "br" "\n"; tag: "hilight" "+ font=SLP:style=Bold"; tag: "b" "+ font=SLP:style=Bold"; tag: "tab" "\t"; } } collections { group { name: "focus_image"; min: CAMERA_FOCUS_W CAMERA_FOCUS_H; max: CAMERA_FOCUS_W CAMERA_FOCUS_H; parts{ part { name: CAM_FOCUS_IMG; type: IMAGE; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } } description { state: "notready" 0.0; inherit: "default" 0.0; visible: 1; image{ normal: FOCUS_GUIDE_NOTREADY_IMAGE; border: 9 9 9 9; border_scale: 1; } } description { state: "focused" 0.0; inherit: "default" 0.0; visible: 1; image{ normal:FOCUS_GUIDE_FOCUSED_IMAGE; border: 9 9 9 9; border_scale: 1; } } description { state: "failed" 0.0; inherit: "default" 0.0; visible: 1; image{ normal: FOCUS_GUIDE_FAILED_IMAGE; border: 9 9 9 9; border_scale: 1; } } } } programs { program { name: "focus,hide"; source: "program"; signal: "focus,hide"; action: STATE_SET "default" 0.0; target: CAM_FOCUS_IMG; } program { name: "focus,notready"; source: "program"; signal: "focus,notready"; action: STATE_SET "notready" 0.0; target: CAM_FOCUS_IMG; } program { name: "focus,focused"; source: "program"; signal: "focus,focused"; action: STATE_SET "focused" 0.0; target: CAM_FOCUS_IMG; } program { name: "focus,failed"; source: "program"; signal: "focus,failed"; action: STATE_SET "failed" 0.0; target: CAM_FOCUS_IMG; } } } #define PX_POPUP_BOX_X 288 #define PX_POPUP_BOX_Y 239 #define VER_PX_POPUP_BOX_X 8 #define VER_PX_POPUP_BOX_Y 519 #define PX_POPUP_BOX_W 704 #define PX_POPUP_BOX_H 242 #define PX_POPUP_TEXT_Y 32 #define PX_POPUP_BAR_X 72 #define PX_POPUP_BAR_Y 182 #define PX_POPUP_BAR_W 560 #define PX_POPUP_BAR_H 21 group { name: "progress_popup"; parts { part { name: "progress_popup_bg"; type: IMAGE; mouse_events: 0; scale: 1; description { state: "default" 0.0; visible: 0; rel1 { relative: PX_POPUP_BOX_X/MAIN_W PX_POPUP_BOX_Y/MAIN_H; } rel2 { relative: (PX_POPUP_BOX_X+PX_POPUP_BOX_W)/MAIN_W (PX_POPUP_BOX_Y+PX_POPUP_BOX_H)/MAIN_H; } image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; } } description { state: "landscape" 0.0; visible: 1; rel1 { relative: PX_POPUP_BOX_X/MAIN_W PX_POPUP_BOX_Y/MAIN_H; } rel2 { relative: (PX_POPUP_BOX_X+PX_POPUP_BOX_W)/MAIN_W (PX_POPUP_BOX_Y+PX_POPUP_BOX_H)/MAIN_H; } image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; } } description { state: "vertical" 0.0; visible: 1; rel1 { relative: VER_PX_POPUP_BOX_X/VER_MAIN_W VER_PX_POPUP_BOX_Y/VER_MAIN_H; } 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; } image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; } } } part { name: "progress_popup_text"; type: TEXTBLOCK; scale: 1; description { state: "default" 0.0; fixed: 1 1; visible: 1; rel1 { relative: 66/PX_POPUP_BOX_W PX_POPUP_TEXT_Y/PX_POPUP_BOX_H; to: progress_popup_bg; } rel2 { relative: (PX_POPUP_BOX_W - 66)/PX_POPUP_BOX_W 152/PX_POPUP_BOX_H; to: progress_popup_bg; } color: FONT_COLOR; text { style: "textblock_style"; min: 0 1; } } } //to swallow progressbar part { name: "progress_popup_bar"; type: SWALLOW; scale: 1; description { state: "default" 0.0; fixed: 1 1; rel1 { relative: PX_POPUP_BAR_X/PX_POPUP_BOX_W PX_POPUP_BAR_Y/PX_POPUP_BOX_H; to: progress_popup_bg; } 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; to: progress_popup_bg; } } } } programs { program { name: "progress_popup,default"; source: "prog"; signal: "progress_popup,default"; script: { set_state(PART:"progress_popup_bg", "landscape", 0.0); } } program { name: "progress_popup,vertical"; source: "prog"; signal: "progress_popup,vertical"; script: { set_state(PART:"progress_popup_bg", "vertical", 0.0); } } } } #if 1/*note: for burst mode*/ //#define PX_POPUP_BOX_W 704 //#define PX_POPUP_BOX_H 180 group { name: "burst_progress_popup"; parts { part { name: "progress_popup_bg"; type: IMAGE; mouse_events: 0; scale: 1; description { state: "default" 0.0; visible: 0; rel1 { relative: PX_POPUP_BOX_X/MAIN_W PX_POPUP_BOX_Y/MAIN_H; } rel2 { relative: (PX_POPUP_BOX_X+PX_POPUP_BOX_W)/MAIN_W (PX_POPUP_BOX_Y+PX_POPUP_BOX_H)/MAIN_H; } image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; } } description { state: "landscape" 0.0; visible: 1; rel1 { relative: PX_POPUP_BOX_X/MAIN_W PX_POPUP_BOX_Y/MAIN_H; } rel2 { relative: (PX_POPUP_BOX_X+PX_POPUP_BOX_W)/MAIN_W (PX_POPUP_BOX_Y+PX_POPUP_BOX_H)/MAIN_H; } image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; } } description { state: "vertical" 0.0; visible: 1; rel1 { relative: VER_PX_POPUP_BOX_X/VER_MAIN_W VER_PX_POPUP_BOX_Y/VER_MAIN_H; } 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; } image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; } } } part { name: "progress_popup_text"; type: TEXTBLOCK; scale: 1; description { state: "default" 0.0; fixed: 1 1; visible: 1; rel1 { relative: 66/PX_POPUP_BOX_W PX_POPUP_TEXT_Y/PX_POPUP_BOX_H; to: progress_popup_bg; } rel2 { relative: (PX_POPUP_BOX_W - 66)/PX_POPUP_BOX_W 152/PX_POPUP_BOX_H; to: progress_popup_bg; } color: FONT_COLOR; text { style: "textblock_style_center"; min: 0 1; } } } //to swallow progressbar part { name: "progress_popup_bar"; type: SWALLOW; scale: 1; description { state: "default" 0.0; fixed: 1 1; rel1 { relative: PX_POPUP_BAR_X/PX_POPUP_BOX_W PX_POPUP_BAR_Y/PX_POPUP_BOX_H; to: progress_popup_bg; } 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; to: progress_popup_bg; } } } } programs { program { name: "progress_popup,default"; source: "prog"; signal: "progress_popup,default"; script: { set_state(PART:"progress_popup_bg", "landscape", 0.0); } } program { name: "progress_popup,vertical"; source: "prog"; signal: "progress_popup,vertical"; script: { set_state(PART:"progress_popup_bg", "vertical", 0.0); } } } } #endif #define TIMER_ICON_W 188 #define TIMER_ICON_H 158 group{ name: "timer_icon_landscape"; parts{ part { name: "icon"; type: IMAGE; scale: 1; description { state: "default" 0.0; rel1 { relative: (1 - TIMER_ICON_W/MAIN_W)/2 (1 - TIMER_ICON_H/MAIN_H)/2; offset: 0 0; } rel2 { relative: (1 + TIMER_ICON_W/MAIN_W)/2 (1 + TIMER_ICON_H/MAIN_H)/2; offset: -1 -1; } image { normal: TIMER_ICON_BG_IMAGE; } } } part { name: "text"; type: TEXT; scale: 1; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "icon"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "icon"; } color: COLOR_1; text { font: FONT_NAME; size: 60; min: 1 1; align: 0.8 0.8; } } } } } group{ name: "timer_icon_portrait"; parts{ part { name: "icon"; type: IMAGE; scale: 1; description { state: "default" 0.0; rel1 { relative: (1 - TIMER_ICON_W/MAIN_H)/2 (1 - TIMER_ICON_H/MAIN_W)/2; offset: 0 0; } rel2 { relative: (1 + TIMER_ICON_W/MAIN_H)/2 (1 + TIMER_ICON_H/MAIN_W)/2; offset: -1 -1; } image { normal: TIMER_ICON_BG_IMAGE; } } } part { name: "text"; type: TEXT; scale: 1; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "icon"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "icon"; } color: COLOR_1; text { font: FONT_NAME; size: 60; min: 1 1; align: 0.8 0.8; } } } } } #define SHOT_GUIDE_POPUP_WIDTH 600 #define SHOT_GUIDE_POPUP_HEIGHT 72 group{ name: "shot_guide_landscape"; parts{ part { name: "text"; type: TEXTBLOCK; scale: 1; description { state: "default" 0.0; rel1 { relative: (1 - SHOT_GUIDE_POPUP_WIDTH/MAIN_W)/2 0.8; offset: 0 0; } rel2 { relative: (1 + SHOT_GUIDE_POPUP_WIDTH/MAIN_W)/2 1.0; offset: -1 -1; } color: COLOR_1; text { style: textblock_style_shot_guide; min: 0 0; max: 0 1; } } } } } group{ name: "shot_guide_potrait"; parts{ part { name: "text"; type: TEXTBLOCK; scale: 1; description { state: "default" 0.0; rel1 { relative: (1 - SHOT_GUIDE_POPUP_WIDTH/MAIN_H)/2 0.75; offset: 0 0; } rel2 { relative: (1 + SHOT_GUIDE_POPUP_WIDTH/MAIN_H)/2 0.85; offset: -1 -1; } color: COLOR_1; text { style: textblock_style_shot_guide; min: 0 0; max: 0 1; } } } } } }