|
|
|
@ -3,10 +3,7 @@ |
|
|
|
|
|
|
|
|
|
collections { |
|
|
|
|
images { |
|
|
|
|
image: "images/shadow_circle_horiz.png" COMP; |
|
|
|
|
image: "images/shadow_circle_vert.png" COMP; |
|
|
|
|
image: "images/tile.png" COMP; |
|
|
|
|
image: "images/shadow.png" COMP; |
|
|
|
|
image: "images/sel_border.png" COMP; |
|
|
|
|
image: "images/sel_corner1.png" COMP; |
|
|
|
|
image: "images/sel_corner3.png" COMP; |
|
|
|
@ -15,98 +12,105 @@ collections { |
|
|
|
|
} |
|
|
|
|
group { name: "ephoto,main,layout"; |
|
|
|
|
script { |
|
|
|
|
public offseth = 0; |
|
|
|
|
public offsetv = 0; |
|
|
|
|
public custom = 0 ; |
|
|
|
|
public custom_folders = 0; |
|
|
|
|
public folders_visible = 1; |
|
|
|
|
public controls_visible = 1; |
|
|
|
|
public custom_editor = 0; |
|
|
|
|
public folders_visible = 0; |
|
|
|
|
public editor_visible = 0; |
|
|
|
|
public statusbar_visible = 1; |
|
|
|
|
public message(Msg_Type:type, id, ...) { |
|
|
|
|
if ((type == MSG_INT_SET) && (id == 1)) { |
|
|
|
|
new hoffset = getarg(2); |
|
|
|
|
new voffset = getarg(3); |
|
|
|
|
new hoff, voff, roneoff; |
|
|
|
|
|
|
|
|
|
set_int(custom, 1); |
|
|
|
|
hoffset *= -1; |
|
|
|
|
voffset *= -1; |
|
|
|
|
|
|
|
|
|
get_state_val(PART:"ephoto.swallow.controls", STATE_REL1_OFFSET, |
|
|
|
|
0, roneoff); |
|
|
|
|
get_state_val(PART:"ephoto.swallow.controls", STATE_REL2_OFFSET, |
|
|
|
|
hoff, voff); |
|
|
|
|
|
|
|
|
|
roneoff -= get_int(offsetv); |
|
|
|
|
roneoff += voffset; |
|
|
|
|
hoff -= get_int(offseth); |
|
|
|
|
voff -= get_int(offsetv); |
|
|
|
|
hoff += hoffset; |
|
|
|
|
voff += voffset; |
|
|
|
|
set_int(offseth, hoffset); |
|
|
|
|
set_int(offsetv, voffset); |
|
|
|
|
|
|
|
|
|
custom_state(PART:"ephoto.swallow.controls", "default", 0.0); |
|
|
|
|
set_state_val(PART:"ephoto.swallow.controls", STATE_REL1_OFFSET, |
|
|
|
|
0, roneoff); |
|
|
|
|
set_state_val(PART:"ephoto.swallow.controls", STATE_REL2_OFFSET, |
|
|
|
|
hoff, voff); |
|
|
|
|
set_state(PART:"ephoto.swallow.controls", "custom", 0.0); |
|
|
|
|
} |
|
|
|
|
if ((type == MSG_INT_SET) && (id == 2)) { |
|
|
|
|
new minw = getarg(2); |
|
|
|
|
set_int(statusbar_visible, 1); |
|
|
|
|
|
|
|
|
|
set_int(custom_folders, 1); |
|
|
|
|
custom_state(PART:"ephoto.swallow.folders", "visible", 0.0); |
|
|
|
|
set_int(custom_editor, 1); |
|
|
|
|
custom_state(PART:"ephoto,folders", |
|
|
|
|
"visible", 0.0); |
|
|
|
|
custom_state(PART:"ephoto.swallow.folders", |
|
|
|
|
"visible", 0.0); |
|
|
|
|
custom_state(PART:"ephoto,editor", |
|
|
|
|
"visible", 0.0); |
|
|
|
|
custom_state(PART:"ephoto.swallow.editor", |
|
|
|
|
"visible", 0.0); |
|
|
|
|
set_state_val(PART:"ephoto,folders", |
|
|
|
|
STATE_MIN, minw, 0); |
|
|
|
|
set_state_val(PART:"ephoto.swallow.folders", |
|
|
|
|
STATE_MIN, minw, 0); |
|
|
|
|
set_state_val(PART:"ephoto,editor", |
|
|
|
|
STATE_MIN, minw, 0); |
|
|
|
|
set_state_val(PART:"ephoto.swallow.editor", |
|
|
|
|
STATE_MIN, minw, 0); |
|
|
|
|
if (get_int(folders_visible)) { |
|
|
|
|
set_state(PART:"ephoto,folders", |
|
|
|
|
"custom", 0.0); |
|
|
|
|
set_state(PART:"ephoto.swallow.folders", |
|
|
|
|
"custom", 0.0); |
|
|
|
|
} |
|
|
|
|
if (get_int(editor_visible)) { |
|
|
|
|
set_state(PART:"ephoto,editor", |
|
|
|
|
"custom", 0.0); |
|
|
|
|
set_state(PART:"ephoto.swallow.editor", |
|
|
|
|
"custom", 0.0); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
public hide_folders(val, Float:pos) { |
|
|
|
|
set_int(folders_visible, 0); |
|
|
|
|
set_state_anim(PART:"ephoto.swallow.folders", |
|
|
|
|
"hidden", 0.0, DECELERATE, pos); |
|
|
|
|
set_state_anim(PART:"folders_shadow", |
|
|
|
|
"hidden", 0.0, DECELERATE, pos); |
|
|
|
|
"default", 0.0, DECELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto,folders", |
|
|
|
|
"hidden", 0.0, DECELERATE, pos); |
|
|
|
|
"default", 0.0, DECELERATE, pos); |
|
|
|
|
} |
|
|
|
|
public show_folders(val, Float:pos) { |
|
|
|
|
set_int(folders_visible, 1); |
|
|
|
|
if (get_int(custom_folders)) { |
|
|
|
|
if (custom_folders) { |
|
|
|
|
set_state_anim(PART:"ephoto.swallow.folders", |
|
|
|
|
"custom", 0.0, ACCELERATE, pos); |
|
|
|
|
"custom", 1.0, ACCELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto,folders", |
|
|
|
|
"custom", 1.0, ACCELERATE, pos); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
set_state_anim(PART:"ephoto.swallow.folders", |
|
|
|
|
"default", 0.0, ACCELERATE, pos); |
|
|
|
|
} |
|
|
|
|
set_state_anim(PART:"folders_shadow", |
|
|
|
|
"default", 0.0, ACCELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto,folders", |
|
|
|
|
"default", 0.0, ACCELERATE, pos); |
|
|
|
|
} |
|
|
|
|
public hide_controls(val, Float:pos) { |
|
|
|
|
set_int(controls_visible, 0); |
|
|
|
|
set_state_anim(PART:"ephoto.swallow.controls", |
|
|
|
|
"hidden", 0.0, DECELERATE, pos); |
|
|
|
|
set_state_anim(PART:"controls_shadow", |
|
|
|
|
"hidden", 0.0, DECELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto,controls", |
|
|
|
|
"hidden", 0.0, DECELERATE, pos); |
|
|
|
|
} |
|
|
|
|
public show_controls(val, Float:pos) { |
|
|
|
|
set_int(controls_visible, 1); |
|
|
|
|
if (get_int(custom)) { |
|
|
|
|
set_state_anim(PART:"ephoto.swallow.controls", |
|
|
|
|
"custom", 0.0, ACCELERATE, pos); |
|
|
|
|
"visible", 1.0, ACCELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto,folders", |
|
|
|
|
"visible", 1.0, ACCELERATE, pos); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
public hide_editor(val, Float:pos) { |
|
|
|
|
set_int(editor_visible, 0); |
|
|
|
|
set_state_anim(PART:"ephoto.swallow.editor", |
|
|
|
|
"default", 0.0, DECELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto,editor", |
|
|
|
|
"default", 0.0, DECELERATE, pos); |
|
|
|
|
} |
|
|
|
|
public show_editor(val, Float:pos) { |
|
|
|
|
set_int(editor_visible, 1); |
|
|
|
|
if (custom_editor) { |
|
|
|
|
set_state_anim(PART:"ephoto.swallow.editor", |
|
|
|
|
"custom", 1.0, ACCELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto,editor", |
|
|
|
|
"custom", 1.0, ACCELERATE, pos); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
set_state_anim(PART:"ephoto.swallow.controls", |
|
|
|
|
"default", 0.0, ACCELERATE, pos); |
|
|
|
|
} |
|
|
|
|
set_state_anim(PART:"controls_shadow", |
|
|
|
|
"default", 0.0, ACCELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto,controls", |
|
|
|
|
"default", 0.0, ACCELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto.swallow.editor", |
|
|
|
|
"visible", 1.0, ACCELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto,editor", |
|
|
|
|
"visible", 1.0, ACCELERATE, pos); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
public hide_statusbar(val, Float:pos) { |
|
|
|
|
set_int(statusbar_visible, 0); |
|
|
|
|
set_state_anim(PART:"ephoto.swallow.statusbar", |
|
|
|
|
"hidden", 0.0, DECELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto,statusbar", |
|
|
|
|
"hidden", 0.0, DECELERATE, pos); |
|
|
|
|
} |
|
|
|
|
public show_statusbar(val, Float:pos) { |
|
|
|
|
set_int(statusbar_visible, 1); |
|
|
|
|
set_state_anim(PART:"ephoto.swallow.statusbar", |
|
|
|
|
"default", 1.0, ACCELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto,statusbar", |
|
|
|
|
"default", 1.0, ACCELERATE, pos); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
parts { |
|
|
|
@ -120,6 +124,8 @@ collections { |
|
|
|
|
clip_to: "ephoto,main,clip"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
rel1.to: "ephoto.swallow.main"; |
|
|
|
|
rel2.to: "ephoto.swallow.main"; |
|
|
|
|
image.normal: "images/tile.png"; |
|
|
|
|
color: 210 210 210 255; |
|
|
|
|
fill { |
|
|
|
@ -133,179 +139,111 @@ collections { |
|
|
|
|
mouse_events: 1; |
|
|
|
|
clip_to: "ephoto,main,clip"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
rel2.to: "ephoto,editor"; |
|
|
|
|
rel2.relative: 0.0 1.0; |
|
|
|
|
rel1.to_x: "ephoto,folders"; |
|
|
|
|
rel1.relative: 1.0 0.0; |
|
|
|
|
rel2.to_x: "ephoto,editor"; |
|
|
|
|
rel2.to_y: "ephoto,statusbar"; |
|
|
|
|
rel2.relative: 0.0 0.0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
rect { name: "ephoto,editor"; |
|
|
|
|
scale: 1; |
|
|
|
|
rect { name: "ephoto,folders"; |
|
|
|
|
clip_to: "ephoto,main,clip"; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
rel1.to: "ephoto.swallow.editor"; |
|
|
|
|
rel2.to: "ephoto.swallow.editor"; |
|
|
|
|
min: 0 0; |
|
|
|
|
rel1.to: "ephoto.swallow.folders"; |
|
|
|
|
rel2.to: "ephoto.swallow.folders"; |
|
|
|
|
color: 255 255 255 0; |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
description { state: "visible" 0.0; |
|
|
|
|
inherit: default 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
min: 220 0; |
|
|
|
|
color: 255 255 255 255; |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
image { name: "editor_shadow"; |
|
|
|
|
mouse_events: 0; |
|
|
|
|
swallow { name: "ephoto.swallow.folders"; |
|
|
|
|
scale: 1; |
|
|
|
|
mouse_events: 1; |
|
|
|
|
clip_to: "ephoto,folders"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
image.normal: "images/shadow_circle_vert.png"; |
|
|
|
|
min: 32 0; |
|
|
|
|
min: 0 0; |
|
|
|
|
align: 1.0 0.0; |
|
|
|
|
rel1.relative: 0.0 0.0; |
|
|
|
|
rel2.to_y: "ephoto,statusbar"; |
|
|
|
|
rel2.relative: 0.0 0.0; |
|
|
|
|
color: 255 255 255 0; |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
description { state: "visible" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
rel1.to: "ephoto,editor"; |
|
|
|
|
rel1.relative: 1.0 0.0; |
|
|
|
|
rel2.to: "ephoto,editor"; |
|
|
|
|
color: 255 255 255 128; |
|
|
|
|
min: 220 0; |
|
|
|
|
rel1.relative: 0.0 0.0; |
|
|
|
|
rel2.to_y: "ephoto,statusbar"; |
|
|
|
|
rel2.relative: 0.2 0.0; |
|
|
|
|
color: 255 255 255 255; |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
rect { name: "editor_base"; |
|
|
|
|
clip_to: "ephoto,editor"; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
color: 30 30 30 150; |
|
|
|
|
rel1.to: "ephoto,editor"; |
|
|
|
|
rel2.to: "ephoto,editor"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
swallow { name: "ephoto.swallow.editor"; |
|
|
|
|
rect { name: "ephoto,editor"; |
|
|
|
|
clip_to: "ephoto,main,clip"; |
|
|
|
|
scale: 1; |
|
|
|
|
mouse_events: 1; |
|
|
|
|
clip_to: "ephoto,editor"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
min: 220 0; |
|
|
|
|
rel1.to: "ephoto,main,clip"; |
|
|
|
|
rel1.relative: 1.0 0.0; |
|
|
|
|
rel2.to: "ephoto,main,clip"; |
|
|
|
|
rel2.relative: 2.0 1.0; |
|
|
|
|
min: 0 0; |
|
|
|
|
rel1.to: "ephoto.swallow.editor"; |
|
|
|
|
rel2.to: "ephoto.swallow.editor"; |
|
|
|
|
color: 255 255 255 0; |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
description { state: "visible" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
|
rel1.to: "ephoto,main,clip"; |
|
|
|
|
rel1.relative: 1.0 0.0; |
|
|
|
|
rel2.to: "ephoto,main,clip"; |
|
|
|
|
rel2.relative: 1.0 1.0; |
|
|
|
|
align: 1.0 0.0; |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
rect { name: "ephoto,folders"; |
|
|
|
|
clip_to: "ephoto,main,clip"; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
inherit: default 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
min: 220 0; |
|
|
|
|
rel1.to: "ephoto.swallow.folders"; |
|
|
|
|
rel2.to: "ephoto.swallow.folders"; |
|
|
|
|
color: 255 255 255 255; |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
description { state: "hidden" 0.0; |
|
|
|
|
inherit: default 0.0; |
|
|
|
|
color: 255 255 255 0; |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
image { name: "folders_shadow"; |
|
|
|
|
mouse_events: 0; |
|
|
|
|
swallow { name: "ephoto.swallow.editor"; |
|
|
|
|
scale: 1; |
|
|
|
|
mouse_events: 1; |
|
|
|
|
clip_to: "ephoto,editor"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
image.normal: "images/shadow_circle_vert.png"; |
|
|
|
|
min: 32 0; |
|
|
|
|
rel1.to: "ephoto,folders"; |
|
|
|
|
min: 0 0; |
|
|
|
|
align: 0.0 0.0; |
|
|
|
|
rel1.relative: 1.0 0.0; |
|
|
|
|
rel2.to: "ephoto,folders"; |
|
|
|
|
color: 255 255 255 128; |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
description { state: "hidden" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
|
rel2.to_y: "ephoto,statusbar"; |
|
|
|
|
rel2.relative: 1.0 0.0; |
|
|
|
|
color: 255 255 255 0; |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
rect { name: "folders_base"; |
|
|
|
|
clip_to: "ephoto,folders"; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
color: 30 30 30 150; |
|
|
|
|
rel1.to: "ephoto,folders"; |
|
|
|
|
rel2.to: "ephoto,folders"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
swallow { name: "ephoto.swallow.folders"; |
|
|
|
|
scale: 1; |
|
|
|
|
mouse_events: 1; |
|
|
|
|
clip_to: "ephoto,folders"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
description { state: "visible" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
min: 220 0; |
|
|
|
|
rel1.to: "ephoto.swallow.main"; |
|
|
|
|
rel1.relative: 0.0 0.0; |
|
|
|
|
rel2.to: "ephoto,controls"; |
|
|
|
|
rel2.relative: 0.0 0.0; |
|
|
|
|
align: 0.0 0.0; |
|
|
|
|
rel1.relative: 0.8 0.0; |
|
|
|
|
rel2.to_y: "ephoto,statusbar"; |
|
|
|
|
rel2.relative: 1.0 0.0; |
|
|
|
|
align: 1.0 0.0; |
|
|
|
|
color: 255 255 255 255; |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
description { state: "hidden" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
|
color: 255 255 255 0; |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
rect { name: "ephoto,controls"; |
|
|
|
|
scale: 1; |
|
|
|
|
rect { name: "ephoto,statusbar"; |
|
|
|
|
clip_to: "ephoto,main,clip"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 0 1; |
|
|
|
|
rel1.to: "ephoto.swallow.controls"; |
|
|
|
|
rel2.to: "ephoto.swallow.controls"; |
|
|
|
|
color: 255 255 255 255; |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
description { state: "hidden" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
|
color: 255 255 255 0; |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
rect { name: "controls_base"; |
|
|
|
|
clip_to: "ephoto,controls"; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
color: 30 30 30 150; |
|
|
|
|
rel1.to: "ephoto,controls"; |
|
|
|
|
rel2.to: "ephoto,controls"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
image { name: "controls_shadow"; |
|
|
|
|
mouse_events: 0; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
rel1.to: "controls_base"; |
|
|
|
|
rel1.relative: 0.0 0.0; |
|
|
|
|
rel2.to: "controls_base"; |
|
|
|
|
rel2.relative: 1.0 0.0; |
|
|
|
|
image.normal: "images/shadow_circle_horiz.png"; |
|
|
|
|
min: 0 32; |
|
|
|
|
color: 255 255 255 128; |
|
|
|
|
rel1.to: "ephoto.swallow.statusbar"; |
|
|
|
|
rel2.to: "ephoto.swallow.statusbar"; |
|
|
|
|
color: 255 255 255 255; |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
description { state: "hidden" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
@ -313,71 +251,32 @@ collections { |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
swallow { name: "ephoto.swallow.controls"; |
|
|
|
|
swallow { name: "ephoto.swallow.statusbar"; |
|
|
|
|
scale: 1; |
|
|
|
|
mouse_events: 1; |
|
|
|
|
clip_to: "ephoto,controls"; |
|
|
|
|
clip_to: "ephoto,statusbar"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
rel1.to: "ephoto.swallow.main"; |
|
|
|
|
rel2.to: "ephoto.swallow.main"; |
|
|
|
|
rel1.relative: 0.0 1.0; |
|
|
|
|
rel1.offset: 0 -1; |
|
|
|
|
rel2.offset: 0 -1; |
|
|
|
|
align: 0.5 1.0; |
|
|
|
|
rel2.relative: 1.0 1.0; |
|
|
|
|
align: 0.0 1.0; |
|
|
|
|
color: 255 255 255 255; |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
description { state: "hidden" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
|
align: 0.0 0.0; |
|
|
|
|
color: 255 255 255 0; |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
programs { |
|
|
|
|
program { signal: "ephoto,editor,hide"; |
|
|
|
|
source: "ephoto"; |
|
|
|
|
action: STATE_SET "default" 0.0; |
|
|
|
|
target: "ephoto.swallow.editor"; |
|
|
|
|
target: "editor_shadow"; |
|
|
|
|
target: "ephoto,editor"; |
|
|
|
|
} |
|
|
|
|
program { signal: "ephoto,editor,show"; |
|
|
|
|
source: "ephoto"; |
|
|
|
|
action: STATE_SET "visible" 0.0; |
|
|
|
|
target: "ephoto.swallow.editor"; |
|
|
|
|
target: "editor_shadow"; |
|
|
|
|
target: "ephoto,editor"; |
|
|
|
|
} |
|
|
|
|
program { signal: "mouse,in"; |
|
|
|
|
source: "ephoto.swallow.controls"; |
|
|
|
|
action: SIGNAL_EMIT "ephoto,block" "ephoto"; |
|
|
|
|
} |
|
|
|
|
program { signal: "mouse,out"; |
|
|
|
|
source: "ephoto.swallow.controls"; |
|
|
|
|
action: SIGNAL_EMIT "ephoto,unblock" "ephoto"; |
|
|
|
|
} |
|
|
|
|
program { signal: "mouse,in"; |
|
|
|
|
source: "ephoto.swallow.folders"; |
|
|
|
|
action: SIGNAL_EMIT "ephoto,block" "ephoto"; |
|
|
|
|
} |
|
|
|
|
program { signal: "mouse,out"; |
|
|
|
|
source: "ephoto.swallow.folders"; |
|
|
|
|
action: SIGNAL_EMIT "ephoto,unblock" "ephoto"; |
|
|
|
|
} |
|
|
|
|
program { signal: "ephoto,folders,hide,start"; |
|
|
|
|
source: "ephoto"; |
|
|
|
|
action: STATE_SET "hidden" 0.0; |
|
|
|
|
target: "ephoto.swallow.folders"; |
|
|
|
|
target: "folders_shadow"; |
|
|
|
|
target: "ephoto,folders"; |
|
|
|
|
} |
|
|
|
|
program { signal: "ephoto,folders,hide"; |
|
|
|
|
source: "ephoto"; |
|
|
|
|
script { |
|
|
|
|
if (get_int(folders_visible)) { |
|
|
|
|
anim(1.0, "hide_folders", 1); |
|
|
|
|
anim(0.3, "hide_folders", 1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -385,23 +284,49 @@ collections { |
|
|
|
|
source: "ephoto"; |
|
|
|
|
script { |
|
|
|
|
if (!get_int(folders_visible)) { |
|
|
|
|
anim(0.5, "show_folders", 1); |
|
|
|
|
anim(0.3, "show_folders", 1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
program { signal: "ephoto,folders,show,start"; |
|
|
|
|
source: "ephoto"; |
|
|
|
|
script { |
|
|
|
|
set_int(folders_visible, 1); |
|
|
|
|
if (custom_folders) { |
|
|
|
|
set_state(PART:"ephoto,folders", "custom", 0.0); |
|
|
|
|
set_state(PART:"ephoto.swallow.folders", "custom", 0.0); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
set_state(PART:"ephoto,folders", "visible", 0.0); |
|
|
|
|
set_state(PART:"ephoto.swallow.folders", "visible", 0.0); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
program { signal: "ephoto,controls,hide"; |
|
|
|
|
program { signal: "ephoto,editor,hide"; |
|
|
|
|
source: "ephoto"; |
|
|
|
|
script { |
|
|
|
|
anim(0.3, "hide_editor", 1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
program { signal: "ephoto,editor,show"; |
|
|
|
|
source: "ephoto"; |
|
|
|
|
script { |
|
|
|
|
anim(0.3, "show_editor", 1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
program { signal: "ephoto,statusbar,hide"; |
|
|
|
|
source: "ephoto"; |
|
|
|
|
script { |
|
|
|
|
if (get_int(controls_visible)) { |
|
|
|
|
anim(1.0, "hide_controls", 1); |
|
|
|
|
if (get_int(statusbar_visible)) { |
|
|
|
|
anim(0.3, "hide_statusbar", 1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
program { signal: "ephoto,controls,show"; |
|
|
|
|
program { signal: "ephoto,statusbar,show"; |
|
|
|
|
source: "ephoto"; |
|
|
|
|
script { |
|
|
|
|
if (!get_int(controls_visible)) { |
|
|
|
|
anim(0.5, "show_controls", 1); |
|
|
|
|
if (!get_int(statusbar_visible)) { |
|
|
|
|
anim(0.3, "show_statusbar", 1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|