/* * 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 "../include/edc_image_name.h" #include "../include/edc_string.h" #include "cam_funcs.edc" #define CONTROLBAR_SMALL_H 72 //65 //Ctxpopup Camera Shooting mode //Content Layout collections { styles { style { name: "menu_title"; base: "font=SLP:style=Roman font_size=30 align=0.09 color=#FFFFFF ellipise=1.0 wrap=mixed"; tag: "br" " \n"; } } group { name:"camera/layout"; parts { part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 0; scale: 1; description { state: "default" 0.0; min: 1 60; max: 999999 60; fixed: 0 1; align: 0.5 0; text { style: "menu_title"; min: 1 1; } } } part { name: "elm.swallow.box"; type: SWALLOW; description { rel1 { to: "elm.text"; relative: 0 1; offset: 2 1;} rel2 { offset: -3 -3;} } } } } group { name:"camera/layout/setting"; parts { part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 0; scale: 1; description { state: "default" 0.0; min: 1 60; max: 999999 60; fixed: 0 1; align: 0.5 0; text { style: "menu_title"; min: 1 1; } } } part { name: "elm.swallow.box"; type: SWALLOW; description { rel1 { to: "elm.text"; relative: 0 1; offset: 2 1;} rel2 { offset: -3 -3;} } } } } #define MENU(part_name, relx1, rely1, relx2, rely2, to_part) \ part { \ name: "row."part_name; \ type: SWALLOW; \ scale: 1; \ mouse_events: 1; \ description { \ state: "default" 0.0; \ visible: 1; \ min: (180) (180); \ max: (180) (180); \ align: 0.5 0.5; \ aspect: 1.0 1.0; \ fixed: 1 1; \ rel1 { relative: (relx1/720) (rely1/1280); to:to_part;} \ rel2 { relative: (relx2/720) (rely2/1280); to:to_part;} \ } \ } \ //Radio Button Style styles { style { name: "radio_label_textblock_style"; base: "font=SLP:style=Medium font_size=14 align=left color=#ffffff wrap=char"; tag: "br" "\n"; tag: "hilight" "+ font=SLP:style=Bold"; tag: "b" "+ font=SLP:style=Bold"; tag: "whitecolor" "+ color=#ffffff"; tag: "tab" "\t"; } style { name: "radio_label_textblock_disabled_style"; base: "font=SLP:style=Medium font_size=14 align=left color=#888888 color3=#000000 wrap=char"; tag: "br" "\n"; tag: "hilight" "+ font=SLP:style=Bold"; tag: "b" "+ font=SLP:style=Bold"; tag: "whitecolor" "+ color=#ffffff"; tag: "tab" "\t"; } } group { name: "elm/radio/base/beat_winset_test/camera"; images { image: SETTING_POPUP_RADIO_BUTTON_OFF_IMAGE COMP; image: SETTING_POPUP_RADIO_BUTTON_ON_IMAGE COMP; } parts { part { name: "bg"; mouse_events: 0; scale: 1; type: RECT; description { state: "default" 0.0; rel1.offset: 0 0; rel2.relative: 0.0 1.0; rel2.offset: 0 0; fixed: 1 0; align: 0.0 0.5; min: 60 60; max: 60 60; color: 0 0 0 0; } } part { name: "radio"; mouse_events: 0; scale: 1; description { state: "default" 0.0; rel1 { to: "bg"; offset: 0 0; } rel2 { to: "bg"; offset: 0 0; } visible: 1; color: 255 255 255 255; image.normal: SETTING_POPUP_RADIO_BUTTON_OFF_IMAGE; } description { state: "visible" 0.0; inherit: "default" 0.0; image.normal: SETTING_POPUP_RADIO_BUTTON_ON_IMAGE; } description { state: "pressed" 0.0; inherit: "default" 0.0; image.normal: SETTING_POPUP_RADIO_BUTTON_ON_IMAGE; } description { state: "disabled" 0.0; inherit: "default" 0.0; image.normal: SETTING_POPUP_RADIO_BUTTON_OFF_IMAGE; } description { state: "disabled_visible" 0.0; inherit: "default" 0.0; image.normal: SETTING_POPUP_RADIO_BUTTON_OFF_IMAGE; } } part { name: "elm.swallow.content"; type: SWALLOW; description { state: "default" 0.0; fixed: 1 0; visible: 0; color: 255 255 255 255; align: 0.0 0.5; rel1.to_x: "bg"; rel1.relative: 1.0 0.0; rel1.offset: 1 1; rel2.to_x: "bg"; rel2.relative: 1.0 1.0; rel2.offset: 2 -2; } description { state: "visible" 0.0; inherit: "default" 0.0; fixed: 1 1; visible: 1; aspect: 1.0 1.0; aspect_preference: VERTICAL; } description { state: "disabled" 0.0; inherit: "default" 0.0; color: 128 128 128 128; } description { state: "disabled_visible" 0.0; inherit: "default" 0.0; color: 128 128 128 128; fixed: 1 1; visible: 1; aspect: 1.0 1.0; } } part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 0; scale: 1; description { state: "default" 0.0; visible: 0; fixed: 0 1; rel1 { relative: 1.0 0.5; offset: 1 1; to_x: "elm.swallow.content"; } rel2 { relative: 1.0 0.5; offset: -2 -2; } color: 255 255 255 255; align: 0.0 0.5; text { style: "radio_label_textblock_style"; min: 0 0; } } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; text.min: 1 1; } description { state: "disabled" 0.0; inherit: "default" 0.0; } description { state: "disabled_visible" 0.0; inherit: "default" 0.0; visible: 1; text { style: "radio_label_textblock_disabled_style"; min: 1 1; } } } part { name: "events"; type: RECT; ignore_flags: ON_HOLD; description { state: "default" 0.0; color: 0 0 0 0; } } part { name: "disabler"; type: RECT; description { state: "default" 0.0; color: 0 0 0 0; visible: 0; } description { state: "disabled" 0.0; inherit: "default" 0.0; visible: 1; color: 0 0 0 0; } } } programs { program { name: "click"; signal: "mouse,up,1"; source: "events"; action: SIGNAL_EMIT "elm,action,radio,toggle" ""; } program { name: "bg_normal"; script { set_state(PART:"bg", "default", 0.0); } } program { name: "mouseout"; signal: "mouse,out"; source: "events"; after: "bg_radio_normal"; } program { name: "bg_radio_normal"; script { new st[31]; new Float:vl; get_state(PART:"radio", st, 30, vl); if (!strcmp(st, "pressed")) set_state(PART:"radio", "default", 0.0); set_state(PART:"bg", "default", 0.0); } } program { name: "pressed"; signal: "mouse,down,1"; source: "events"; script { new st[31]; new Float:vl; get_state(PART:"radio", st, 30, vl); if (!strcmp(st, "default")) set_state(PART:"radio", "pressed", 0.0); } } program { name: "radio_on"; signal: "elm,state,radio,on"; source: "elm"; action: STATE_SET "visible" 0.0; target: "radio"; } program { name: "radio_off"; signal: "elm,state,radio,off"; source: "elm"; action: STATE_SET "default" 0.0; target: "radio"; } program { name: "text_show"; signal: "elm,state,text,visible"; source: "elm"; action: STATE_SET "visible" 0.0; target: "elm.text"; } program { name: "text_hide"; signal: "elm,state,text,hidden"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.text"; } program { name: "icon_show"; signal: "elm,state,icon,visible"; source: "elm"; action: STATE_SET "visible" 0.0; target: "elm.swallow.content"; } program { name: "icon_hide"; signal: "elm,state,icon,hidden"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.swallow.content"; } program { name: "disable"; signal: "elm,state,disabled"; source: "elm"; action: STATE_SET "disabled" 0.0; target: "disabler"; after: "disable_text"; } program { name: "disable_text"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.text", "disabled_visible", 0.0); else set_state(PART:"elm.text", "disabled", 0.0); get_state(PART:"elm.swallow.content", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); else set_state(PART:"elm.swallow.content", "disabled", 0.0); get_state(PART:"radio", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"radio", "disabled_visible", 0.0); else set_state(PART:"radio", "disabled", 0.0); } } program { name: "enable"; signal: "elm,state,enabled"; source: "elm"; action: STATE_SET "default" 0.0; target: "disabler"; after: "enable_text"; } program { name: "enable_text"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "disabled_visible")) set_state(PART:"elm.text", "visible", 0.0); else set_state(PART:"elm.text", "default", 0.0); get_state(PART:"elm.swallow.content", st, 30, vl); if (!strcmp(st, "disabled_visible")) set_state(PART:"elm.swallow.content", "visible", 0.0); else set_state(PART:"elm.swallow.content", "default", 0.0); get_state(PART:"radio", st, 30, vl); if (!strcmp(st, "disabled_visible")) set_state(PART:"radio", "visible", 0.0); else set_state(PART:"elm.swallow.content", "default", 0.0); } } } } //Ctxpopup Style #define CTXPOPUP_CAMERA_FRAME_WIDTH_MAX 720 #define CTXPOPUP_CAMERA_FRAME_HEIGHT_MAX 1280 #define CTXPOPUP_CAMERA_CONTENT_WIDTH_MAX 720 #define CTXPOPUP_CAMERA_CONTENT_HEIGHT_MAX 1280 /*#define CTXPOPUP_CAMERA_ARROW_SIZE 28 */ group { name: "elm/scroller/base/beat_winset_test/camera"; script { public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; public timer0(val) { new v; v = get_int(sbvis_v); if (v) { v = get_int(sbalways_v); if(!v) { emit("do-hide-vbar", ""); set_int(sbvis_v, 0); } } v = get_int(sbvis_h); if (v) { v = get_int(sbalways_h); if(!v) { emit("do-hide-hbar", ""); set_int(sbvis_h, 0); } } set_int(sbvis_timer, 0); return 0; } } parts { part { name: "clipper"; type: RECT; mouse_events: 0; scale: 1; description { state: "default" 0.0; max: CTXPOPUP_CAMERA_CONTENT_WIDTH_MAX CTXPOPUP_CAMERA_CONTENT_HEIGHT_MAX; } } part { name: "elm.swallow.content"; clip_to: "clipper"; type: SWALLOW; scale: 1; description { state: "default" 0.0; max: CTXPOPUP_CAMERA_CONTENT_WIDTH_MAX CTXPOPUP_CAMERA_CONTENT_HEIGHT_MAX; align: 0.5 0.5; } } part { name: "sb_vbar_clip_master"; type: RECT; mouse_events: 0; description { state: "default" 0.0; } description { state: "hidden" 0.0; visible: 0; color: 255 255 255 0; } } part { name: "sb_vbar_clip"; clip_to:"sb_vbar_clip_master"; type: RECT; mouse_events: 0; scale: 1; description { state: "default" 0.0; align: 0.0 0.0; rel2{ to:"clipper"; relative: 1.0 1.0;} } description { state: "hidden" 0.0; visible: 0; color: 255 255 255 0; } } part { name: "sb_vbar"; type: RECT; mouse_events: 0; scale: 1; description { state: "default" 0.0; fixed: 1 1; visible: 0; align: 1.0 0.0; rel1{ to:"clipper"; relative: 1.0 0.0; } rel2{ to:"clipper"; relative: 1.0 1.0;} } } part { name: "elm.dragable.vbar"; clip_to: "sb_vbar_clip"; mouse_events: 0; scale: 1; dragable { x: 0 0 0; y: 1 1 0; confine: "sb_vbar"; } description { state: "default" 0.0; fixed: 1 1; min: 14 32; rel1 { relative: 0.5 0.5; to: "sb_vbar"; } rel2 { relative: 0.5 0.5; to: "sb_vbar"; } } } part { name: "sb_hbar_clip_master"; type: RECT; mouse_events: 0; description { state: "default" 0.0; } description { state: "hidden" 0.0; visible: 0; color: 255 255 255 0; } } part { name: "sb_hbar_clip"; clip_to: "sb_hbar_clip_master"; type: RECT; mouse_events: 0; scale: 1; description { state: "default" 0.0; align: 0.0 0.0; rel2{ to:"clipper"; relative: 1.0 1.0;} } description { state: "hidden" 0.0; visible: 0; color: 255 255 255 0; } } part { name: "sb_hbar"; type: RECT; mouse_events: 0; scale: 1; description { state: "default" 0.0; fixed: 1 1; visible: 0; align: 0.0 1.0; rel1 {to:"clipper"; relative: 0.0 1.0;} rel2 {to:"clipper"; relative: 1.0 1.0;} } } } programs { program { name: "load"; signal: "load"; source: ""; script { set_state(PART:"sb_vbar_clip", "hidden", 0.0); set_state(PART:"sb_hbar_clip", "hidden", 0.0); set_int(sbvis_v, 0); set_int(sbvis_h, 0); set_int(sbalways_v, 0); set_int(sbalways_h, 0); set_int(sbvis_timer, 0); } } program { name: "vbar_show"; signal: "elm,action,show,vbar"; source: "elm"; action: STATE_SET "default" 0.0; target: "sb_vbar_clip_master"; } program { name: "vbar_hide"; signal: "elm,action,hide,vbar"; source: "elm"; action: STATE_SET "hidden" 0.0; target: "sb_vbar_clip_master"; } program { name: "vbar_show_always"; signal: "elm,action,show_always,vbar"; source: "elm"; script { new v; v = get_int(sbvis_v); v |= get_int(sbalways_v); if (!v) { set_int(sbalways_v, 1); emit("do-show-vbar", ""); set_int(sbvis_v, 1); } } } program { name: "vbar_show_notalways"; signal: "elm,action,show_notalways,vbar"; source: "elm"; script { new v; v = get_int(sbalways_v); if (v) { set_int(sbalways_v, 0); v = get_int(sbvis_v); if (!v) { emit("do-hide-vbar", ""); set_int(sbvis_v, 0); } } } } program { name: "sb_vbar_show"; signal: "do-show-vbar"; source: ""; action: STATE_SET "default" 0.0; transition: LINEAR 1.0; target: "sb_vbar_clip"; } program { name: "sb_vbar_hide"; signal: "do-hide-vbar"; source: ""; action: STATE_SET "hidden" 0.0; transition: LINEAR 1.0; target: "sb_vbar_clip"; } program { name: "hbar_show"; signal: "elm,action,show,hbar"; source: "elm"; action: STATE_SET "default" 0.0; target: "sb_hbar_clip_master"; } program { name: "hbar_hide"; signal: "elm,action,hide,hbar"; source: "elm"; action: STATE_SET "hidden" 0.0; target: "sb_hbar_clip_master"; } program { name: "hbar_show_always"; signal: "elm,action,show_always,hbar"; source: "elm"; script { new v; v = get_int(sbvis_h); v |= get_int(sbalways_h); if (!v) { set_int(sbalways_h, 1); emit("do-show-hbar", ""); set_int(sbvis_h, 1); } } } program { name: "hbar_show_notalways"; signal: "elm,action,show_notalways,hbar"; source: "elm"; script { new v; v = get_int(sbalways_h); if (v) { set_int(sbalways_h, 0); v = get_int(sbvis_h); if (!v) { emit("do-hide-hbar", ""); set_int(sbvis_h, 0); } } } } program { name: "sb_hbar_show"; signal: "do-show-hbar"; source: ""; action: STATE_SET "default" 0.0; transition: LINEAR 1.0; target: "sb_hbar_clip"; } program { name: "sb_hbar_hide"; signal: "do-hide-hbar"; source: ""; action: STATE_SET "hidden" 0.0; transition: LINEAR 1.0; target: "sb_hbar_clip"; } program { name: "scroll"; signal: "elm,action,scroll"; source: "elm"; action: STATE_SET "default" 0.0; script { new v; v = get_int(sbvis_v); v |= get_int(sbalways_v); if (!v) { emit("do-show-vbar", ""); set_int(sbvis_v, 1); } v = get_int(sbvis_h); v |= get_int(sbalways_h); if(!v) { emit("do-show-hbar", ""); set_int(sbvis_h, 1); } v = get_int(sbvis_timer); if (v > 0) cancel_timer(v); v = timer(2.0, "timer0", 0); set_int(sbvis_timer, v); } } } } group { name: "elm/ctxpopup/bg/beat_winset_test/camera"; parts { part { name: "bg"; type: RECT; description { state: "default" 0.0; visible: 0; } description { state: "visible" 0.0; visible: 0; } } } programs { program { name: "show"; signal: "elm,state,show"; source: "elm"; action: STATE_SET "visible" 0.0; target: "bg"; } program { name: "hide"; signal: "elm,state,hide"; source: "elm"; action: STATE_SET "default" 0.0; target: "bg"; } } } //Ctxpopup Style #define CTXPOPUP_CAMERA_ARROW_WIDTH 28 #define CTXPOPUP_CAMERA_ARROW_HEIGHT 42 #define CTXPOPUP_FRAME_CORNER_SIZE 4 4 /////////////////////////////////////////////////////////////////////////////// group { name: "elm/ctxpopup/base/beat_winset_test/camera"; images { image: CTXPOPUP_BG_IMAGE COMP; } parts { part { name: "ctxpopup_frame_left_top"; type: RECT; scale: 1; description { visible:0; align: 0 0; min: CTXPOPUP_FRAME_CORNER_SIZE; max: CTXPOPUP_FRAME_CORNER_SIZE; } } part { name: "ctxpopup_frame_right_top"; type: RECT; scale: 1; description { visible:0; align: 1 0; min: CTXPOPUP_FRAME_CORNER_SIZE; max: CTXPOPUP_FRAME_CORNER_SIZE; } } part { name: "ctxpopup_frame_left_bottom"; type: RECT; scale: 1; description { visible:0; align: 0 1; min: CTXPOPUP_FRAME_CORNER_SIZE; max: CTXPOPUP_FRAME_CORNER_SIZE; } } part { name: "ctxpopup_frame_right_bottom"; type: RECT; scale: 1; description { visible:0; align: 1 1; min: CTXPOPUP_FRAME_CORNER_SIZE; max: CTXPOPUP_FRAME_CORNER_SIZE; } } part { name: "arrow_area_left"; type: RECT; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; description { state: "default" 0.0; visible: 0; min: 28 42; fixed: 1 1; align: 1 0.5; rel1 { relative: 0 1; to_y: "ctxpopup_frame_left_top"; } rel2 { relative: 0.5 0; to:"ctxpopup_frame_left_bottom"; } color : 255 255 255 0; } } part { name: "arrow_area_right"; type: RECT; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; description { state: "default" 0.0; visible: 0; min: 28 42; fixed: 1 1; align: 0 0.5; rel1 { relative: 0.5 1; to:"ctxpopup_frame_right_top"; } rel2 { relative: 1 0; to_y: "ctxpopup_frame_right_bottom"; } color : 255 255 255 0; } } part { name: "arrow_area_up"; type: RECT; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; description { state: "default" 0.0; visible: 0; min: 42 28; fixed: 1 1; align: 0.5 1; rel1 { relative: 1 0; to_x: "ctxpopup_frame_left_top"; } rel2 { relative: 0 0.5; to:"ctxpopup_frame_right_top"; } color : 255 255 255 0; } } part { name: "arrow_area_down"; type: RECT; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; description { state: "default" 0.0; visible: 0; min: 42 28; fixed: 1 1; align: 0.5 0; rel1 { relative: 1 0.5; to:"ctxpopup_frame_left_bottom"; } rel2 { relative: 0 1; to_x: "ctxpopup_frame_right_bottom"; } color : 255 255 255 0; } } part { name: "elm.swallow.arrow_up"; type: SWALLOW; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_up"; } description { state: "default" 0.0; min: 42 28; fixed: 1 1; visible: 1; } } part { name: "elm.swallow.arrow_down"; type: SWALLOW; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_down"; } description { state: "default" 0.0; min: 42 28; fixed: 1 1; visible: 1; } } part { name: "elm.swallow.arrow_left"; type: SWALLOW; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_left"; } description { state: "default" 0.0; min: 28 42; fixed: 1 1; visible: 1; } } part { name: "elm.swallow.arrow_right"; type: SWALLOW; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_right"; } description { state: "default" 0.0; min: 28 42; fixed: 1 1; visible: 1; } } part { name: "ctxpopup_frame"; type: IMAGE; scale: 1; clip_to: "ctxpopup_clip"; description { align: 1 1; image { normal: CTXPOPUP_BG_IMAGE; border: 67 67 92 42; border_scale: 1; } rel1 {to: "ctxpopup_frame_left_top"; relative: 0.5 0.5;} rel2 {to: "ctxpopup_frame_right_bottom"; relative: 0.5 0.5;} } } part { name: "elm.swallow.content"; type: SWALLOW; clip_to: "ctxpopup_clip"; description { state: "default" 0.0; rel1 {to: "ctxpopup_frame_left_top"; relative: 0.5 0.5;} rel2 {to: "ctxpopup_frame_right_bottom"; relative: 0.5 0.5;} } } part { name: "ctxpopup_clip"; type: RECT; description { state: "default" 0.0; color: 255 255 255 0; rel1 { to:"ctxpopup_frame_left_top"; relative: 0.5 0.5; } rel2 { to:"ctxpopup_frame_right_bottom"; relative: 0.5 0.5; } } description { state: "show_up" 0.0; color: 255 255 255 0; rel1 { to:"arrow_area_down"; relative: 0 1; } rel2 { to:"arrow_area_down"; relative: 1 1; } } description { state: "show_left" 0.0; color: 255 255 255 0; rel1 { to:"arrow_area_right"; relative: 1 0; } rel2 { to:"arrow_area_right"; relative: 1 1; } } description { state: "show_right" 0.0; color: 255 255 255 0; rel1 { to:"arrow_area_left"; relative: 0 0; } rel2 { to:"arrow_area_left"; relative: 0 1; } } description { state: "show_down" 0.0; color: 255 255 255 0; rel1 { to:"arrow_area_up"; relative: 0 0; } rel2 { to:"arrow_area_up"; relative: 1 0; } } description { state: "hide_up" 0.0; color: 255 255 255 255; rel1 { to:"arrow_area_down"; relative: 0 1; } rel2 { to:"arrow_area_down"; relative: 1 1; } } description { state: "hide_left" 0.0; color: 255 255 255 255; rel1 { to:"arrow_area_right"; relative: 1 0; } rel2 { to:"arrow_area_right"; relative: 1 1; } } description { state: "hide_right" 0.0; color: 255 255 255 255; rel1 { to:"arrow_area_left"; relative: 0 0; } rel2 { to:"arrow_area_left"; relative: 0 1; } } description { state: "hide_down" 0.0; color: 255 255 255 255; rel1 { to:"arrow_area_up"; relative: 0 0; } rel2 { to:"arrow_area_up"; relative: 1 0; } } description { state: "visible" 0.0; color: 255 255 255 255; rel1 { to_x:"arrow_area_left"; to_y:"arrow_area_up"; } rel2 { to_x:"arrow_area_right"; to_y:"arrow_area_down"; } } } } programs { program { name: "show"; signal: "elm,state,show"; source: "elm"; action: STATE_SET "visible" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; } program { name: "show_up"; signal: "elm,state,show,up"; source: "elm"; action: STATE_SET "show_up" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; } program { name: "show_left"; signal: "elm,state,show,left"; source: "elm"; action: STATE_SET "show_left" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; } program { name: "show_right"; signal: "elm,state,show,right"; source: "elm"; action: STATE_SET "show_right" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; } program { name: "show_down"; signal: "elm,state,show,down"; source: "elm"; action: STATE_SET "show_down" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; } program { name: "hide_up"; signal: "elm,state,hide,up"; source: "elm"; action: STATE_SET "hide_up" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; after: "hide_finished"; } program { name: "hide_left"; signal: "elm,state,hide,left"; source: "elm"; action: STATE_SET "hide_left" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; after: "hide_finished"; } program { name: "hide_right"; signal: "elm,state,hide,right"; source: "elm"; action: STATE_SET "hide_right" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; after: "hide_finished"; } program { name: "hide_down"; signal: "elm,state,hide,down"; source: "elm"; action: STATE_SET "hide_down" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; after: "hide_finished"; } program { name: "hide_finished"; action: SIGNAL_EMIT "elm,action,hide,finished" ""; } } } group { name: "elm/ctxpopup/arrow/beat_winset_test/camera"; images { image: CTXPOPUP_LEFT_ARROW_IMAGE COMP; image: CTXPOPUP_RIGHTT_ARROW_IMAGE COMP; image: CTXPOPUP_TOP_ARROW_IMAGE COMP; image: CTXPOPUP_BOTTOM_ARROW_IMAGE COMP; } parts { part { name: "ctxpopup_arrow"; type: IMAGE; scale: 1; description { state: "default" 0.0; min: CTXPOPUP_CAMERA_ARROW_WIDTH CTXPOPUP_CAMERA_ARROW_HEIGHT; max: CTXPOPUP_CAMERA_ARROW_WIDTH CTXPOPUP_CAMERA_ARROW_HEIGHT; fixed: 1 1; visible: 0; align: 0.5 0.5; rel1.relative: 0.0 -0.5; rel2.relative: 0.0 1.0; } description { state: "left" 0.0; min: CTXPOPUP_CAMERA_ARROW_WIDTH CTXPOPUP_CAMERA_ARROW_HEIGHT; max: CTXPOPUP_CAMERA_ARROW_WIDTH CTXPOPUP_CAMERA_ARROW_HEIGHT; fixed: 1 1; align: 0.0 0.5; image { normal: CTXPOPUP_LEFT_ARROW_IMAGE; } } description { state: "right" 0.0; min: CTXPOPUP_CAMERA_ARROW_WIDTH CTXPOPUP_CAMERA_ARROW_HEIGHT; max: CTXPOPUP_CAMERA_ARROW_WIDTH CTXPOPUP_CAMERA_ARROW_HEIGHT; fixed: 1 1; align: 1.0 0.5; image { normal: CTXPOPUP_RIGHTT_ARROW_IMAGE; } } description { state: "top" 0.0; min: CTXPOPUP_CAMERA_ARROW_HEIGHT CTXPOPUP_CAMERA_ARROW_WIDTH; max: CTXPOPUP_CAMERA_ARROW_HEIGHT CTXPOPUP_CAMERA_ARROW_WIDTH; fixed: 1 1; align: 0.5 0.0; image { normal: CTXPOPUP_TOP_ARROW_IMAGE; } } description { state: "bottom" 0.0; min: CTXPOPUP_CAMERA_ARROW_HEIGHT CTXPOPUP_CAMERA_ARROW_WIDTH; max: CTXPOPUP_CAMERA_ARROW_HEIGHT CTXPOPUP_CAMERA_ARROW_WIDTH; fixed: 1 1; align: 0.5 1.0; image { normal: CTXPOPUP_BOTTOM_ARROW_IMAGE; } } } } programs { program { name: "enable_left_arrow"; signal: "elm,state,left"; source: "elm"; action: STATE_SET "left" 0.0; target: "ctxpopup_arrow"; } program { name: "enable_right_arrow"; signal: "elm,state,right"; source: "elm"; action: STATE_SET "right" 0.0; target: "ctxpopup_arrow"; } program { name: "enable_top_arrow"; signal: "elm,state,top"; source: "elm"; action: STATE_SET "top" 0.0; target: "ctxpopup_arrow"; } program { name: "enable_bottom_arrow"; signal: "elm,state,bottom"; source: "elm"; action: STATE_SET "bottom" 0.0; target: "ctxpopup_arrow"; } } } group { name: "elm/ctxpopup/bg/beat_winset_test/camera_no_arrow"; parts { part { name: "bg"; type: RECT; description { state: "default" 0.0; visible: 0; } description { state: "visible" 0.0; visible: 0; } } } programs { program { name: "show"; signal: "elm,state,show"; source: "elm"; action: STATE_SET "visible" 0.0; target: "bg"; } program { name: "hide"; signal: "elm,state,hide"; source: "elm"; action: STATE_SET "default" 0.0; target: "bg"; } } } group { name: "elm/ctxpopup/base/beat_winset_test/camera_no_arrow"; images { image: CTXPOPUP_BG_2DEPTH_IMAGE COMP; } parts { part { name: "ctxpopup_frame_left_top"; type: RECT; scale: 1; description { visible:0; align: 0 0; min: CTXPOPUP_FRAME_CORNER_SIZE; max: CTXPOPUP_FRAME_CORNER_SIZE; } } part { name: "ctxpopup_frame_right_top"; type: RECT; scale: 1; description { visible:0; align: 1 0; min: CTXPOPUP_FRAME_CORNER_SIZE; max: CTXPOPUP_FRAME_CORNER_SIZE; } } part { name: "ctxpopup_frame_left_bottom"; type: RECT; scale: 1; description { visible:0; align: 0 1; min: CTXPOPUP_FRAME_CORNER_SIZE; max: CTXPOPUP_FRAME_CORNER_SIZE; } } part { name: "ctxpopup_frame_right_bottom"; type: RECT; scale: 1; description { visible:0; align: 1 1; min: CTXPOPUP_FRAME_CORNER_SIZE; max: CTXPOPUP_FRAME_CORNER_SIZE; } } part { name: "arrow_area_left"; type: RECT; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; description { state: "default" 0.0; visible: 0; min: 40 0; fixed: 1 1; align: 1 0.5; rel1 { relative: 0 1; to_y: "ctxpopup_frame_left_top"; } rel2 { relative:0 0; to:"ctxpopup_frame_left_bottom"; } color : 255 255 255 0; } } part { name: "arrow_area_right"; type: RECT; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; description { state: "default" 0.0; visible: 0; min: 40 0; fixed: 1 1; align: 0 0.5; rel1 { relative: 1 1; to:"ctxpopup_frame_right_top"; } rel2 { relative: 1 0; to_y: "ctxpopup_frame_right_bottom"; } color : 255 255 255 0; } } part { name: "arrow_area_up"; type: RECT; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; description { state: "default" 0.0; visible: 0; min: 0 40; fixed: 1 1; align: 0.5 1; rel1 { relative: 1 0; to_x: "ctxpopup_frame_left_top"; } rel2 { relative: 0 0; to:"ctxpopup_frame_right_top"; } color : 255 255 255 0; } } part { name: "arrow_area_down"; type: RECT; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; description { state: "default" 0.0; visible: 0; min: 0 40; fixed: 1 1; align: 0.5 0; rel1 { relative: 1 1; to:"ctxpopup_frame_left_bottom"; } rel2 { relative: 0 1; to_x: "ctxpopup_frame_right_bottom"; } color : 255 255 255 0; } } part { name: "elm.swallow.arrow_up"; type: SWALLOW; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_up"; } description { state: "default" 0.0; min: 40 40; fixed: 1 1; visible: 1; } } part { name: "elm.swallow.arrow_down"; type: SWALLOW; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_down"; } description { state: "default" 0.0; min: 40 40; fixed: 1 1; visible: 1; } } part { name: "elm.swallow.arrow_left"; type: SWALLOW; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_left"; } description { state: "default" 0.0; min: 40 40; fixed: 1 1; visible: 1; } } part { name: "elm.swallow.arrow_right"; type: SWALLOW; mouse_events: 0; scale: 1; clip_to: "ctxpopup_clip"; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_right"; } description { state: "default" 0.0; min: 40 40; fixed: 1 1; visible: 1; } } part { name: "ctxpopup_frame"; type: IMAGE; scale: 1; clip_to: "ctxpopup_clip"; description { align: 1 1; /*color: 0 0 0 85;*/ image { normal: CTXPOPUP_BG_2DEPTH_IMAGE; border: 67 67 92 42; border_scale: 1; } rel1 {to: "ctxpopup_frame_left_top"; relative: 0.5 0.5;} rel2 {to: "ctxpopup_frame_right_bottom"; relative: 0.5 0.5;} // color : 255 255 255 200; } } part { name: "elm.swallow.content"; type: SWALLOW; clip_to: "ctxpopup_clip"; description { state: "default" 0.0; rel1 {to: "ctxpopup_frame_left_top"; relative: 0.5 0.5;} rel2 {to: "ctxpopup_frame_right_bottom"; relative: 0.5 0.5;} } } part { name: "ctxpopup_clip"; type: RECT; description { state: "default" 0.0; color: 255 255 255 0; rel1 { to:"ctxpopup_frame_left_top"; relative: 0.5 0.5; } rel2 { to:"ctxpopup_frame_right_bottom"; relative: 0.5 0.5; } } description { state: "show_up" 0.0; color: 255 255 255 0; rel1 { to:"arrow_area_down"; relative: 0 1; } rel2 { to:"arrow_area_down"; relative: 1 1; } } description { state: "show_left" 0.0; color: 255 255 255 0; rel1 { to:"arrow_area_right"; relative: 1 0; } rel2 { to:"arrow_area_right"; relative: 1 1; } } description { state: "show_right" 0.0; color: 255 255 255 0; rel1 { to:"arrow_area_left"; relative: 0 0; } rel2 { to:"arrow_area_left"; relative: 0 1; } } description { state: "show_down" 0.0; color: 255 255 255 0; rel1 { to:"arrow_area_up"; relative: 0 0; } rel2 { to:"arrow_area_up"; relative: 1 0; } } description { state: "hide_up" 0.0; color: 255 255 255 255; rel1 { to:"arrow_area_down"; relative: 0 1; } rel2 { to:"arrow_area_down"; relative: 1 1; } } description { state: "hide_left" 0.0; color: 255 255 255 255; rel1 { to:"arrow_area_right"; relative: 1 0; } rel2 { to:"arrow_area_right"; relative: 1 1; } } description { state: "hide_right" 0.0; color: 255 255 255 255; rel1 { to:"arrow_area_left"; relative: 0 0; } rel2 { to:"arrow_area_left"; relative: 0 1; } } description { state: "hide_down" 0.0; color: 255 255 255 255; rel1 { to:"arrow_area_up"; relative: 0 0; } rel2 { to:"arrow_area_up"; relative: 1 0; } } description { state: "visible" 0.0; color: 255 255 255 255; rel1 { to_x:"arrow_area_left"; to_y:"arrow_area_up"; } rel2 { to_x:"arrow_area_right"; to_y:"arrow_area_down"; } } } } programs { program { name: "show"; signal: "elm,state,show"; source: "elm"; action: STATE_SET "visible" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; } program { name: "show_up"; signal: "elm,state,show,up"; source: "elm"; action: STATE_SET "show_up" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; } program { name: "show_left"; signal: "elm,state,show,left"; source: "elm"; action: STATE_SET "show_left" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; } program { name: "show_right"; signal: "elm,state,show,right"; source: "elm"; action: STATE_SET "show_right" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; } program { name: "show_down"; signal: "elm,state,show,down"; source: "elm"; action: STATE_SET "show_down" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; } program { name: "hide_up"; signal: "elm,state,hide,up"; source: "elm"; action: STATE_SET "hide_up" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; after: "hide_finished"; } program { name: "hide_left"; signal: "elm,state,hide,left"; source: "elm"; action: STATE_SET "hide_left" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; after: "hide_finished"; } program { name: "hide_right"; signal: "elm,state,hide,right"; source: "elm"; action: STATE_SET "hide_right" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; after: "hide_finished"; } program { name: "hide_down"; signal: "elm,state,hide,down"; source: "elm"; action: STATE_SET "hide_down" 0.0; transition: LINEAR 0.25; target: "ctxpopup_clip"; after: "hide_finished"; } program { name: "hide_finished"; action: SIGNAL_EMIT "elm,action,hide,finished" ""; } } } group { name: "elm/ctxpopup/arrow/beat_winset_test/camera_no_arrow"; parts { part { name: "ctxpopup_arrow"; type: IMAGE; scale: 1; description { state: "default" 0.0; visible: 0; align: 0.5 0.5; rel1.relative: 0.0 -0.5; rel2.relative: 0.0 1.0; } description { state: "left" 0.0; inherit: "default" 0.0; } description { state: "right" 0.0; inherit: "default" 0.0; } description { state: "top" 0.0; inherit: "default" 0.0; } description { state: "bottom" 0.0; inherit: "default" 0.0; } } } } #include "style_tizen_hd_inc.edc" #include "style_genlist_macro.edc" #include "style_genlist_normal.edc" }