forked from enlightenment/ephoto
314 lines
9.2 KiB
Plaintext
314 lines
9.2 KiB
Plaintext
externals {
|
|
external: "elm";
|
|
}
|
|
|
|
collections {
|
|
images {
|
|
image: "up-128.png" COMP;
|
|
image: "directory-128.png" COMP;
|
|
image: "raise.png" COMP;
|
|
}
|
|
group { name: "elm/layout/ephoto/orient";
|
|
parts {
|
|
part { name: "elm.swallow.content";
|
|
type: SWALLOW;
|
|
description { state: "default" 0.0;
|
|
}
|
|
description { state: "rotate_0" 0.0;
|
|
inherit: "default" 0.0;
|
|
map {
|
|
on: 1;
|
|
rotation.z: 0;
|
|
}
|
|
}
|
|
description { state: "rotate_90" 0.0;
|
|
inherit: "default" 0.0;
|
|
map {
|
|
on: 1;
|
|
rotation.z: 90;
|
|
}
|
|
}
|
|
description { state: "rotate_180" 0.0;
|
|
inherit: "default" 0.0;
|
|
map {
|
|
on: 1;
|
|
rotation.z: 180;
|
|
}
|
|
}
|
|
description { state: "rotate_270" 0.0;
|
|
inherit: "default" 0.0;
|
|
map {
|
|
on: 1;
|
|
rotation.z: 270;
|
|
}
|
|
}
|
|
description { state: "flip_horiz" 0.0;
|
|
inherit: "default" 0.0;
|
|
map {
|
|
on: 1;
|
|
rotation.y: 180;
|
|
}
|
|
}
|
|
description { state: "flip_vert" 0.0;
|
|
inherit: "default" 0.0;
|
|
map {
|
|
on: 1;
|
|
rotation.x: 180;
|
|
}
|
|
}
|
|
description { state: "flip_horiz_90" 0.0;
|
|
inherit: "default" 0.0;
|
|
map {
|
|
on: 1;
|
|
rotation {
|
|
z: 90;
|
|
y: 180;
|
|
}
|
|
}
|
|
}
|
|
description { state: "flip_vert_90" 0.0;
|
|
inherit: "default" 0.0;
|
|
map {
|
|
on: 1;
|
|
rotation {
|
|
z: 90;
|
|
x: 180;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
programs {
|
|
program {
|
|
signal: "state,rotate,0";
|
|
source: "ephoto";
|
|
action: STATE_SET "rotate_0" 0.0;
|
|
target: "elm.swallow.content";
|
|
}
|
|
program {
|
|
signal: "state,rotate,90";
|
|
source: "ephoto";
|
|
action: STATE_SET "rotate_90" 0.0;
|
|
target: "elm.swallow.content";
|
|
}
|
|
program {
|
|
signal: "state,rotate,180";
|
|
source: "ephoto";
|
|
action: STATE_SET "rotate_180" 0.0;
|
|
target: "elm.swallow.content";
|
|
}
|
|
program {
|
|
signal: "state,rotate,270";
|
|
source: "ephoto";
|
|
action: STATE_SET "rotate_270" 0.0;
|
|
target: "elm.swallow.content";
|
|
}
|
|
program {
|
|
signal: "state,flip,horiz";
|
|
source: "ephoto";
|
|
action: STATE_SET "flip_horiz" 0.0;
|
|
target: "elm.swallow.content";
|
|
}
|
|
program {
|
|
signal: "state,flip,vert";
|
|
source: "ephoto";
|
|
action: STATE_SET "flip_vert" 0.0;
|
|
target: "elm.swallow.content";
|
|
}
|
|
program {
|
|
signal: "state,flip,horiz,90";
|
|
source: "ephoto";
|
|
action: STATE_SET "flip_horiz_90" 0.0;
|
|
target: "elm.swallow.content";
|
|
}
|
|
program {
|
|
signal: "state,flip,vert,90";
|
|
source: "ephoto";
|
|
action: STATE_SET "flip_vert_90" 0.0;
|
|
target: "elm.swallow.content";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
group { name: "ephoto,thumb,grid";
|
|
parts {
|
|
part { name: "ephoto.swallow.content.thumb";
|
|
type: SWALLOW;
|
|
mouse_events: 1;
|
|
description {
|
|
state: "default" 0.0;
|
|
rel1.relative: 0.0 0.0;
|
|
rel1.offset: 0 0;
|
|
rel2.relative: 1.0 1.0;
|
|
rel2.offset: -1 -1;
|
|
}
|
|
}
|
|
part { name: "overlay";
|
|
type: RECT;
|
|
mouse_events: 1;
|
|
description {
|
|
min: 1 40;
|
|
max: 9999 40;
|
|
fixed: 0 1;
|
|
state: "default" 0.0;
|
|
rel1.to: "ephoto.swallow.content.thumb";
|
|
rel1.relative: 0.0 0.0;
|
|
rel1.offset: 5 45;
|
|
rel2.to: "ephoto.swallow.content.thumb";
|
|
rel2.relative: 1.0 0.0;
|
|
rel2.offset: -5 0;
|
|
color: 0 0 0 120;
|
|
}
|
|
description {
|
|
state: "lowered" 0.0;
|
|
rel1.to: "ephoto.swallow.content.thumb";
|
|
rel1.relative: 0.0 0.0;
|
|
rel1.offset: 5 5;
|
|
rel2.to: "ephoto.swallow.content.thumb";
|
|
rel2.relative: 1.0 1.0;
|
|
rel2.offset: -5 -5;
|
|
color: 255 255 255 255;
|
|
}
|
|
}
|
|
part { name: "ephoto.swallow.content.dir";
|
|
type: SWALLOW;
|
|
mouse_events: 1;
|
|
description {
|
|
state: "default" 0.0;
|
|
visible: 0;
|
|
rel1.to: "ephoto.swallow.content.thumb";
|
|
rel1.relative: 0.0 0.0;
|
|
rel1.offset: 0 0;
|
|
rel1.to: "ephoto.swallow.content.thumb";
|
|
rel2.relative: 1.0 1.0;
|
|
rel2.offset: -1 -1;
|
|
}
|
|
description {
|
|
state: "lowered" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 1;
|
|
}
|
|
}
|
|
part { name: "up";
|
|
type: IMAGE;
|
|
mouse_events: 1;
|
|
description
|
|
{
|
|
min: 32 32;
|
|
max: 32 32;
|
|
fixed: 1 1;
|
|
state: "default" 0.0;
|
|
rel1.to: "overlay";
|
|
rel1.relative: 0.0 0.0;
|
|
rel1.offset: 20 20;
|
|
rel2.to: "overlay";
|
|
rel2.relative: 0.0 0.0;
|
|
rel2.offset: 20 20;
|
|
image.normal: "up-128.png";
|
|
}
|
|
description {
|
|
state: "lowered" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 0;
|
|
}
|
|
}
|
|
part { name: "directory";
|
|
type: IMAGE;
|
|
mouse_events: 1;
|
|
description
|
|
{
|
|
min: 32 32;
|
|
max: 32 32;
|
|
fixed: 1 1;
|
|
state: "default" 0.0;
|
|
visible: 1;
|
|
rel1.to: "overlay";
|
|
rel1.relative: 1.0 0.0;
|
|
rel1.offset: -20 20;
|
|
rel2.to: "overlay";
|
|
rel2.relative: 1.0 0.0;
|
|
rel2.offset: -20 20;
|
|
image.normal: "directory-128.png";
|
|
}
|
|
description
|
|
{
|
|
state: "lowered" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 0;
|
|
}
|
|
}
|
|
part { name: "raise";
|
|
type: IMAGE;
|
|
mouse_events: 1;
|
|
description
|
|
{
|
|
min: 32 32;
|
|
max: 32 32;
|
|
fixed: 1 1;
|
|
visible: 0;
|
|
state: "default" 0.0;
|
|
rel1.to: "overlay";
|
|
rel1.relative: 1.0 0.0;
|
|
rel1.offset: -20 20;
|
|
rel2.to: "overlay";
|
|
rel2.relative: 1.0 0.0;
|
|
rel2.offset: -20 20;
|
|
image.normal: "raise.png";
|
|
}
|
|
description
|
|
{
|
|
state: "lowered" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 1;
|
|
}
|
|
}
|
|
}
|
|
programs {
|
|
program { name: "up_clicked";
|
|
source: "up";
|
|
signal: "mouse,up,*";
|
|
action: SIGNAL_EMIT "ephoto.signal.up" "ephoto";
|
|
}
|
|
program { name: "dir_clicked";
|
|
source: "directory";
|
|
signal: "mouse,up,*";
|
|
action: SIGNAL_EMIT "ephoto.signal.dir" "ephoto";
|
|
after: "lower2";
|
|
}
|
|
program { name: "raise_clicked";
|
|
source: "raise";
|
|
signal: "mouse,up,*";
|
|
action: SIGNAL_EMIT "ephoto.signal.raise" "ephoto";
|
|
after: "raise2";
|
|
}
|
|
program { name: "lower";
|
|
action: STATE_SET "lowered" 0.0;
|
|
transition: ACCELERATE 0.6;
|
|
target: "overlay";
|
|
after: "lower3";
|
|
}
|
|
program { name: "lower2";
|
|
action: STATE_SET "lowered" 0.0;
|
|
target: "directory";
|
|
target: "raise";
|
|
after: "lower";
|
|
}
|
|
program { name: "lower3";
|
|
action: STATE_SET "lowered" 0.0;
|
|
target: "ephoto.swallow.content.dir";
|
|
}
|
|
program { name: "raise";
|
|
action: STATE_SET "default" 0.0;
|
|
transition: ACCELERATE 0.6;
|
|
target: "overlay";
|
|
}
|
|
program { name: "raise2";
|
|
action: STATE_SET "default" 0.0;
|
|
target: "directory";
|
|
target: "raise";
|
|
target: "ephoto.swallow.content.dir";
|
|
after: "raise";
|
|
}
|
|
}
|
|
}
|
|
}
|