ibox edc file.

SVN revision: 14784
This commit is contained in:
sebastid 2005-05-15 05:01:28 +00:00 committed by sebastid
parent ac5f859492
commit 2244652807
3 changed files with 417 additions and 1 deletions

View File

@ -26,7 +26,8 @@ default_resize.edc \
default_move.edc \
default_temperature.edc \
default_error.edc \
default_cpufreq.edc
default_cpufreq.edc \
default_ibox.edc
default.edj: Makefile $(EXTRA_DIST)
$(EDJE_CC) $(EDJE_FLAGS) \

View File

@ -36,5 +36,6 @@ collections {
#include "default_temperature.edc"
#include "default_error.edc"
#include "default_cpufreq.edc"
#include "default_ibox.edc"
}

View File

@ -0,0 +1,414 @@
images {
image: "e17_ibar_bg_h.png" COMP;
image: "e17_ibar_bg_v.png" COMP;
image: "e17_ibar_lamp_d.png" COMP;
image: "e17_ibar_lamp_l.png" COMP;
image: "e17_ibar_lamp_r.png" COMP;
image: "e17_ibar_lamp_u.png" COMP;
image: "e17_ibar_over_h.png" COMP;
image: "e17_ibar_over_v.png" COMP;
}
group {
name: "modules/ibox/main";
data {
// item: "item_list", "item item2 item3";
}
script {
public orient;
}
parts {
part {
name: "background";
mouse_events: 1;
description {
state: "default" 0.0;
rel1 {
to: "overlay";
}
rel2 {
to: "overlay";
}
image {
normal: "e17_ibar_bg_h.png";
border: 6 6 6 6;
}
fill {
smooth: 0;
}
}
description {
state: "vert" 0.0;
inherit: "default" 0.0;
}
}
part {
name: "items_clip";
type: RECT;
mouse_events: 0;
description {
state: "default" 0.0;
rel1 {
to: "background";
offset: 4 4;
}
rel2 {
to: "background";
offset: -5 -5;
}
color: 255 255 255 255;
}
}
part {
name: "items";
type: SWALLOW;
mouse_events: 0;
clip_to: "items_clip";
description {
state: "default" 0.0;
rel1 {
offset: 4 4;
}
rel2 {
offset: -5 -5;
}
color: 0 0 0 0;
}
description {
state: "top" 0.0;
inherit: "default" 0.0;
}
description {
state: "left" 0.0;
inherit: "default" 0.0;
}
description {
state: "right" 0.0;
inherit: "default" 0.0;
}
}
part {
name: "overlay";
mouse_events: 0;
description {
state: "default" 0.0;
image {
normal: "e17_ibar_over_h.png";
border: 13 13 13 13;
middle: 0;
}
fill {
smooth: 0;
}
}
description {
state: "top" 0.0;
inherit: "default" 0.0;
}
description {
state: "left" 0.0;
inherit: "default" 0.0;
}
description {
state: "right" 0.0;
inherit: "default" 0.0;
}
}
part {
name: "inn";
type: RECT;
repeat_events: 1;
description {
state: "default" 0.0;
color: 0 0 0 0;
}
}
}
programs {
program {
name: "orient";
signal: "set_orientation";
source: "*";
script {
// sig, src
if (!strcmp(src, "left")) {
set_int(orient, 0);
set_state(PART:"background", "vert", 0.0);
set_state(PART:"overlay", "left", 0.0);
set_state(PART:"items", "left", 0.0);
}
else if (!strcmp(src, "right")) {
set_int(orient, 1);
set_state(PART:"background", "vert", 0.0);
set_state(PART:"overlay", "right", 0.0);
set_state(PART:"items", "right", 0.0);
}
else if (!strcmp(src, "top")) {
set_int(orient, 2);
set_state(PART:"background", "default", 0.0);
set_state(PART:"overlay", "top", 0.0);
set_state(PART:"items", "top", 0.0);
}
else if (!strcmp(src, "bottom")) {
set_int(orient, 3);
set_state(PART:"background", "default", 0.0);
set_state(PART:"overlay", "default", 0.0);
set_state(PART:"items", "default", 0.0);
}
}
}
}
}
group {
name: "modules/ibox/follower";
min: 56 56;
data {
// item: "item_list", "item item2 item3";
}
parts {
part {
name: "top";
mouse_events: 0;
description {
state: "default" 0.0;
rel1 {
relative: 0.0 0.0;
offset: 0 -14;
}
rel2 {
relative: 1.0 0.0;
offset: -1 26;
}
image {
normal: "e17_ibar_lamp_d.png";
}
}
description {
state: "top" 0.0;
rel1 {
relative: 0.0 1.0;
offset: 0 -26;
}
rel2 {
relative: 1.0 1.0;
offset: -1 14;
}
image {
normal: "e17_ibar_lamp_u.png";
}
}
description {
state: "right" 0.0;
rel1 {
relative: 0.0 0.0;
offset: -14 0;
}
rel2 {
relative: 0.0 1.0;
offset: 26 -1;
}
image {
normal: "e17_ibar_lamp_r.png";
}
}
description {
state: "left" 0.0;
rel1 {
relative: 1.0 0.0;
offset: -26 0;
}
rel2 {
relative: 1.0 1.0;
offset: 14 -1;
}
image {
normal: "e17_ibar_lamp_l.png";
}
}
}
program {
name: "orient";
signal: "set_orientation";
source: "bottom";
action: STATE_SET "default" 0.0;
target: "top";
}
program {
name: "orient2";
signal: "set_orientation";
source: "top";
action: STATE_SET "top" 0.0;
target: "top";
}
program {
name: "orient3";
signal: "set_orientation";
source: "left";
action: STATE_SET "left" 0.0;
target: "top";
}
program {
name: "orient4";
signal: "set_orientation";
source: "right";
action: STATE_SET "right" 0.0;
target: "top";
}
}
}
group {
name: "modules/ibox/icon";
data {
item: "raise_on_hilight" "0"; // 1 or 0 if u want an icon holder to raise when the mouse (or keyboard) hilights it
// item: "item_list" "item item2 item3";
}
parts {
part {
name: "item";
type: SWALLOW;
mouse_events: 0;
description {
state: "default" 0.0;
rel1 {
relative: 0.0 0.0;
offset: 4 4;
}
rel2 {
relative: 1.0 1.0;
offset: -5 -5;
}
color: 0 0 0 0;
}
}
}
}
group {
name: "modules/ibox/icon_overlay";
data {
// item: "item_list", "item item2 item3";
}
parts {
part {
name: "base";
type: RECT;
mouse_events: 0;
description {
state: "default" 0.0;
rel1 {
relative: 0.0 0.0;
offset: 4 4;
}
rel2 {
relative: 1.0 1.0;
offset: -5 -5;
}
color: 255 255 255 0;
}
}
part {
name: "background";
type: RECT;
mouse_events: 0;
description {
state: "default" 0.0;
rel1 {
relative: 0.0 0.0;
offset: 0 0;
to: "base";
}
rel2 {
relative: 1.0 1.0;
offset: -1 -1;
to: "base";
}
color: 255 255 255 0;
}
description {
state: "visible" 0.0;
rel1 {
relative: 0.0 0.0;
offset: 0 0;
to: "base";
}
rel2 {
relative: 1.0 1.0;
offset: -1 -1;
to: "base";
}
color: 255 255 255 255;
}
description {
state: "hidden" 0.0;
rel1 {
relative: -0.5 -0.5;
offset: 0 0;
to: "base";
}
rel2 {
relative: 1.5 1.5;
offset: -1 -1;
to: "base";
}
color: 255 255 255 0;
}
}
part {
name: "item";
type: SWALLOW;
mouse_events: 0;
clip_to: "background";
description {
state: "default" 0.0;
rel1 {
relative: 0.0 0.0;
offset: 0 0;
to: "background";
}
rel2 {
relative: 1.0 1.0;
offset: -1 -1;
to: "background";
}
color: 0 0 0 0;
}
}
}
programs {
program {
name: "go_active";
signal: "active";
source: "";
action: STATE_SET "visible" 0.0;
target: "background";
after: "go_active2";
}
program {
name: "go_active2";
signal: "";
source: "";
action: STATE_SET "hidden" 0.0;
transition: LINEAR 0.5;
target: "background";
after: "go_active";
}
program {
name: "go_passive";
signal: "passive";
source: "";
action: ACTION_STOP;
target: "go_active";
target: "go_active2";
after: "go_passive2";
}
program {
name: "go_passive2";
signal: "";
source: "";
action: STATE_SET "default" 0.0;
target: "background";
}
}
}