/* * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved * * PROPRIETARY/CONFIDENTIAL * * This software is the confidential and proprietary information of SAMSUNG * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this * software is owned by Samsung and you shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the license * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no * representations or warranties about the suitability of the software, either * express or implied, including but not limited to the implied warranties of * merchantability, fitness for a particular purpose, or non-infringement. * SAMSUNG shall not be liable for any damages suffered by licensee arising out * of or releated to this software. * */ #define POPUP_ITEM_STATE_ENABLED 0 #define POPUP_ITEM_STATE_DISABLED 1 /*popup widget specific notify style style*/ group { name: "elm/notify/block_events/popup"; parts { part { name: "block_events"; type: RECT; description { state: "default" 0.0; color: POPUP_DIM_BG_COLOR_INC; } description { state: "clicked" 0.0; color: POPUP_DIM_BG_CLICKED_COLOR_INC; } } } programs { program { name: "block_clicked"; signal: "mouse,clicked,1"; source: "block_events"; action: SIGNAL_EMIT "elm,action,click" "elm"; after: "deeper_block_color"; } program { name: "deeper_block_color"; action: STATE_SET "clicked" 0.0; target: "block_events"; transition: LINEAR 0.2; after: "default_block_color"; } program { name: "default_block_color"; action: STATE_SET "default" 0.0; target: "block_events"; transition: LINEAR 0.2; } } } group { name: "elm/notify/block_events/transparent"; parts { part { name: "block_events"; type: RECT; description { state: "default" 0.0; color: POPUP_DIM_BG_TRANS_COLOR_INC; } description { state: "clicked" 0.0; color: POPUP_DIM_BG_CLICKED_TRANS_COLOR_INC; } } } programs { program { name: "block_clicked"; signal: "mouse,clicked,1"; source: "block_events"; action: SIGNAL_EMIT "elm,action,click" "elm"; after: "deeper_block_color"; } program { name: "deeper_block_color"; action: STATE_SET "clicked" 0.0; target: "block_events"; transition: LINEAR 0.2; after: "default_block_color"; } program { name: "default_block_color"; action: STATE_SET "default" 0.0; target: "block_events"; transition: LINEAR 0.2; } } } group { name: "elm/label/base/popup/default"; alias: "elm/label/base/popup/verticalbuttonstyle"; styles { style { name: "popup_desc_style"; base: "font=SLP:style=Roman font_size="POPUP_DESCRIPTION_DEFAULT_TEXT_FONT_SIZE_INC" align=center color="POPUP_DEFAULT_DESCRIPTION_TEXT_COLOR_INC" text_class=label"; tag: "br" "\n"; tag: "ps" "ps"; tag: "whitecolor" "+ color=#ffffff"; tag: "tab" "\t"; } } parts { part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 0; scale: 1; description { state: "default" 0.0; min: POPUP_DESCRIPTION_DEFAULT_TEXT_MIN_INC; text { style: "popup_desc_style"; min: 0 1; max: 0 1; } } } } } group { name: "elm/popup/base/default"; images { image: "00_popup_title_bg.png" COMP; image: "00_popup_bottom_bg.png" COMP; image: "00_popup_bg.png" COMP; } styles { style { name: "popup_title_style"; base: "font=SLP:style=Medium font_size="POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0"; tag: "br" "\n"; tag: "tab" "\t"; } } parts { part { name: "base"; type: IMAGE; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC; max: POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC; image { normal: "00_popup_bg.png"; border: POPUP_BASE_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC; border_scale: 1; } align: 0.0 0.0; } } part { name: "elm.bg.title"; type: IMAGE; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_TITLE_DEFAULT_MIN_INC; fixed : 1 1; align: 0.5 0.0; visible: 0; image.normal: "00_popup_title_bg.png"; image.border: POPUP_BASE_DEFAULT_TITLE_DEFAULT_IMAGE_BORDER_INC; image.border_scale: 1; rel1 { relative: 0.5 0.0; to: "base"; } rel2 { relative: 0.5 0.0; to: "base"; } } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "left_pad"; type: RECT; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC; max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC; fixed: 1 1; align: 0.0 0.0; visible: 0; rel1.to: "elm.bg.title"; } } part { name: "right_pad"; type: RECT; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC; max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC; fixed: 1 1; align: 1.0 1.0; visible: 0; rel2.to: "elm.bg.title"; } } part { name: "elm.swallow.title.icon"; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC; max: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC; fixed: 1 1; align: 0.0 0.5; rel1 { to: "left_pad"; relative: 1.0 0.0; } rel2 { to: "right_pad"; relative: 0.0 1.0; } visible: 0; } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.text.title"; type: TEXTBLOCK; scale:1; description { state: "default" 0.0; text { style: "popup_title_style"; min: 0 0; max: 0 1; align: 0.5 0.0; } color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC; visible:0; rel1 { relative: 1.0 0.0; to: "left_pad"; } rel2 { relative: 0.0 1.0; to: "right_pad"; } } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.swallow.content"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC; fixed: 1 0; rel1 { relative: 0.5 0.0; to: "base"; } rel2 { relative: 0.5 1.0; to: "base"; } } description { state: "show_title_area" 0.0; inherit: "default" 0.0; rel1 { relative: 0.5 1.0; to: "elm.bg.title"; } } description { state: "show_action_area" 0.0; inherit: "default" 0.0; rel2 { relative: 0.5 0.0; to: "elm.bg.action_area"; } } description { state: "show_action_title_area" 0.0; inherit: "default" 0.0; rel1 { relative: 0.5 1.0; to: "elm.bg.title"; } rel2 { relative: 0.5 0.0; to: "elm.bg.action_area"; } } } part { name: "elm.bg.action_area"; type: IMAGE; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_BUTTON_BG_DEFAULT_MIN_INC; fixed : 1 1; align: 0.5 1.0; visible: 0; image.normal: "00_popup_bottom_bg.png"; image.border: POPUP_BASE_DEFAULT_BUTTON_BG_IMAGE_BORDER_INC; image.border_scale: 1; rel1 { relative: 0.0 1.0; to: "base"; } rel2.to: "base"; } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.swallow.action_area"; type: SWALLOW; scale : 1; description { state: "default" 0.0; align: 0.0 0.0; rel1.to: "elm.bg.action_area"; rel2.to: "elm.bg.action_area"; } } } programs { program { name: show_title_icon; signal: "elm,state,title,icon,visible"; source: "elm"; action: STATE_SET "visible" 0.0; target: "elm.swallow.title.icon"; } program { name: hide_title_icon; signal: "elm,state,title,icon,hidden"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.swallow.title.icon"; } program { name: show_title_text; signal: "elm,state,title,text,visible"; source: "elm"; action: STATE_SET "visible" 0.0; target: "elm.text.title"; } program { name: hide_title_text; signal: "elm,state,title,text,hidden"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.text.title"; } program { name: show_title_area; signal: "elm,state,title_area,visible"; source: "elm"; script { new st[31]; new Float:vl; get_state(PART:"elm.swallow.action_area", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); else set_state(PART:"elm.swallow.content", "show_title_area", 0.0); set_state(PART:"elm.bg.title", "visible", 0.0); } } program { name: hide_title_area; signal: "elm,state,title_area,hidden"; source: "elm"; action: STATE_SET "default" 0.0; script { new st[31]; new Float:vl; get_state(PART:"elm.swallow.action_area", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_area", 0.0); else set_state(PART:"elm.swallow.content", "default", 0.0); set_state(PART:"elm.bg.title", "default", 0.0); } } program { name: show_action_area; signal: "elm,state,action_area,visible"; source: "elm"; script { new st[31]; new Float:vl; get_state(PART:"elm.bg.title", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); else set_state(PART:"elm.swallow.content", "show_action_area", 0.0); set_state(PART:"elm.bg.action_area", "visible", 0.0); } } program { name: hide_action_area; signal: "elm,state,action_area,hidden"; source: "elm"; action: STATE_SET "default" 0.0; script { new st[31]; new Float:vl; get_state(PART:"elm.bg.title", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_title_area", 0.0); else set_state(PART:"elm.swallow.content", "default", 0.0); set_state(PART:"elm.bg.action_area", "default", 0.0); } } } /* end of programs */ } group { name: "elm/popup/content/default"; parts{ part { name: "pad_t"; type: RECT; scale : 1; mouse_events: 0; description { state: "default" 0.0; align: 0.5 0.0; min: POPUP_CONTENT_DEFAULT_PADDING_TOP_MIN_INC; fixed: 0 1; visible: 0; rel1 { relative: 1.0 0.0; to_x: "pad_l"; } rel2 { relative: 0.0 0.0; to_x: "pad_r"; } } } part { name: "pad_l"; type: RECT; scale: 1; description { state: "default" 0.0; min : POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC; fixed: 1 0; rel2.relative: 0.0 1.0; visible: 0; align: 0.0 0.0; } } part { name: "pad_r"; type: RECT; scale: 1; description { state: "default" 0.0; min : POPUP_CONTENT_DEFAULT_PADDING_RIGHT_MIN_INC; fixed: 1 0; rel1.relative: 1.0 0.0; visible: 0; align: 1.0 0.0; } } part{ name:"elm.swallow.content"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_CONTENT_DEFAULT_CONTENT_DEFAULT_MIN_INC; fixed: 1 0; rel1 { relative: 0.5 1.0; to: "pad_t"; } rel2 { relative: 0.5 0.0; to: "pad_b"; } } } part { name: "pad_b"; type: RECT; scale : 1; mouse_events: 0; description { state: "default" 0.0; align: 0.5 1.0; min: POPUP_CONTENT_DEFAULT_PADDING_BOTTOM_MIN_INC; fixed: 0 1; visible: 0; rel1 { relative: 0.0 1.0; to_x: "pad_l"; } rel2.to_x: "pad_r"; } } } } /////////////////////////////////////////////////////////////////////////////// group { name: "elm/popup/item/default"; script { public item_state = POPUP_ITEM_STATE_ENABLED; } parts { part { name: "event_blocker"; description { state: "default" 0.0; } } part { name: "bg"; mouse_events: 0; type: RECT; description { state: "default" 0.0; color: 240 240 240 255; min: 0 71; align: 0.5 0.0; } description { state: "clicked" 0.0; color: 190 170 150 255; } } part { name: "padding_left_top"; type: RECT; scale: 1; mouse_events: 0; description { state: "default" 0.0; align: 0.0 0.0; rel2.relative: 0.0 0.0; min: 10 10; fixed: 1 1; visible: 0; } } part { name: "padding_right_bottom"; type: RECT; scale: 1; mouse_events: 0; description { state: "default" 0.0; align: 1.0 1.0; rel1.relative: 1.0 1.0; min: 10 10; fixed: 1 1; visible: 0; } } part { name: "separator"; mouse_events: 0; type: RECT; scale: 1; description { state: "dafault" 0.0; color: 180 180 180 255; align: 0.5 1.0; min: 0 1; max: 999999 1; } } part { name: "padding_icon_text"; type: RECT; scale: 1; mouse_events: 0; description { state: "default" 0.0; //when only icon or no icon is there align: 0.0 0.0; rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; } rel2.to: "elm.swallow.content"; fixed: 1 0; min: 0 0; visible: 0; } description { state: "visible" 0.0; //when icon is visible inherit: "default" 0.0; min: 10 0; } description { state: "icononly" 0.0; inherit: "default" 0.0; } } part { name: "elm.swallow.content"; type: SWALLOW; scale: 1; description { state: "default" 0.0; visible: 0; align: 0.0 0.5; rel1 { relative: 1.0 1.0; to: "padding_left_top"; } rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; } fixed: 1 0; } description { state: "visible" 0.0; fixed: 1 0; min: 40 40; max: 40 40; align: 0.0 0.5; rel1 { relative: 1.0 1.0; to: "padding_left_top"; } rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; } aspect: 1.0 1.0; aspect_preference: VERTICAL; } description { state: "icononly" 0.0; min: 40 40; max: 40 40; rel1 { relative: 1.0 1.0; to: "padding_left_top"; } rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; } aspect: 1.0 1.0; aspect_preference: VERTICAL; } } part { name: "elm.text"; type: TEXT; mouse_events: 0; scale: 1; description { state: "default" 0.0; visible: 0; rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; } rel2 { relative: 0.0 0.0; to:"padding_right_bottom"; } align: 0.0 0.5; color: 0 0 0 255; text { font: "Sans:style=Bold"; size: 20; min: 0 0; align: 0.0 0.5; } } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; min: 90 40; } description { state: "clicked" 0.0; inherit: "default" 0.0; visible: 1; min: 0 0; color: 255 255 255 255; } description { state: "disabled" 0.0; inherit: "default" 0.0; color: 128 128 128 255; } description { state: "disabled_visible" 0.0; inherit: "default" 0.0; color: 128 128 128 255; visible: 1; min: 90 40; } } part { name: "over1"; repeat_events: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; } } part { name: "over2"; repeat_events: 1; description { state: "default" 0.0; } } part { name: "disclip"; type: RECT; description { state: "default" 0.0; visible: 0; } description { state: "disabled" 0.0; color: 87 87 87 128; } } } programs { program { name: "item_unclick"; signal: "mouse,up,1"; source: "over1"; action: SIGNAL_EMIT "elm,action,click" ""; } program { name: "disable"; signal: "elm,state,item,disabled"; source: "elm"; action: STATE_SET "disabled" 0.0; target: "disclip"; after: "disable_text"; } program { name: "enable"; signal: "elm,state,item,enabled"; source: "elm"; action: STATE_SET "default" 0.0; target: "disclip"; after: "enable_text"; } program { name: "item_click2"; signal: "mouse,down,1"; source: "over2"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.text", "clicked", 0.0); set_state(PART:"bg", "clicked", 0.0); } } program { name: "item_unclick2"; signal: "mouse,up,1"; source: "over2"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "clicked")) set_state(PART:"elm.text", "visible", 0.0); set_state(PART:"bg", "default", 0.0); } } 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); set_int(item_state, POPUP_ITEM_STATE_DISABLED); } } 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); set_int(item_state, POPUP_ITEM_STATE_ENABLED); } } program { name: "text_show"; signal: "elm,state,item,text,visible"; source: "elm"; script { new st[31]; new Float:vl; get_state(PART:"elm.swallow.content", st, 30, vl); if (!strcmp(st, "icononly")) { set_state(PART:"elm.swallow.content", "visible", 0.0); set_state(PART:"padding_icon_text", "visible", 0.0); } if(get_int(item_state) != POPUP_ITEM_STATE_DISABLED) set_state(PART:"elm.text", "visible", 0.0); else set_state(PART:"elm.text", "disabled_visible", 0.0); } } program { name: "text_hide"; signal: "elm,state,item,text,hidden"; source: "elm"; script { new st[31]; new Float:vl; get_state(PART:"elm.swallow.content", st, 30, vl); if (!strcmp(st, "visible")) { set_state(PART:"elm.swallow.content", "icononly", 0.0); set_state(PART:"padding_icon_text", "icononly", 0.0); } set_state(PART:"elm.text", "default", 0.0); } } program { name: "icon_show"; signal: "elm,state,item,icon,visible"; source: "elm"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "visible")) { set_state(PART:"elm.swallow.content", "visible", 0.0); set_state(PART:"padding_icon_text", "visible", 0.0); } else { set_state(PART:"elm.swallow.content", "icononly", 0.0); set_state(PART:"padding_icon_text", "icononly", 0.0); } } } program { name: "icon_hide"; signal: "elm,state,item,icon,hidden"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.swallow.content"; } } } group { name: "elm/popup/base/verticalbuttonstyle"; images { image: "00_popup_title_bg.png" COMP; image: "00_popup_bottom_bg.png" COMP; image: "00_popup_bg.png" COMP; } parts { part { name: "base"; type: IMAGE; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_VERTICAL_BUTTON_BASE_MIN_INC; max: POPUP_BASE_VERTICAL_BUTTON_BASE_MAX_INC; image { normal: "00_popup_bg.png"; border: POPUP_BASE_VERTICAL_BUTTON_BG_IMAGE_BORDER_INC; border_scale: 1; } align: 0.0 0.0; } } part { name: "elm.bg.title"; type: IMAGE; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_VERTICAL_BUTTON_TITLE_DEFAULT_MIN_INC; fixed : 1 1; align: 0.5 0.0; visible: 0; image.normal: "00_popup_title_bg.png"; image.border: POPUP_BASE_VERTICAL_BUTTON_TITLE_IMAGE_BORDER_MIN_INC; image.border_scale: 1; rel1 { relative: 0.5 0.0; to: "base"; } rel2 { relative: 0.5 0.0; to: "base"; } } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.swallow.title.icon"; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_VERTICAL_BUTTON_TITLE_ICON_MIN_MAX_INC; max: POPUP_BASE_VERTICAL_BUTTON_TITLE_ICON_MIN_MAX_INC; fixed: 1 1; align: 0.0 0.5; rel1.to: "elm.bg.title"; rel2.to: "elm.bg.title"; visible: 0; } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.text.title"; type: TEXTBLOCK; scale:1; description { state: "default" 0.0; text { style: "popup_title_style"; min: 0 0; max: 0 1; align: 0.5 0.0; } color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC; visible:0; rel1.to:"elm.bg.title"; rel2.to: "elm.bg.title"; } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.swallow.content"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_VERTICAL_BUTTON_CONTENT_DEFAULT_MIN_INC; fixed: 1 0; rel1 { relative: 0.5 0.0; to: "base"; } rel2 { relative: 0.5 1.0; to: "base"; } } description { state: "show_title_area" 0.0; inherit: "default" 0.0; rel1 { relative: 0.5 1.0; to: "elm.bg.title"; } } description { state: "show_action_area" 0.0; inherit: "default" 0.0; rel2 { relative: 0.5 0.0; to: "elm.swallow.action_area"; } } description { state: "show_action_title_area" 0.0; inherit: "default" 0.0; rel1 { relative: 0.5 1.0; to: "elm.bg.title"; } rel2 { relative: 0.5 0.0; to: "elm.swallow.action_area"; } } } part { name: "elm.swallow.action_area"; type: SWALLOW; scale : 1; description { state: "default" 0.0; align: 0.5 1.0; fixed: 0 1; min: POPUP_BASE_VERTICAL_BUTTON_BUTTONAREA_DEFAULT_MIN_INC; visible: 1; rel1 { relative: 0.0 1.0; to: "base"; } rel2.to: "base"; } } } programs { program { name: show_title_icon; signal: "elm,state,title,icon,visible"; source: "elm"; action: STATE_SET "visible" 0.0; target: "elm.swallow.title.icon"; } program { name: hide_title_icon; signal: "elm,state,title,icon,hidden"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.swallow.title.icon"; } program { name: show_title_text; signal: "elm,state,title,text,visible"; source: "elm"; action: STATE_SET "visible" 0.0; target: "elm.text.title"; } program { name: hide_title_text; signal: "elm,state,title,text,hidden"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.text.title"; } program { name: show_title_area; signal: "elm,state,title_area,visible"; source: "elm"; script { new st[31]; new Float:vl; get_state(PART:"elm.swallow.action_area", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); else set_state(PART:"elm.swallow.content", "show_title_area", 0.0); set_state(PART:"elm.bg.title", "visible", 0.0); } } program { name: hide_title_area; signal: "elm,state,title_area,hidden"; source: "elm"; action: STATE_SET "default" 0.0; script { new st[31]; new Float:vl; get_state(PART:"elm.swallow.action_area", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_area", 0.0); else set_state(PART:"elm.swallow.content", "default", 0.0); set_state(PART:"elm.bg.title", "default", 0.0); } } program { name: show_action_area; signal: "elm,state,action_area,visible"; source: "elm"; script { new st[31]; new Float:vl; get_state(PART:"elm.bg.title", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); else set_state(PART:"elm.swallow.content", "show_action_area", 0.0); } } program { name: hide_action_area; signal: "elm,state,action_area,hidden"; source: "elm"; action: STATE_SET "default" 0.0; script { new st[31]; new Float:vl; get_state(PART:"elm.bg.title", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_title_area", 0.0); else set_state(PART:"elm.swallow.content", "default", 0.0); } } } /* end of programs */ } group { name: "elm/popup/buttons3/verticalbuttonstyle"; data.item: "action_area_height" POPUP_BUTTON_VERTICAL_ACTION_AREA_HEIGHT; parts{ part { name: "elm.swallow.buttonArea.Background"; type: IMAGE; scale : 1; description { state: "default" 0.0; align: 0.5 0.0; image.normal: "00_popup_bottom_bg.png"; image.border: POPUP_BUTTON3_VERTICAL_BUTTON_BG_IMAGE_BORDER_INC; image.border_scale: 1; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } } } part { name: "elm.rect.pad_btn_top"; type: RECT; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_TOP_MIN_INC; fixed : 0 1; align: 0.0 0.0; color: 0 0 0 0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 0.0; } } } part{ name:"actionbtn1"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC; max: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC; fixed : 1 1; align: 0.5 0.0; rel1 { relative: 0.0 1.0; to_y: "elm.rect.pad_btn_top"; } } } part { name: "elm.rect.pad_btn"; type: RECT; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MIN_INC; max: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MAX_INC; fixed : 1 1; align: 0.5 0.0; color: 0 0 0 0; rel1 { relative: 0.0 1.0; to: "actionbtn1"; } rel2 { relative: 1.0 1.0; to: "actionbtn1"; } } } part{ name:"actionbtn2"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC; max: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC; fixed : 1 1; align: 0.5 0.0; rel1 { relative: 0 1.0; to_y: "elm.rect.pad_btn"; } } } part { name: "elm.rect.pad_btn2"; type: RECT; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MIN_INC; max: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MAX_INC; fixed : 1 1; align: 0.5 0.0; color: 0 0 0 0; rel1 { relative: 0.0 1.0; to: "actionbtn2"; } rel2 { relative: 1.0 1.0; to: "actionbtn2"; } } } part{ name:"actionbtn3"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC; max: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC; fixed : 1 1; align: 0.5 0.0; rel1 { relative: 0.0 1.0; to_y: "elm.rect.pad_btn2"; } } } } } group { name: "elm/popup/content/menustyle"; parts{ part { name: "left_padding"; type: RECT; scale: 1; description { state: "default" 0.0; fixed: 1 0; visible: 0; align: 0.0 0.5; min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC; rel1 { relative: 0.0 0.0; } rel2 { relative: 0.0 1.0; } } } part{ name:"elm.swallow.content"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC; align: 0.5 0.5; fixed: 1 0; rel1 { relative: 1.0 0.0; to:"left_padding"; } rel2 { relative: 0.0 1.0; to:"right_padding"; } } } part { name: "right_padding"; type: RECT; scale: 1; description { state: "default" 0.0; fixed: 1 0; visible: 0; align: 1.0 0.5; min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC; rel1 { relative: 1.0 0.0; } rel2 { relative: 1.0 1.0; } } } } } group { name: "elm/popup/content/min_menustyle"; parts{ part { name: "left_padding"; type: RECT; scale: 1; description { state: "default" 0.0; fixed: 1 0; visible: 0; align: 0.0 0.5; min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC; rel1 { relative: 0.0 0.0; } rel2 { relative: 0.0 1.0; } } } part{ name:"elm.swallow.content"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC; align: 0.5 0.5; fixed: 1 0; rel1 { relative: 1.0 0.0; to:"left_padding"; } rel2 { relative: 0.0 1.0; to:"right_padding"; } } } part { name: "right_padding"; type: RECT; scale: 1; description { state: "default" 0.0; fixed: 1 0; visible: 0; align: 1.0 0.5; min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC; rel1 { relative: 1.0 0.0; } rel2 { relative: 1.0 1.0; } } } } } group { name: "elm/popup/content/liststyle"; parts{ part { name: "left_top_padding"; type: RECT; scale: 1; description { state: "default" 0.0; fixed: 1 1; visible: 0; align: 0.0 0.0; min: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC; max: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC; } } part{ name:"elm.swallow.content"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC; align: 0.5 0.5; fixed: 1 0; rel1 { relative: 1.0 1.0; to:"left_top_padding"; } rel2 { relative: 0.0 1.0; to:"right_padding"; } } } part { name: "right_padding"; type: RECT; scale: 1; description { state: "default" 0.0; fixed: 1 0; visible: 0; align: 1.0 0.5; min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC; rel1 { relative: 1.0 0.0; } rel2 { relative: 1.0 1.0; } } } } } group { name: "elm/popup/content/min_liststyle"; parts{ part { name: "left_top_padding"; type: RECT; scale: 1; description { state: "default" 0.0; fixed: 1 1; visible: 0; align: 0.0 0.0; min: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC; max: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC; } } part{ name:"elm.swallow.content"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC; align: 0.5 0.5; fixed: 1 0; rel1 { relative: 1.0 1.0; to:"left_top_padding"; } rel2 { relative: 0.0 1.0; to:"right_padding"; } } } part { name: "right_padding"; type: RECT; scale: 1; description { state: "default" 0.0; fixed: 1 0; visible: 0; align: 1.0 0.5; min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC; rel1 { relative: 1.0 0.0; } rel2 { relative: 1.0 1.0; } } } } } group { name: "elm/popup/base/customstyle"; images { image: "00_popup_bottom_bg.png" COMP; image: "00_popup_bg.png" COMP; } styles { style { name: "popup_title_custom_style"; base: "font=SLP:style=Medium font_size="POPUP_BASE_CUSTOMSTYLE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0"; tag: "br" "\n"; tag: "tab" "\t"; } } parts { part { name: "base"; type: IMAGE; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MIN_INC; max: POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MAX_INC; image { normal: "00_popup_bg.png"; border: POPUP_BASE_CUSTOMSTYLE_BG_DEFAULT_IMAGE_BORDER_INC; border_scale: 1; } align: 0.0 0.0; } } part { name: "elm.bg.title"; type: IMAGE; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_CUSTOMSTYLE_TITLE_DEFAULT_MIN_INC; fixed : 1 1; align: 0.5 0.0; visible: 0; rel1 { relative: 0.5 0.0; to: "base"; } rel2 { relative: 0.5 0.0; to: "base"; } } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.rect.title.bottom.line"; type: RECT; description { state: "default" 0.0; min: POPUP_BASE_CUSTOMSTYLE_TITLE_BOTTOM_LINE_MIN_INC; fixed : 0 1; align: 0.5 0.0; visible: 0; color: POPUP_CUSTOMSTYLE_TITLE_BOTTOM_LINE_COLOR_INC; rel1 { relative: 0.0 1.0; to: "elm.bg.title"; } rel2 { to: "elm.bg.title"; offset: 0 1; } } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.swallow.title.icon"; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_CUSTOMSTYLE_TITLE_ICON_DEFAULT_MIN_MAX_INC; max: POPUP_BASE_CUSTOMSTYLE_TITLE_ICON_DEFAULT_MIN_MAX_INC; fixed: 1 1; align: 0.0 0.5; rel1.to: "elm.bg.title"; rel2.to: "elm.bg.title"; visible: 0; } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.text.title"; type: TEXTBLOCK; scale:1; description { state: "default" 0.0; text { style: "popup_title_custom_style"; min: 0 0; max: 0 1; align: 0.5 0.0; } color: POPUP_CUSTOMSTYLE_TITLE_TEXT_COLOR_INC; visible:0; rel1.to: "elm.bg.title"; rel2.to: "elm.bg.title"; } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.swallow.content"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_CUSTOMSTYLE_CONTENT_DEFAULT_MIN_INC; fixed: 1 0; rel1 { relative: 0.5 0.0; to: "base"; } rel2 { relative: 0.5 1.0; to: "base"; } } description { state: "show_title_area" 0.0; inherit: "default" 0.0; rel1 { relative: 0.5 1.0; to: "elm.rect.title.bottom.line"; } } description { state: "show_action_area" 0.0; inherit: "default" 0.0; rel2 { relative: 0.5 0.0; to: "elm.swallow.action_area"; } } description { state: "show_action_title_area" 0.0; inherit: "default" 0.0; rel1 { relative: 0.5 1.0; to: "elm.rect.title.bottom.line"; } rel2 { relative: 0.5 0.0; to: "elm.bg.action_area"; } } } part { name: "elm.bg.action_area"; type: IMAGE; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_CUSTOMSTYLE_BUTTONAREA_BG_DEFAULT_MIN_INC; fixed : 1 1; align: 0.5 1.0; visible: 0; image.normal: "00_popup_bottom_bg.png"; image.border: POPUP_BASE_CUSTOMSTYLE_BUTTONAREA_BG_IMAGE_BORDER_INC; image.border_scale: 1; rel1 { relative: 0.0 1.0; to: "base"; } rel2.to: "base"; } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.swallow.action_area"; type: SWALLOW; scale : 1; description { state: "default" 0.0; align: 0.0 0.0; rel1.to: "elm.bg.action_area"; rel2.to: "elm.bg.action_area"; } } } programs { program { name: show_title_icon; signal: "elm,state,title,icon,visible"; source: "elm"; action: STATE_SET "visible" 0.0; target: "elm.swallow.title.icon"; } program { name: hide_title_icon; signal: "elm,state,title,icon,hidden"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.swallow.title.icon"; } program { name: show_title_text; signal: "elm,state,title,text,visible"; source: "elm"; action: STATE_SET "visible" 0.0; target: "elm.text.title"; } program { name: hide_title_text; signal: "elm,state,title,text,hidden"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.text.title"; } program { name: show_title_area; signal: "elm,state,title_area,visible"; source: "elm"; script { new st[31]; new Float:vl; get_state(PART:"elm.swallow.action_area", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); else set_state(PART:"elm.swallow.content", "show_title_area", 0.0); set_state(PART:"elm.bg.title", "visible", 0.0); set_state(PART:"elm.rect.title.bottom.line", "visible", 0.0); } } program { name: hide_title_area; signal: "elm,state,title_area,hidden"; source: "elm"; action: STATE_SET "default" 0.0; script { new st[31]; new Float:vl; get_state(PART:"elm.swallow.action_area", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_area", 0.0); else set_state(PART:"elm.swallow.content", "default", 0.0); set_state(PART:"elm.bg.title", "default", 0.0); set_state(PART:"elm.rect.title.bottom.line", "default", 0.0); } } program { name: show_action_area; signal: "elm,state,action_area,visible"; source: "elm"; script { new st[31]; new Float:vl; get_state(PART:"elm.bg.title", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); else set_state(PART:"elm.swallow.content", "show_action_area", 0.0); set_state(PART:"elm.bg.action_area", "visible", 0.0); } } program { name: hide_action_area; signal: "elm,state,action_area,hidden"; source: "elm"; action: STATE_SET "default" 0.0; script { new st[31]; new Float:vl; get_state(PART:"elm.bg.title", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_title_area", 0.0); else set_state(PART:"elm.swallow.content", "default", 0.0); set_state(PART:"elm.bg.action_area", "default", 0.0); } } } /* end of programs */ } group { name: "elm/popup/content/customstyle"; parts{ part{ name:"elm.swallow.content"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_CONTENT_CUSTOMSTYLE_DEFAULT_MIN_INC; } } } } group { name: "elm/popup/buttons1/default"; data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT; parts{ part{ name:"actionbtn1"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON1_DEFAULT_BUTTON1_DEFAULT_MIN_MAX_INC; max: POPUP_BUTTON1_DEFAULT_BUTTON1_DEFAULT_MIN_MAX_INC; fixed : 1 1; rel1.relative: 0.5 0.0; rel2.relative: 0.5 1.0; } } } } group { name: "elm/popup/buttons2/default"; data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT; parts{ part{ name:"actionbtn1"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON2_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC; max: POPUP_BUTTON2_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC; fixed : 1 1; align: 1.0 0.5; rel1.to: "elm.rect.pad_btn"; rel2 { relative: 0.0 1.0; to: "elm.rect.pad_btn"; } } } part { name: "elm.rect.pad_btn"; type: RECT; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON2_DEFAULT_PADDING_BUTTON_MIN_MAX_INC; max: POPUP_BUTTON2_DEFAULT_PADDING_BUTTON_MIN_MAX_INC; fixed : 1 1; visible: 0; rel1.relative: 0.5 0.0; rel2.relative: 0.5 1.0; } } part{ name:"actionbtn2"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON2_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC; max: POPUP_BUTTON2_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC; fixed : 1 1; align: 0.0 0.5; rel1 { relative: 1.0 0.0; to: "elm.rect.pad_btn"; } rel2.to: "elm.rect.pad_btn"; } } } } group { name: "elm/popup/buttons3/default"; alias: "elm/popup/buttons3/menustyle"; data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT; parts{ part{ name:"actionbtn1"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC; max: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC; fixed : 1 1; align: 1.0 0.5; rel1.to: "elm.rect.pad_btn"; rel2 { relative: 0.0 1.0; to: "elm.rect.pad_btn"; } } } part { name: "elm.rect.pad_btn"; type: RECT; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC; max: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC; fixed : 1 1; visible: 0; rel1.to: "actionbtn2"; rel2 { relative: 0.0 1.0; to: "actionbtn2"; } } } part{ name:"actionbtn2"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC; max: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC; fixed : 1 1; rel1.relative: 0.5 0.0; rel2.relative: 0.5 1.0; } } part { name: "elm.rect.pad_btn2"; type: RECT; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC; max: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC; fixed : 1 1; visible: 0; rel1 { relative: 1.0 0.0; to: "actionbtn2"; } rel2.to: "actionbtn2"; } } part{ name:"actionbtn3"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC; max: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC; fixed : 1 1; align: 0.0 0.5; rel1 { relative: 1.0 0.0; to: "elm.rect.pad_btn2"; } rel2.to: "elm.rect.pad_btn2"; } } } } group { name: "elm/popup/base/volumebarstyle"; images { image: "00_volumepopup_title_bg.png" COMP; image: "00_popup_bottom_bg.png" COMP; image: "00_popup_bg.png" COMP; } parts { part { name: "base"; type: IMAGE; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_VOLUMEBAR_STYLE_BASE_DEFAULT_MIN_INC; max: POPUP_BASE_VOLUMEBAR_STYLE_BASE_DEFAULT_MAX_INC; image { normal: "00_popup_bg.png"; border: POPUP_BASE_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC; border_scale: 1; } align: 0.0 0.0; } } part { name: "elm.bg.title"; type: IMAGE; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_TITLE_DEFAULT_MIN_INC; fixed : 1 1; align: 0.5 0.0; visible: 0; image.normal: "00_volumepopup_title_bg.png"; image.border: POPUP_BASE_VOLUMEBAR_STYLE_TITLE_DEFAULT_IMAGE_BORDER_INC; image.border_scale: 1; rel1 { relative: 0.5 0.0; to: "base"; } rel2 { relative: 0.5 0.0; to: "base"; } } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "left_pad"; type: RECT; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC; max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC; fixed: 1 1; align: 0.0 0.0; visible: 0; rel1.to: "elm.bg.title"; } } part { name: "right_pad"; type: RECT; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC; max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC; fixed: 1 1; align: 1.0 1.0; visible: 0; rel2.to: "elm.bg.title"; } } part { name: "elm.swallow.title.icon"; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC; max: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC; fixed: 1 1; align: 0.0 0.5; rel1 { to: "left_pad"; relative: 1.0 0.0; } rel2 { to: "right_pad"; relative: 0.0 1.0; } visible: 0; } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.text.title"; type: TEXTBLOCK; scale:1; description { state: "default" 0.0; text { style: "popup_title_style"; min: 0 0; max: 0 1; align: 0.5 0.0; } color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC; visible:0; rel1 { relative: 1.0 0.0; to: "left_pad"; } rel2 { relative: 0.0 1.0; to: "right_pad"; } } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.swallow.content"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_VOLUMEBAR_STYLE_CONTENT_DEFAULT_MIN_INC; fixed: 1 0; rel1 { relative: 0.5 0.0; to: "base"; } rel2 { relative: 0.5 1.0; to: "base"; } } description { state: "show_title_area" 0.0; inherit: "default" 0.0; rel1 { relative: 0.5 1.0; to: "elm.bg.title"; } } description { state: "show_action_area" 0.0; inherit: "default" 0.0; rel2 { relative: 0.5 0.0; to: "elm.bg.action_area"; } } description { state: "show_action_title_area" 0.0; inherit: "default" 0.0; rel1 { relative: 0.5 1.0; to: "elm.bg.title"; } rel2 { relative: 0.5 0.0; to: "elm.bg.action_area"; } } } part { name: "elm.bg.action_area"; type: IMAGE; scale : 1; description { state: "default" 0.0; min: POPUP_BASE_VOLUMEBAR_STYLE_BUTTONAREA_BG_DEFAULT_MIN_INC; fixed : 1 1; align: 0.5 1.0; visible: 0; image.normal: "00_popup_bottom_bg.png"; image.border: POPUP_BASE_DEFAULT_BUTTON_BG_IMAGE_BORDER_INC; image.border_scale: 1; rel1 { relative: 0.0 1.0; to: "base"; } rel2.to: "base"; } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.swallow.action_area"; type: SWALLOW; scale : 1; description { state: "default" 0.0; align: 0.0 0.0; rel1.to: "elm.bg.action_area"; rel2.to: "elm.bg.action_area"; } } } programs { program { name: show_title_icon; signal: "elm,state,title,icon,visible"; source: "elm"; action: STATE_SET "visible" 0.0; target: "elm.swallow.title.icon"; } program { name: hide_title_icon; signal: "elm,state,title,icon,hidden"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.swallow.title.icon"; } program { name: show_title_text; signal: "elm,state,title,text,visible"; source: "elm"; action: STATE_SET "visible" 0.0; target: "elm.text.title"; } program { name: hide_title_text; signal: "elm,state,title,text,hidden"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.text.title"; } program { name: show_title_area; signal: "elm,state,title_area,visible"; source: "elm"; script { new st[31]; new Float:vl; get_state(PART:"elm.swallow.action_area", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); else set_state(PART:"elm.swallow.content", "show_title_area", 0.0); set_state(PART:"elm.bg.title", "visible", 0.0); } } program { name: hide_title_area; signal: "elm,state,title_area,hidden"; source: "elm"; action: STATE_SET "default" 0.0; script { new st[31]; new Float:vl; get_state(PART:"elm.swallow.action_area", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_area", 0.0); else set_state(PART:"elm.swallow.content", "default", 0.0); set_state(PART:"elm.bg.title", "default", 0.0); } } program { name: show_action_area; signal: "elm,state,action_area,visible"; source: "elm"; script { new st[31]; new Float:vl; get_state(PART:"elm.bg.title", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); else set_state(PART:"elm.swallow.content", "show_action_area", 0.0); set_state(PART:"elm.bg.action_area", "visible", 0.0); } } program { name: hide_action_area; signal: "elm,state,action_area,hidden"; source: "elm"; action: STATE_SET "default" 0.0; script { new st[31]; new Float:vl; get_state(PART:"elm.bg.title", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_title_area", 0.0); else set_state(PART:"elm.swallow.content", "default", 0.0); set_state(PART:"elm.bg.action_area", "default", 0.0); } } } /* end of programs */ } group { name: "elm/popup/content/volumebarstyle"; parts{ part { name: "pad_t"; type: RECT; scale : 1; mouse_events: 0; repeat_events: 1; description { state: "default" 0.0; align: 0.5 0.0; min: POPUP_CONTENT_VOLUMEBAR_STYLE_PADDING_TOP_MIN_INC; fixed: 0 1; color: 0 0 0 0; rel1 { relative: 1.0 0.0;to_x: "pad_l"; } rel2 { relative: 0.0 0.0;to_x: "pad_r"; } } } part { name: "pad_l"; type: RECT; scale: 1; description { state: "default" 0.0; min : POPUP_CONTENT_VOLUMEBAR_STYLE_PADDING_LEFT_MIN_INC; fixed: 1 0; rel1 { relative: 0.0 0.0; } rel2 { relative: 0.0 1.0; } color: 0 0 0 0; align: 0.0 0.0; } } part { name: "pad_r"; type: RECT; scale: 1; description { state: "default" 0.0; min : POPUP_CONTENT_VOLUMEBAR_STYLE_PADDING_RIGHT_MIN_INC; fixed: 1 0; rel1 { relative: 1.0 0.0; } rel2 { relative: 1.0 1.0; } color: 0 0 0 0; align: 1.0 0.0; } } part{ name:"elm.swallow.content"; type: SWALLOW; scale : 1; description { state: "default" 0.0; min: POPUP_CONTENT_VOLUMEBAR_STYLE_CONTENT_DEFAULT_MIN_INC; align: 0.5 0.5; fixed: 1 0; rel1 { relative: 0.5 1.0; to: "pad_t"; } rel2 { relative: 0.5 0.0; to: "pad_b"; } } } part { name: "pad_b"; type: RECT; scale : 1; mouse_events: 0; repeat_events: 1; description { state: "default" 0.0; align: 0.5 1.0; min: POPUP_CONTENT_VOLUMEBAR_STYLE_PADDING_BOTTOM_MIN_INC; fixed: 0 1; color: 0 0 0 0; rel1 { relative: 0.0 1.0;to_x: "pad_l"; } rel2 { relative: 1.0 1.0;to_x: "pad_r"; } } } } } group { name: "elm/layout/popup/entrypasswordview"; images { image : "00_search_input_field_bg.png" COMP; } parts{ part { name: "base"; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_CUSTOMSTYLE_CONTENT_WIDTH_INC POPUP_BASE_CUSTOMSTYLE_CONTENT_HEIGHT_INC; fixed: 1 0; align: 0.5 0.5; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } } } part { name: "pad_l"; scale: 1; description { state: "default" 0.0; min : POPUP_BASE_CUSTOMSTYLE_CONTENT_SIDE_PADDING_INC 0; fixed: 1 0; rel1 { relative: 0.0 0.0; to: "base"; } rel2 { relative: 0.0 1.0; to: "base"; } align: 0.0 0.0; } } part { name: "elm.image1"; type: IMAGE; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC; max: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC; fixed: 1 1; align: 0.0 0.5; rel1 { relative: 1.0 0.0; to_x: "pad_l"; to_y: "base"; } rel2 { relative: 1.0 1.0; to: "base"; } image { normal: "00_search_input_field_bg.png"; border: 3 3 3 3; border_scale: 1; } } } part { name: "elm.entry1"; type: SWALLOW; scale: 1; description { state: "default" 0.0; rel1.to: "elm.image1"; rel2.to: "elm.image1"; } } part { name: "pad_n"; scale: 1; description { state: "default" 0.0; min : POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 0; max: POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 9999; fixed: 1 0; rel1 { relative: 1.0 0.0; to_x: "elm.image1"; to_y: "base"; } rel2 { relative: 1.0 1.0; to: "base"; } align: 0.0 0.0; } } part { name: "elm.image2"; type: IMAGE; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC; max: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC; fixed: 1 1; align: 0.0 0.5; rel1 { relative: 1.0 0.0; to_x: "pad_n"; to_y: "base"; } rel2 { relative: 1.0 1.0; to: "base"; } image { normal: "00_search_input_field_bg.png"; border: 3 3 3 3; border_scale: 1; } } } part { name: "elm.entry2"; type: SWALLOW; scale: 1; description { state: "default" 0.0; rel1.to: "elm.image2"; rel2.to: "elm.image2"; } } part { name: "pad_n2"; scale: 1; description { state: "default" 0.0; min : POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 0; max: POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 9999; fixed: 1 0; rel1 { relative: 1.0 0.0; to_x: "elm.image2"; to_y: "base"; } rel2 { relative: 1.0 1.0; to: "base"; } align: 0.0 0.0; } } part { name: "elm.image3"; type: IMAGE; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC; max: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC; fixed: 1 1; align: 0.0 0.5; rel1 { relative: 1.0 0.0; to_x: "pad_n2"; to_y: "base"; } rel2 { relative: 1.0 1.0; to: "base"; } image { normal: "00_search_input_field_bg.png"; border: 3 3 3 3; border_scale: 1; } } } part { name: "elm.entry3"; type: SWALLOW; scale: 1; description { state: "default" 0.0; rel1.to: "elm.image3"; rel2.to: "elm.image3"; } } part { name: "pad_n3"; scale: 1; description { state: "default" 0.0; min : POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 0; max: POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 9999; fixed: 1 0; rel1 { relative: 1.0 0.0; to_x: "elm.image3"; to_y: "base"; } rel2 { relative: 1.0 1.0; to: "base"; } align: 0.0 0.0; } } part { name: "elm.image4"; type: IMAGE; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC; max: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC; fixed: 1 1; align: 0.0 0.5; rel1 { relative: 1.0 0.0; to_x: "pad_n3"; to_y: "base"; } rel2 { relative: 1.0 1.0; to: "base"; } image { normal: "00_search_input_field_bg.png"; border: 3 3 3 3; border_scale: 1; } } } part { name: "elm.entry4"; type: SWALLOW; scale: 1; description { state: "default" 0.0; rel1.to: "elm.image4"; rel2.to: "elm.image4"; } } } } group { name: "elm/popup/base/content_expand"; images { image: "00_popup_title_bg.png" COMP; image: "00_popup_bottom_bg.png" COMP; image: "00_popup_bg.png" COMP; } parts { part { name: "base"; type: IMAGE; scale : 1; description { state: "default" 0.0; rel1.to_x: "elm.swallow.content"; rel2.to_x: "elm.swallow.content"; image { normal: "00_popup_bg.png"; border: POPUP_BASE_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC; border_scale: 1; } align: 0.0 0.0; } } part { name: "elm.bg.title"; type: IMAGE; scale : 1; description { state: "default" 0.0; min: 0 64; fixed : 0 1; align: 0.5 0.0; visible: 0; image.normal: "00_popup_title_bg.png"; image.border: POPUP_BASE_DEFAULT_TITLE_DEFAULT_IMAGE_BORDER_INC; image.border_scale: 1; rel1.to_x: "base"; rel2 { relative: 1.0 0.0; to_x: "base"; } } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "left_pad"; type: RECT; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC; max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC; fixed: 1 1; align: 0.0 0.0; visible: 0; rel1.to: "elm.bg.title"; } } part { name: "right_pad"; type: RECT; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC; max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC; fixed: 1 1; align: 1.0 1.0; visible: 0; rel2.to: "elm.bg.title"; } } part { name: "elm.swallow.title.icon"; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC; max: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC; fixed: 1 1; align: 0.0 0.5; rel1 { to: "left_pad"; relative: 1.0 0.0; } rel2 { to: "right_pad"; relative: 0.0 1.0; } visible: 0; } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.text.title"; type: TEXTBLOCK; scale:1; description { state: "default" 0.0; text { style: "popup_title_style"; min: 0 0; max: 0 1; align: 0.5 0.0; } color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC; visible:0; rel1 { relative: 1.0 0.0; to: "left_pad"; } rel2 { relative: 0.0 1.0; to: "right_pad"; } } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.swallow.content"; type: SWALLOW; scale : 1; description { state: "default" 0.0; fixed: 1 0; rel1.relative: 0.5 0.0; rel2.relative: 0.5 1.0; } description { state: "show_title_area" 0.0; inherit: "default" 0.0; rel1 { relative: 0.5 1.0; to_y: "elm.bg.title"; } } description { state: "show_action_area" 0.0; inherit: "default" 0.0; rel2 { relative: 0.5 0.0; to_y: "elm.bg.action_area"; } } description { state: "show_action_title_area" 0.0; inherit: "default" 0.0; rel1 { relative: 0.5 1.0; to_y: "elm.bg.title"; } rel2 { relative: 0.5 0.0; to_y: "elm.bg.action_area"; } } } part { name: "elm.bg.action_area"; type: IMAGE; scale : 1; description { state: "default" 0.0; min: 0 96; fixed : 0 1; align: 0.5 1.0; visible: 0; image.normal: "00_popup_bottom_bg.png"; image.border: POPUP_BASE_DEFAULT_BUTTON_BG_IMAGE_BORDER_INC; image.border_scale: 1; rel1 { relative: 0.0 1.0; to_x: "base"; } rel2.to_x: "base"; } description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.swallow.action_area"; type: SWALLOW; scale : 1; description { state: "default" 0.0; rel1.to: "elm.bg.action_area"; rel2.to: "elm.bg.action_area"; } } } programs { program { name: show_title_icon; signal: "elm,state,title,icon,visible"; source: "elm"; action: STATE_SET "visible" 0.0; target: "elm.swallow.title.icon"; } program { name: hide_title_icon; signal: "elm,state,title,icon,hidden"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.swallow.title.icon"; } program { name: show_title_text; signal: "elm,state,title,text,visible"; source: "elm"; action: STATE_SET "visible" 0.0; target: "elm.text.title"; } program { name: hide_title_text; signal: "elm,state,title,text,hidden"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.text.title"; } program { name: show_title_area; signal: "elm,state,title_area,visible"; source: "elm"; script { new st[31]; new Float:vl; get_state(PART:"elm.swallow.action_area", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); else set_state(PART:"elm.swallow.content", "show_title_area", 0.0); set_state(PART:"elm.bg.title", "visible", 0.0); } } program { name: hide_title_area; signal: "elm,state,title_area,hidden"; source: "elm"; action: STATE_SET "default" 0.0; script { new st[31]; new Float:vl; get_state(PART:"elm.swallow.action_area", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_area", 0.0); else set_state(PART:"elm.swallow.content", "default", 0.0); set_state(PART:"elm.bg.title", "default", 0.0); } } program { name: show_action_area; signal: "elm,state,action_area,visible"; source: "elm"; script { new st[31]; new Float:vl; get_state(PART:"elm.bg.title", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); else set_state(PART:"elm.swallow.content", "show_action_area", 0.0); set_state(PART:"elm.bg.action_area", "visible", 0.0); } } program { name: hide_action_area; signal: "elm,state,action_area,hidden"; source: "elm"; action: STATE_SET "default" 0.0; script { new st[31]; new Float:vl; get_state(PART:"elm.bg.title", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.swallow.content", "show_title_area", 0.0); else set_state(PART:"elm.swallow.content", "default", 0.0); set_state(PART:"elm.bg.action_area", "default", 0.0); } } } } group { name: "elm/popup/buttons1/content_expand"; data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT; parts{ part{ name:"actionbtn1"; type: SWALLOW; scale : 1; description { state: "default" 0.0; rel1.relative: 0.2 0.1; rel2.relative: 0.8 0.9; } } } } group { name: "elm/popup/buttons2/content_expand"; data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT; parts{ part{ name:"actionbtn1"; type: SWALLOW; scale : 1; description { state: "default" 0.0; align: 0.0 0.5; rel1.relative: 0.1 0.1; rel2.relative: 0.45 0.9; } } part{ name:"actionbtn2"; type: SWALLOW; scale : 1; description { state: "default" 0.0; align: 0.0 0.5; rel1.relative: 0.55 0.1; rel2.relative: 0.9 0.9; } } } } group { name: "elm/popup/buttons3/content_expand"; data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT; parts{ part{ name:"actionbtn1"; type: SWALLOW; scale : 1; description { state: "default" 0.0; align: 0.0 0.5; rel1.relative: 0.05 0.1; rel2.relative: 0.3 0.9; } } part{ name:"actionbtn2"; type: SWALLOW; scale : 1; description { state: "default" 0.0; align: 0.0 0.5; rel1.relative: 0.375 0.1; rel2.relative: 0.625 0.9; } } part{ name:"actionbtn3"; type: SWALLOW; scale : 1; description { state: "default" 0.0; align: 0.0 0.5; rel1.relative: 0.7 0.1; rel2.relative: 0.95 0.9; } } } } group { name: "elm/popup/item/content_expand"; inherit: "elm/popup/item/default"; script { public item_state = POPUP_ITEM_STATE_ENABLED; } parts { part { name: "bg"; mouse_events: 0; type: RECT; description { state: "default" 0.0; color: 240 240 240 255; min: 620 71; align: 0.5 0.0; } description { state: "clicked" 0.0; color: 190 170 150 255; } } } } #undef POPUP_ITEM_STATE_ENABLED #undef POPUP_ITEM_STATE_DISABLED