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 {
name: "ecdb/burn_image_page";
min: 640 170;
name: "ecdb/burn_image_page";
min: 640 170;
parts {
part {
name: "bg";
type: RECT;
parts {
part {
name: "bg";
type: RECT;
description {
state: "default" 0.0;
color: 0 0 0 0;
description {
state: "default" 0.0;
color: 0 0 0 0;
rel1 {
relative: 0.0 0.0;
offset: 0 0;
}
rel1 {
relative: 0.0 0.0;
offset: 0 0;
}
rel2 {
relative: 1.0 1.0;
offset: -1 -1;
}
}
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;
}
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;
}
}
rel2 {
relative: 0.0 0.0;
offset: -1 0;
}
}
description {
state: "hide" 0.0;
color: 0 0 0 0;
description {
state: "hide" 0.0;
color: 0 0 0 0;
rel1 {
relative: 1.0 1.0;
offset: -1 -1;
}
rel1 {
relative: 1.0 1.0;
offset: -1 -1;
}
rel2 {
relative: 1.0 1.0;
offset: 33 33;
}
}
}
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;
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;
}
rel1 {
to: "bg";
relative: 0.5 0.0;
offset: 10 5;
}
rel2 {
to: "bg";
relative: 1.0 0.0;
offset: -11 50;
}
}
}
rel2 {
to: "bg";
relative: 1.0 0.0;
offset: -11 50;
}
}
}
part {
name: "ecdb/burn_image/begin";
type: SWALLOW;
repeat_events: 1;
part {
name: "ecdb/burn_image/begin";
type: SWALLOW;
repeat_events: 1;
description {
state: "default" 0.0;
description {
state: "default" 0.0;
rel1 {
to: "ecdb/burn_image/return";
relative: 0.0 1.0;
offset: 0 5;
}
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;
}
}
}
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;
part {
name: "ecdb/burn_image/file";
type: SWALLOW;
repeat_events: 1;
description {
state: "default" 0.0;
description {
state: "default" 0.0;
rel1 {
to: "ecdb/burn_image/begin";
relative: 0.0 1.0;
offset: 0 5;
}
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;
}
}
}
rel2 {
to: "ecdb/burn_image/begin";
relative: 1.0 1.0;
offset: 0 30;
}
}
}
part {
name: "progress_outline";
type: IMAGE;
mouse_events: 0;
part {
name: "progress_outline";
type: IMAGE;
mouse_events: 0;
description {
state: "default" 0.0;
description {
state: "default" 0.0;
rel1 {
to: "bg";
relative: 0.0 0.0;
offset: 10 13;
}
rel1 {
to: "bg";
relative: 0.0 0.0;
offset: 10 13;
}
rel2 {
to: "bg";
relative: 0.5 1.0;
offset: -1 -10;
}
rel2 {
to: "bg";
relative: 0.5 1.0;
offset: -1 -10;
}
image {
normal: "frame_outline.png";
border: 9 9 9 9;
}
}
}
image {
normal: "frame_outline.png";
border: 9 9 9 9;
}
}
}
part {
name: "progress_text";
type: TEXT;
effect: SOFT_SHADOW;
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;
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;
}
rel1 {
to: "progress_outline";
relative: 0.0 0.7;
offset: 5 5;
}
rel2 {
to: "progress_outline";
relative: 1.0 1.0;
offset: -6 -6;
}
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;
}
}
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;
}
}
description {
state: "fade" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0;
}
}
part {
name: "progress_percent";
type: TEXT;
effect: SOFT_SHADOW;
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;
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;
}
rel1 {
to: "progress_outline";
relative: 0.0 0.0;
offset: 5 5;
}
rel2 {
to: "progress_outline";
relative: 1.0 0.7;
offset: -6 -6;
}
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;
}
}
}
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;
part {
name: "disabled_hack";
type: RECT;
mouse_events: 1;
description {
state: "default" 0.0;
visible: 0;
description {
state: "default" 0.0;
visible: 0;
rel1 {
to: "bg";
relative: 0.5 0.0;
offset: 0 0;
}
rel1 {
to: "bg";
relative: 0.5 0.0;
offset: 0 0;
}
rel2 {
to: "bg";
relative: 1.0 1.0;
offset: -1 -1;
}
}
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;
}
}
}
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";
}
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,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,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_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: "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";
}
}
program {
name: "hide,finished";
action: SIGNAL_EMIT "hide,finished" "burn_image_page";
}
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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