/* * Copyright 2012 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.0 (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_recording_edje_vertical_inc.edc" collections { group { name: "recording_layout"; min: MAIN_H MAIN_W; parts { part { name: RECORDING_IMAGE; type: IMAGE; description { state: "default" 0.0; rel1 { relative: RECORDING_IMAGE_X/VER_MAIN_W RECORDING_IMAGE_Y/VER_MAIN_H; } rel2 { relative: (RECORDING_IMAGE_X+RECORDING_IMAGE_W)/VER_MAIN_W (RECORDING_IMAGE_Y+RECORDING_IMAGE_H)/VER_MAIN_H; } } description { state: "rec" 0.0; inherit: "default" 0.0; image { normal: RECORDING_IMAGE_REC_IMAGE; } } description { state: "rec1" 0.0; inherit: "default" 0.0; image { normal: RECORDING_IMAGE_REC_IMAGE; } } description { state: "invisible" 0.0; inherit: "default" 0.0; visible: 0; } } part { name: RECORDING_TEXT; type: TEXT; scale: 1; description { state: "default" 0.0; rel1 { relative: RECORDING_TEXT_X/VER_MAIN_W RECORDING_TEXT_Y/VER_MAIN_H; } rel2 { relative: 1.0 1.0; offset: -1 -1; } color: FONT_COLOR; text { font : FONT_NAME; size : 35; align: 0.0 0.0; } } description { state: "invisible" 0.0; inherit: "default" 0.0; visible: 0; } } part { name: RECORDING_LEFT_TEXT; type: TEXT; scale: 1; description { state: "default" 0.0; rel1 { relative: RECORDING_LEFT_TEXT_X/VER_MAIN_W RECORDING_LEFT_TEXT_Y/VER_MAIN_H; } rel2 { relative: 1.0 1.0; offset: -1 -1; } color: FONT_COLOR; text { font : FONT_NAME; size : 35; align: 0.0 0.0; } } description { state: "invisible" 0.0; inherit: "default" 0.0; visible : 0; } } part { name: "progressbar"; type: SWALLOW; description { state: "default" 0.0; fixed:1 1; rel1 { relative: PROGRESS_BAR_X/VER_MAIN_W PROGRESS_BAR_Y/VER_MAIN_H; } rel2 { relative: (PROGRESS_BAR_X+PROGRESS_BAR_W)/VER_MAIN_W (PROGRESS_BAR_Y+PROGRESS_BAR_H)/VER_MAIN_H; } } } part { name: "progressbar_text"; type: TEXT; scale: 1; description { state: "default" 0.0; rel1 { relative: 1.0 (-20)/PROGRESS_BAR_H; to: "progressbar"; } rel2 { relative: (1.0+90/PROGRESS_BAR_W) (1.0+20/PROGRESS_BAR_H); to: "progressbar"; } color: FONT_COLOR; text { font : FONT_NAME; size : 28; align: 0.5 0.5; } } } part{ name: "file_size_text"; type: TEXT; scale: 1; description{ state: "default" 0.0; rel1 { relative: (0.0-100/PROGRESS_BAR_W) (-20)/PROGRESS_BAR_H; to: "progressbar"; } rel2 { relative: (0.0-10/PROGRESS_BAR_W) (1.0+20/PROGRESS_BAR_H); to: "progressbar"; } color: FONT_COLOR; text { font : FONT_NAME; size : 28; align : 1.0 0.5; } } } } programs { program { name: "set_rec_state"; source: "program"; signal: "state,rec"; script { set_state(PART:RECORDING_IMAGE, "rec", 0.0); set_state(PART:RECORDING_TEXT, "default", 0.0); } } program { name: "set_rec_state1"; source: "program"; signal: "state,rec1"; script { set_state(PART:RECORDING_IMAGE, "rec1", 0.0); set_state(PART:RECORDING_TEXT, "default", 0.0); } } program { name: "set_pause_state"; source: "program"; signal: "state,pause"; script { set_state(PART:RECORDING_IMAGE, "pause", 0.0); set_state(PART:RECORDING_TEXT, "default", 0.0); } } program { name: "hide_indicator"; source: "program"; signal: "indicator,hide"; script { set_state(PART:RECORDING_IMAGE, "invisible", 0.0); set_state(PART:RECORDING_TEXT, "invisible", 0.0); } } program { name: "show_indicator"; source: "program"; signal: "indicator,show"; script { set_state(PART:RECORDING_IMAGE, "pause", 0.0); set_state(PART:RECORDING_TEXT, "default", 0.0); } } } } } //endfile