|
|
|
@ -3,334 +3,12 @@ |
|
|
|
|
|
|
|
|
|
collections { |
|
|
|
|
images { |
|
|
|
|
image: "images/tile.png" COMP; |
|
|
|
|
image: "images/sel_border.png" COMP; |
|
|
|
|
image: "images/sel_corner1.png" COMP; |
|
|
|
|
image: "images/sel_corner3.png" COMP; |
|
|
|
|
image: "images/sel_corner5.png" COMP; |
|
|
|
|
image: "images/sel_corner7.png" COMP; |
|
|
|
|
} |
|
|
|
|
group { name: "ephoto,main,layout"; |
|
|
|
|
script { |
|
|
|
|
public custom_folders = 0; |
|
|
|
|
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 minw = getarg(2); |
|
|
|
|
set_int(statusbar_visible, 1); |
|
|
|
|
|
|
|
|
|
set_int(custom_folders, 1); |
|
|
|
|
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", |
|
|
|
|
"default", 0.0, DECELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto,folders", |
|
|
|
|
"default", 0.0, DECELERATE, pos); |
|
|
|
|
} |
|
|
|
|
public show_folders(val, Float:pos) { |
|
|
|
|
set_int(folders_visible, 1); |
|
|
|
|
if (custom_folders) { |
|
|
|
|
set_state_anim(PART:"ephoto.swallow.folders", |
|
|
|
|
"custom", 1.0, ACCELERATE, pos); |
|
|
|
|
set_state_anim(PART:"ephoto,folders", |
|
|
|
|
"custom", 1.0, ACCELERATE, pos); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
set_state_anim(PART:"ephoto.swallow.folders", |
|
|
|
|
"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.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 { |
|
|
|
|
rect { name: "ephoto,main,clip"; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
image { name: "background_tile"; |
|
|
|
|
scale: 1; |
|
|
|
|
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"; |
|
|
|
|
fill { |
|
|
|
|
size.relative: 0.0 0.0; |
|
|
|
|
size.offset: 32 32; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
swallow { name: "ephoto.swallow.main"; |
|
|
|
|
scale: 1; |
|
|
|
|
mouse_events: 1; |
|
|
|
|
clip_to: "ephoto,main,clip"; |
|
|
|
|
description { state: "default" 0.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,folders"; |
|
|
|
|
clip_to: "ephoto,main,clip"; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
swallow { name: "ephoto.swallow.folders"; |
|
|
|
|
scale: 1; |
|
|
|
|
mouse_events: 1; |
|
|
|
|
clip_to: "ephoto,folders"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
min: 0 0; |
|
|
|
|
align: 0.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; |
|
|
|
|
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: "ephoto,editor"; |
|
|
|
|
clip_to: "ephoto,main,clip"; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
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; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
min: 220 0; |
|
|
|
|
color: 255 255 255 255; |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
swallow { name: "ephoto.swallow.editor"; |
|
|
|
|
scale: 1; |
|
|
|
|
mouse_events: 1; |
|
|
|
|
clip_to: "ephoto,editor"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
min: 0 0; |
|
|
|
|
align: 0.0 0.0; |
|
|
|
|
rel1.relative: 1.0 0.0; |
|
|
|
|
rel2.to_y: "ephoto,statusbar"; |
|
|
|
|
rel2.relative: 1.0 0.0; |
|
|
|
|
color: 255 255 255 0; |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
description { state: "visible" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
min: 220 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; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
rect { name: "ephoto,statusbar"; |
|
|
|
|
clip_to: "ephoto,main,clip"; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
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; |
|
|
|
|
color: 255 255 255 0; |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
swallow { name: "ephoto.swallow.statusbar"; |
|
|
|
|
scale: 1; |
|
|
|
|
mouse_events: 1; |
|
|
|
|
clip_to: "ephoto,statusbar"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
rel1.relative: 0.0 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,folders,hide"; |
|
|
|
|
source: "ephoto"; |
|
|
|
|
script { |
|
|
|
|
if (get_int(folders_visible)) { |
|
|
|
|
anim(0.3, "hide_folders", 1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
program { signal: "ephoto,folders,show"; |
|
|
|
|
source: "ephoto"; |
|
|
|
|
script { |
|
|
|
|
if (!get_int(folders_visible)) { |
|
|
|
|
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,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(statusbar_visible)) { |
|
|
|
|
anim(0.3, "hide_statusbar", 1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
program { signal: "ephoto,statusbar,show"; |
|
|
|
|
source: "ephoto"; |
|
|
|
|
script { |
|
|
|
|
if (!get_int(statusbar_visible)) { |
|
|
|
|
anim(0.3, "show_statusbar", 1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
group { "elm/label/base/info"; |
|
|
|
|
mouse_events: 0; |
|
|
|
|
styles { |
|
|
|
|