/* * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved * * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ group { "elm/ctxpopup/layout/event/default"; inherit_only: 1; parts { } programs { /* Program for show up */ program { "show_up"; signal: "elm,state,show,up"; source: "elm"; after: "on_show_up"; } /* Program for show down */ program { "show_down"; signal: "elm,state,show,down"; source: "elm"; after: "on_show_down"; } /* Program for show left */ program { "show_left"; signal: "elm,state,show,left"; source: "elm"; after: "on_show_left"; } /* Program for show right */ program { "show_right"; signal: "elm,state,show,right"; source: "elm"; after: "on_show_right"; } /* Program for show event */ program { "show"; signal: "elm,state,show,*"; source: "elm"; after: "on_show"; } /* Program for visible up */ program { "visible_up"; signal: "elm,state,visible,up"; source: "elm"; after: "on_visible_up"; } /* Program for visible down */ program { "visible_down"; signal: "elm,state,visible,down"; source: "elm"; after: "on_visible_down"; } /* Program for visible left */ program { "visible_left"; signal: "elm,state,visible,left"; source: "elm"; after: "on_visible_left"; } /* Program for visible right */ program { "visible_right"; signal: "elm,state,visible,right"; source: "elm"; after: "on_visible_right"; } /* Program for visible event */ program { "visible"; signal: "elm,state,visible,*"; source: "elm"; after: "on_visible"; } /* Program for hide up */ program { "hide_up"; signal: "elm,state,hide,up"; source: "elm"; after: "on_hide_up"; } /* Program for hide down */ program { "hide_down"; signal: "elm,state,hide,down"; source: "elm"; after: "on_hide_down"; } /* Program for hide left */ program { "hide_left"; signal: "elm,state,hide,left"; source: "elm"; after: "on_hide_left"; } /* Program for hide right */ program { "hide_right"; signal: "elm,state,hide,right"; source: "elm"; after: "on_hide_right"; } /* Program for hide event */ program { "hide"; signal: "elm,state,hide,*"; source: "elm"; after: "on_hide"; } /* Program for hide when direction is unknown */ program { "hide_default"; signal: "elm,state,hide,default"; source: "elm"; after: "on_hide_default"; } } } group { "elm/ctxpopup/bg/event/default"; inherit_only: 1; parts { rect { "event"; mouse; repeat; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } } programs { /* Program for clicked event */ program { "clicked"; signal: "mouse,clicked,1"; source: "event"; after: "on_clicked"; } /* Program for show event */ program { "show"; signal: "elm,state,show"; source: "elm"; after: "on_show"; } /* Program for visible event */ program { "visible"; signal: "elm,state,visible"; source: "elm"; after: "on_visible"; } /* Program for hide event */ program { "hide"; signal: "elm,state,hide"; source: "elm"; after: "on_hide"; } } } group { "elm/ctxpopup/base/event/default"; inherit_only: 1; parts { } programs { /* Program for hide event */ program { "hide"; signal: "elm,state,hide"; source: "elm"; after: "on_hide"; } } } group { "elm/ctxpopup/item/event/default"; inherit_only: 1; parts { rect { "event"; desc { "default"; color: 0 0 0 0; } } } programs { /* Program for text change to default style */ program { "text_default"; signal: "elm,state,text,default"; source: "elm"; after: "on_text_default"; } /* Program for text change to ellipsis style */ program { "text_ellipsis"; signal: "elm,state,text,ellipsis"; source: "elm"; after: "on_text_ellipsis"; } /* Program for hide separator */ program { "default"; signal: "elm,state,default"; source: "elm"; after: "on_default"; } /* Program for show separator */ program { "separator"; signal: "elm,state,separator"; source: "elm"; after: "on_separator"; } /* Program for clicked event */ program { "clicked"; signal: "mouse,clicked,1"; source: "event"; after: "on_clicked"; } /* Program for disable event */ program { "disabled"; signal: "elm,state,disabled"; source: "elm"; after : "on_disabled"; } /* Program for enable event */ program { "enabled"; signal: "elm,state,enabled"; source: "elm"; after : "on_enabled"; } /* Program for mouse press event */ program { "pressed"; signal: "mouse,down,1"; source: "event"; after : "on_pressed"; } /* Program for mouse move out with pressed state event */ program { "unpressed_out"; signal: "elm,action,unpressed"; source: "elm"; after : "on_unpressed"; } /* Program for mouse up event */ program { "unpressed"; signal: "mouse,up,1"; source: "event"; after : "on_unpressed"; } /* Program for multi down event */ program { "multi_down"; signal: "elm,action,multi,down"; source: "elm"; after : "on_multi_down"; } /* Program for multi up event */ program { "multi_up"; signal: "elm,action,multi,up"; source: "elm"; after : "on_multi_up"; } } } group { "elm/ctxpopup/layout/template"; inherit_only: 1; nomouse; inherit: "elm/ctxpopup/layout/event/default"; parts { /* Base part for ctxpopup layout */ spacer { "base"; desc { "default"; } } /* Swallow part for ctxpopup layout */ swallow { "swallow"; mouse; desc { "default"; } } /* Event block part for ctxpopup layout */ rect { "event_blocker"; desc { "default"; } } } programs { /* Program for show up */ program { "on_show_up"; } /* Program for show down */ program { "on_show_down"; } /* Program for show left */ program { "on_show_left"; } /* Program for show right */ program { "on_show_right"; } /* Program for show event */ program { "on_show"; } /* Program for visible up */ program { "on_visible_up"; } /* Program for visible down */ program { "on_visible_down"; } /* Program for visible left */ program { "on_visible_left"; } /* Program for visible right */ program { "on_visible_right"; } /* Program for visible event */ program { "on_visible"; } /* Program for hide up */ program { "on_hide_up"; } /* Program for hide down */ program { "on_hide_down"; } /* Program for hide left */ program { "on_hide_left"; } /* Program for hide right */ program { "on_hide_right"; } /* Program for hide event */ program { "on_hide"; } /* Program for hide when direction is unknown */ program { "on_hide_default"; } } } group { "elm/ctxpopup/bg/template" inherit_only: 1; inherit: "elm/ctxpopup/bg/event/default"; nomouse; parts { /* Base part for background */ spacer { "base"; desc { "default"; } } /* Background part */ image { "bg"; desc { "default"; } desc { "visible"; } } } programs { /* Program for clciekd event */ program { "on_clicked"; } /* Program for show event */ program { "on_show"; } /* Program for visible event */ program { "on_visible"; } /* Program for hide event */ program { "on_hide"; } } } group { "elm/ctxpopup/base/template"; inherit_only: 1; nomouse; parts { /* Base part for ctxpopup */ spacer { "base"; desc { "default"; } } /* Frame bg part for ctxpopup */ image { "bg_frame"; desc { "default"; } } /* Frame clipper part for ctxpopup */ image { "frame_clipper"; desc { "default"; } } /* Swallow part for ctxpopup */ swallow { "elm.swallow.content"; mouse; desc { "default"; } } } programs { /* Program for hide event */ program { "on_hide"; } } } group { "elm/ctxpopup/arrow/template"; inherit_only: 1; nomouse; parts { } programs { } } group { "elm/ctxpopup/item/template"; inherit_only: 1; nomouse; parts { /* Base part */ spacer { "base"; desc { "default"; } } /* Event blocker part */ rect { "event_blocker"; desc { "default"; } } /* Backgound part */ rect { "bg"; desc { "default"; } } /* Left padding */ spacer { "padding_left"; desc { "default"; } } /* Right padding */ spacer { "padding_right"; desc { "default"; } } /* Text part */ text { "elm.text"; desc { "default"; } } /* Disclip part */ rect { "disclip"; desc { "default"; } } } inherit: "elm/ctxpopup/item/event/default"; programs { /* Program for text change to default style */ program { "on_text_default"; } /* Program for text change to ellipsis style */ program { "on_text_ellipsis"; } /* Program for hide separator */ program { "on_default"; } /* Program for show separator */ program { "on_separator"; } /* Program for click event */ program { "on_clicked"; } /* Program for disable event */ program { "on_disabled"; } /* Program for enable event */ program { "on_enabled"; } /* Program for pressed event */ program { "on_pressed"; } /* Program for unpressed event */ program { "on_unpressed"; } /* Program for multi down event */ program { "on_multi_down"; } /* Program for multi up event */ program { "on_multi_up"; } } } /* ctxpopup/layout */ group { "elm/ctxpopup/layout/default"; alias: "elm/ctxpopup/layout/landscape/default"; alias: "elm/ctxpopup/layout/copypaste"; alias: "elm/ctxpopup/layout/landscape/copypaste"; inherit: "elm/ctxpopup/layout/event/default"; nomouse; data.item: "match_max_width" "portrait_width"; parts { spacer { "base"; desc { "default"; } } spacer { "padding_top"; scale; desc { "default"; rel.to: "base"; rel2.relative: 1.0 0.0; align: 0.5 0.0; min: 0 CTXPOPUP_MOVE_PAD; fixed: 0 1; } desc { "show_up"; inherit: "default"; min: 0 0; } } spacer { "padding_bottom"; scale; desc { "default"; rel.to: "base"; rel1.relative: 0.0 1.0; align: 0.5 1.0; min: 0 CTXPOPUP_MOVE_PAD; fixed: 0 1; } desc { "show_down"; inherit: "default"; min: 0 0; } } spacer { "padding_left"; scale; desc { "default"; rel.to: "base"; rel2.relative: 0.0 1.0; align: 0.0 0.5; min: CTXPOPUP_MOVE_PAD 0; fixed: 1 0; } desc { "show_left"; inherit: "default"; min: 0 0; } } spacer { "padding_right"; scale; desc { "default"; rel.to: "base"; rel1.relative: 1.0 0.0; align: 1.0 0.5; min: CTXPOPUP_MOVE_PAD 0; fixed: 1 0; } desc { "show_right"; inherit: "default"; min: 0 0; } } swallow { "swallow"; mouse; clip: "layout_clip"; desc { "default"; hid; } desc { "show_up"; rel1 { to_x:"padding_left"; to_y:"padding_top"; relative: 1.0 1.0; } rel2 { to_x:"padding_right"; to_y:"padding_top"; relative: 0.0 1.0; } align: 0.5 0.0; hid; } desc { "show_up_visible"; inherit: "show_up"; vis; } desc { "show_down"; rel1 { to_x:"padding_left"; to_y:"padding_bottom"; relative: 1.0 0.0; } rel2 { to_x:"padding_right"; to_y:"padding_bottom"; relative: 0.0 0.0; } align: 0.5 1.0; hid; } desc { "show_down_visible"; inherit: "show_down"; vis; } desc { "show_left"; rel1 { to_x:"padding_left"; to_y:"padding_top"; relative: 1.0 1.0; } rel2 { to_x:"padding_left"; to_y:"padding_bottom"; relative: 1.0 0.0; } align: 0.0 0.5; hid; } desc { "show_left_visible"; inherit: "show_left"; vis; } desc { "show_right"; rel1 { to_x:"padding_right"; to_y:"padding_top"; relative: 0.0 1.0; } rel2 { to_x:"padding_right"; to_y:"padding_bottom"; relative: 0.0 0.0; } align: 1.0 0.5; hid; } desc { "show_right_visible"; inherit: "show_right"; vis; } } rect { "event_blocker"; mouse; desc { "default"; rel.to: "base"; color: 0 0 0 0; vis; } desc { "visible"; inherit: "default"; hid; } } rect { "layout_clip"; desc { "default"; rel.to: "swallow"; rel1.relative: -0.2 -0.2; rel2.relative: 1.2 1.2; color: 255 255 255 0; } desc { "visible"; inherit: "default"; color: 255 255 255 255; } } } programs { program { "on_show_up"; script { new st[31]; new Float:vl; get_state(PART:"swallow", st, 30, vl); if (strcmp(st, "show_up")) { set_state(PART:"swallow", "show_up", 0.0); set_state(PART:"padding_top", "show_up", 0.0); } } after: "show_up_finished"; } program { "on_show_down"; script { new st[31]; new Float:vl; get_state(PART:"swallow", st, 30, vl); if (strcmp(st, "show_down")) { set_state(PART:"swallow", "show_down", 0.0); set_state(PART:"padding_bottom", "show_down", 0.0); } } after: "show_down_finished"; } program { "on_show_left"; script { new st[31]; new Float:vl; get_state(PART:"swallow", st, 30, vl); if (strcmp(st, "show_left")) { set_state(PART:"swallow", "show_left", 0.0); set_state(PART:"padding_left", "show_left", 0.0); } } after: "show_left_finished"; } program { "on_show_right"; script { new st[31]; new Float:vl; get_state(PART:"swallow", st, 30, vl); if (strcmp(st, "show_right")) { set_state(PART:"swallow", "show_right", 0.0); set_state(PART:"padding_right", "show_right", 0.0); } } after: "show_right_finished"; } program { "on_show"; action: STATE_SET "visible"; transition: GLIDE_EASE_OUT(0.1); target: "layout_clip"; target: "event_blocker"; } program { "show_up_finished"; action: STATE_SET "show_up_visible"; transition: GLIDE_EASE_OUT(0.1); target: "swallow"; } program { "show_down_finished"; action: STATE_SET "show_down_visible"; transition: GLIDE_EASE_OUT(0.1); target: "swallow"; } program { "show_left_finished"; action: STATE_SET "show_left_visible"; transition: GLIDE_EASE_OUT(0.1); target: "swallow"; } program { "show_right_finished"; action: STATE_SET "show_right_visible"; transition: GLIDE_EASE_OUT(0.1); target: "swallow"; } program { "on_visible_up"; script { set_state(PART:"swallow", "show_up_visible", 0.0); set_state(PART:"padding_top", "show_up", 0.0); } } program { "on_visible_down"; script { set_state(PART:"swallow", "show_down_visible", 0.0); set_state(PART:"padding_bottom", "show_down", 0.0); } } program { "on_visible_left"; script { set_state(PART:"swallow", "show_left_visible", 0.0); set_state(PART:"padding_left", "show_left", 0.0); } } program { "on_visible_right"; script { set_state(PART:"swallow", "show_right_visible", 0.0); set_state(PART:"padding_right", "show_right", 0.0); } } program { "on_visible"; action: STATE_SET "visible"; target: "layout_clip"; target: "event_blocker"; } program { "on_hide_up"; action: STATE_SET "show_up"; target: "swallow"; transition: GLIDE_EASE_OUT(0.1); after: "be_default"; } program { "on_hide_down"; action: STATE_SET "show_down"; target: "swallow"; transition: GLIDE_EASE_OUT(0.1); after: "be_default"; } program { "on_hide_left"; action: STATE_SET "show_left"; target: "swallow"; transition: GLIDE_EASE_OUT(0.1); after: "be_default"; } program { "on_hide_right"; action: STATE_SET "show_right"; target: "swallow"; transition: GLIDE_EASE_OUT(0.1); after: "be_default"; } program { "on_hide_default"; in: 0.1 0.0; after: "be_default"; } program { "on_hide"; after: "hide_clip"; after: "hide_event_blocker"; } program { "hide_clip"; action: STATE_SET "default"; transition: GLIDE_EASE_OUT(0.1); target: "layout_clip"; } program { "hide_event_blocker"; action: STATE_SET "default"; target: "event_blocker"; } program { "be_default"; action: STATE_SET "default"; target: "swallow"; target: "padding_top"; target: "padding_bottom"; target: "padding_left"; target: "padding_right"; after: "hide_finished"; } program { "hide_finished"; action: SIGNAL_EMIT "elm,action,hide,finished" ""; } } } group { "elm/ctxpopup/layout/more/default"; inherit: "elm/ctxpopup/layout/event/default"; nomouse; data.item: "match_min_width" "portrait_width"; data.item: "match_max_width" "portrait_width"; data.item: "visible_maxh" ((CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC+1)*7); // +1 is buffer for scaling feature. parts { spacer { "base"; desc { "default"; } } swallow { "swallow"; mouse; clip: "clipper"; desc { "default"; rel.to: "base"; } desc { "show_up"; rel.to: "base"; rel1.relative: 0.0 0.25; align: 0.5 0.0; } desc { "visible"; rel.to: "base"; } } rect { "clipper"; desc { "default"; rel.to: "swallow"; color: 255 255 255 255; } desc { "show_up"; inherit: "default"; color: 255 255 255 0; } desc { "visible"; inherit: "default"; } } rect { "event_blocker"; mouse; desc { "default"; rel.to: "base"; color: 0 0 0 0; hid; } desc { "visible"; inherit: "default"; vis; } } } programs { program { "on_show_up"; script { new st[31]; new Float:vl; get_state(PART:"swallow", st, 30, vl); if (strcmp(st, "show_up")) { set_state(PART:"swallow", "show_up", 0.0); set_state(PART:"clipper", "show_up", 0.0); } } after: "show_up_finished"; } program { "show_up_finished"; action: STATE_SET "visible"; transition: GLIDE_EASE_OUT(0.25); target: "swallow"; target: "clipper"; after:"transition_finished"; } program { "transition_finished"; action: STATE_SET "default"; target: "event_blocker"; after: "show_finished"; } program { "show_finished"; action: SIGNAL_EMIT "elm,action,show,finished" ""; } program { "on_show"; action: STATE_SET "visible"; target: "event_blocker"; } program { "on_visible_up"; script { set_state(PART:"swallow", "visible", 0.0); set_state(PART:"clipper", "visible", 0.0); set_state(PART:"event_blocker", "default", 0.0); } } program { "on_visible"; action: STATE_SET "visible"; target: "event_blocker"; } program { "on_hide_up"; action: STATE_SET "show_up"; transition: GLIDE_EASE_OUT(0.25); target: "swallow"; target: "clipper"; after: "be_default"; } program { "on_hide_default"; in: 0.25 0.0; after: "be_default"; } program { "on_hide"; action: STATE_SET "default"; target: "event_blocker"; } program { "be_default"; action: STATE_SET "default"; target: "swallow"; target: "clipper"; after: "hide_finished"; } program { "hide_finished"; action: SIGNAL_EMIT "elm,action,hide,finished" ""; } /* Unused event */ program { "on_show_down"; } program { "on_show_left"; } program { "on_show_right"; } program { "on_visible_down"; } program { "on_visible_left"; } program { "on_visible_right"; } program { "on_hide_down"; } program { "on_hide_left"; } program { "on_hide_right"; } } } group { "elm/ctxpopup/layout/landscape/more/default"; inherit: "elm/ctxpopup/layout/more/default"; data.item: "visible_maxh" ((CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC+1)*5); // +1 is buffer for scaling feature. } group { "elm/ctxpopup/layout/dropdown/list"; alias: "elm/ctxpopup/layout/dropdown/label"; inherit: "elm/ctxpopup/layout/event/default"; nomouse; data.item: "match_min_width" "portrait_width"; data.item: "match_max_width" "portrait_width"; data.item: "visible_maxh" ((CTXPOPUP_DROPDOWN_ITEM_HEIGHT_MIN+1)*5+(CTXPOPUP_DROPDOWN_SEPARATOR_HEIGHT+1)*4); // +1 is buffer for scaling feature. parts { spacer { "base"; desc { "default"; } } spacer { "padding_top"; desc { "default"; rel.to: "base"; align: 0.5 0.0; fixed: 0 1; } desc { "show_up"; inherit: "default"; } desc { "visible"; inherit: "default"; max: -1 0; } } spacer { "padding_bottom"; desc { "default"; rel.to: "base"; align: 0.5 1.0; fixed: 0 1; } desc { "show_up"; inherit: "default"; } desc { "visible"; inherit: "default"; max: -1 0; } } swallow { "swallow"; mouse; clip: "layout_clip"; desc { "default"; rel.to: "base"; hid; } desc { "show_up"; rel.to_y: "padding_top"; rel1.relative: 1.0 1.0; rel2.relative: 0.0 1.0; align: 0.5 0.0; } desc { "show_down"; rel.to_y: "padding_bottom"; rel1.relative: 1.0 0.0; rel2.relative: 0.0 0.0; align: 0.5 1.0; } } rect { "event_blocker"; mouse; desc { "default"; rel.to: "base"; color: 0 0 0 0; vis; } desc { "visible"; inherit: "default"; hid; } } rect { "layout_clip"; desc { "default"; rel.to: "base"; color: 255 255 255 0; } desc { "visible"; inherit: "default"; color: 255 255 255 255; } } } programs { program { "on_show_up"; script { new st[31]; new Float:vl; get_state(PART:"swallow", st, 30, vl); if (strcmp(st, "show_up")) { set_state(PART:"swallow", "show_up", 0.0); set_state(PART:"padding_top", "show_up", 0.0); } } after: "show_up_finished"; } program { "on_show_down"; script { new st[31]; new Float:vl; get_state(PART:"swallow", st, 30, vl); if (strcmp(st, "show_down")) { set_state(PART:"swallow", "show_down", 0.0); set_state(PART:"padding_bottom", "show_down", 0.0); } } after: "show_down_finished"; } program { "on_show"; action: STATE_SET "visible"; transition: SIN_FAC 0.5 1.7; target: "layout_clip"; target: "event_blocker"; } program { "show_up_finished"; action: STATE_SET "visible"; transition: SIN_FAC 0.5 1.7; target: "padding_top"; } program { "show_down_finished"; action: STATE_SET "visible"; transition: SIN_FAC 0.5 1.7; target: "padding_bottom"; } program { "on_visible_up"; script { set_state(PART:"swallow", "show_up", 0.0); set_state(PART:"padding_top", "visible", 0.0); } } program { "on_visible_down"; script { set_state(PART:"swallow", "show_down", 0.0); set_state(PART:"padding_bottom", "visible", 0.0); } } program { "on_visible"; action: STATE_SET "visible"; target: "layout_clip"; target: "event_blocker"; } program { "on_hide_up"; action: STATE_SET "show_up"; target: "swallow"; target: "padding_top"; transition: SIN_FAC 0.5 1.7; after: "be_default"; } program { "on_hide_down"; action: STATE_SET "show_down"; target: "swallow"; target: "padding_bottom"; transition: SIN_FAC 0.5 1.7; after: "be_default"; } program { "on_hide_default"; in: 0.5 0.0; after: "be_default"; } program { "on_hide"; after: "hide_event_blocker"; after: "hide_clip"; } program { "hide_clip"; action: STATE_SET "default"; target: "layout_clip"; transition: SIN_FAC 0.5 1.7; } program { "hide_event_blocker"; action: STATE_SET "default"; target: "event_blocker"; } program { "be_default"; action: STATE_SET "default"; target: "swallow"; target: "padding_top"; target: "padding_bottom"; after: "hide_finished"; } program { "hide_finished"; action: SIGNAL_EMIT "elm,action,hide,finished" ""; } /* Unused event */ program { "on_show_left"; } program { "on_show_right"; } program { "on_visible_left"; } program { "on_visible_right"; } program { "on_hide_left"; } program { "on_hide_right"; } } } group { "elm/ctxpopup/layout/landscape/dropdown/list"; alias: "elm/ctxpopup/layout/landscape/dropdown/label"; inherit: "elm/ctxpopup/layout/dropdown/list"; data.item: "visible_maxh" ((CTXPOPUP_DROPDOWN_ITEM_HEIGHT_MIN+1)*5+(CTXPOPUP_DROPDOWN_SEPARATOR_HEIGHT+1)*4); // +1 is buffer for scaling feature. } /* ctxpopup/bg */ group { "elm/ctxpopup/bg/default"; alias: "elm/ctxpopup/bg/dropdown/list"; alias: "elm/ctxpopup/bg/dropdown/label"; inherit: "elm/ctxpopup/bg/event/default"; nomouse; parts { spacer { "base"; desc { "default"; } } image { "bg"; desc { "default"; rel.to: "base"; color: 0 0 0 0; } desc { "visible"; inherit: "default"; } } rect { "event"; mouse; norepeat; after: "bg"; desc { "default"; rel.to: "base"; color: 0 0 0 0; hid; } desc { "visible"; rel.to: "base"; color: 0 0 0 0; vis; } } } programs { program { "on_clicked"; action: SIGNAL_EMIT "elm,action,click" ""; } program { "on_show"; action: STATE_SET "visible"; target: "bg"; target: "event"; } program { "on_visible"; action: STATE_SET "visible"; target: "bg"; target: "event"; } program { "on_hide"; action: STATE_SET "default"; target: "bg"; target: "event"; } } } group { "elm/ctxpopup/bg/copypaste"; inherit: "elm/ctxpopup/bg/event/default"; nomouse; parts { spacer { "base"; desc { "default"; } } image { "bg"; desc { "default"; rel.to: "base"; color: 0 0 0 0; } desc { "visible"; inherit: "default"; } } rect { "event"; mouse; repeat; after: "bg"; desc { "default"; rel.to: "base"; color: 0 0 0 0; hid; } desc { "visible"; rel.to: "base"; color: 0 0 0 0; vis; } } } programs { program { "on_clicked"; action: SIGNAL_EMIT "elm,action,click" ""; } program { "on_show"; action: STATE_SET "visible"; target: "bg"; target: "event"; } program { "on_visible"; action: STATE_SET "visible"; target: "bg"; target: "event"; } program { "on_hide"; action: STATE_SET "default"; target: "bg"; target: "event"; } } } group { "elm/ctxpopup/bg/more/default"; inherit: "elm/ctxpopup/bg/event/default"; nomouse; images { image: "core_theme_bg_dim.png" COMP; } parts { spacer { "base"; desc { "default"; } } image { "bg"; desc { "default"; rel.to: "base"; image.normal: "core_theme_bg_dim.png"; color: 255 255 255 0; } desc { "visible"; inherit: "default"; color: 255 255 255 179; } } rect { "event"; mouse; norepeat; after: "bg"; desc { "default"; rel.to: "base"; color: 0 0 0 0; hid; } desc { "visible"; rel.to: "base"; color: 0 0 0 0; vis; } } } programs { program { "on_clicked"; action: SIGNAL_EMIT "elm,action,click" ""; } program { "on_show"; action: STATE_SET "visible"; transition: GLIDE_EASE_OUT(0.25); target: "bg"; target: "event"; } program { "on_visible"; action: STATE_SET "visible"; target: "bg"; target: "event"; } program { "on_hide"; action: STATE_SET "default"; transition: GLIDE_EASE_OUT(0.25); target: "bg"; target: "event"; } } } /* ctxpopup/base */ group { "elm/ctxpopup/base/default"; inherit: "elm/ctxpopup/base/event/default"; nomouse; images { set { name: "core_contextual_popup_bg.#.png"; image { image: SMALL"images/Assist_Views/core_contextual_popup_bg.#.png" COMP; } image { image: MEDIUM"images/Assist_Views/core_contextual_popup_bg.#.png" COMP; } } set { name: "core_contextual_popup_bg_stroke.#.png"; image { image: SMALL"images/Assist_Views/core_contextual_popup_bg_stroke.#.png" COMP; } image { image: MEDIUM"images/Assist_Views/core_contextual_popup_bg_stroke.#.png" COMP; } } } parts { spacer { "base"; desc { "default"; } } spacer { "padding_frame_shadow_top_left"; scale; desc { "default"; rel.to: "base"; rel2.relative: 0.0 0.0; align: 0.0 0.0; min: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING; max: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING; fixed: 1 1; } } spacer { "padding_frame_shadow_bottom_right"; scale; desc { "default"; rel.to: "base"; rel1.relative: 1.0 1.0; align: 1.0 1.0; min: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING; max: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING; fixed: 1 1; } } spacer { "padding_top_left_content"; scale; desc { "default"; rel.to: "base"; rel2.relative: 0.0 0.0; align: 0.0 0.0; min: CTXPOPUP_CONTENT_LEFT_PADDING CTXPOPUP_CONTENT_TOP_PADDING; max: CTXPOPUP_CONTENT_LEFT_PADDING CTXPOPUP_CONTENT_TOP_PADDING; fixed: 1 1; } } spacer { "padding_bottom_right_content"; scale; desc { "default"; rel.to: "base"; rel1.relative: 1.0 1.0; align: 1.0 1.0; min: CTXPOPUP_CONTENT_RIGHT_PADDING CTXPOPUP_CONTENT_BOTTOM_PADDING; max: CTXPOPUP_CONTENT_RIGHT_PADDING CTXPOPUP_CONTENT_BOTTOM_PADDING; fixed: 1 1; } } image { "bg_frame"; scale; desc { "default"; rel1 { to: "padding_top_left_content"; relative: 1.0 1.0; } rel2 { to: "padding_bottom_right_content"; relative: 0.0 0.0; } min: CTXPOPUP_COPYPASTE_ITEM_HORIZONTAL_WIDTH_MIN_INC 0; image.normal: "core_contextual_popup_bg.#.png"; color_class: "ctxpopup/default/bg"; } } image { "frame_clipper"; inherit: "bg_frame"; } rect { "access.outline"; desc { "default"; rel.to: "bg_frame"; color: 0 0 0 0; fixed: 1 1; } } spacer { "arrow_area_left"; scale; desc { "default"; rel1 { to_x: "padding_top_left_arrow"; to_y: "ctxpopup_frame_top_left"; relative: 1.0 1.0; } rel2 { to_x: "padding_top_left_arrow"; to_y: "ctxpopup_frame_bottom_right"; relative: 1.0 0.0; } align: 1.0 0.5; min: CTXPOPUP_ARROW_SIZE_INC; fixed: 1 1; } } spacer { "arrow_area_right"; scale; desc { "default"; rel1 { to_x: "padding_bottom_right_arrow"; to_y: "ctxpopup_frame_top_left"; relative: 0.0 1.0; } rel2 { to_x: "padding_bottom_right_arrow"; to_y: "ctxpopup_frame_bottom_right"; relative: 0.0 0.0; } align: 0.0 0.5; min: CTXPOPUP_ARROW_SIZE_INC; fixed: 1 1; } } spacer { "arrow_area_up"; scale; desc { "default"; rel1 { to_x: "ctxpopup_frame_top_left"; to_y: "padding_top_left_arrow"; relative: 1.0 1.0; } rel2 { to_x: "ctxpopup_frame_bottom_right"; to_y: "padding_top_left_arrow"; relative: 0.0 1.0; } align: 0.5 1.0; min: CTXPOPUP_ARROW_SIZE_INC; fixed: 1 1; } } spacer { "arrow_area_down"; scale; desc { "default"; rel1 { to_x: "ctxpopup_frame_top_left"; to_y: "padding_bottom_right_arrow"; relative: 1.0 0.0; } rel2 { to_x: "ctxpopup_frame_bottom_right"; to_y: "padding_bottom_right_arrow"; relative: 0.0 0.0; } align: 0.5 0.0; min: CTXPOPUP_ARROW_SIZE_INC; fixed: 1 1; } } swallow { "elm.swallow.arrow_up"; scale; mouse; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_up"; } desc { "default"; min: CTXPOPUP_ARROW_SIZE_INC; fixed: 1 1; vis; } } swallow { "elm.swallow.arrow_down"; scale; mouse; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_down"; } desc { "default"; min: CTXPOPUP_ARROW_SIZE_INC; fixed: 1 1; vis; } } swallow { "elm.swallow.arrow_left"; scale; mouse; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_left"; } desc { "default"; min: CTXPOPUP_ARROW_SIZE_INC; fixed: 1 1; vis; } } swallow { "elm.swallow.arrow_right"; scale; mouse; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_right"; } desc { "default"; min: CTXPOPUP_ARROW_SIZE_INC; fixed: 1 1; vis; } } spacer { "ctxpopup_frame_top_left"; scale; desc { "default"; rel1 { to: "padding_frame_shadow_top_left"; relative: 1.0 1.0; } rel2.to: "base"; align: 0.0 0.0; min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING_WIDTH_INC CTXPOPUP_FRAME_CORNER_ARROW_PADDING_HEIGHT_INC; max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING_WIDTH_INC CTXPOPUP_FRAME_CORNER_ARROW_PADDING_HEIGHT_INC; fixed: 1 1; } } spacer { "ctxpopup_frame_bottom_right"; scale; desc { "default"; rel1.to: "base"; rel2 { to: "padding_frame_shadow_bottom_right"; relative: 0.0 0.0; } align: 1.0 1.0; min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING_WIDTH_INC CTXPOPUP_FRAME_CORNER_ARROW_PADDING_HEIGHT_INC; max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING_WIDTH_INC CTXPOPUP_FRAME_CORNER_ARROW_PADDING_HEIGHT_INC; fixed: 1 1; } } spacer { "padding_top_left_arrow"; scale; desc { "default"; rel1 { to: "padding_frame_shadow_top_left"; relative: 1.0 1.0; } rel2.to: "base"; align: 0.0 0.0; min: CTXPOPUP_ARROW_PADDING_INC CTXPOPUP_ARROW_PADDING_INC; max: CTXPOPUP_ARROW_PADDING_INC CTXPOPUP_ARROW_PADDING_INC; } } spacer { "padding_bottom_right_arrow"; scale; desc { "default"; rel1.to: "base"; rel2 { to: "padding_frame_shadow_bottom_right"; relative: 0.0 0.0; } align: 1.0 1.0; min: CTXPOPUP_ARROW_PADDING_INC CTXPOPUP_ARROW_PADDING_INC; max: CTXPOPUP_ARROW_PADDING_INC CTXPOPUP_ARROW_PADDING_INC; } } swallow { "elm.swallow.content"; mouse; clip: "frame_clipper"; desc { "default"; rel1 { to: "padding_top_left_content"; relative: 1.0 1.0; } rel2 { to: "padding_bottom_right_content"; relative: 0.0 0.0; } align: 0.0 0.0; } } image { "frame_line_bg"; desc { "default"; rel1 { to: "padding_top_left_content"; relative: 1.0 1.0; } rel2 { to: "padding_bottom_right_content"; relative: 0.0 0.0; } image.normal: "core_contextual_popup_bg_stroke.#.png"; color_class: "ctxpopup/default/border"; } } } programs { program { "on_hide"; action: SIGNAL_EMIT "elm,action,hide,finished" "elm"; } } } group { "elm/ctxpopup/base/copypaste"; inherit: "elm/ctxpopup/base/default"; parts { spacer { "padding_top_left_content"; scale; desc { "default"; rel2.relative: 0.0 0.0; align: 0.0 0.0; min: CTXPOPUP_CONTENT_LEFT_PADDING 0; max: CTXPOPUP_CONTENT_LEFT_PADDING 0; fixed: 1 1; } } spacer { "padding_bottom_right_content"; scale; desc { "default"; rel1.relative: 1.0 1.0; align: 1.0 1.0; min: CTXPOPUP_CONTENT_RIGHT_PADDING 0; max: CTXPOPUP_CONTENT_RIGHT_PADDING 0; fixed: 1 1; } } image { "bg_frame"; desc { "default"; color_class: "entry/default/bg_cnp"; } } spacer { "arrow_area_left"; scale; desc { "default"; rel1 { to_x: "padding_top_left_arrow"; to_y: "ctxpopup_frame_top_left"; relative: 1.0 1.0; } rel2 { to_x: "padding_top_left_arrow"; to_y: "ctxpopup_frame_bottom_right"; relative: 1.0 0.0; } align: 1.0 0.5; min: CTXPOPUP_COPYPASTE_ARROW_SIZE_INC; fixed: 1 1; } } spacer { "arrow_area_right"; scale; desc { "default"; rel1 { to_x: "padding_bottom_right_arrow"; to_y: "ctxpopup_frame_top_left"; relative: 0.0 1.0; } rel2 { to_x: "padding_bottom_right_arrow"; to_y: "ctxpopup_frame_bottom_right"; relative: 0.0 0.0; } align: 0.0 0.5; min: CTXPOPUP_COPYPASTE_ARROW_SIZE_INC; fixed: 1 1; } } spacer { "arrow_area_up"; scale; desc { "default"; rel1 { to_x: "ctxpopup_frame_top_left"; to_y: "padding_top_left_arrow"; relative: 1.0 1.0; } rel2 { to_x: "ctxpopup_frame_bottom_right"; to_y: "padding_top_left_arrow"; relative: 0.0 1.0; } align: 0.5 1.0; min: CTXPOPUP_COPYPASTE_ARROW_SIZE_INC; fixed: 1 1; } } spacer { "arrow_area_down"; scale; desc { "default"; rel1 { to_x: "ctxpopup_frame_top_left"; to_y: "padding_bottom_right_arrow"; relative: 1.0 0.0; } rel2 { to_x: "ctxpopup_frame_bottom_right"; to_y: "padding_bottom_right_arrow"; relative: 0.0 0.0; } align: 0.5 0.0; min: CTXPOPUP_COPYPASTE_ARROW_SIZE_INC; fixed: 1 1; } } swallow { "elm.swallow.arrow_up"; scale; mouse; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_up"; } desc { "default"; min: CTXPOPUP_COPYPASTE_ARROW_SIZE_INC; fixed: 1 1; vis; } } swallow { "elm.swallow.arrow_down"; scale; mouse; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_down"; } desc { "default"; min: CTXPOPUP_COPYPASTE_ARROW_SIZE_INC; fixed: 1 1; vis; } } swallow { "elm.swallow.arrow_left"; scale; mouse; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_left"; } desc { "default"; min: CTXPOPUP_COPYPASTE_ARROW_SIZE_INC; fixed: 1 1; vis; } } swallow { "elm.swallow.arrow_right"; scale; mouse; dragable { x: 1 1 0; y: 1 1 0; confine: "arrow_area_right"; } desc { "default"; min: CTXPOPUP_COPYPASTE_ARROW_SIZE_INC; fixed: 1 1; vis; } } image { "frame_line_bg"; desc { "default"; color_class: "entry/default/border_cnp"; } } } } group { "elm/ctxpopup/base/more/default"; inherit: "elm/ctxpopup/base/event/default"; nomouse; parts { spacer { "base"; desc { "default"; } } rect { "bg_frame"; scale; desc { "default"; rel.to: "base"; color: 255 255 255 255; } } rect { "access.outline"; desc { "default"; rel.to: "bg_frame"; color: 0 0 0 0; fixed: 1 1; } } swallow { "elm.swallow.content"; mouse; desc { "default"; rel.to: "bg_frame"; align: 0.0 0.0; } } } programs { program { "on_hide"; action: SIGNAL_EMIT "elm,action,hide,finished" "elm"; } } } group { "elm/ctxpopup/base/dropdown/list"; alias: "elm/ctxpopup/base/dropdown/label"; inherit: "elm/ctxpopup/base/event/default"; nomouse; parts { spacer { "base"; desc { "default"; } } rect { "bg_frame"; scale; desc { "default"; rel.to: "base"; min: 100 0; color: 255 255 255 255; /*(Changeable UI) color_class: "B0733";*/ } } rect { "bg_frame_outline_left"; scale; desc { "default"; rel.to: "bg_frame"; rel2.relative: 0.0 1.0; align: 0.0 0.5; min: 0 CTXPOPUP_OUTLINE_SIZE; max: -1 CTXPOPUP_OUTLINE_SIZE; fixed: 1 0; color: 2 61 132 255; /*(Changeable UI) color_class: "B0733L1";*/ } } rect { "bg_frame_outline_right"; scale; desc { "default"; rel.to: "bg_frame"; rel1.relative: 1.0 0.0; align: 1.0 0.5; min: 0 CTXPOPUP_OUTLINE_SIZE; max: -1 CTXPOPUP_OUTLINE_SIZE; fixed: 1 0; color: 2 61 132 255; /*(Changeable UI) color_class: "B0733L1";*/ } } rect { "bg_frame_outline_top"; scale; desc { "default"; rel.to: "bg_frame"; rel2.relative: 1.0 0.0; align: 0.5 0.0; min: 0 CTXPOPUP_OUTLINE_SIZE; max: -1 CTXPOPUP_OUTLINE_SIZE; fixed: 0 1; color: 2 61 132 255; /*(Changeable UI) color_class: "B0733L1";*/ } } rect { "bg_frame_outline_bottom"; scale; desc { "default"; rel.to: "bg_frame"; rel1.relative: 0.0 1.0; align: 0.5 1.0; min: 0 CTXPOPUP_OUTLINE_SIZE; max: -1 CTXPOPUP_OUTLINE_SIZE; fixed: 0 1; color: 2 61 132 255; /*(Changeable UI) color_class: "B0733L1";*/ } } spacer { "padding_top_left_content"; scale; desc { "default"; rel.to: "bg_frame"; rel2.relative: 0.0 0.0; align: 0.0 0.0; min: CTXPOPUP_DROPDOWN_CONTENT_LR_PADDING CTXPOPUP_DROPDOWN_CONTENT_TB_PADDING; max: CTXPOPUP_DROPDOWN_CONTENT_LR_PADDING CTXPOPUP_DROPDOWN_CONTENT_TB_PADDING; fixed: 1 1; } } spacer { "padding_bottom_right_content"; scale; desc { "default"; rel.to: "bg_frame"; rel1.relative: 1.0 1.0; align: 1.0 1.0; min: CTXPOPUP_DROPDOWN_CONTENT_LR_PADDING CTXPOPUP_DROPDOWN_CONTENT_TB_PADDING; max: CTXPOPUP_DROPDOWN_CONTENT_LR_PADDING CTXPOPUP_DROPDOWN_CONTENT_TB_PADDING; fixed: 1 1; } } rect { "access.outline"; desc { "default"; rel.to: "bg_frame"; color: 0 0 0 0; fixed: 1 1; } } swallow { "elm.swallow.content"; mouse; desc { "default"; rel1 { to: "padding_top_left_content"; relative: 1.0 1.0; } rel2 { to: "padding_bottom_right_content"; relative: 0.0 0.0; } } } } programs { program { "on_hide"; } } } /* ctxpopup/arrow */ group { "elm/ctxpopup/arrow/default"; alias: "elm/ctxpopup/arrow/copypaste"; alias: "elm/ctxpopup/arrow/more/default"; nomouse; } /* ctxpopup/text_style_item */ group { "elm/ctxpopup/text_style_item/default"; inherit: "elm/ctxpopup/item/event/default"; nomouse; parts { spacer { "base"; desc { "default"; } } rect { "event_blocker"; mouse; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "bg"; scale; desc { "default"; rel1 { to_x: "base"; to_y: "separator"; relative: 0.0 1.0; } rel2.to: "base"; min: (CTXPOPUP_ITEM_TEXT_STYLE_TEXT_LR_PADDING_INC*2) CTXPOPUP_ITEM_HEIGHT_MAX_INC; hid; } desc { "clicked"; inherit: "default"; color_class: "ctxpopup_item/default/effect"; vis; } } rect { "separator"; scale; desc { "default"; rel.to: "base"; rel2.relative: 1.0 0.0; align: 0.5 0.0; min: 0 2; fixed: 0 1; color_class: "ctxpopup_item/default/divider"; hid; } desc { "visible"; inherit: "default"; vis; } } spacer { "padding_left"; scale; desc { "default"; rel.to: "base"; align: 0.0 0.5; min: CTXPOPUP_ITEM_TEXT_STYLE_TEXT_LR_PADDING_INC 1; max: CTXPOPUP_ITEM_TEXT_STYLE_TEXT_LR_PADDING_INC 1; fixed: 1 1; } } spacer { "padding_right"; scale; desc { "default"; rel.to: "base"; align: 1.0 0.5; min: CTXPOPUP_ITEM_TEXT_STYLE_TEXT_LR_PADDING_INC 1; max: CTXPOPUP_ITEM_TEXT_STYLE_TEXT_LR_PADDING_INC 1; fixed: 1 1; } } text { "elm.text"; scale; desc { "default"; rel1 { to_x: "padding_left"; to_y: "base"; relative: 1.0 0.0; } rel2 { to_x: "padding_right"; to_y: "base"; relative: 0.0 1.0; } align: 0.5 0.5; min: 1 CTXPOPUP_ITEM_TEXT_HEIGHT_MIN_INC; color_class: "ctxpopup_item/default/text"; text { font: "Tizen:weight=Light"; size: "30"; text_class: "tizen"; align: -1.0 0.5; min: 1 1; } } desc { "clicked"; inherit: "default"; text.font: "Tizen:weight=Light"; text.size: "30"; text.text_class: "tizen"; color_class: "ctxpopup_item/default/text_pressed"; } desc { "disabled"; inherit: "default"; text.font: "Tizen:weight=Light"; text.size: "30"; text.text_class: "tizen"; color_class: "ctxpopup_item/default/text_disabled"; } desc { "ellipsis"; inherit: "default"; text.min: 0 1; } desc { "ellipsis_clicked"; inherit: "ellipsis"; text.font: "Tizen:weight=Light"; text.size: "30"; text.text_class: "tizen"; color_class: "ctxpopup_item/default/text_pressed"; } desc { "ellipsis_disabled"; inherit: "ellipsis"; text.font: "Tizen:weight=Light"; text.size: "30"; text.text_class: "tizen"; color_class: "ctxpopup_item/default/text_disabled"; } } rect { "event"; mouse; repeat; after: "elm.text"; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "disclip"; mouse; norepeat; desc { "default"; rel.to: "base"; color: 0 0 0 0; hid; } desc { "disabled"; inherit: "default"; vis; } } } script { public mouse_down = 0; public multi_down = 0; } programs { program { "on_text_default"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "disabled") || !strcmp(st, "ellipsis_disabled")) set_state(PART:"elm.text", "disabled", 0.0); else set_state(PART:"elm.text", "default", 0.0); } } program { "on_text_ellipsis"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "disabled") || !strcmp(st, "elipsis_disabled")) set_state(PART:"elm.text", "ellipsis_disabled", 0.0); else set_state(PART:"elm.text", "ellipsis", 0.0); } } program { "on_default"; action: STATE_SET "default"; target: "separator"; } program { "on_separator"; action: STATE_SET "visible"; target: "separator"; } program { "on_clicked"; script { if (get_int(multi_down) == 0) { emit("elm,action,click", ""); run_program(PROGRAM:"touch_sound"); } } } program { "touch_sound"; action: RUN_PLUGIN "touch_sound"; } program { "on_disabled"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) set_state(PART:"elm.text", "ellipsis_disabled", 0.0); else set_state(PART:"elm.text", "disabled", 0.0); set_state(PART:"disclip", "disabled", 0.0); } } program { "on_enabled"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) set_state(PART:"elm.text", "ellipsis", 0.0); else set_state(PART:"elm.text", "default", 0.0); set_state(PART:"disclip", "default", 0.0); } } program { "on_pressed"; script { if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) { set_int(mouse_down, 1); set_state(PART:"bg", "clicked", 0.0); new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "default")) set_state(PART:"elm.text", "clicked", 0.0); else set_state(PART:"elm.text", "ellipsis_clicked", 0.0); } } } program { "on_unpressed"; script { if (get_int(mouse_down) == 1) { set_int(mouse_down, 0); set_state(PART:"bg", "default", 0.0); new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "default") || !strcmp(st, "clicked")) set_state(PART:"elm.text", "default", 0.0); else set_state(PART:"elm.text", "ellipsis", 0.0); } } } program { "on_multi_down"; script { set_int(multi_down, 1); } } program { "on_multi_up"; script { set_int(multi_down, 0); } } } } group { "elm/ctxpopup/text_style_item/more/default"; inherit: "elm/ctxpopup/item/event/default"; nomouse; parts { spacer { "base"; desc { "default"; } } rect { "event_blocker"; mouse; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "bg"; scale; desc { "default"; rel.to: "base"; min: 0 CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC; color_class: "ctxpopup_item/more/default/bg"; } desc { "clicked"; inherit: "default"; color_class: "ctxpopup_item/more/default/effect"; } } spacer { "padding_left"; scale; desc { "default"; rel.to: "bg"; align: 0.0 0.5; min: CTXPOPUP_MORE_ITEM_TEXT_LR_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC; max: CTXPOPUP_MORE_ITEM_TEXT_LR_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC; fixed: 1 1; } } spacer { "padding_right"; scale; desc { "default"; rel.to: "bg"; align: 1.0 0.5; min: CTXPOPUP_MORE_ITEM_TEXT_LR_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC; max: CTXPOPUP_MORE_ITEM_TEXT_LR_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC; fixed: 1 1; } } text { "elm.text"; scale; desc { "default"; rel1 { to_x: "padding_left"; to_y: "base"; relative: 1.0 0.0; } rel2 { to_x: "padding_right"; to_y: "base"; relative: 0.0 1.0; } align: 0.5 0.5; min: 1 CTXPOPUP_MORE_ITEM_TEXT_HEIGHT_MIN_INC; color_class: "ctxpopup_item/more/default/text"; text { font: "Tizen:weight=Light"; size: "40"; text_class: "list_item"; align: -1.0 0.5; min: 1 1; } } desc { "clicked"; inherit: "default"; text.font: "Tizen:weight=Light"; text.size: "40"; text.text_class: "list_item"; color_class: "ctxpopup_item/more/default/text_pressed"; } desc { "disabled"; inherit: "default"; text.font: "Tizen:weight=Light"; text.size: "40"; text.text_class: "list_item"; color_class: "ctxpopup_item/more/default/text_disabled"; } desc { "ellipsis"; inherit: "default"; text.min: 0 1; } desc { "ellipsis_clicked"; inherit: "ellipsis"; text.font: "Tizen:weight=Light"; text.size: "40"; text.text_class: "list_item"; color_class: "ctxpopup_item/more/default/text_pressed"; } desc { "ellipsis_disabled"; inherit: "ellipsis"; text.font: "Tizen:weight=Light"; text.size: "40"; text.text_class: "list_item"; color_class: "ctxpopup_item/more/default/text_disabled"; } } rect { "event"; mouse; repeat; after: "elm.text"; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "disclip"; mouse; norepeat; desc { "default"; rel.to: "base"; color: 0 0 0 0; hid; } desc { "disabled"; inherit: "default"; vis; } } } script { public mouse_down = 0; public multi_down = 0; } programs { program { "on_text_default"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "disabled") || !strcmp(st, "ellipsis_disabled")) set_state(PART:"elm.text", "disabled", 0.0); else set_state(PART:"elm.text", "default", 0.0); } } program { "on_text_ellipsis"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "disabled") || !strcmp(st, "elipsis_disabled")) set_state(PART:"elm.text", "ellipsis_disabled", 0.0); else set_state(PART:"elm.text", "ellipsis", 0.0); } } program { "on_default"; } program { "on_separator"; } program { "on_clicked"; script { if (get_int(multi_down) == 0) { emit("elm,action,click", ""); run_program(PROGRAM:"touch_sound"); } } } program { "touch_sound"; action: RUN_PLUGIN "touch_sound"; } program { "on_disabled"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) set_state(PART:"elm.text", "ellipsis_disabled", 0.0); else set_state(PART:"elm.text", "disabled", 0.0); set_state(PART:"disclip", "disabled", 0.0); } } program { "on_enabled"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) set_state(PART:"elm.text", "ellipsis", 0.0); else set_state(PART:"elm.text", "default", 0.0); set_state(PART:"disclip", "default", 0.0); } } program { "on_pressed"; script { if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) { set_int(mouse_down, 1); set_state(PART:"bg", "clicked", 0.0); new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "default")) set_state(PART:"elm.text", "clicked", 0.0); else set_state(PART:"elm.text", "ellipsis_clicked", 0.0); } } } program { "on_unpressed"; script { if (get_int(mouse_down) == 1) { set_int(mouse_down, 0); set_state(PART:"bg", "default", 0.0); new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "default") || !strcmp(st, "clicked")) set_state(PART:"elm.text", "default", 0.0); else set_state(PART:"elm.text", "ellipsis", 0.0); } } } program { "on_multi_down"; script { set_int(multi_down, 1); } } program { "on_multi_up"; script { set_int(multi_down, 0); } } } } group { "elm/ctxpopup/text_style_item/dropdown/list"; alias: "elm/ctxpopup/text_style_item/dropdown/label"; inherit: "elm/ctxpopup/item/event/default"; nomouse; parts { spacer { "base"; desc { "default"; } } rect { "event_blocker"; mouse; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "bg"; scale; desc { "default"; rel.to: "base"; min: (CTXPOPUP_DROPDOWN_ITEM_TEXT_LR_PADDING*2) CTXPOPUP_DROPDOWN_ITEM_HEIGHT_MIN; color: 2 61 132 76; /*(Changeable UI) color_class: "B0733P";*/ hid; } desc { "clicked"; inherit: "default"; vis; } desc { "clicked_separator"; inherit: "default"; rel1.to_y: "separator"; rel1.relative: 0.0 1.0; vis; } } spacer { "padding_top_left"; scale; desc { "default"; rel.to: "base"; align: 0.0 0.0; min: CTXPOPUP_DROPDOWN_ITEM_TEXT_LR_PADDING 0; max: CTXPOPUP_DROPDOWN_ITEM_TEXT_LR_PADDING 0; fixed: 1 1; } } spacer { "padding_bottom_right"; scale; desc { "default"; rel.to: "base"; align: 1.0 1.0; min: CTXPOPUP_DROPDOWN_ITEM_TEXT_LR_PADDING 0; max: CTXPOPUP_DROPDOWN_ITEM_TEXT_LR_PADDING 0; fixed: 1 1; } } rect { "separator"; scale; desc { "default"; rel1 { to: "padding_top_left"; relative: 1.0 0.0; } rel2 { to: "padding_bottom_right"; relative: 0.0 0.0; } align: 0.5 0.0; min: 0 CTXPOPUP_DROPDOWN_SEPARATOR_HEIGHT; max: -1 CTXPOPUP_DROPDOWN_SEPARATOR_HEIGHT; color: 2 61 132 63; /*(Changeable UI) color_class: "B0733L2";*/ hid; } desc { "visible"; inherit: "default"; vis; } } text { "elm.text"; scale; desc { "default"; rel1 { to: "padding_top_left"; relative: 1.0 1.0; } rel2 { to: "padding_bottom_right"; relative: 0.0 0.0; } align: 0.5 0.5; min: 1 CTXPOPUP_DROPDOWN_ITEM_HEIGHT_MIN; color: 7 7 7 255; /*(Changeable UI) color_class: "T12351";*/ text { font: "Tizen:weight=Regular"; size: "34"; /*(Changeable UI) text_class: "T12351";*/ text_class: "list_item"; size_range: CTXPOPUP_DROPDOWN_ITEM_TEXT_SIZE CTXPOPUP_DROPDOWN_ITEM_TEXT_MAX_SIZE; align: -1.0 0.5; min: 1 1; } } desc { "clicked"; inherit: "default"; text.font: "Tizen:weight=Regular"; text.size: "34"; /*(Changeable UI) text.text_class: "T12351P";*/ text.text_class: "list_item"; color: 7 7 7 255; /*(Changeable UI) color_class: "T12351P";*/ } desc { "disabled"; inherit: "default"; text.font: "Tizen:weight=Regular"; text.size: "34"; /*(Changeable UI) text.text_class: "T12351D";*/ text.text_class: "list_item"; color: 7 7 7 76; /*(Changeable UI) color_class: "T12351D";*/ } desc { "ellipsis"; inherit: "default"; text.min: 0 1; } desc { "ellipsis_clicked"; inherit: "ellipsis"; text.font: "Tizen:weight=Regular"; text.size: "34"; /*(Changeable UI) text.text_class: "T12351P";*/ text.text_class: "list_item"; color: 7 7 7 255; /*(Changeable UI) color_class: "T12351P";*/ } desc { "ellipsis_disabled"; inherit: "ellipsis"; text.font: "Tizen:weight=Regular"; text.size: "34"; /*(Changeable UI) text.text_class: "T12351D";*/ text.text_class: "list_item"; color: 7 7 7 76; /*(Changeable UI) color_class: "T12351D";*/ } } rect { "event"; mouse; repeat; after: "elm.text"; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "disclip"; mouse; norepeat; desc { "default"; rel.to: "base"; color: 0 0 0 0; hid; } desc { "disabled"; inherit: "default"; vis; } } } script { public mouse_down = 0; public multi_down = 0; } programs { program { "on_text_default"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "disabled") || !strcmp(st, "ellipsis_disabled")) set_state(PART:"elm.text", "disabled", 0.0); else set_state(PART:"elm.text", "default", 0.0); } } program { "on_text_ellipsis"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "disabled") || !strcmp(st, "elipsis_disabled")) set_state(PART:"elm.text", "ellipsis_disabled", 0.0); else set_state(PART:"elm.text", "ellipsis", 0.0); } } program { "on_default"; action: STATE_SET "default"; target: "separator"; } program { "on_separator"; action: STATE_SET "visible"; target: "separator"; } program { "on_clicked"; script { if (get_int(multi_down) == 0) { emit("elm,action,click", ""); run_program(PROGRAM:"touch_sound"); } } } program { "touch_sound"; action: RUN_PLUGIN "touch_sound"; } program { "on_disabled"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) set_state(PART:"elm.text", "ellipsis_disabled", 0.0); else set_state(PART:"elm.text", "disabled", 0.0); set_state(PART:"disclip", "disabled", 0.0); } } program { "on_enabled"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) set_state(PART:"elm.text", "ellipsis", 0.0); else set_state(PART:"elm.text", "default", 0.0); set_state(PART:"disclip", "default", 0.0); } } program { "on_pressed"; script { new st[31]; new Float:vl; if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) { set_int(mouse_down, 1); get_state(PART:"separator", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"bg", "clicked_separator", 0.0); else set_state(PART:"bg", "clicked", 0.0); get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "default")) set_state(PART:"elm.text", "clicked", 0.0); else set_state(PART:"elm.text", "ellipsis_clicked", 0.0); } } } program { "on_unpressed"; script { if (get_int(mouse_down) == 1) { set_int(mouse_down, 0); set_state(PART:"bg", "default", 0.0); new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "default") || !strcmp(st, "clicked")) set_state(PART:"elm.text", "default", 0.0); else set_state(PART:"elm.text", "ellipsis", 0.0); } } } program { "on_multi_down"; script { set_int(multi_down, 1); } } program { "on_multi_up"; script { set_int(multi_down, 0); } } } } group { "elm/ctxpopup/text_style_item_horizontal/default"; inherit: "elm/ctxpopup/item/event/default"; nomouse; parts { spacer { "base"; desc { "default"; } } rect { "bg"; scale; desc { "default"; rel1.to: "separator"; rel1.relative: 1.0 0.0; rel2.to: "base"; min: (CTXPOPUP_ITEM_TEXT_HORIZONTAL_PADDING_INC*2) CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC; color_class: "ctxpopup_item/default/effect"; hid; } desc { "clicked"; inherit: "default"; vis; } } rect { "separator"; scale; desc { "default"; rel.to: "base"; align: 0.0 0.5; min: 0 0; max: 0 -1; color_class: "ctxpopup_item/default/divider"; hid; } desc { "visible"; inherit: "default"; min: CTXPOPUP_SEPARATOR_MIN_SIZE_INC; max: CTXPOPUP_SEPARATOR_MAX_SIZE_INC; vis; } } spacer { "padding_left"; scale; desc { "default"; rel.to: "base"; align: 0.0 0.0; min: CTXPOPUP_ITEM_TEXT_HORIZONTAL_PADDING_INC 1; max: CTXPOPUP_ITEM_TEXT_HORIZONTAL_PADDING_INC 1; } } spacer { "padding_right"; scale; desc { "default"; rel.to: "base"; align: 1.0 1.0; min: CTXPOPUP_ITEM_TEXT_HORIZONTAL_PADDING_INC 1; max: CTXPOPUP_ITEM_TEXT_HORIZONTAL_PADDING_INC 1; } } text { "elm.text"; scale; desc { "default"; rel1 { to: "padding_left"; relative: 1.0 0.0; } rel2 { to: "padding_right"; relative: 0.0 1.0; } min: (CTXPOPUP_ITEM_HORIZONTAL_WIDTH_MIN_INC-CTXPOPUP_ITEM_TEXT_HORIZONTAL_PADDING_INC*2) CTXPOPUP_ITEM_HORIZONTAL_TEXT_HEIGHT_MIN; color_class: "ctxpopup_item/default/text"; text { font: "Tizen:weight=Light"; size: "30"; /*(Changeable UI) text_class: "T130";*/ text_class: "tizen"; min: 1 1; } } desc { "clicked"; inherit: "default"; text.font: "Tizen:weight=Light"; text.size: "30"; text.text_class: "tizen"; color_class: "ctxpopup_item/default/text_pressed"; } desc { "disabled"; inherit: "default"; text.font: "Tizen:weight=Light"; text.size: "30"; text.text_class: "tizen"; color_class: "ctxpopup_item/default/text_disabled"; } } rect { "event"; mouse; repeat; after: "elm.text"; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "disclip"; mouse; norepeat; desc { "default"; rel.to: "base"; hid; } desc { "disabled"; rel.to: "base"; color: CTXPOPUP_ITEM_DISABLED_COLOR; vis; } } } script { public mouse_down = 0; public multi_down = 0; } programs { program { "on_text_default"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "disabled")) set_state(PART:"elm.text", "disabled", 0.0); else set_state(PART:"elm.text", "default", 0.0); } } program { "on_text_ellipsis"; } program { "on_default"; action: STATE_SET "default"; target: "separator"; } program { "on_separator"; action: STATE_SET "visible"; target: "separator"; } program { "on_clicked"; script { if (get_int(multi_down) == 0) { emit("elm,action,click", ""); run_program(PROGRAM:"touch_sound"); } } } program { "touch_sound"; action: RUN_PLUGIN "touch_sound"; } program { "on_disabled"; script { set_state(PART:"elm.text", "disabled", 0.0); set_state(PART:"disclip", "disabled", 0.0); } } program { "on_enabled"; script { set_state(PART:"elm.text", "default", 0.0); set_state(PART:"disclip", "default", 0.0); } } program { "on_pressed"; script { if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) { set_int(mouse_down, 1); set_state(PART:"bg", "clicked", 0.0); set_state(PART:"elm.text", "clicked", 0.0); } } } program { "on_unpressed"; script { if (get_int(mouse_down) == 1) { set_int(mouse_down, 0); set_state(PART:"bg", "default", 0.0); set_state(PART:"elm.text", "default", 0.0); } } } program { "on_multi_down"; script { set_int(multi_down, 1); } } program { "on_multi_up"; script { set_int(multi_down, 0); } } } } group { "elm/ctxpopup/icon_style_item/default"; inherit: "elm/ctxpopup/item/event/default"; nomouse; parts { spacer { "base"; desc { "default"; } } rect { "bg"; scale; desc { "default"; rel.to: "base"; rel1 { to_y: "separator"; relative: 0.0 1.0; } min: (CTXPOPUP_ITEM_ICON_STYLE_LR_PADDING_INC*2+CTXPOPUP_ICON_WIDTH_INC) CTXPOPUP_ITEM_HEIGHT_MAX_INC; color_class: "ctxpopup_item/default/effect"; hid; } desc { "clicked"; inherit: "default"; vis; } } rect { "separator"; scale; desc { "default"; rel.to: "base"; rel2.relative: 1.0 0.0; align: 0.5 0.0; min: 0 2; fixed: 0 1; color_class: "ctxpopup_item/default/divider"; hid; } desc { "visible"; inherit: "default"; vis; } } spacer { "padding_left"; scale; desc { "default"; rel.to: "base"; align: 0.0 0.5; min: CTXPOPUP_ITEM_ICON_STYLE_LR_PADDING_INC 1; max: CTXPOPUP_ITEM_ICON_STYLE_LR_PADDING_INC 1; fixed: 1 1; } } spacer { "padding_right"; scale; desc { "default"; rel.to: "base"; align: 1.0 0.5; min: CTXPOPUP_ITEM_ICON_STYLE_LR_PADDING_INC 1; max: CTXPOPUP_ITEM_ICON_STYLE_LR_PADDING_INC 1; fixed: 1 1; } } swallow { "elm.swallow.icon"; scale; mouse; clip: "icon_clip"; desc { "default"; rel1 { to_x: "padding_left"; to_y: "base"; relative: 1.0 0.0; } rel2 { to_x: "padding_right"; to_y: "base"; relative: 0.0 1.0; } min: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC; max: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC; fixed: 1 1; aspect: 1.0 1.0; } } rect { "icon_clip"; desc { "default"; rel.to: "elm.swallow.icon"; color_class: "ctxpopup_item/default/icon"; } } rect { "event"; mouse; repeat; after: "icon_clip"; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "disclip"; mouse; norepeat; desc { "default"; rel.to: "base"; color: 0 0 0 0; hid; } desc { "disabled"; inherit: "default"; vis; } } } script { public mouse_down = 0; public multi_down = 0; } programs { program { "on_text_default"; } program { "on_text_ellipsis"; } program { "on_default"; action: STATE_SET "default"; target: "separator"; } program { "on_separator"; action: STATE_SET "visible"; target: "separator"; } program { "on_clicked"; script { if (get_int(multi_down) == 0) { emit("elm,action,click", ""); run_program(PROGRAM:"touch_sound"); } } } program { "touch_sound"; action: RUN_PLUGIN "touch_sound"; } program { "on_disabled"; action: STATE_SET "disabled"; target: "disclip"; } program { "on_enabled"; action: STATE_SET "default"; target: "disclip"; } program { "on_pressed"; script { if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) { set_int(mouse_down, 1); set_state(PART:"bg", "clicked", 0.0); } } } program { "on_unpressed"; script { if (get_int(mouse_down) == 1) { set_int(mouse_down, 0); set_state(PART:"bg", "default", 0.0); } } } program { "on_multi_down"; script { set_int(multi_down, 1); } } program { "on_multi_up"; script { set_int(multi_down, 0); } } } } group { "elm/ctxpopup/icon_style_item_horizontal/default"; inherit: "elm/ctxpopup/item/event/default"; nomouse; parts { spacer { "base"; desc { "default"; } } rect { "event_blocker"; mouse; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "bg"; scale; desc { "default"; rel1 { to: "separator"; relative: 1.0 0.0; } rel2.to: "base"; min: CTXPOPUP_ITEM_ICON_HORIZONTAL_WIDTH_MIN_INC CTXPOPUP_ITEM_ICON_HORIZONTAL_HEIGHT_MIN_INC; color_class: "ctxpopup_item/default/effect"; hid; } desc { "clicked"; inherit: "default"; vis; } } rect { "separator"; scale; desc { "default"; rel.to: "base"; align: 0.0 0.5; min: 0 0; max: 0 -1; color_class: "ctxpopup_item/default/divider"; hid; } desc { "visible"; inherit: "default"; min: 1 CTXPOPUP_ITEM_ICON_HORIZONTAL_HEIGHT_MIN_INC; max: CTXPOPUP_SEPARATOR_MAX_SIZE_INC; vis; } } spacer { "padding_top"; scale; desc { "default"; rel.to: "base"; align: 0.5 0.0; min: 1 CTXPOPUP_ITEM_ICON_HORIZONTAL_TB_PADDING_INC; max: 1 CTXPOPUP_ITEM_ICON_HORIZONTAL_TB_PADDING_INC; fixed: 1 1; } } spacer { "padding_bottom"; scale; desc { "default"; rel.to: "base"; align: 0.5 1.0; min: 1 CTXPOPUP_ITEM_ICON_HORIZONTAL_TB_PADDING_INC; max: 1 CTXPOPUP_ITEM_ICON_HORIZONTAL_TB_PADDING_INC; fixed: 1 1; } } swallow { "elm.swallow.icon"; clip: "icon_clip"; scale; mouse; desc { "default"; rel1 { to: "padding_top"; relative: 1.0 1.0; } rel2 { to: "padding_bottom"; relative: 0.0 0.0; } min: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC; max: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC; aspect: 1.0 1.0; } } rect { "icon_clip"; desc { "default"; rel.to: "elm.swallow.icon"; color_class: "ctxpopup_item/default/icon"; } } rect { "event"; mouse; repeat; after: "icon_clip"; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "disclip"; mouse; norepeat; desc { "default"; rel.to: "base"; hid; } desc { "disabled"; rel.to: "base"; color: CTXPOPUP_ITEM_DISABLED_COLOR; vis; } } } script { public mouse_down = 0; public multi_down = 0; } programs { program { "on_text_default"; } program { "on_text_ellipsis"; } program { "on_default"; action: STATE_SET "default"; target: "separator"; } program { "on_separator"; action: STATE_SET "visible"; target: "separator"; } program { "on_clicked"; script { if (get_int(multi_down) == 0) { emit("elm,action,click", ""); run_program(PROGRAM:"touch_sound"); } } } program { "touch_sound"; action: RUN_PLUGIN "touch_sound"; } program { "on_disabled"; action: STATE_SET "disabled"; target: "disclip"; } program { "on_enabled"; action: STATE_SET "default"; target: "disclip"; } program { "on_pressed"; script { if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) { set_int(mouse_down, 1); set_state(PART:"bg", "clicked", 0.0); } } } program { "on_unpressed"; script { if (get_int(mouse_down) == 1) { set_int(mouse_down, 0); set_state(PART:"bg", "default", 0.0); } } } program { "on_multi_down"; script { set_int(multi_down, 1); } } program { "on_multi_up"; script { set_int(multi_down, 0); } } } } group { "elm/ctxpopup/icon_text_style_item/default"; inherit: "elm/ctxpopup/item/event/default"; nomouse; parts { spacer { "base"; desc { "default"; } } rect { "bg"; scale; desc { "default"; rel.to: "base"; rel1 { to_y: "separator"; relative: 0.0 1.0; } min: (CTXPOPUP_ITEM_ICON_TEXT_STYLE_ICON_LEFT_PADDING_INC+CTXPOPUP_ICON_WIDTH_INC+CTXPOPUP_ITEM_ICON_TEXT_STYLE_ICON_RIGHT_PADDING_INC+CTXPOPUP_ITEM_ICON_TEXT_STYLE_TEXT_RIGHT_PADDING_INC) CTXPOPUP_ITEM_HEIGHT_MAX_INC; color_class: "ctxpopup_item/default/effect"; hid; } desc { "clicked"; inherit: "default"; vis; } } rect { "separator"; scale; desc { "default"; rel.to: "base"; rel2.relative: 1.0 0.0; align: 0.5 0.0; min: 0 2; fixed: 0 1; color_class: "ctxpopup_item/default/divider"; hid; } desc { "visible"; inherit: "default"; vis; } } spacer { "padding_left_icon"; scale; desc { "default"; rel.to: "base"; align: 0.0 0.5; min: CTXPOPUP_ITEM_ICON_TEXT_STYLE_ICON_LEFT_PADDING_INC 1; max: CTXPOPUP_ITEM_ICON_TEXT_STYLE_ICON_LEFT_PADDING_INC 1; fixed: 1 1; } } swallow { "elm.swallow.icon"; scale; mouse; clip: "icon_clip"; desc { "default"; rel1 { to_x: "padding_left_icon"; to_y: "base"; relative: 1.0 0.0; } rel2 { to_x: "padding_left_icon"; to_y: "base"; relative: 1.0 1.0; } align: 0.0 0.5; min: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC; max: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC; aspect: 1.0 1.0; } } rect { "icon_clip"; desc { "default"; rel.to: "elm.swallow.icon"; color_class: "ctxpopup_item/default/icon"; } } spacer { "padding_right_icon"; scale; desc { "default"; rel1 { to_x: "elm.swallow.icon"; to_y: "base"; relative: 1.0 0.0; } rel2 { to_x: "elm.swallow.icon"; to_y: "base"; relative: 1.0 1.0; } align: 0.0 0.5; min: CTXPOPUP_ITEM_ICON_TEXT_STYLE_ICON_RIGHT_PADDING_INC 1; max: CTXPOPUP_ITEM_ICON_TEXT_STYLE_ICON_RIGHT_PADDING_INC 1; fixed: 1 1; } } text { "elm.text"; scale; desc { "default"; rel1 { to_x: "padding_right_icon"; to_y: "base"; relative: 1.0 0.0; } rel2 { to_x: "padding_right_text"; to_y: "base"; relative: 0.0 1.0; } align: 0.0 0.5; min: 1 CTXPOPUP_ITEM_TEXT_HEIGHT_MIN_INC; color_class: "ctxpopup_item/default/text_under_icon"; text { font: "Tizen:weight=Light"; size: "30"; text_class: "tizen"; align: -1.0 0.5; min: 1 1; } } desc { "clicked"; inherit: "default"; text.font: "Tizen:weight=Light"; text.size: "30"; text.text_class: "tizen"; color_class: "ctxpopup_item/default/text_under_icon_pressed"; } desc { "disabled"; inherit: "default"; color_class: "ctxpopup_item/default/text_under_icon_disabled"; text.font: "Tizen:weight=Light"; text.size: "30"; text.text_class: "tizen"; } desc { "ellipsis"; inherit: "default"; text.min: 0 1; } desc { "ellipsis_clicked"; inherit: "ellipsis"; text.font: "Tizen:weight=Light"; text.size: "30"; text.text_class: "tizen"; color_class: "ctxpopup_item/default/text_under_icon_pressed"; } desc { "ellipsis_disabled"; inherit: "ellipsis"; color_class: "ctxpopup_item/default/text_under_icon_disabled"; text.font: "Tizen:weight=Light"; text.size: "30"; text.text_class: "tizen"; } } spacer { "padding_right_text"; scale; desc { "default"; rel.to: "base"; align: 1.0 0.5; min: CTXPOPUP_ITEM_ICON_TEXT_STYLE_TEXT_RIGHT_PADDING_INC 1; max: CTXPOPUP_ITEM_ICON_TEXT_STYLE_TEXT_RIGHT_PADDING_INC 1; } } rect { "event"; mouse; repeat; after: "padding_right_text"; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "disclip"; mouse; norepeat; desc { "default"; rel.to: "base"; hid; } desc { "disabled"; rel.to: "base"; color: CTXPOPUP_ITEM_DISABLED_COLOR; vis; } } } script { public mouse_down = 0; public multi_down = 0; } programs { program { "on_text_default"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "disabled") || !strcmp(st, "ellipsis_disabled")) set_state(PART:"elm.text", "disabled", 0.0); else set_state(PART:"elm.text", "default", 0.0); } } program { "on_text_ellipsis"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "disabled") || !strcmp(st, "elipsis_disabled")) set_state(PART:"elm.text", "ellipsis_disabled", 0.0); else set_state(PART:"elm.text", "ellipsis", 0.0); } } program { "on_default"; action: STATE_SET "default"; target: "separator"; } program { "on_separator"; action: STATE_SET "visible"; target: "separator"; } program { "on_clicked"; script { if (get_int(multi_down) == 0) { emit("elm,action,click", ""); run_program(PROGRAM:"touch_sound"); } } } program { "touch_sound"; action: RUN_PLUGIN "touch_sound"; } program { "on_disabled"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) set_state(PART:"elm.text", "ellipsis_disabled", 0.0); else set_state(PART:"elm.text", "disabled", 0.0); set_state(PART:"disclip", "disabled", 0.0); } } program { "on_enabled"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) set_state(PART:"elm.text", "ellipsis", 0.0); else set_state(PART:"elm.text", "default", 0.0); set_state(PART:"disclip", "default", 0.0); } } program { "on_pressed"; script { if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) { set_int(mouse_down, 1); set_state(PART:"bg", "clicked", 0.0); new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "default")) set_state(PART:"elm.text", "clicked", 0.0); else set_state(PART:"elm.text", "ellipsis_clicked", 0.0); } } } program { "on_unpressed"; script { if (get_int(mouse_down) == 1) { set_int(mouse_down, 0); set_state(PART:"bg", "default", 0.0); new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "default") || !strcmp(st, "clicked")) set_state(PART:"elm.text", "default", 0.0); else set_state(PART:"elm.text", "ellipsis", 0.0); } } } program { "on_multi_down"; script { set_int(multi_down, 1); } } program { "on_multi_up"; script { set_int(multi_down, 0); } } } } group { "elm/ctxpopup/icon_text_style_item_horizontal/default"; inherit: "elm/ctxpopup/item/event/default"; nomouse; parts { spacer { "base"; desc { "default"; } } rect { "bg"; scale; desc { "default"; rel1 { to: "separator"; relative: 1.0 0.0; } rel2.to: "base"; min: (CTXPOPUP_ITEM_TEXT_PADDING_INC*2) CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_MIN_INC; color_class: "ctxpopup_item/default/effect"; hid; } desc { "clicked"; inherit: "default"; vis; } } rect { "separator"; scale; desc { "default"; rel.to: "base"; align: 0.0 0.5; min: 0 0; max: 0 -1; color_class: "ctxpopup_item/default/divider"; hid; } desc { "visible"; inherit: "default"; min: 1 CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_MIN_INC; max: CTXPOPUP_SEPARATOR_MAX_SIZE_INC; vis; } } spacer { "padding_top_icon"; scale; desc { "default"; rel.to: "base"; align: 0.5 0.0; min: 1 CTXPOPUP_ITEM_ICON_TEXT_STYLE_TB_PADDING_INC; max: 1 CTXPOPUP_ITEM_ICON_TEXT_STYLE_TB_PADDING_INC; } } swallow { "elm.swallow.icon"; clip: "icon_clip"; scale; mouse; desc { "default"; rel1 { to_x: "base"; to_y: "padding_top_icon"; relative: 0.0 1.0; } rel2.to: "base"; align: 0.5 0.0; min: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC; max: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC; aspect: 1.0 1.0; } } rect { "icon_clip"; desc { "default"; rel.to: "elm.swallow.icon"; color_class: "ctxpopup_item/default/icon"; } } spacer { "padding_bottom_icon"; scale; desc { "default"; rel1 { to_x: "base"; to_y: "elm.swallow.icon"; relative: 0.0 1.0; } rel2.to: "base"; align: 0.5 0.0; min: 1 CTXPOPUP_ITEM_ICON_TEXT_STYLE_ICON_PADDING_INC; max: 1 CTXPOPUP_ITEM_ICON_TEXT_STYLE_ICON_PADDING_INC; } } text { "elm.text"; scale; desc { "default"; rel1 { to_x: "padding_left_text"; to_y: "padding_bottom_icon"; relative: 1.0 1.0; } rel2 { to_x: "padding_right_text"; to_y: "padding_bottom_text"; relative: 0.0 0.0; } align: 0.5 0.0; min: 0 CTXPOPUP_ITEM_ICON_TEXT_STYLE_TEXT_SIZE_INC; color_class: "ctxpopup_item/default/text_under_icon"; text { font: "Tizen:weight=Light"; size: "26"; text_class: "tizen"; min: 1 1; } } desc { "clicked"; inherit: "default"; text.font: "Tizen:weight=Light"; text.size: "26"; text.text_class: "tizen"; color_class: "ctxpopup_item/default/text_under_icon_pressed"; } desc { "disabled"; inherit: "default"; text.font: "Tizen:weight=Light"; text.size: "26"; text.text_class: "tizen"; color_class: "ctxpopup_item/default/text_under_icon_disabled"; } } spacer { "padding_left_text"; scale; desc { "default"; rel.to: "base"; align: 0.0 0.5; min: CTXPOPUP_ITEM_TEXT_PADDING_INC 1; max: CTXPOPUP_ITEM_TEXT_PADDING_INC 1; } } spacer { "padding_right_text"; scale; desc { "default"; rel.to: "base"; align: 1.0 0.5; min: CTXPOPUP_ITEM_TEXT_PADDING_INC 1; max: CTXPOPUP_ITEM_TEXT_PADDING_INC 1; } } spacer { "padding_bottom_text"; scale; desc { "default"; rel.to: "base"; align: 0.5 1.0; min: 1 CTXPOPUP_ITEM_ICON_TEXT_STYLE_TB_PADDING_INC; max: 1 CTXPOPUP_ITEM_ICON_TEXT_STYLE_TB_PADDING_INC; } } rect { "event"; mouse; repeat; after: "padding_bottom_text"; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "disclip"; mouse; norepeat; desc { "default"; rel.to: "base"; hid; } desc { "disabled"; rel.to: "base"; color: CTXPOPUP_ITEM_DISABLED_COLOR; vis; } } } script { public mouse_down = 0; public multi_down = 0; } programs { program { "on_text_default"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "disabled")) set_state(PART:"elm.text", "disabled", 0.0); else set_state(PART:"elm.text", "default", 0.0); } } program { "on_text_ellipsis"; } program { "on_default"; action: STATE_SET "default"; target: "separator"; } program { "on_separator"; action: STATE_SET "visible"; target: "separator"; } program { "on_clicked"; script { if (get_int(multi_down) == 0) { emit("elm,action,click", ""); run_program(PROGRAM:"touch_sound"); } } } program { "touch_sound"; action: RUN_PLUGIN "touch_sound"; } program { "on_disabled"; script { set_state(PART:"elm.text", "disabled", 0.0); set_state(PART:"disclip", "disabled", 0.0); } } program { "on_enabled"; script { set_state(PART:"elm.text", "default", 0.0); set_state(PART:"disclip", "default", 0.0); } } program { "on_pressed"; script { if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) { set_int(mouse_down, 1); set_state(PART:"bg", "clicked", 0.0); set_state(PART:"elm.text", "clicked", 0.0); } } } program { "on_unpressed"; script { if (get_int(mouse_down) == 1) { set_int(mouse_down, 0); set_state(PART:"bg", "default", 0.0); set_state(PART:"elm.text", "default", 0.0); } } } program { "on_multi_down"; script { set_int(multi_down, 1); } } program { "on_multi_up"; script { set_int(multi_down, 0); } } } } group { "elm/ctxpopup/text_style_item_horizontal/copypaste"; alias: "elm/ctxpopup/icon_text_style_item/copypaste"; alias: "elm/ctxpopup/icon_text_style_item_horizontal/copypaste"; alias: "elm/ctxpopup/text_style_item/copypaste"; alias: "elm/ctxpopup/icon_style_item/copypaste"; alias: "elm/ctxpopup/icon_style_item_horizontal/copypaste"; alias: "elm/list/item/copypaste"; alias: "elm/list/h_item/copypaste"; alias: "elm/list/item_odd/copypaste"; alias: "elm/list/h_item_odd/copypaste"; alias: "elm/list/item_compress/copypaste"; alias: "elm/list/h_item_compress/copypaste"; alias: "elm/list/item_compress_odd/copypaste"; alias: "elm/list/h_item_compress_odd/copypaste"; inherit: "elm/ctxpopup/item/event/default"; nomouse; parts { spacer { "base"; desc { "default"; } } rect { "event_blocker"; mouse; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "bg"; scale; desc { "default"; rel1 { to: "separator"; relative: 1.0 0.0; } rel2.to: "base"; min: (CTXPOPUP_COPYPASTE_ITEM_HORIZONTAL_WIDTH_MIN_INC-1) CTXPOPUP_COPYPASTE_ITEM_TEXT_STYLE_HEIGHT_MIN_INC; color_class: "entry/default/bg_cnp_pressed"; hid; } desc { "clicked"; inherit: "default"; vis; } } rect { "separator"; scale; desc { "default"; rel.to: "base"; align: 0.0 0.5; min: 0 0; max: 0 -1; color_class: "entry/default/divider_cnp"; hid; } desc { "visible"; inherit: "default"; min: 2 CTXPOPUP_COPYPASTE_ITEM_TEXT_STYLE_HEIGHT_MIN_INC; max: CTXPOPUP_SEPARATOR_MAX_SIZE_INC; vis; } } spacer { "padding_top_text"; scale; desc { "default"; rel.to: "base"; align: 0.5 0.0; min: 1 CTXPOPUP_COPYPASTE_ITEM_TEXT_STYLE_TEXT_TOP_PADDING_INC; max: 1 CTXPOPUP_COPYPASTE_ITEM_TEXT_STYLE_TEXT_TOP_PADDING_INC; fixed: 1 1; } } text { "elm.text"; scale; desc { "default"; rel1 { to_x: "padding_left_text"; to_y: "padding_top_text"; relative: 1.0 1.0; } rel2 { to_x: "padding_right_text"; to_y: "padding_bottom_text"; relative: 0.0 0.0; } align: 0.5 0.0; min: 0 CTXPOPUP_COPYPASTE_TEXT_STYLE_TEXT_SIZE_INC; color_class: "entry/default/text_cnp"; text { align: 0.5 0.5; min: 1 1; font: "Tizen:weight=Light"; size: "30"; text_class: "tizen"; } } desc { "clicked"; inherit: "default"; text { min: 0 1; font: "Tizen:weight=Light"; size: "30"; text_class: "tizen"; } color_class: "entry/default/text_cnp_pressed"; } desc { "disabled"; inherit: "default"; text { min: 0 1; font: "Tizen:weight=Light"; size: "30"; text_class: "tizen"; } color_class: "entry/default/text_cnp_disabled"; } } spacer { "padding_left_text"; scale; desc { "default"; rel.to: "base"; align: 0.0 0.5; min: CTXPOPUP_ITEM_TEXT_PADDING_INC 1; max: CTXPOPUP_ITEM_TEXT_PADDING_INC 1; fixed: 1 0; } } spacer { "padding_right_text"; scale; desc { "default"; rel.to: "base"; align: 1.0 0.5; min: CTXPOPUP_ITEM_TEXT_PADDING_INC 1; max: CTXPOPUP_ITEM_TEXT_PADDING_INC 1; fixed: 1 0; } } spacer { "padding_bottom_text"; scale; desc { "default"; align: 0.5 1.0; min: 1 CTXPOPUP_COPYPASTE_ITEM_TEXT_BOTTOM_PADDING_INC; max: 1 CTXPOPUP_COPYPASTE_ITEM_TEXT_BOTTOM_PADDING_INC; fixed: 1 1; } } rect { "event"; mouse; repeat; after: "padding_bottom_text"; desc { "default"; rel.to: "base"; color: 0 0 0 0; } } rect { "disclip"; mouse; norepeat; desc { "default"; rel.to: "base"; hid; } desc { "disabled"; rel.to: "base"; color: CTXPOPUP_ITEM_DISABLED_COLOR; vis; } } } script { public mouse_down = 0; public multi_down = 0; } programs { program { "on_text_default"; script { new st[31]; new Float:vl; get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "disabled")) set_state(PART:"elm.text", "disabled", 0.0); else set_state(PART:"elm.text", "default", 0.0); } } program { "on_text_ellipsis"; } program { "on_default"; action: STATE_SET "default"; target: "separator"; } program { "on_separator"; action: STATE_SET "visible"; target: "separator"; } program { "on_clicked"; script { if (get_int(multi_down) == 0) { emit("elm,action,click", ""); run_program(PROGRAM:"touch_sound"); } } } program { "touch_sound"; action: RUN_PLUGIN "touch_sound"; } program { "on_disabled"; script { set_state(PART:"elm.text", "disabled", 0.0); set_state(PART:"disclip", "disabled", 0.0); } } program { "on_enabled"; script { set_state(PART:"elm.text", "default", 0.0); set_state(PART:"disclip", "default", 0.0); } } program { "on_pressed"; script { if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) { set_int(mouse_down, 1); set_state(PART:"bg", "clicked", 0.0); set_state(PART:"elm.text", "clicked", 0.0); } } } program { "on_unpressed"; script { if (get_int(mouse_down) == 1) { set_int(mouse_down, 0); set_state(PART:"bg", "default", 0.0); set_state(PART:"elm.text", "default", 0.0); } } } program { "on_multi_down"; script { set_int(multi_down, 1); } } program { "on_multi_up"; script { set_int(multi_down, 0); } } } }