And finish off the formatting stuff

This commit is contained in:
Jaime Thomas 2008-12-09 20:18:11 +00:00
parent 0df8afd566
commit 1e89162f2b
9 changed files with 1681 additions and 1672 deletions

View File

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

View File

@ -1,327 +1,328 @@
/* vim: set sw=3 ts=3 sts=3 expandtab: */
group { group {
name: "ecdb/button"; name: "ecdb/button";
parts { parts {
part { part {
name: "base"; name: "base";
type: IMAGE; type: IMAGE;
mouse_events: 1; mouse_events: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 0 26; min: 0 26;
color: 255 255 255 178; color: 255 255 255 178;
image { image {
normal: "button_base.png"; normal: "button_base.png";
border: 7 7 7 7; border: 7 7 7 7;
} }
} }
} }
part { part {
name: "button_clip"; name: "button_clip";
type: RECT; type: RECT;
mouse_events: 1; mouse_events: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
color: 255 255 255 255; color: 255 255 255 255;
rel1 { rel1 {
to: "base"; to: "base";
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 3 1; offset: 3 1;
} }
rel2 { rel2 {
to: "base"; to: "base";
relative: 1.0 1.0; relative: 1.0 1.0;
offset: -4 -2; offset: -4 -2;
} }
} }
} }
part { part {
name: "focus_clip"; name: "focus_clip";
type: RECT; type: RECT;
mouse_events: 1; mouse_events: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
color: 255 255 255 0; color: 255 255 255 0;
rel1 { rel1 {
to: "button"; to: "button";
offset: -1 0; offset: -1 0;
} }
rel2 { rel2 {
to: "button"; to: "button";
offset: 0 -1; offset: 0 -1;
} }
} }
description { description {
state: "visible" 0.0; state: "visible" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 255; color: 255 255 255 255;
} }
} }
part { part {
name: "focus"; name: "focus";
type: IMAGE; type: IMAGE;
mouse_events: 1; mouse_events: 1;
clip_to: "focus_clip"; clip_to: "focus_clip";
description { description {
state: "default" 0.0; state: "default" 0.0;
rel1 { rel1 {
to: "focus_clip"; to: "focus_clip";
} }
rel2 { rel2 {
to: "focus_clip"; to: "focus_clip";
} }
image { image {
normal: "focus.png"; normal: "focus.png";
border: 7 7 7 7; border: 7 7 7 7;
} }
} }
} }
part { part {
name: "button"; name: "button";
type: IMAGE; type: IMAGE;
mouse_events: 1; mouse_events: 1;
clip_to: "button_clip"; clip_to: "button_clip";
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 0 24; min: 0 24;
rel1 { rel1 {
to: "button_clip"; to: "button_clip";
} }
rel2 { rel2 {
to: "button_clip"; to: "button_clip";
} }
image { image {
normal: "button.png"; normal: "button.png";
border: 7 7 7 7; border: 7 7 7 7;
} }
} }
description { description {
state: "disabled" 0.0; state: "disabled" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
image { image {
normal: "button_disabled.png"; normal: "button_disabled.png";
border: 11 11 10 10; border: 11 11 10 10;
} }
} }
} }
part { part {
name: "shadow"; name: "shadow";
type: IMAGE; type: IMAGE;
mouse_events: 1; mouse_events: 1;
clip_to: "button_clip"; clip_to: "button_clip";
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 0 24; min: 0 24;
color: 255 255 255 0; color: 255 255 255 0;
rel1 { rel1 {
to: "button_clip"; to: "button_clip";
} }
rel2 { rel2 {
to: "button_clip"; to: "button_clip";
} }
image { image {
normal: "button_shadow.png"; normal: "button_shadow.png";
border: 6 6 0 6; border: 6 6 0 6;
} }
} }
description { description {
state: "clicked" 0.0; state: "clicked" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 255; color: 255 255 255 255;
} }
} }
part { part {
name: "shadow_overlay"; name: "shadow_overlay";
type: IMAGE; type: IMAGE;
mouse_events: 1; mouse_events: 1;
clip_to: "button_clip"; clip_to: "button_clip";
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 0 24; min: 0 24;
color: 255 255 255 0; color: 255 255 255 0;
rel1 { rel1 {
to: "button_clip"; to: "button_clip";
} }
rel2 { rel2 {
to: "button_clip"; to: "button_clip";
} }
image { image {
normal: "button_shadow_overlay.png"; normal: "button_shadow_overlay.png";
border: 6 6 6 13; border: 6 6 6 13;
} }
} }
description { description {
state: "clicked" 0.0; state: "clicked" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 255; color: 255 255 255 255;
} }
} }
part { part {
name: "minimum.size.hack"; name: "minimum.size.hack";
type: RECT; type: RECT;
mouse_events: 1; mouse_events: 1;
clip_to: "button_clip"; clip_to: "button_clip";
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 88 24; min: 88 24;
color: 0 0 0 0; color: 0 0 0 0;
rel1 { rel1 {
to: "button_clip"; to: "button_clip";
} }
rel2 { rel2 {
to: "button_clip"; to: "button_clip";
} }
} }
} }
part { part {
name: "label"; name: "label";
type: TEXT; type: TEXT;
mouse_events: 1; mouse_events: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
align: 0.0 0.5; align: 0.0 0.5;
color: 60 60 60 255; color: 60 60 60 255;
fixed: 1 1; fixed: 1 1;
rel1 { rel1 {
to: "icon"; to: "icon";
offset: 40 0; offset: 40 0;
} }
rel2 { rel2 {
to: "icon"; to: "icon";
} }
text { text {
text: "Burn Audio CD"; text: "Burn Audio CD";
font: "ecdb/default"; font: "ecdb/default";
min: 1 1; min: 1 1;
size: 11; size: 11;
align: 0.5 0.5; align: 0.5 0.5;
} }
} }
} }
part { part {
name: "icon"; name: "icon";
type: SWALLOW; type: SWALLOW;
mouse_events: 1; mouse_events: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
max: 32 32; max: 32 32;
align: 0.0 0.5; align: 0.0 0.5;
rel1 { rel1 {
to: "button_clip"; to: "button_clip";
offset: 15 0; offset: 15 0;
} }
rel2 { rel2 {
to: "button_clip"; to: "button_clip";
} }
} }
} }
} }
programs { programs {
program { program {
name: "clicked"; name: "clicked";
action: STATE_SET "clicked" 0.0; action: STATE_SET "clicked" 0.0;
signal: "mouse,down,1"; signal: "mouse,down,1";
source: "*"; source: "*";
target: "shadow_overlay"; target: "shadow_overlay";
target: "shadow"; target: "shadow";
transition: DECELERATE 0.2; transition: DECELERATE 0.2;
} }
program { program {
name: "focus_in"; name: "focus_in";
signal: "ecdb,button,in"; signal: "ecdb,button,in";
signal: "mouse,down,1"; signal: "mouse,down,1";
action: STATE_SET "visible" 0.0; action: STATE_SET "visible" 0.0;
source: "*"; source: "*";
target: "focus_clip"; target: "focus_clip";
transition: DECELERATE 0.5; transition: DECELERATE 0.5;
} }
program { program {
name: "unclick"; name: "unclick";
signal: "mouse,clicked,1"; signal: "mouse,clicked,1";
signal: "mouse,up,1"; signal: "mouse,up,1";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
source: "*"; source: "*";
target: "shadow_overlay"; target: "shadow_overlay";
target: "shadow"; target: "shadow";
transition: DECELERATE 0.2; transition: DECELERATE 0.2;
} }
program { program {
name: "focus_out"; name: "focus_out";
signal: "ecdb,focus,out"; signal: "ecdb,focus,out";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
source: "ecdb"; source: "ecdb";
target: "focus_clip"; target: "focus_clip";
transition: DECELERATE 0.5; transition: DECELERATE 0.5;
} }
program { program {
name: "disable"; name: "disable";
signal: "ecdb,disable"; signal: "ecdb,disable";
action: STATE_SET "disabled" 0.0; action: STATE_SET "disabled" 0.0;
source: "ecdb"; source: "ecdb";
target: "button"; target: "button";
} }
program { program {
name: "enable"; name: "enable";
signal: "ecdb,enable"; signal: "ecdb,enable";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
source: "ecdb"; source: "ecdb";
target: "button"; target: "button";
} }
} }
} }

View File

@ -1,257 +1,258 @@
/* vim: set sw=3 ts=3 sts=3 expandtab: */
group { group {
name: "ecdb/check"; name: "ecdb/check";
script { script {
public s; public s;
public toggle_state() { public toggle_state() {
if (get_int(s) == 0) if (get_int(s) == 0)
{ {
set_state(PART:"check", "active", 0.0); set_state(PART:"check", "active", 0.0);
emit("ecdb,check,checked", "ecdb/check"); emit("ecdb,check,checked", "ecdb/check");
set_int(s, 1); set_int(s, 1);
} }
else else
{ {
set_state(PART:"check", "default", 0.0); set_state(PART:"check", "default", 0.0);
emit("ecdb,check,unchecked", "ecdb/check"); emit("ecdb,check,unchecked", "ecdb/check");
set_int(s, 0); set_int(s, 0);
} }
} }
} }
parts { parts {
part { part {
name: "check_base"; name: "check_base";
type: IMAGE; type: IMAGE;
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 20 18; min: 20 18;
max: 20 18; max: 20 18;
fixed: 1 1; fixed: 1 1;
align: 0.0 0.5; align: 0.0 0.5;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 2 2; offset: 2 2;
} }
rel2 { rel2 {
relative: 0.0 1.0; relative: 0.0 1.0;
offset: 2 -3; offset: 2 -3;
} }
image { image {
normal: "check_base.png"; normal: "check_base.png";
} }
} }
description { description {
state: "disabled" 0.0; state: "disabled" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 128; color: 255 255 255 128;
} }
} }
part { part {
name: "check_shadow"; name: "check_shadow";
type: IMAGE; type: IMAGE;
description { description {
state: "default" 0.0; state: "default" 0.0;
color: 255 255 255 128; color: 255 255 255 128;
image.normal: "check_shadow.png"; image.normal: "check_shadow.png";
rel1 { rel1 {
to: "check"; to: "check";
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 0 1; offset: 0 1;
} }
rel2 { rel2 {
to: "check"; to: "check";
relative: 1.0 1.0; relative: 1.0 1.0;
offset: -1 -1; offset: -1 -1;
} }
} }
description { description {
state: "focused" 0.0; state: "focused" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 255; color: 255 255 255 255;
image.normal: "check_focus.png"; image.normal: "check_focus.png";
rel1 { rel1 {
to: "check"; to: "check";
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 0 0; offset: 0 0;
} }
rel2 { rel2 {
to: "check"; to: "check";
relative: 1.0 1.0; relative: 1.0 1.0;
offset: -1 -1; offset: -1 -1;
} }
} }
description { description {
state: "disabled" 0.0; state: "disabled" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 0; color: 255 255 255 0;
} }
} }
part { part {
name: "check"; name: "check";
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 20 18; min: 20 18;
max: 20 18; max: 20 18;
fixed: 1 1; fixed: 1 1;
align: 0.0 0.5; align: 0.0 0.5;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 2 2; offset: 2 2;
} }
rel2 { rel2 {
relative: 0.0 1.0; relative: 0.0 1.0;
offset: 2 -3; offset: 2 -3;
} }
image { image {
normal: "check0.png"; normal: "check0.png";
} }
} }
description { description {
state: "active" 0.0; state: "active" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
image { image {
normal: "check2.png"; normal: "check2.png";
} }
} }
description { description {
state: "disabled_unsel" 0.0; state: "disabled_unsel" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 128; color: 255 255 255 128;
} }
description { description {
state: "disabled_sel" 0.0; state: "disabled_sel" 0.0;
inherit: "active" 0.0; inherit: "active" 0.0;
color: 255 255 255 128; color: 255 255 255 128;
} }
} }
part { part {
name: "label"; name: "label";
type: TEXT; type: TEXT;
description { description {
state: "default" 0.0; state: "default" 0.0;
color: 60 60 60 255; color: 60 60 60 255;
fixed: 1 1; fixed: 1 1;
rel1 { rel1 {
to: "check"; to: "check";
offset: 25 0; offset: 25 0;
} }
rel2 { rel2 {
relative: 1.0 1.0; relative: 1.0 1.0;
to_y: "check"; to_y: "check";
offset: -1 0; offset: -1 0;
} }
text { text {
text: "Change Burn Speed"; text: "Change Burn Speed";
font: "ecdb/default"; font: "ecdb/default";
min: 1 1; min: 1 1;
size: 11; size: 11;
align: 0.0 0.5; align: 0.0 0.5;
} }
} }
} }
} }
programs { programs {
program { program {
name: "focus_in"; name: "focus_in";
signal: "ecdb,focus,in"; signal: "ecdb,focus,in";
signal: "mouse,down,1"; signal: "mouse,down,1";
action: STATE_SET "focused" 0.0; action: STATE_SET "focused" 0.0;
source: "*"; source: "*";
target: "check_shadow"; target: "check_shadow";
} }
program { program {
name: "focus_out"; name: "focus_out";
signal: "ecdb,focus,out"; signal: "ecdb,focus,out";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
source: "ecdb"; source: "ecdb";
target: "check_shadow"; target: "check_shadow";
} }
program { program {
name: "clicked"; name: "clicked";
signal: "mouse,down,1"; signal: "mouse,down,1";
source: "*"; source: "*";
script { script {
toggle_state(); toggle_state();
} }
} }
program { program {
name: "disabled"; name: "disabled";
signal: "ecdb,disable"; signal: "ecdb,disable";
source: "ecdb"; source: "ecdb";
action: STATE_SET "disabled" 0.0; action: STATE_SET "disabled" 0.0;
target: "check_base"; target: "check_base";
target: "check_shadow"; target: "check_shadow";
} }
program { program {
name: "disabled_check"; name: "disabled_check";
signal: "ecdb,disable"; signal: "ecdb,disable";
source: "ecdb"; source: "ecdb";
script { script {
if (get_int(s) == 1) if (get_int(s) == 1)
set_state(PART:"check", "disabled_sel", set_state(PART:"check", "disabled_sel",
0.0); 0.0);
else else
set_state(PART:"check", set_state(PART:"check",
"disabled_unsel", 0.0); "disabled_unsel", 0.0);
} }
} }
program { program {
name: "enabled"; name: "enabled";
signal: "ecdb,enable"; signal: "ecdb,enable";
source: "ecdb"; source: "ecdb";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
target: "check_base"; target: "check_base";
target: "check_shadow"; target: "check_shadow";
} }
program { program {
name: "enabled_check"; name: "enabled_check";
signal: "ecdb,enable"; signal: "ecdb,enable";
source: "ecdb"; source: "ecdb";
script { script {
if (get_int(s) == 1) if (get_int(s) == 1)
set_state(PART:"check", "active", 0.0); set_state(PART:"check", "active", 0.0);
else else
set_state(PART:"check", "default", 0.0); set_state(PART:"check", "default", 0.0);
} }
} }
} }
} }

View File

@ -1,3 +1,4 @@
/* vim: set sw=3 ts=3 sts=3 expandtab: */
group { group {
name: "ecdb/entry"; name: "ecdb/entry";
min: 18 18; min: 18 18;

View File

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

View File

@ -1,127 +1,128 @@
/* vim: set sw=3 ts=3 sts=3 expandtab: */
group { group {
name: "ecdb/burn_data"; name: "ecdb/burn_data";
min: 32 32; min: 32 32;
parts { parts {
part { part {
name: "image"; name: "image";
type: IMAGE; type: IMAGE;
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 32 32; min: 32 32;
max: 32 32; max: 32 32;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 0 0; offset: 0 0;
} }
rel2 { rel2 {
relative: 1.0 1.0; relative: 1.0 1.0;
offset: -1 -1; offset: -1 -1;
} }
image { image {
normal: "drive_optical.png"; normal: "drive_optical.png";
} }
} }
} }
} }
} }
group { group {
name: "ecdb/burn_audio"; name: "ecdb/burn_audio";
min: 32 32; min: 32 32;
parts { parts {
part { part {
name: "image"; name: "image";
type: IMAGE; type: IMAGE;
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 32 32; min: 32 32;
max: 32 32; max: 32 32;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 0 0; offset: 0 0;
} }
rel2 { rel2 {
relative: 1.0 1.0; relative: 1.0 1.0;
offset: -1 -1; offset: -1 -1;
} }
image { image {
normal: "audio.png"; normal: "audio.png";
} }
} }
} }
} }
} }
group { group {
name: "ecdb/erase"; name: "ecdb/erase";
min: 32 32; min: 32 32;
parts { parts {
part { part {
name: "image"; name: "image";
type: IMAGE; type: IMAGE;
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 32 32; min: 32 32;
max: 32 32; max: 32 32;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 0 0; offset: 0 0;
} }
rel2 { rel2 {
relative: 1.0 1.0; relative: 1.0 1.0;
offset: -1 -1; offset: -1 -1;
} }
image { image {
normal: "clear.png"; normal: "clear.png";
} }
} }
} }
} }
} }
group { group {
name: "ecdb/burn_image"; name: "ecdb/burn_image";
min: 32 32; min: 32 32;
parts { parts {
part { part {
name: "image"; name: "image";
type: IMAGE; type: IMAGE;
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 32 32; min: 32 32;
max: 32 32; max: 32 32;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 0 0; offset: 0 0;
} }
rel2 { rel2 {
relative: 1.0 1.0; relative: 1.0 1.0;
offset: -1 -1; offset: -1 -1;
} }
image { image {
normal: "iso.png"; normal: "iso.png";
} }
} }
} }
} }
} }

View File

@ -1,178 +1,179 @@
/* vim: set sw=3 ts=3 sts=3 expandtab: */
group { group {
name: "ecdb/welcome_page"; name: "ecdb/welcome_page";
min: 640 170; min: 640 170;
parts { parts {
part { part {
name: "bg"; name: "bg";
type: RECT; type: RECT;
description { description {
state: "default" 0.0; state: "default" 0.0;
color: 0 0 0 0; color: 0 0 0 0;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 0 0; offset: 0 0;
} }
rel2 { rel2 {
relative: 1.0 1.0; relative: 1.0 1.0;
offset: 0 0; offset: 0 0;
} }
} }
description { description {
state: "hidden" 0.0; state: "hidden" 0.0;
color: 0 0 0 0; color: 0 0 0 0;
rel1 { rel1 {
relative: 1.0 1.0; relative: 1.0 1.0;
offset: -1 -1; offset: -1 -1;
} }
rel2 { rel2 {
relative: 1.0 1.0; relative: 1.0 1.0;
offset: 33 33; offset: 33 33;
} }
} }
description { description {
state: "before_show" 0.0; state: "before_show" 0.0;
color: 0 0 0 0; color: 0 0 0 0;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
offset: -33 0; offset: -33 0;
} }
rel2 { rel2 {
relative: 0.0 0.0; relative: 0.0 0.0;
offset: -1 0; offset: -1 0;
} }
} }
} }
part { part {
name: "ecdb/burn_data"; name: "ecdb/burn_data";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
rel1 { rel1 {
to: "bg"; to: "bg";
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 10 10; offset: 10 10;
} }
rel2 { rel2 {
to: "bg"; to: "bg";
relative: 0.5 0.5; relative: 0.5 0.5;
offset: -11 -11; offset: -11 -11;
} }
} }
} }
part { part {
name: "ecdb/burn_audio"; name: "ecdb/burn_audio";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
rel1 { rel1 {
to: "bg"; to: "bg";
relative: 0.5 0.0; relative: 0.5 0.0;
offset: 10 10; offset: 10 10;
} }
rel2 { rel2 {
to: "bg"; to: "bg";
relative: 1.0 0.5; relative: 1.0 0.5;
offset: -11 -11; offset: -11 -11;
} }
} }
} }
part { part {
name: "ecdb/burn_image"; name: "ecdb/burn_image";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
rel1 { rel1 {
to: "bg"; to: "bg";
relative: 0.0 0.5; relative: 0.0 0.5;
offset: 10 10; offset: 10 10;
} }
rel2 { rel2 {
to: "bg"; to: "bg";
relative: 0.5 1.0; relative: 0.5 1.0;
offset: -11 -11; offset: -11 -11;
} }
} }
} }
part { part {
name: "ecdb/erase"; name: "ecdb/erase";
type: SWALLOW; type: SWALLOW;
repeat_events: 1; repeat_events: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
rel1 { rel1 {
to: "bg"; to: "bg";
relative: 0.5 0.5; relative: 0.5 0.5;
offset: 10 10; offset: 10 10;
} }
rel2 { rel2 {
to: "bg"; to: "bg";
relative: 1.0 1.0; relative: 1.0 1.0;
offset: -11 -11; offset: -11 -11;
} }
} }
} }
} }
programs { programs {
program { program {
name: "welcome_page,hide"; name: "welcome_page,hide";
signal: "ecdb,welcome_page,hide"; signal: "ecdb,welcome_page,hide";
source: "ecdb"; source: "ecdb";
action: STATE_SET "hidden" 0.0; action: STATE_SET "hidden" 0.0;
transition: DECELERATE 0.5; transition: DECELERATE 0.5;
target: "bg"; target: "bg";
after: "hide,finished"; after: "hide,finished";
} }
program { program {
name: "hide,finished"; name: "hide,finished";
action: SIGNAL_EMIT "hide,finished" "welcome_page"; action: SIGNAL_EMIT "hide,finished" "welcome_page";
} }
program { program {
name: "welcome_page,show1"; name: "welcome_page,show1";
signal: "ecdb,welcome_page,show"; signal: "ecdb,welcome_page,show";
source: "ecdb"; source: "ecdb";
after: "welcome_page,show2"; after: "welcome_page,show2";
action: STATE_SET "before_show" 0.0; action: STATE_SET "before_show" 0.0;
target: "bg"; target: "bg";
} }
program { program {
name: "welcome_page,show2"; name: "welcome_page,show2";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
transition: DECELERATE 0.5; transition: DECELERATE 0.5;
target: "bg"; target: "bg";
} }
} }
} }

View File

@ -1,388 +1,389 @@
/* vim: set sw=3 ts=3 sts=3 expandtab: */
group { group {
name: "ecdb/window"; name: "ecdb/window";
min: 640 350; min: 640 350;
parts { parts {
part { part {
name: "background"; name: "background";
mouse_events: 0; mouse_events: 0;
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 640 350; min: 640 350;
max: 999999 999999; max: 999999 999999;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 0 0; offset: 0 0;
} }
rel2 { rel2 {
relative: 1.0 1.0; relative: 1.0 1.0;
offset: -1 -1; offset: -1 -1;
} }
image { image {
normal: "background.png"; normal: "background.png";
} }
} }
} }
part { part {
name: "paned_container"; name: "paned_container";
type: RECT; type: RECT;
description { description {
state: "default" 0.0; state: "default" 0.0;
visible: 0; visible: 0;
align: 0.0 0.0; align: 0.0 0.0;
max: 99999 99999; max: 99999 99999;
min: 99999 0; min: 99999 0;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 0 0; offset: 0 0;
} }
rel2 { rel2 {
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 0 0; offset: 0 0;
} }
} }
description { description {
state: "visible" 0.0; state: "visible" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 0 145; offset: 0 145;
} }
rel2 { rel2 {
relative: 1.0 1.0; relative: 1.0 1.0;
offset: 0 -175; offset: 0 -175;
} }
} }
} }
part { part {
name: "paned_draggie"; name: "paned_draggie";
type: RECT; type: RECT;
dragable { dragable {
confine: "paned_container"; confine: "paned_container";
x: 0 0 0; x: 0 0 0;
y: -1 1 0; y: -1 1 0;
} }
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 99999 9; min: 99999 9;
color: 0 0 0 20; color: 0 0 0 20;
rel1 { rel1 {
relative: 0.0 0.0; relative: 0.0 0.0;
} }
rel2 { rel2 {
relative: 1.0 0.0; relative: 1.0 0.0;
} }
} }
description { description {
state: "active" 0.0; state: "active" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 0 0 0 80; color: 0 0 0 80;
} }
} }
part { part {
name: "paned_image"; name: "paned_image";
repeat_events: 1; repeat_events: 1;
type: IMAGE; type: IMAGE;
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 42 5; min: 42 5;
max: 42 5; max: 42 5;
color: 255 255 255 255; color: 255 255 255 255;
rel1 { rel1 {
to_y: "paned_draggie"; to_y: "paned_draggie";
relative: 0.0 0.0; relative: 0.0 0.0;
offset: 2 2; offset: 2 2;
} }
rel2 { rel2 {
to_y: "paned_draggie"; to_y: "paned_draggie";
relative: 1.0 1.0; relative: 1.0 1.0;
offset: -3 -3; offset: -3 -3;
} }
image { image {
normal: "paned_v_handle.png"; normal: "paned_v_handle.png";
} }
} }
} }
part { part {
name: "filelist_clip"; name: "filelist_clip";
type: RECT; type: RECT;
description { description {
state: "default" 0.0; state: "default" 0.0;
visible: 0; visible: 0;
rel1 { rel1 {
offset: 5 5; offset: 5 5;
} }
rel2 { rel2 {
to_y: "paned_draggie"; to_y: "paned_draggie";
offset: -6 -12; offset: -6 -12;
} }
} }
description { description {
state: "visible" 0.0; state: "visible" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
visible: 1; visible: 1;
} }
} }
part { part {
name: "filelist_container"; name: "filelist_container";
type: IMAGE; type: IMAGE;
clip_to: "filelist_clip"; clip_to: "filelist_clip";
description { description {
state: "default" 0.0; state: "default" 0.0;
color: 255 255 255 0; color: 255 255 255 0;
rel1 { rel1 {
offset: 5 5; offset: 5 5;
} }
rel2 { rel2 {
to_y: "paned_draggie"; to_y: "paned_draggie";
offset: -6 -12; offset: -6 -12;
} }
image { image {
normal: "focus.png"; normal: "focus.png";
border: 7 7 7 7; border: 7 7 7 7;
} }
} }
description { description {
state: "focused" 0.0; state: "focused" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 155; color: 255 255 255 155;
} }
} }
part { part {
name: "filelist"; name: "filelist";
type: SWALLOW; type: SWALLOW;
clip_to: "filelist_clip"; clip_to: "filelist_clip";
description { description {
state: "default" 0.0; state: "default" 0.0;
rel1 { rel1 {
to: "filelist_container"; to: "filelist_container";
offset: 3 3; offset: 3 3;
} }
rel2 { rel2 {
to: "filelist_container"; to: "filelist_container";
offset: -4 -4; offset: -4 -4;
} }
} }
} }
part { part {
name: "filelist_overlay"; name: "filelist_overlay";
type: IMAGE; type: IMAGE;
clip_to: "filelist_clip"; clip_to: "filelist_clip";
mouse_events: 1; mouse_events: 1;
repeat_events: 1; repeat_events: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
color: 255 255 255 0; color: 255 255 255 0;
rel1 { rel1 {
to: "filelist"; to: "filelist";
} }
rel2 { rel2 {
to: "filelist"; to: "filelist";
} }
image { image {
normal: "text_overlay.png"; normal: "text_overlay.png";
border: 7 7 7 7; border: 7 7 7 7;
} }
} }
description { description {
state: "active" 0.0; state: "active" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 100; color: 255 255 255 100;
} }
} }
part { part {
name: "filelist_overlay_text"; name: "filelist_overlay_text";
type: TEXT; type: TEXT;
effect: NONE; effect: NONE;
clip_to: "filelist_clip"; clip_to: "filelist_clip";
mouse_events: 1; mouse_events: 1;
repeat_events: 1; repeat_events: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
align: 0.5 0.5; align: 0.5 0.5;
color: 255 255 255 0; color: 255 255 255 0;
rel1 { rel1 {
to: "filelist_overlay"; to: "filelist_overlay";
relative: 0.0 0.0; relative: 0.0 0.0;
} }
rel2 { rel2 {
to: "filelist_overlay"; to: "filelist_overlay";
relative: 1.0 1.0; relative: 1.0 1.0;
} }
text { text {
text: ""; text: "";
font: "ecdb/default"; font: "ecdb/default";
size: 24; size: 24;
align: 0.5 0.5; align: 0.5 0.5;
} }
} }
description { description {
state: "active" 0.0; state: "active" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 255; color: 255 255 255 255;
} }
} }
part { part {
name: "action_area"; name: "action_area";
type: SWALLOW; type: SWALLOW;
mouse_events: 1; mouse_events: 1;
repeat_events: 1; repeat_events: 1;
description { description {
state: "default" 0.0; state: "default" 0.0;
min: 640 170; min: 640 170;
rel1 { rel1 {
to: "paned_draggie"; to: "paned_draggie";
offset: 0 12; offset: 0 12;
} }
rel2 { rel2 {
relative: 1.0 1.0; relative: 1.0 1.0;
offset: -1 -1; offset: -1 -1;
} }
} }
} }
} }
programs { programs {
program { program {
name: "filelist,visible"; name: "filelist,visible";
signal: "ecdb,filelist,visible"; signal: "ecdb,filelist,visible";
source: "ecdb"; source: "ecdb";
after: "filelist,visible_swallow"; after: "filelist,visible_swallow";
action: STATE_SET "visible" 0.0; action: STATE_SET "visible" 0.0;
target: "paned_container"; target: "paned_container";
transition: DECELERATE 0.5; transition: DECELERATE 0.5;
} }
program { program {
name: "filelist,visible_swallow"; name: "filelist,visible_swallow";
action: STATE_SET "visible" 0.0; action: STATE_SET "visible" 0.0;
target: "filelist_clip"; target: "filelist_clip";
} }
program { program {
name: "filelist,hide"; name: "filelist,hide";
signal: "ecdb,filelist,hide"; signal: "ecdb,filelist,hide";
source: "ecdb"; source: "ecdb";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
target: "paned_container"; target: "paned_container";
transition: DECELERATE 0.5; transition: DECELERATE 0.5;
} }
program { program {
name: "filelist,hide_swallow"; name: "filelist,hide_swallow";
after: "filelist,hide"; after: "filelist,hide";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
target: "filelist_clip"; target: "filelist_clip";
} }
program { program {
name: "filelist,focus,in"; name: "filelist,focus,in";
signal: "mouse,in"; signal: "mouse,in";
source: "filelist_overlay"; source: "filelist_overlay";
action: STATE_SET "focused" 0.0; action: STATE_SET "focused" 0.0;
target: "filelist_container"; target: "filelist_container";
transition: LINEAR 0.2; transition: LINEAR 0.2;
} }
program { program {
name: "filelist,focus,out"; name: "filelist,focus,out";
signal: "mouse,out"; signal: "mouse,out";
source: "filelist_overlay"; source: "filelist_overlay";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
target: "filelist_container"; target: "filelist_container";
transition: LINEAR 0.2; transition: LINEAR 0.2;
} }
program { program {
name: "filelist_overlay,activate"; name: "filelist_overlay,activate";
action: STATE_SET "active" 0.0; action: STATE_SET "active" 0.0;
signal: "ecdb,filelist_overlay,activate"; signal: "ecdb,filelist_overlay,activate";
source: "ecdb"; source: "ecdb";
target: "filelist_overlay"; target: "filelist_overlay";
target: "filelist_overlay_text"; target: "filelist_overlay_text";
transition: DECELERATE 0.5; transition: DECELERATE 0.5;
} }
program { program {
name: "filelist_overlay,deactivate"; name: "filelist_overlay,deactivate";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
signal: "ecdb,filelist_overlay,deactivate"; signal: "ecdb,filelist_overlay,deactivate";
source: "ecdb"; source: "ecdb";
target: "filelist_overlay"; target: "filelist_overlay";
target: "filelist_overlay_text"; target: "filelist_overlay_text";
transition: DECELERATE 0.5; transition: DECELERATE 0.5;
} }
program { program {
name: "draggie_activate"; name: "draggie_activate";
signal: "mouse,down,1"; signal: "mouse,down,1";
action: STATE_SET "active" 0.0; action: STATE_SET "active" 0.0;
source: "paned_draggie"; source: "paned_draggie";
target: "paned_draggie"; target: "paned_draggie";
transition: DECELERATE 0.5; transition: DECELERATE 0.5;
} }
program { program {
name: "draggie_deactivate"; name: "draggie_deactivate";
signal: "mouse,clicked,1"; signal: "mouse,clicked,1";
signal: "mouse,up,1"; signal: "mouse,up,1";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
source: "paned_draggie"; source: "paned_draggie";
target: "paned_draggie"; target: "paned_draggie";
transition: DECELERATE 0.5; transition: DECELERATE 0.5;
} }
} }
} }

View File

@ -1,3 +1,4 @@
/* vim: set sw=3 ts=3 sts=3 expandtab: */
#include <gst/gst.h> #include <gst/gst.h>
GstElement *pipeline, *audio; GstElement *pipeline, *audio;
@ -5,135 +6,135 @@ GstElement *pipeline, *audio;
static gboolean static gboolean
bus_call(GstBus *bus, GstMessage *msg, gpointer data) bus_call(GstBus *bus, GstMessage *msg, gpointer data)
{ {
GMainLoop *loop = (GMainLoop *) data; GMainLoop *loop = (GMainLoop *) data;
switch (GST_MESSAGE_TYPE(msg)) switch (GST_MESSAGE_TYPE(msg))
{ {
case GST_MESSAGE_EOS: case GST_MESSAGE_EOS:
{ {
g_print("EOS\n"); g_print("EOS\n");
g_main_loop_quit(loop); g_main_loop_quit(loop);
break; break;
} }
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
{ {
gchar *debug; gchar *debug;
GError *err; GError *err;
gst_message_parse_error(msg, &err, &debug); gst_message_parse_error(msg, &err, &debug);
g_free(debug); g_free(debug);
g_print("%s\n", err->message); g_print("%s\n", err->message);
g_error_free(err); g_error_free(err);
g_main_loop_quit(loop); g_main_loop_quit(loop);
break; break;
} }
default: default:
break; break;
} }
return TRUE; return TRUE;
} }
static void static void
cb_newpad (GstElement *decodebin, GstPad *pad, gboolean last, gpointer data) cb_newpad (GstElement *decodebin, GstPad *pad, gboolean last, gpointer data)
{ {
GstCaps *caps; GstCaps *caps;
GstStructure *str; GstStructure *str;
GstPad *audiopad; GstPad *audiopad;
audiopad = gst_element_get_static_pad (audio, "sink"); audiopad = gst_element_get_static_pad (audio, "sink");
if (GST_PAD_IS_LINKED (audiopad)) if (GST_PAD_IS_LINKED (audiopad))
{ {
g_object_unref (audiopad); g_object_unref (audiopad);
return; return;
} }
caps = gst_pad_get_caps (pad); caps = gst_pad_get_caps (pad);
str = gst_caps_get_structure (caps, 0); str = gst_caps_get_structure (caps, 0);
if (!g_strrstr (gst_structure_get_name (str), "audio")) if (!g_strrstr (gst_structure_get_name (str), "audio"))
{ {
gst_caps_unref (caps); gst_caps_unref (caps);
gst_object_unref (audiopad); gst_object_unref (audiopad);
return; return;
} }
gst_caps_unref (caps); gst_caps_unref (caps);
gst_pad_link (pad, audiopad); gst_pad_link (pad, audiopad);
} }
int int
main (int argc, char ** argv) main (int argc, char ** argv)
{ {
GMainLoop *loop; GMainLoop *loop;
GstElement *src, *dec, *conv, *resample, *filter, *sink; GstElement *src, *dec, *conv, *resample, *filter, *sink;
GstCaps *filtercaps; GstCaps *filtercaps;
GstPad *audiopad; GstPad *audiopad;
GstBus *bus; GstBus *bus;
gchar *path, *filename; gchar *path, *filename;
gst_init (&argc, &argv); gst_init (&argc, &argv);
loop = g_main_loop_new (NULL, FALSE); loop = g_main_loop_new (NULL, FALSE);
if (argc != 2) if (argc != 2)
{ {
g_print ("Error: no supplied file!\n"); g_print ("Error: no supplied file!\n");
return 1; return 1;
} }
pipeline = gst_pipeline_new ("pipeline"); pipeline = gst_pipeline_new ("pipeline");
bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
gst_bus_add_watch (bus, bus_call, loop); gst_bus_add_watch (bus, bus_call, loop);
gst_object_unref (bus); gst_object_unref (bus);
src = gst_element_factory_make ("filesrc", NULL); src = gst_element_factory_make ("filesrc", NULL);
g_object_set (G_OBJECT (src), "location", argv[1], NULL); g_object_set (G_OBJECT (src), "location", argv[1], NULL);
dec = gst_element_factory_make ("decodebin", NULL); dec = gst_element_factory_make ("decodebin", NULL);
g_signal_connect (dec, "new-decoded-pad", G_CALLBACK (cb_newpad), NULL); g_signal_connect (dec, "new-decoded-pad", G_CALLBACK (cb_newpad), NULL);
gst_bin_add_many (GST_BIN (pipeline), src, dec, NULL); gst_bin_add_many (GST_BIN (pipeline), src, dec, NULL);
gst_element_link (src, dec); gst_element_link (src, dec);
audio = gst_bin_new ("audiobin"); audio = gst_bin_new ("audiobin");
conv = gst_element_factory_make ("audioconvert", NULL); conv = gst_element_factory_make ("audioconvert", NULL);
/* Here's the bit of magic */ /* Here's the bit of magic */
resample = gst_element_factory_make("audioresample", NULL); resample = gst_element_factory_make("audioresample", NULL);
filter = gst_element_factory_make("capsfilter", NULL); filter = gst_element_factory_make("capsfilter", NULL);
filtercaps = gst_caps_new_full(gst_structure_new("audio/x-raw-int", filtercaps = gst_caps_new_full(gst_structure_new("audio/x-raw-int",
"channels", G_TYPE_INT, 2, "channels", G_TYPE_INT, 2,
"width", G_TYPE_INT, 16, "width", G_TYPE_INT, 16,
"depth", G_TYPE_INT, 16, "depth", G_TYPE_INT, 16,
"endianness", G_TYPE_INT, 1234, "endianness", G_TYPE_INT, 1234,
"rate", G_TYPE_INT, 44100, "rate", G_TYPE_INT, 44100,
"signed", G_TYPE_BOOLEAN, TRUE, "signed", G_TYPE_BOOLEAN, TRUE,
NULL), NULL); NULL), NULL);
g_object_set(GST_OBJECT(filter), "caps", filtercaps, NULL); g_object_set(GST_OBJECT(filter), "caps", filtercaps, NULL);
gst_caps_unref(filtercaps); gst_caps_unref(filtercaps);
audiopad = gst_element_get_static_pad(conv, "sink"); audiopad = gst_element_get_static_pad(conv, "sink");
sink = gst_element_factory_make ("filesink", NULL); sink = gst_element_factory_make ("filesink", NULL);
/* Generate filename */ /* Generate filename */
filename = g_path_get_basename(argv[1]); filename = g_path_get_basename(argv[1]);
path = g_strconcat("/tmp/ecdb/", filename, ".wav", NULL); path = g_strconcat("/tmp/ecdb/", filename, ".wav", NULL);
g_object_set(G_OBJECT(sink), "location", path, NULL); g_object_set(G_OBJECT(sink), "location", path, NULL);
free(filename); free(filename);
free(path); free(path);
gst_bin_add_many(GST_BIN (audio), conv, resample, filter, sink, NULL); gst_bin_add_many(GST_BIN (audio), conv, resample, filter, sink, NULL);
gst_element_link_many(conv, resample, filter, sink, NULL); gst_element_link_many(conv, resample, filter, sink, NULL);
gst_element_add_pad (audio, gst_ghost_pad_new ("sink", audiopad)); gst_element_add_pad (audio, gst_ghost_pad_new ("sink", audiopad));
gst_object_unref (audiopad); gst_object_unref (audiopad);
gst_bin_add (GST_BIN (pipeline), audio); gst_bin_add (GST_BIN (pipeline), audio);
gst_element_set_state (pipeline, GST_STATE_PLAYING); gst_element_set_state (pipeline, GST_STATE_PLAYING);
g_main_loop_run (loop); g_main_loop_run (loop);
gst_element_set_state (pipeline, GST_STATE_NULL); gst_element_set_state (pipeline, GST_STATE_NULL);
gst_object_unref (GST_OBJECT (pipeline)); gst_object_unref (GST_OBJECT (pipeline));
return 0; return 0;
} }