From 7b232fc8220058f66545d67d96b65edb2817caa0 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Thu, 15 Sep 2011 10:58:45 +0900 Subject: [PATCH] naviframe - updated for common contents --- themes/groups/button.edc | 1 + themes/groups/naviframe.edc | 713 ++++++++++++++++++++++++++++---------------- 2 files changed, 451 insertions(+), 263 deletions(-) diff --git a/themes/groups/button.edc b/themes/groups/button.edc index 24eea20..d15622b 100644 --- a/themes/groups/button.edc +++ b/themes/groups/button.edc @@ -4967,6 +4967,7 @@ BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_butt /////////////////////////////////////////////////////////////////////////////////////// group { name: "elm/button/base/naviframe/back_btn/default"; + alias: "elm/button/base/naviframe_end_btn/default"; //TODO: Remove this alias later alias: "elm/button/base/navigationbar_prev_btn/default"; alias: "elm/button/base/navigationbar_backbutton/default"; diff --git a/themes/groups/naviframe.edc b/themes/groups/naviframe.edc index e4b3c4b..5d1031f 100644 --- a/themes/groups/naviframe.edc +++ b/themes/groups/naviframe.edc @@ -49,32 +49,6 @@ public oh_close = 0; //optionheader close/open } parts { - part { name: "elm.rect.pada"; - type: RECT; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 102 0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { relative: 0.0 0.0; to: "title_clip"; } - rel2 { relative: 0.0 1.0; to: "title_clip"; } - visible: 0; - } - } - part { name: "elm.rect.padb"; - type: RECT; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 102 0; - fixed: 1 0; - align: 1.0 0.5; - rel1 { relative: 1.0 0.0; to: "title_clip"; } - rel2 { relative: 1.0 1.0; to: "title_clip"; } - visible: 0; - } - } part { name: "title_clip"; type: RECT; mouse_events: 0; @@ -175,17 +149,138 @@ rel2.relative: 2.0 1.0; } } - part { name: "elm.swallow.title"; - type: SWALLOW; - scale: 1; - repeat_events: 0; + part { name: "title_base"; + type: RECT; clip_to: "title_clip"; description { state: "default" 0.0; - min: 1 50; - align: 0.0 0.0; + min: 1 NAVIFRAME_TITLE_H; + align: 0.5 0.0; fixed: 0 1; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 0.0; } + color: NAVIFRAME_TITLE_BG_COLOR_INC; + } + } + part { name: "elm.rect.pada"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: 82 0; + fixed: 1 0; + align: 0.0 0.5; + rel1 { relative: 0.0 0.0; to: "title_base"; } + rel2 { relative: 0.0 1.0; to: "title_base"; } + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: 102 0; + } + } + part { name: "separator_1"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + align: 1.0 0; + min: 1 0; + rel1 { relative: 0.0 0.2; to:"elm.rect.padb"; to: "title_base"; } + rel2 { relative: 0.0 0.8; to:"elm.rect.padb"; to: "title_base"; } + fixed: 1 0; + color: NAVIFRAME_TITLE_RIGHT_SEPARATOR_COLOR_INC; + } + } + part { name: "separator_2"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + align: 1.0 0; + min: 1 0; + rel1 { relative: 0.0 0.0; to: "separator_1"; to: "title_base"; } + rel2 { relative: 0.0 1.0; to: "separator_1"; to: "title_base"; } + fixed: 1 0; + color: NAVIFRAME_TITLE_LEFT_SEPARATOR_COLOR_INC; + } + } + part { name: "elm.rect.padb"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: 80 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 1.0 0.0; to: "title_base"; } + rel2 { relative: 1.0 1.0; to: "title_base"; } + visible: 0; + } + } + part { name: "elm.text.title"; + type: TEXT; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + text { font: "SLP:style=Medium"; + size: 22; + min: 0 0; + max: 1 0; + align: 0.5 0.5; + } + color: NAVIFRAME_TITLE_TEXT_COLOR_INC; + align: 0.5 0.5; + rel1.to: "title_base"; + rel2.to: "title_base"; + } + } + part { name: "click_event_area"; + ignore_flags: ON_HOLD; + description { state: "default" 0.0; + rel1 { to: "title_base"; } + rel2 { to: "elm.rect.padb"; relative: 0.0 1.0; } + } + } + part { name: "elm.swallow.prev_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + align: 0 0.5; + fixed: 1 1; + rel1 { relative: 0.0 0.0; to: "title_base"; } + rel2 { relative: 0.0 1.0; to: "title_base"; } + } + } + part { name: "elm.swallow.icon"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: 20 20; + rel1 { relative: 0.0 0.0; to_x: "padding_before_text"; } + rel2 { relative: 0.0 1.0; to_x: "padding_before_text"; } + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + align: 1.0 0.5; + } + } + part { name: "padding_before_text"; + type: RECT; + scale: 1; + mouse_events: 0; + clip_to: "title_clip"; + description { state: "default" 0.0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: "elm.text.title"; } + rel2 { relative: 0.0 1.0; to_x: "elm.text.title"; } + fixed: 1 0; + min: 10 0; + visible: 0; } } part { name: "optionheader_arrow"; @@ -230,14 +325,6 @@ color: 255 255 255 255; } } - part { name: "click_event_area"; - ignore_flags: ON_HOLD; - repeat_events: 1; - description { state: "default" 0.0; - rel1 { to: "elm.rect.pada"; relative: 1.0 0.0; } - rel2 { to: "elm.rect.padb"; relative: 0.0 1.0; } - } - } } programs { program { name: "show"; @@ -283,7 +370,7 @@ target: "title_clip"; } program { name: "optionheader_show"; - signal: "elm,state,extension,show"; + signal: "elm,state,elm.swallow.optionheader,show"; source: "elm"; script { set_state(PART:"optionheader_clip", "show", 0.0); @@ -295,7 +382,7 @@ } } program { name: "optionheader_hide"; - signal: "elm,state,extension,hide"; + signal: "elm,state,elm.swallow.optionheader,hide"; source: "elm"; script { set_state(PART:"optionheader_clip", "default", 0.0); @@ -336,6 +423,7 @@ name: "title_clicked"; signal: "mouse,clicked,1"; source: "click_event_area"; + action: SIGNAL_EMIT "elm,action,clicked" "elm"; script { if (get_int(oh_show) == 1) { if (get_int(oh_close) == 1) { @@ -361,32 +449,6 @@ public oh_close = 0; //optionheader close/open } parts { - part { name: "elm.rect.pada"; - type: RECT; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 102 0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { relative: 0.0 0.0; to: "title_clip"; } - rel2 { relative: 0.0 1.0; to: "title_clip"; } - visible: 0; - } - } - part { name: "elm.rect.padb"; - type: RECT; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 102 0; - fixed: 1 0; - align: 1.0 0.5; - rel1 { relative: 1.0 0.0; to: "title_clip"; } - rel2 { relative: 1.0 1.0; to: "title_clip"; } - visible: 0; - } - } part { name: "title_clip"; type: RECT; mouse_events: 0; @@ -487,86 +549,200 @@ rel2.relative: 2.0 1.0; } } - part { name: "elm.swallow.title"; - type: SWALLOW; - scale: 1; - repeat_events: 0; + part { name: "title_base"; + type: RECT; clip_to: "title_clip"; description { state: "default" 0.0; - min: 1 50; - align: 0.0 0.0; + min: 1 NAVIFRAME_TITLE_H; + align: 0.5 0.0; fixed: 0 1; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 0.0; } + color: NAVIFRAME_TITLE_BG_COLOR_INC; } } - part { name: "optionheader_arrow"; - type: IMAGE; + part { name: "elm.rect.pada"; + type: RECT; mouse_events: 0; scale: 1; + clip_to: "title_clip"; description { state: "default" 0.0; - min: 15 11; - max: 15 11; - fixed: 1 1; - align: 0.5 1; + min: 82 0; + fixed: 1 0; + align: 0.0 0.5; + rel1 { relative: 0.0 0.0; to: "title_base"; } + rel2 { relative: 0.0 1.0; to: "title_base"; } visible: 0; - rel1.to_y: "optionheader_bg"; - rel1.offset: 0 1; - rel2.relative: 1 0; - rel2.to_y: "optionheader_bg"; - rel2.offset: -1 0; - image { - normal: "00_winset_control_top_arrow.png"; - } } - description { state: "show" 0.0; + description { state: "visible" 0.0; inherit: "default" 0.0; - visible: 1; + min: 102 0; } } - part { name: "optionheader_shadow"; - type: IMAGE; + part { name: "separator_1"; + type: RECT; mouse_events: 0; scale: 1; + clip_to: "title_clip"; description { state: "default" 0.0; - min: 1 NAVIFRAME_OH_SHADOW_H; - fixed: 0 1; - align: 0.5 0; - color: 255 255 255 0; - rel1 { to: "optionheader_bg"; relative: 0 1; } - rel2 { to: "optionheader_bg"; relative: 1 1; } - image { normal: "navibar_item_separator_shadow.png"; } - } - description { state: "show" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; + align: 1.0 0; + min: 1 0; + rel1 { relative: 0.0 0.2; to:"elm.rect.padb"; to: "title_base"; } + rel2 { relative: 0.0 0.8; to:"elm.rect.padb"; to: "title_base"; } + fixed: 1 0; + color: NAVIFRAME_TITLE_RIGHT_SEPARATOR_COLOR_INC; } } - part { name: "click_event_area"; - ignore_flags: ON_HOLD; - repeat_events: 1; + part { name: "separator_2"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; description { state: "default" 0.0; - rel1 { to: "elm.rect.pada"; relative: 1.0 0.0; } - rel2 { to: "elm.rect.padb"; relative: 0.0 1.0; } + align: 1.0 0; + min: 1 0; + rel1 { relative: 0.0 0.0; to: "separator_1"; to: "title_base"; } + rel2 { relative: 0.0 1.0; to: "separator_1"; to: "title_base"; } + fixed: 1 0; + color: NAVIFRAME_TITLE_LEFT_SEPARATOR_COLOR_INC; } } - } - programs { - program { name: "show"; - signal: "elm,state,show"; - source: "elm"; - action: STATE_SET "show" 0.0; - target: "elm.swallow.content"; - transition: DECELERATE 0.5; - after: "show_finished"; - } - program { name: "pushed"; - signal: "elm,state,pushed"; - source: "elm"; - action: STATE_SET "pushed" 0.0; - target: "elm.swallow.content"; - transition: DECELERATE 0.5; - after: "pushed_finished"; + part { name: "elm.rect.padb"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: 80 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 1.0 0.0; to: "title_base"; } + rel2 { relative: 1.0 1.0; to: "title_base"; } + visible: 0; + } + } + part { name: "elm.text.title"; + type: TEXT; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + text { font: "SLP:style=Medium"; + size: 22; + min: 0 0; + max: 1 0; + align: 0.5 0.5; + } + color: NAVIFRAME_TITLE_TEXT_COLOR_INC; + align: 0.5 0.5; + rel1.to: "title_base"; + rel2.to: "title_base"; + } + } + part { name: "click_event_area"; + ignore_flags: ON_HOLD; + description { state: "default" 0.0; + rel1 { to: "title_base"; } + rel2 { to: "elm.rect.padb"; relative: 0.0 1.0; } + } + } + part { name: "elm.swallow.prev_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + align: 0 0.5; + fixed: 1 1; + rel1 { relative: 0.0 0.0; to: "title_base"; } + rel2 { relative: 0.0 1.0; to: "title_base"; } + } + } + part { name: "elm.swallow.icon"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: 20 20; + rel1 { relative: 0.0 0.0; to_x: "padding_before_text"; } + rel2 { relative: 0.0 1.0; to_x: "padding_before_text"; } + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + align: 1.0 0.5; + } + } + part { name: "padding_before_text"; + type: RECT; + scale: 1; + mouse_events: 0; + clip_to: "title_clip"; + description { state: "default" 0.0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: "elm.text.title"; } + rel2 { relative: 0.0 1.0; to_x: "elm.text.title"; } + fixed: 1 0; + min: 10 0; + visible: 0; + } + } + part { name: "optionheader_arrow"; + type: IMAGE; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: 15 11; + max: 15 11; + fixed: 1 1; + align: 0.5 1; + visible: 0; + rel1.to_y: "optionheader_bg"; + rel1.offset: 0 1; + rel2.relative: 1 0; + rel2.to_y: "optionheader_bg"; + rel2.offset: -1 0; + image { + normal: "00_winset_control_top_arrow.png"; + } + } + description { state: "show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "optionheader_shadow"; + type: IMAGE; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + min: 1 NAVIFRAME_OH_SHADOW_H; + fixed: 0 1; + align: 0.5 0; + color: 255 255 255 0; + rel1 { to: "optionheader_bg"; relative: 0 1; } + rel2 { to: "optionheader_bg"; relative: 1 1; } + image { normal: "navibar_item_separator_shadow.png"; } + } + description { state: "show" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + } + } + programs { + program { name: "show"; + signal: "elm,state,show"; + source: "elm"; + action: STATE_SET "show" 0.0; + target: "elm.swallow.content"; + transition: DECELERATE 0.5; + after: "show_finished"; + } + program { name: "pushed"; + signal: "elm,state,pushed"; + source: "elm"; + action: STATE_SET "pushed" 0.0; + target: "elm.swallow.content"; + transition: DECELERATE 0.5; + after: "pushed_finished"; } program { name: "popped"; signal: "elm,state,popped"; @@ -595,7 +771,7 @@ target: "title_clip"; } program { name: "optionheader_show"; - signal: "elm,state,extension,show"; + signal: "elm,state,elm.swallow.optionheader,show"; source: "elm"; script { set_state(PART:"optionheader_clip", "show", 0.0); @@ -607,7 +783,7 @@ } } program { name: "optionheader_hide"; - signal: "elm,state,extension,hide"; + signal: "elm,state,elm.swallow.optionheader,hide"; source: "elm"; script { set_state(PART:"optionheader_clip", "default", 0.0); @@ -648,6 +824,7 @@ name: "title_clicked"; signal: "mouse,clicked,1"; source: "click_event_area"; + action: SIGNAL_EMIT "elm,action,clicked" "elm"; script { if (get_int(oh_show) == 1) { if (get_int(oh_close) == 1) { @@ -663,6 +840,10 @@ } } group { name:"elm/naviframe/item/instant/default"; + script { + public oh_show = 0; //optionheader show/hide + public oh_close = 0; //optionheader close/open + } parts { part { name: "title_clip"; type: RECT; @@ -751,135 +932,15 @@ visible: 1; } } - part { name: "elm.swallow.title"; - type: SWALLOW; - scale: 1; - repeat_events: 0; + part { name: "title_base"; + type: RECT; clip_to: "title_clip"; description { state: "default" 0.0; - min: 1 50; + min: 1 NAVIFRAME_TITLE_H; align: 0.5 0.0; fixed: 0 1; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 0.0; } - } - } - part { name: "optionheader_arrow"; - type: IMAGE; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 15 11; - max: 15 11; - fixed: 1 1; - align: 0.5 1; - visible: 0; - rel1.relative: 0 0; - rel1.to: "optionheader_bg"; - rel1.offset: 0 1; - rel2.relative: 1 0; - rel2.to: "optionheader_bg"; - rel2.offset: -1 0; - image { - normal: "00_winset_control_top_arrow.png"; - } - } - description { state: "show" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { name: "optionheader_shadow"; - type: IMAGE; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 1 NAVIFRAME_OH_SHADOW_H; - fixed: 0 1; - align: 0.5 0; - color: 255 255 255 0; - rel1 { to: "optionheader_bg"; relative: 0 1; } - rel2 { to: "optionheader_bg"; relative: 1 1; } - image { normal: "navibar_item_separator_shadow.png"; } - } - description { state: "show" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - } - programs { - program { name: "show"; - signal: "elm,state,show"; - source: "elm"; - action: STATE_SET "show" 0.0; - target: "elm.swallow.content"; - after: "show_finished"; - } - program { name: "pushed"; - signal: "elm,state,pushed"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.content"; - after: "pushed_finished"; - } - program { name: "popped"; - signal: "elm,state,popped"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.content"; - after: "popped_finished"; - } - program { name: "visible"; - signal: "elm,state,visible"; - source: "elm"; - action: STATE_SET "show" 0.0; - target: "elm.swallow.content"; - } - program { name: "title_show"; - signal: "elm,state,title,show"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "title_clip"; - } - program { name: "title_hide"; - signal: "elm,state,title,hide"; - source: "elm"; - action: STATE_SET "hide" 0.0; - target: "title_clip"; - } - program { name: "optionheader_show"; - signal: "elm,state,extension,show"; - source: "elm"; - action: STATE_SET "show" 0.0; - target: "optionheader_clip"; - target: "optionheader_arrow"; - target: "optionheader_shadow"; - } - program { name: "optionheader_hide"; - signal: "elm,state,extension,hide"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "optionheader_clip"; - target: "optionheader_arrow"; - target: "optionheader_shadow"; - } - program { name: "show_finished"; - action: SIGNAL_EMIT "elm,action,show,finished" ""; - } - program { name: "pushed_finished"; - action: SIGNAL_EMIT "elm,action,pushed,finished" ""; - } - program { name: "popped_finished"; - action: SIGNAL_EMIT "elm,action,popped,finished" ""; - } - } - } - group { name:"elm/naviframe/title/default"; - parts { - part { name: "base"; - type: RECT; - description { color: NAVIFRAME_TITLE_BG_COLOR_INC; } } @@ -887,12 +948,13 @@ type: RECT; mouse_events: 0; scale: 1; + clip_to: "title_clip"; description { state: "default" 0.0; min: 82 0; fixed: 1 0; align: 0.0 0.5; - rel1 { relative: 0.0 0.0; } - rel2 { relative: 0.0 1.0; } + rel1 { relative: 0.0 0.0; to: "title_base"; } + rel2 { relative: 0.0 1.0; to: "title_base"; } visible: 0; } description { state: "visible" 0.0; @@ -904,11 +966,12 @@ type: RECT; mouse_events: 0; scale: 1; + clip_to: "title_clip"; description { state: "default" 0.0; align: 1.0 0; min: 1 0; - rel1 { relative: 0.0 0.2; to:"elm.rect.padb";} - rel2 { relative: 0.0 0.8; to:"elm.rect.padb";} + rel1 { relative: 0.0 0.2; to:"elm.rect.padb"; to: "title_base"; } + rel2 { relative: 0.0 0.8; to:"elm.rect.padb"; to: "title_base"; } fixed: 1 0; color: NAVIFRAME_TITLE_RIGHT_SEPARATOR_COLOR_INC; } @@ -917,11 +980,12 @@ type: RECT; mouse_events: 0; scale: 1; + clip_to: "title_clip"; description { state: "default" 0.0; align: 1.0 0; min: 1 0; - rel1 { relative: 0.0 0.0; to: "separator_1"; } - rel2 { relative: 0.0 1.0; to: "separator_1"; } + rel1 { relative: 0.0 0.0; to: "separator_1"; to: "title_base"; } + rel2 { relative: 0.0 1.0; to: "separator_1"; to: "title_base"; } fixed: 1 0; color: NAVIFRAME_TITLE_LEFT_SEPARATOR_COLOR_INC; } @@ -930,19 +994,20 @@ type: RECT; mouse_events: 0; scale: 1; + clip_to: "title_clip"; description { state: "default" 0.0; min: 80 0; fixed: 1 0; align: 1.0 0.5; - rel1 { relative: 1.0 0.0; } - rel2 { relative: 1.0 1.0; } + rel1 { relative: 1.0 0.0; to: "title_base"; } + rel2 { relative: 1.0 1.0; to: "title_base"; } visible: 0; } } part { name: "elm.text.title"; type: TEXT; scale: 1; - repeat_events: 1; + clip_to: "title_clip"; description { state: "default" 0.0; text { font: "SLP:style=Medium"; size: 22; @@ -952,28 +1017,32 @@ } color: NAVIFRAME_TITLE_TEXT_COLOR_INC; align: 0.5 0.5; + rel1.to: "title_base"; + rel2.to: "title_base"; } } part { name: "click_event_area"; ignore_flags: ON_HOLD; description { state: "default" 0.0; + rel1 { to: "title_base"; } rel2 { to: "elm.rect.padb"; relative: 0.0 1.0; } } } part { name: "elm.swallow.prev_btn"; type: SWALLOW; scale: 1; - repeat_events: 0; + clip_to: "title_clip"; description { state: "default" 0.0; align: 0 0.5; fixed: 1 1; - rel1 { relative: 0.0 0.0; } - rel2 { relative: 0.0 1.0; } + rel1 { relative: 0.0 0.0; to: "title_base"; } + rel2 { relative: 0.0 1.0; to: "title_base"; } } } part { name: "elm.swallow.icon"; type: SWALLOW; scale: 1; + clip_to: "title_clip"; description { state: "default" 0.0; max: 20 20; rel1 { relative: 0.0 0.0; to_x: "padding_before_text"; } @@ -987,6 +1056,7 @@ type: RECT; scale: 1; mouse_events: 0; + clip_to: "title_clip"; description { state: "default" 0.0; align: 1.0 0.5; rel1 { relative: 0.0 0.0; to_x: "elm.text.title"; } @@ -996,14 +1066,131 @@ visible: 0; } } + part { name: "optionheader_arrow"; + type: IMAGE; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + min: 15 11; + max: 15 11; + fixed: 1 1; + align: 0.5 1; + visible: 0; + rel1.relative: 0 0; + rel1.to: "optionheader_bg"; + rel1.offset: 0 1; + rel2.relative: 1 0; + rel2.to: "optionheader_bg"; + rel2.offset: -1 0; + image { + normal: "00_winset_control_top_arrow.png"; + } + } + description { state: "show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "optionheader_shadow"; + type: IMAGE; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + min: 1 NAVIFRAME_OH_SHADOW_H; + fixed: 0 1; + align: 0.5 0; + color: 255 255 255 0; + rel1 { to: "optionheader_bg"; relative: 0 1; } + rel2 { to: "optionheader_bg"; relative: 1 1; } + image { normal: "navibar_item_separator_shadow.png"; } + } + description { state: "show" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + } } programs { + program { name: "show"; + signal: "elm,state,show"; + source: "elm"; + action: STATE_SET "show" 0.0; + target: "elm.swallow.content"; + after: "show_finished"; + } + program { name: "pushed"; + signal: "elm,state,pushed"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.content"; + after: "pushed_finished"; + } + program { name: "popped"; + signal: "elm,state,popped"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.content"; + after: "popped_finished"; + } + program { name: "visible"; + signal: "elm,state,visible"; + source: "elm"; + action: STATE_SET "show" 0.0; + target: "elm.swallow.content"; + } + program { name: "title_show"; + signal: "elm,state,title,show"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "title_clip"; + } + program { name: "title_hide"; + signal: "elm,state,title,hide"; + source: "elm"; + action: STATE_SET "hide" 0.0; + target: "title_clip"; + } + program { name: "optionheader_show"; + signal: "elm,state,elm.swallow.optionheader,show"; + source: "elm"; + action: STATE_SET "show" 0.0; + target: "optionheader_clip"; + target: "optionheader_arrow"; + target: "optionheader_shadow"; + } + program { name: "optionheader_hide"; + signal: "elm,state,elm.swallow.optionheader,hide"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "optionheader_clip"; + target: "optionheader_arrow"; + target: "optionheader_shadow"; + } program { name: "title_clicked"; signal: "mouse,clicked,1"; source: "click_event_area"; action: SIGNAL_EMIT "elm,action,clicked" "elm"; + script { + if (get_int(oh_show) == 1) { + if (get_int(oh_close) == 1) { + emit("elm,state,optionheader,open", ""); + set_int(oh_close, 0); + }else { + emit("elm,state,optionheader,close", ""); + set_int(oh_close, 1); + } + }//if + }//script + } + program { name: "show_finished"; + action: SIGNAL_EMIT "elm,action,show,finished" ""; + } + program { name: "pushed_finished"; + action: SIGNAL_EMIT "elm,action,pushed,finished" ""; + } + program { name: "popped_finished"; + action: SIGNAL_EMIT "elm,action,popped,finished" ""; } } } - -- 2.7.4