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"; group { name: "elm/layout/application/toolbar-content-back";
parts { parts {
part { name: "elm.swallow.content"; 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"; part { name: "back";
type: EXTERNAL; type: EXTERNAL;
source: "elm/button"; source: "elm/button";
@ -31284,17 +31290,21 @@ collections {
} }
params.string: "label" "Back"; params.string: "label" "Back";
} }
} description { state: "hidden" 0.0;
programs { inherit: "default" 0.0;
program { visible: 0;
signal: "clicked";
source: "back";
action: SIGNAL_EMIT "elm,action,back" "";
} }
} }
part { name: "elm.text.next";
part { name: "elm.swallow.end"; type: TEXTBLOCK;
type: SWALLOW; entry_mode: PLAIN;
description { state: "default" 0.0;
visible: 0;
}
}
part { name: "next";
type: EXTERNAL;
source: "elm/button";
description { state: "default" 0.0; description { state: "default" 0.0;
align: 1.0 0.0; align: 1.0 0.0;
fixed: 1 1; fixed: 1 1;
@ -31306,9 +31316,67 @@ collections {
relative: 1.0 1.0; relative: 1.0 1.0;
offset: -1 32; 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"; part { name: "elm.text.title";
type: TEXT; type: TEXT;
effect: SOFT_SHADOW; effect: SOFT_SHADOW;
@ -31320,7 +31388,7 @@ collections {
offset: 2 1; offset: 2 1;
} }
rel2 { to_y: "back"; rel2 { to_y: "back";
to_x: "elm.swallow.end"; to_x: "next";
relative: 0.0 1.0; relative: 0.0 1.0;
offset: -3 -1; offset: -3 -1;
} }