Add in a capacity widget and set up the callbacks to update it.
This commit is contained in:
@ -17,4 +17,5 @@ collections {
|
||||
#include "groups/combo.edc"
|
||||
#include "groups/label.edc"
|
||||
#include "groups/burn_data.edc"
|
||||
#include "groups/capacity.edc"
|
||||
}
|
||||
|
@ -9,4 +9,5 @@ EXTRA_DIST= burn_data.edc \
|
||||
icons.edc \
|
||||
label.edc \
|
||||
welcome_page.edc \
|
||||
capacity.edc \
|
||||
window.edc
|
||||
|
@ -142,6 +142,28 @@ group {
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "ecdb/burn_data/vol_name";
|
||||
type: SWALLOW;
|
||||
repeat_events: 1;
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
|
||||
rel1 {
|
||||
to: "ecdb/burn_data/speed";
|
||||
relative: 0.0 1.0;
|
||||
offset: 0 5;
|
||||
}
|
||||
|
||||
rel2 {
|
||||
to: "ecdb/burn_data/speed";
|
||||
relative: 1.0 1.0;
|
||||
offset: 0 30;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Missing a description later */
|
||||
part {
|
||||
name: "ecdb/burn_data/filelist";
|
||||
@ -160,7 +182,30 @@ group {
|
||||
rel2 {
|
||||
to: "bg";
|
||||
relative: 0.5 1.0;
|
||||
offset: -1 -10;
|
||||
offset: -1 -26;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "ecdb/burn_data/capacity";
|
||||
type: SWALLOW;
|
||||
repeat_events: 0;
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
max: 99999 20;
|
||||
|
||||
rel1 {
|
||||
to: "bg";
|
||||
relative: 0.0 1.0;
|
||||
offset: 10 -23;
|
||||
}
|
||||
|
||||
rel2 {
|
||||
to: "bg";
|
||||
relative: 1.0 1.0;
|
||||
offset: -11 -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
195
ecdb/trunk/data/themes/default/groups/capacity.edc
Normal file
195
ecdb/trunk/data/themes/default/groups/capacity.edc
Normal file
@ -0,0 +1,195 @@
|
||||
/* vim: set sw=3 ts=3 sts=3 expandtab: */
|
||||
group {
|
||||
name: "ecdb/capacity";
|
||||
max: 999999 20;
|
||||
|
||||
script {
|
||||
public message(Msg_Type:type, id, ...) {
|
||||
if ((type == MSG_FLOAT) && (id == 1)) {
|
||||
new Float:freq;
|
||||
freq = getfarg(2);
|
||||
set_drag(PART:"draggie", freq, 0.0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
parts {
|
||||
part {
|
||||
name: "confine";
|
||||
mouse_events: 0;
|
||||
type: RECT;
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
min: 0 17;
|
||||
fixed: 1 1;
|
||||
|
||||
rel1 {
|
||||
relative: 0.0 0.0;
|
||||
offset: 2 1;
|
||||
}
|
||||
|
||||
rel2 {
|
||||
relative: 1.0 1.0;
|
||||
offset: -2 -3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "bg";
|
||||
type: IMAGE;
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
fixed: 1 1;
|
||||
|
||||
rel1 {
|
||||
relative: 0.0 0.0;
|
||||
offset: 0 0;
|
||||
}
|
||||
|
||||
rel2 {
|
||||
relative: 1.0 1.0;
|
||||
offset: -1 -1;
|
||||
}
|
||||
|
||||
image {
|
||||
normal: "progress_trough.png";
|
||||
border: 3 3 3 4;
|
||||
}
|
||||
|
||||
fill {
|
||||
smooth: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "progress_left";
|
||||
type: IMAGE;
|
||||
clip_to: "confine";
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
fixed: 1 1;
|
||||
min: 2 17;
|
||||
max: 2 17;
|
||||
|
||||
rel1 {
|
||||
to: "confine";
|
||||
relative: 0.0 0.0;
|
||||
offset: 0 0;
|
||||
}
|
||||
|
||||
rel2 {
|
||||
to: "confine";
|
||||
relative: 0.0 1.0;
|
||||
offset: -1 -1;
|
||||
}
|
||||
|
||||
image {
|
||||
normal: "progress_bar_left.png";
|
||||
}
|
||||
|
||||
fill {
|
||||
smooth: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "draggie";
|
||||
type: RECT;
|
||||
clip_to: "confine";
|
||||
|
||||
dragable {
|
||||
confine: "confine";
|
||||
x: 1 1 0;
|
||||
y: 0 0 0;
|
||||
}
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
min: 1 21;
|
||||
fixed: 1 1;
|
||||
color: 0 0 0 0;
|
||||
|
||||
rel1 {
|
||||
relative: 0.0 0.0;
|
||||
}
|
||||
|
||||
rel2 {
|
||||
relative: 0.0 1.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "fill";
|
||||
type: IMAGE;
|
||||
mouse_events: 0;
|
||||
clip_to: "confine";
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
fixed: 1 1;
|
||||
|
||||
rel1 {
|
||||
relative: 1.0 0.0;
|
||||
offset: 0 0;
|
||||
to: "progress_left";
|
||||
}
|
||||
|
||||
rel2 {
|
||||
relative: 0.0 1.0;
|
||||
offset: -1 -1;
|
||||
to: "draggie";
|
||||
}
|
||||
|
||||
image {
|
||||
normal: "progress_bar_fill_0.png";
|
||||
}
|
||||
|
||||
fill {
|
||||
smooth: 1;
|
||||
size {
|
||||
relative: 0.0 0.0;
|
||||
offset: 28 17;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "progress_right";
|
||||
type: IMAGE;
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
fixed: 1 1;
|
||||
min: 2 17;
|
||||
max: 2 17;
|
||||
|
||||
rel1 {
|
||||
to: "fill";
|
||||
relative: 1.0 0.0;
|
||||
}
|
||||
|
||||
rel2 {
|
||||
to: "fill";
|
||||
relative: 1.0 1.0;
|
||||
}
|
||||
|
||||
image {
|
||||
normal: "progress_bar_right.png";
|
||||
}
|
||||
|
||||
fill {
|
||||
smooth: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* vim: set sw=3 ts=3 sts=3 expandtab: */
|
||||
group {
|
||||
name: "ecdb/window";
|
||||
min: 640 360;
|
||||
min: 640 390;
|
||||
|
||||
parts {
|
||||
part {
|
||||
@ -10,7 +10,7 @@ group {
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
min: 640 360;
|
||||
min: 640 390;
|
||||
max: 999999 999999;
|
||||
|
||||
rel1 {
|
||||
@ -62,7 +62,7 @@ group {
|
||||
|
||||
rel2 {
|
||||
relative: 1.0 1.0;
|
||||
offset: 0 -175;
|
||||
offset: 0 -230;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -25,4 +25,8 @@ images {
|
||||
image: "combobox_button_clicked.png" COMP;
|
||||
image: "combobox_button_disabled.png" COMP;
|
||||
image: "combo_arrow.png" COMP;
|
||||
image: "progress_bar_fill_0.png" COMP;
|
||||
image: "progress_bar_left.png" COMP;
|
||||
image: "progress_bar_right.png" COMP;
|
||||
image: "progress_trough.png" COMP;
|
||||
}
|
||||
|
BIN
ecdb/trunk/data/themes/default/images/progress_bar_fill_0.png
Normal file
BIN
ecdb/trunk/data/themes/default/images/progress_bar_fill_0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 746 B |
BIN
ecdb/trunk/data/themes/default/images/progress_bar_left.png
Normal file
BIN
ecdb/trunk/data/themes/default/images/progress_bar_left.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 181 B |
BIN
ecdb/trunk/data/themes/default/images/progress_bar_right.png
Normal file
BIN
ecdb/trunk/data/themes/default/images/progress_bar_right.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 187 B |
BIN
ecdb/trunk/data/themes/default/images/progress_trough.png
Normal file
BIN
ecdb/trunk/data/themes/default/images/progress_trough.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 333 B |
Reference in New Issue
Block a user