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;
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";
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";
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);
}
}
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);
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) {
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;
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";
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);
}
}
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);
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) {
}
}
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;
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;
}
}
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;
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;
}
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;
}
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;
}
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"; }
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"; }
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" "";
}
}
}
-