forked from enlightenment/efl
parent
36c8bd3338
commit
70d44875dc
|
@ -20,6 +20,7 @@ EXTRA_DIST = \
|
|||
frame.edc \
|
||||
list.edc \
|
||||
shadows.edc \
|
||||
spinner.edc \
|
||||
images/arrows.png \
|
||||
images/background.jpg \
|
||||
images/ball-blue.png \
|
||||
|
@ -44,7 +45,12 @@ EXTRA_DIST = \
|
|||
images/list-item-corner-pressed.png \
|
||||
images/list-item-pressed.png \
|
||||
images/shadow-ball.png \
|
||||
images/shadow-cube.png
|
||||
images/shadow-cube.png \
|
||||
images/spinner_base.png \
|
||||
images/spinner_bt_left.png \
|
||||
images/spinner_bt_left_pressed.png \
|
||||
images/spinner_bt_right.png \
|
||||
images/spinner_bt_right_pressed.png
|
||||
|
||||
ephysics_test.edj: Makefile $(EXTRA_DIST)
|
||||
$(EDJE_CC) $(EDJE_FLAGS) \
|
||||
|
|
|
@ -10,4 +10,5 @@ collections {
|
|||
#include "frame.edc"
|
||||
#include "list.edc"
|
||||
#include "shadows.edc"
|
||||
#include "spinner.edc"
|
||||
}
|
||||
|
|
|
@ -139,8 +139,10 @@
|
|||
mouse_events: 1;
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
rel1.relative: 0.2 0.0;
|
||||
rel2.relative: 0.8 0.1;
|
||||
rel1.relative: 0.5 0.08;
|
||||
rel2.relative: 0.5 0.08;
|
||||
fixed: 1 1;
|
||||
align: 0.5 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 8.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
|
@ -0,0 +1,200 @@
|
|||
group {
|
||||
name: "elm/spinner/base/ephysics-test";
|
||||
|
||||
images {
|
||||
image: "spinner_bt_left.png" COMP;
|
||||
image: "spinner_bt_left_pressed.png" COMP;
|
||||
image: "spinner_bt_right.png" COMP;
|
||||
image: "spinner_bt_right_pressed.png" COMP;
|
||||
image: "spinner_base.png" COMP;
|
||||
}
|
||||
|
||||
parts {
|
||||
|
||||
part {
|
||||
name: "blocker";
|
||||
type: RECT;
|
||||
mouse_events: 1;
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
color: 0 0 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "base";
|
||||
type: IMAGE;
|
||||
mouse_events: 0;
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
min: 140 28;
|
||||
max: 1000 28;
|
||||
rel1.offset: 30 0;
|
||||
rel2.offset: -31 -1;
|
||||
image.normal: "spinner_base.png";
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "left_bt";
|
||||
mouse_events: 1;
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
min: 30 28;
|
||||
max: 30 28;
|
||||
rel1.to_y: "base";
|
||||
rel2 {
|
||||
to: "base";
|
||||
relative: 0 1;
|
||||
}
|
||||
image.normal: "spinner_bt_left.png";
|
||||
}
|
||||
description {
|
||||
state: "clicked" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
image.normal: "spinner_bt_left_pressed.png";
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "right_bt";
|
||||
mouse_events: 1;
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
min: 30 28;
|
||||
max: 30 28;
|
||||
rel1 {
|
||||
to: "base";
|
||||
relative: 1 0;
|
||||
}
|
||||
rel2.to_y: "base";
|
||||
image.normal: "spinner_bt_right.png";
|
||||
}
|
||||
description {
|
||||
state: "clicked" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
image.normal: "spinner_bt_right_pressed.png";
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "elm.text";
|
||||
type: TEXT;
|
||||
mouse_events: 0;
|
||||
description { state: "default" 0.0;
|
||||
visible: 1;
|
||||
color: 223 215 208 255;
|
||||
rel1.to: "base";
|
||||
rel2.to: "base";
|
||||
text {
|
||||
font: "Arial";
|
||||
style: "Bold";
|
||||
size: 12;
|
||||
align: 0.5 0.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "elm.dragable.slider";
|
||||
type: RECT;
|
||||
mouse_events: 0;
|
||||
scale: 1;
|
||||
|
||||
dragable {
|
||||
x: 1 1 0;
|
||||
y: 0 0 0;
|
||||
}
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
rel1.to: "blocker";
|
||||
rel2.to: "blocker";
|
||||
color: 0 0 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "elm.swallow.entry";
|
||||
type: SWALLOW;
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
visible: 0;
|
||||
align: 0.5 0.5;
|
||||
rel1 { relative: 1.0 0.5;
|
||||
offset: 3 2;
|
||||
to_x: "left_bt";
|
||||
to_y: "base";
|
||||
}
|
||||
rel2 { relative: 0.0 0.5;
|
||||
offset: -3 -2;
|
||||
to_x: "right_bt";
|
||||
to_y: "base";
|
||||
}
|
||||
fixed: 1 1;
|
||||
color: 0 0 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
programs {
|
||||
|
||||
program {
|
||||
name: "left_bt_clicked";
|
||||
signal: "mouse,down,1";
|
||||
source: "left_bt";
|
||||
action: STATE_SET "clicked" 0.0;
|
||||
target: "left_bt";
|
||||
after: "left_bt_clicked_emit";
|
||||
}
|
||||
|
||||
program {
|
||||
name: "left_bt_clicked_emit";
|
||||
action: SIGNAL_EMIT "elm,action,decrement,start" "";
|
||||
}
|
||||
|
||||
program {
|
||||
name: "left_bt_unclicked";
|
||||
signal: "mouse,up,1";
|
||||
source: "left_bt";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "left_bt";
|
||||
after: "left_bt_unclicked_emit";
|
||||
}
|
||||
|
||||
program {
|
||||
name: "left_bt_unclicked_emit";
|
||||
action: SIGNAL_EMIT "elm,action,decrement,stop" "";
|
||||
}
|
||||
|
||||
program {
|
||||
name: "right_bt_clicked";
|
||||
signal: "mouse,down,1";
|
||||
source: "right_bt";
|
||||
action: STATE_SET "clicked" 0.0;
|
||||
target: "right_bt";
|
||||
after: "right_bt_clicked_emit";
|
||||
}
|
||||
|
||||
program {
|
||||
name: "right_bt_clicked_emit";
|
||||
action: SIGNAL_EMIT "elm,action,increment,start" "";
|
||||
}
|
||||
|
||||
program {
|
||||
name: "right_bt_unclicked";
|
||||
signal: "mouse,up,1";
|
||||
source: "right_bt";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "right_bt";
|
||||
after: "right_bt_unclicked_emit";
|
||||
}
|
||||
|
||||
program {
|
||||
name: "right_bt_unclicked_emit";
|
||||
action: SIGNAL_EMIT "elm,action,increment,stop" "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue