Add a pane between upper filelist and whatevers going on below, and make sure overlay transition actually occurs.

This commit is contained in:
Jaime Thomas 2008-09-11 21:13:51 +00:00
parent 104bda3a47
commit 599c48ed2b
4 changed files with 91 additions and 10 deletions

View File

@ -28,14 +28,90 @@ group {
}
}
part {
name: "paned_container";
type: RECT;
description {
state: "default" 0.0;
visible: 0;
align: 0.0 0.0;
max: 99999 485;
min: 99999 0;
rel1 {
relative: 0.0 0.0;
offset: 0 145;
}
rel2 {
relative: 1.0 1.0;
offset: 0 0;
}
}
}
part {
name: "paned_draggie";
type: RECT;
dragable {
confine: "paned_container";
x: 0 0 0;
y: -1 1 0;
}
description {
state: "default" 0.0;
min: 99999 9;
color: 0 0 0 20;
rel1 {
relative: 0.0 0.0;
}
rel2 {
relative: 1.0 0.0;
}
}
}
part {
name: "paned_image";
repeat_events: 1;
type: IMAGE;
description {
state: "default" 0.0;
min: 42 5;
max: 42 5;
rel1 {
to_y: "paned_draggie";
relative: 0.0 0.0;
offset: 2 2;
}
rel2 {
to_y: "paned_draggie";
relative: 1.0 1.0;
offset: -3 -3;
}
image {
normal: "paned_v_handle.png";
}
}
}
part {
name: "filelist_container";
type: IMAGE;
description {
state: "default" 0.0;
min: 0 340;
max: 99999 340;
min: 0 130;
max: 99999 640;
align: 0.0 0.0;
color: 255 255 255 0;
@ -44,7 +120,8 @@ group {
}
rel2 {
offset: -5 -5;
to_y: "paned_draggie";
offset: -6 -12;
}
image {
@ -161,7 +238,6 @@ group {
}
program {
name: "filelist,focus,out";
signal: "ecdb,filelist,out";
source: "ecdb";
action: STATE_SET "default" 0.0;

View File

@ -2,4 +2,5 @@ images {
image: "background.png" COMP;
image: "focus.png" COMP;
image: "text_overlay.png" COMP;
image: "paned_v_handle.png" COMP;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 B

View File

@ -156,21 +156,23 @@ _cb_filelist_key_down(void *data, Evas *e __UNUSED__,
ecore_strlcat(text, append, len);
}
edje_object_signal_emit(gui, "ecdb,filelist_overlay,activate",
"ecdb");
/* Avoid sending the same signal twice... seems to skip the
* transition in that case
*/
if (strlen(text) == 1)
edje_object_signal_emit(gui,
"ecdb,filelist_overlay,activate",
"ecdb");
edje_object_part_text_set(gui, "filelist_overlay_text", text);
free(text);
}
/* And timer! */
}
int
ecdb_create_main_gui(void)
{
Evas_Object *gui;
Evas_Object *swallow;
Evas_Object *gui, *swallow, *o;
Ewl_Widget *embed, *filelist;
Evas_Coord x, y, w, h;
@ -233,6 +235,8 @@ ecdb_create_main_gui(void)
_cb_filelist_key_down, gui);
evas_object_show(swallow);
/* Set up the paned stuff necessary */
return TRUE;
}