Lots of work... Add an entry widget (semi-broken), image burning now works, xdnd stuff.

This commit is contained in:
Jaime Thomas
2008-12-09 01:12:16 +00:00
parent cefb0a7a76
commit 32640312d9
19 changed files with 913 additions and 45 deletions

View File

@ -12,4 +12,6 @@ collections {
#include "groups/icons.edc"
#include "groups/erase_disc.edc"
#include "groups/check.edc"
#include "groups/burn_image.edc"
#include "groups/entry.edc"
}

View File

@ -0,0 +1,300 @@
group {
name: "ecdb/burn_image_page";
min: 640 170;
parts {
part {
name: "bg";
type: RECT;
description {
state: "default" 0.0;
color: 0 0 0 0;
rel1 {
relative: 0.0 0.0;
offset: 0 0;
}
rel2 {
relative: 1.0 1.0;
offset: -1 -1;
}
}
description {
state: "before_show" 0.0;
color: 0 0 0 0;
rel1 {
relative: 0.0 0.0;
offset: -33 0;
}
rel2 {
relative: 0.0 0.0;
offset: -1 0;
}
}
description {
state: "hide" 0.0;
color: 0 0 0 0;
rel1 {
relative: 1.0 1.0;
offset: -1 -1;
}
rel2 {
relative: 1.0 1.0;
offset: 33 33;
}
}
}
part {
name: "ecdb/burn_image/return";
type: SWALLOW;
repeat_events: 1;
description {
state: "default" 0.0;
rel1 {
to: "bg";
relative: 0.5 0.0;
offset: 10 5;
}
rel2 {
to: "bg";
relative: 1.0 0.0;
offset: -11 50;
}
}
}
part {
name: "ecdb/burn_image/begin";
type: SWALLOW;
repeat_events: 1;
description {
state: "default" 0.0;
rel1 {
to: "ecdb/burn_image/return";
relative: 0.0 1.0;
offset: 0 5;
}
rel2 {
to: "ecdb/burn_image/return";
relative: 1.0 1.0;
offset: 0 50;
}
}
}
part {
name: "ecdb/burn_image/file";
type: SWALLOW;
repeat_events: 1;
description {
state: "default" 0.0;
rel1 {
to: "ecdb/burn_image/begin";
relative: 0.0 1.0;
offset: 0 5;
}
rel2 {
to: "ecdb/burn_image/begin";
relative: 1.0 1.0;
offset: 0 30;
}
}
}
part {
name: "progress_outline";
type: IMAGE;
mouse_events: 0;
description {
state: "default" 0.0;
rel1 {
to: "bg";
relative: 0.0 0.0;
offset: 10 13;
}
rel2 {
to: "bg";
relative: 0.5 1.0;
offset: -1 -10;
}
image {
normal: "frame_outline.png";
border: 9 9 9 9;
}
}
}
part {
name: "progress_text";
type: TEXT;
effect: SOFT_SHADOW;
description {
state: "default" 0.0;
fixed: 1 1;
color: 200 200 200 255;
color3: 20 20 20 255;
rel1 {
to: "progress_outline";
relative: 0.0 0.7;
offset: 5 5;
}
rel2 {
to: "progress_outline";
relative: 1.0 1.0;
offset: -6 -6;
}
text {
text: "Begin Burn";
font: "ecdb/default";
min: 1 1;
size: 24;
align: 0.5 0.5;
}
}
description {
state: "fade" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0;
}
}
part {
name: "progress_percent";
type: TEXT;
effect: SOFT_SHADOW;
description {
state: "default" 0.0;
fixed: 1 1;
color: 200 200 200 255;
color3: 20 20 20 255;
rel1 {
to: "progress_outline";
relative: 0.0 0.0;
offset: 5 5;
}
rel2 {
to: "progress_outline";
relative: 1.0 0.7;
offset: -6 -6;
}
text {
text: "0%";
font: "ecdb/default";
min: 1 1;
size: 72;
align: 0.5 0.5;
}
}
}
part {
name: "disabled_hack";
type: RECT;
mouse_events: 1;
description {
state: "default" 0.0;
visible: 0;
rel1 {
to: "bg";
relative: 0.5 0.0;
offset: 0 0;
}
rel2 {
to: "bg";
relative: 1.0 1.0;
offset: -1 -1;
}
}
description {
state: "visible" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0;
visible: 1;
}
}
}
programs {
program {
name: "burn_image_page,visible1";
signal: "ecdb,burn_image_page,visible";
source: "ecdb";
action: STATE_SET "before_show" 0.0;
target: "bg";
after: "burn_image_page,visible2";
}
program {
name: "burn_image_page,visible2";
action: STATE_SET "default" 0.0;
target: "bg";
transition: DECELERATE 0.5;
}
program {
name: "burn_image_page,hide";
signal: "ecdb,burn_image_page,hide";
source: "ecdb";
action: STATE_SET "hide" 0.0;
target: "bg";
transition: DECELERATE 0.5;
after: "hide,finished";
}
program {
name: "burn_image_page,controls_disable";
signal: "ecdb,burn_image,start";
source: "ecdb";
action: STATE_SET "visible" 0.0;
target: "disabled_hack";
}
program {
name: "burn_image_page,controls_enable";
signal: "ecdb,burn_image,done";
source: "ecdb";
action: STATE_SET "default" 0.0;
target: "disabled_hack";
}
program {
name: "hide,finished";
action: SIGNAL_EMIT "hide,finished" "burn_image_page";
}
}
}

View File

@ -12,16 +12,6 @@ group {
min: 0 26;
color: 255 255 255 178;
rel1 {
relative: 0.0 0.0;
offset: 3 4;
}
rel2 {
relative: 1.0 1.0;
offset: -4 -5;
}
image {
normal: "button_base.png";
border: 7 7 7 7;

View File

@ -0,0 +1,176 @@
group {
name: "ecdb/entry";
min: 18 18;
styles {
style {
name: "entry_default";
base: "font=ecdb/default font_size=11 align=left color=#000 wrap=none";
tag: "br" "\n";
tag: "tab" "\t";
tag: "hilight" "+ font=Sans:style:Bold";
// Need any tags?
}
}
parts {
part {
name: "entry";
description {
state: "default" 0.0;
image {
normal: "entry.png";
border: 6 6 8 7;
}
}
description {
state: "disabled" 0.0;
inherit: "default" 0.0;
color: 255 255 255 128;
}
}
part {
name: "entry_focus";
description {
state: "default" 0.0;
color: 255 255 255 0;
image {
normal: "entry_focus.png";
border: 7 7 8 7;
middle: 0;
}
fill {
smooth: 0;
}
}
description {
state: "focused" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
}
}
part {
name: "label";
type: TEXTBLOCK;
mouse_events: 1;
entry_mode: EDITABLE;
multiline: 0;
source2: "entry/selection/default";
source3: "entry/cursor/default";
description {
state: "default" 0.0;
text {
style: "entry_default";
min: 1 1;
}
rel1 {
to: "entry";
offset: 5 3;
}
rel2 {
to: "entry";
offset: -2 -2;
}
}
}
}
programs {
program {
name: "focus1";
action: FOCUS_SET;
signal: "mouse,down,*";
source: "*";
target: "label";
}
program {
name: "focus2";
action: STATE_SET "focused" 0.0;
signal: "mouse,down,*";
source: "*";
target: "entry_focus";
transition: DECELERATE 0.5;
}
program {
name: "focus_out";
signal: "ecdb,focus,out";
action: STATE_SET "default" 0.0;
source: "ecdb";
target: "entry_focus";
transition: DECELERATE 0.5;
}
program {
name: "disable";
signal: "ecdb,disable";
action: STATE_SET "disabled" 0.0;
source: "ecdb";
target: "entry";
}
program {
name: "enable";
signal: "ecdb,enable";
action: STATE_SET "default" 0.0;
source: "ecdb";
target: "entry";
}
}
}
group {
name: "entry/cursor/default";
parts {
part {
name: "cursor";
type: RECT;
mouse_events: 0;
description {
state: "default" 0.0;
color: 0 0 0 255;
min: 1 1;
rel1 {
relative: 0.0 0.0;
offset: 1 3;
}
rel2 {
relative: 0.0 1.0;
offset: 0 -2;
}
}
}
}
}
group {
name: "entry/selection/default";
parts {
part {
name: "selection";
type: RECT;
mouse_events: 0;
description {
state: "default" 0.0;
color: 138 171 225 128;
}
}
}
}

View File

@ -64,13 +64,13 @@ group {
rel1 {
to: "bg";
relative: 0.5 0.0;
offset: 10 10;
offset: 10 5;
}
rel2 {
to: "bg";
relative: 1.0 0.3;
offset: -11 -11;
relative: 1.0 0.0;
offset: -11 50;
}
}
}
@ -84,15 +84,15 @@ group {
state: "default" 0.0;
rel1 {
to: "bg";
relative: 0.5 0.3;
offset: 10 10;
to: "ecdb/erase/return";
relative: 0.0 1.0;
offset: 0 5;
}
rel2 {
to: "bg";
relative: 1.0 0.6;
offset: -11 -11;
to: "ecdb/erase/return";
relative: 1.0 1.0;
offset: 0 50;
}
}
}
@ -106,15 +106,15 @@ group {
state: "default" 0.0;
rel1 {
to: "bg";
relative: 0.5 0.6;
offset: 10 10;
to: "ecdb/erase/begin";
relative: 0.0 1.0;
offset: 0 5;
}
rel2 {
to: "bg";
relative: 1.0 0.9;
offset: -11 -11;
to: "ecdb/erase/begin";
relative: 1.0 1.0;
offset: 0 30;
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 B

View File

@ -18,4 +18,6 @@ images {
image: "check_focus.png" COMP;
image: "check_shadow.png" COMP;
image: "button_disabled.png" COMP;
image: "entry.png" COMP;
image: "entry_focus.png" COMP;
}