Improvements in elm/layout/application/toolbar-content-back

Author:    Otavio Pontes <otavio@profusion.mobi>

SVN revision: 54608
This commit is contained in:
Leandro Pereira 2010-11-16 19:49:32 +00:00
parent 020605f4a1
commit 887a29c723
1 changed files with 81 additions and 13 deletions

View File

@ -31242,7 +31242,7 @@ collections {
}
}
/* application with toolbar and main content area with a back button and title area */
/* application with toolbar and main content area with a back and next buttons and title area */
group { name: "elm/layout/application/toolbar-content-back";
parts {
part { name: "elm.swallow.content";
@ -31267,7 +31267,13 @@ collections {
}
}
}
part { name: "elm.text.back";
type: TEXTBLOCK;
entry_mode: PLAIN;
description { state: "default" 0.0;
visible: 0;
}
}
part { name: "back";
type: EXTERNAL;
source: "elm/button";
@ -31284,17 +31290,21 @@ collections {
}
params.string: "label" "Back";
}
}
programs {
program {
signal: "clicked";
source: "back";
action: SIGNAL_EMIT "elm,action,back" "";
description { state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
part { name: "elm.swallow.end";
type: SWALLOW;
part { name: "elm.text.next";
type: TEXTBLOCK;
entry_mode: PLAIN;
description { state: "default" 0.0;
visible: 0;
}
}
part { name: "next";
type: EXTERNAL;
source: "elm/button";
description { state: "default" 0.0;
align: 1.0 0.0;
fixed: 1 1;
@ -31306,9 +31316,67 @@ collections {
relative: 1.0 1.0;
offset: -1 32;
}
params.string: "label" "Next";
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
programs {
program {
signal: "clicked";
source: "back";
action: SIGNAL_EMIT "elm,action,back" "";
}
program {
signal: "elm,back,hide";
source: "elm";
action: STATE_SET "hidden" 0.0;
target: "back";
}
program {
signal: "elm,back,show";
source: "elm";
action: STATE_SET "default" 0.0;
target: "back";
}
program {
signal: "entry,changed";
source: "elm.text.back";
script {
new buf[32];
get_text(PART:"elm.text.back", buf, sizeof(buf));
external_param_set_str(PART:"back", "label", buf);
}
}
program {
signal: "clicked";
source: "next";
action: SIGNAL_EMIT "elm,action,next" "";
}
program {
signal: "elm,next,hide";
source: "elm";
action: STATE_SET "hidden" 0.0;
target: "next";
}
program {
signal: "elm,next,show";
source: "elm";
action: STATE_SET "default" 0.0;
target: "next";
}
program {
signal: "entry,changed";
source: "elm.text.next";
script {
new buf[32];
get_text(PART:"elm.text.next", buf, sizeof(buf));
external_param_set_str(PART:"next", "label", buf);
}
}
}
part { name: "elm.text.title";
type: TEXT;
effect: SOFT_SHADOW;
@ -31320,7 +31388,7 @@ collections {
offset: 2 1;
}
rel2 { to_y: "back";
to_x: "elm.swallow.end";
to_x: "next";
relative: 0.0 1.0;
offset: -3 -1;
}