Minor cleanups.

SVN revision: 42839
This commit is contained in:
titan 2009-10-01 18:04:55 +00:00 committed by titan
parent 9236d613b9
commit d858890c57
3 changed files with 85 additions and 168 deletions

View File

@ -11,8 +11,7 @@ collections
image: "move_left.png" COMP; image: "move_left.png" COMP;
image: "move_right.png" COMP; image: "move_right.png" COMP;
image: "thumb_shadow.png" COMP; image: "thumb_shadow.png" COMP;
image: "left_arrow.png" COMP; image: "left_arrow.png" COMP;
//image: "thumb_shadow_selected.png" COMP;
} }
group group
{ {
@ -84,22 +83,6 @@ collections
} }
parts parts
{ {
part
{
name: "thumb_area";
type: RECT;
mouse_events: 1;
description
{
state: "default" 0.0;
visible: 1;
rel1.relative: 0.0 0.0;
rel1.offset: 27 0;
rel2.relative: 1.0 1.0;
rel2.offset: -27 -1;
color: 255 255 255 255;
}
}
part part
{ {
name: "ephoto.text.object"; name: "ephoto.text.object";
@ -124,32 +107,7 @@ collections
} }
part part
{ {
name: "ephoto.swallow.content"; name: "ephoto.move.left";
type: SWALLOW;
clip_to: "thumb_area";
mouse_events: 1;
description
{
state: "default" 0.0;
rel1.to: "thumb_area";
rel1.relative: 0.0 0.0;
rel1.offset: 0 0;
rel2.to: "thumb_area";
rel2.relative: 1.0 1.0;
rel2.offset: -1 -1;
color: 255 255 255 255;
}
description
{
state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0;
color: 255 255 255 0;
}
}
part
{
name: "move_left";
type: IMAGE; type: IMAGE;
mouse_events: 1; mouse_events: 1;
description description
@ -166,7 +124,7 @@ collections
} }
part part
{ {
name: "move_right"; name: "ephoto.move.right";
type: IMAGE; type: IMAGE;
mouse_events: 1; mouse_events: 1;
description description
@ -182,34 +140,20 @@ collections
} }
} }
} }
programs {
program {
name: "hidden";
signal: "ephoto.browser.hidden";
source: "ephoto";
action: STATE_SET "hidden" 0.0;
transition: LINEAR 0.6;
target: "ephoto.swallow.content";
}
program {
name: "visible";
signal: "ephoto.browser.visible";
source: "ephoto";
action: STATE_SET "default" 0.0;
transition: LINEAR 0.6;
target: "ephoto.swallow.content";
}
}
} }
group { group
{
name: "/ephoto/thumb/shadow"; name: "/ephoto/thumb/shadow";
min: 198 136; min: 198 136;
parts { parts
part { {
part
{
name: "ephoto.swallow.content"; name: "ephoto.swallow.content";
type: SWALLOW; type: SWALLOW;
mouse_events: 1; mouse_events: 1;
description { description
{
state: "default" 0.0; state: "default" 0.0;
min: 1 1; min: 1 1;
max: 176 117; max: 176 117;
@ -218,23 +162,27 @@ collections
rel2.relative: 1.0 1.0; rel2.relative: 1.0 1.0;
color: 255 255 255 255; color: 255 255 255 255;
} }
description { description
{
state: "selected" 0.0; state: "selected" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 255; color: 255 255 255 255;
} }
description { description
{
state: "hidden" 0.0; state: "hidden" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 0; color: 255 255 255 0;
visible: 0; visible: 0;
} }
} }
part { part
{
name: "background"; name: "background";
type: IMAGE; type: IMAGE;
mouse_events: 1; mouse_events: 1;
description { description
{
state: "default" 0.0; state: "default" 0.0;
visible: 1; visible: 1;
min: 198 136; min: 198 136;
@ -246,14 +194,14 @@ collections
image.normal: "thumb_shadow.png"; image.normal: "thumb_shadow.png";
image.border: 12 12 7 13; image.border: 12 12 7 13;
} }
description { description
{
state: "selected" 0.0; state: "selected" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 255; color: 255 255 255 255;
//image.normal: "thumb_shadow_selected.png";
//image.border: 12 12 7 13;
} }
description { description
{
state: "hidden" 0.0; state: "hidden" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
color: 255 255 255 0; color: 255 255 255 0;
@ -261,8 +209,10 @@ collections
} }
} }
} }
programs { programs
program { {
program
{
name: "selected"; name: "selected";
signal: "ephoto.thumb.selected"; signal: "ephoto.thumb.selected";
source: "ephoto"; source: "ephoto";
@ -270,7 +220,8 @@ collections
transition: LINEAR 0.3; transition: LINEAR 0.3;
target: "background"; target: "background";
} }
program { program
{
name: "deselected"; name: "deselected";
signal: "ephoto.thumb.deselected"; signal: "ephoto.thumb.deselected";
source: "ephoto"; source: "ephoto";
@ -278,7 +229,8 @@ collections
transition: LINEAR 0.3; transition: LINEAR 0.3;
target: "background"; target: "background";
} }
program { program
{
name: "hidden"; name: "hidden";
signal: "ephoto.thumb.hidden"; signal: "ephoto.thumb.hidden";
source: "ephoto"; source: "ephoto";
@ -287,7 +239,8 @@ collections
target: "background"; target: "background";
target: "ephoto.swallow.content"; target: "ephoto.swallow.content";
} }
program { program
{
name: "visible"; name: "visible";
signal: "ephoto.thumb.visible"; signal: "ephoto.thumb.visible";
source: "ephoto"; source: "ephoto";
@ -298,29 +251,35 @@ collections
} }
} }
} }
group { group
{
name: "/ephoto/thumb/image"; name: "/ephoto/thumb/image";
min: 176 117; min: 176 117;
parts { parts
part { {
part
{
name: "clipper"; name: "clipper";
type: RECT; type: RECT;
mouse_events: 0; mouse_events: 0;
description { description
{
state: "default" 0.0; state: "default" 0.0;
visible: 1; visible: 1;
min: 1 1; min: 1 1;
max: 176 117; max: 176 117;
color: 255 255 255 255; color: 255 255 255 255;
} }
description { description
{
state: "hidden" 0.0; state: "hidden" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
visible: 0; visible: 0;
color: 255 255 255 0; color: 255 255 255 0;
} }
} }
part { part
{
name: "ephoto.swallow.content"; name: "ephoto.swallow.content";
type: SWALLOW; type: SWALLOW;
mouse_events: 1; mouse_events: 1;
@ -336,14 +295,16 @@ collections
rel2.relative: 1.0 1.0; rel2.relative: 1.0 1.0;
color: 255 255 255 255; color: 255 255 255 255;
} }
description { description
{
state: "hidden" 0.0; state: "hidden" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
visible: 0; visible: 0;
color: 255 255 255 0; color: 255 255 255 0;
} }
} }
part { part
{
name: "event_area"; name: "event_area";
type: RECT; type: RECT;
mouse_events: 1; mouse_events: 1;
@ -360,51 +321,12 @@ collections
} }
} }
} }
programs {
program {
name: "hidden";
signal: "ephoto.thumb.hidden";
source: "ephoto";
action: STATE_SET "hidden" 0.0;
transition: DECELERATE 0.3;
target: "ephoto.swallow.content";
target: "clipper";
}
program {
name: "visible";
signal: "ephoto.thumb.visible";
source: "ephoto";
action: STATE_SET "default" 0.0;
transition: LINEAR 0.3;
target: "ephoto.swallow.content";
target: "clipper";
}
}
} }
group group
{ {
name: "/ephoto/flow/view"; name: "/ephoto/flow/view";
parts parts
{ {
part
{
name: "back";
type: IMAGE;
mouse_events: 1;
description
{
state: "default" 0.0;
visible: 1;
min: 32 32;
max: 32 32;
rel1.relative: 0.0 0.0;
rel1.offset: 50 50;
rel2.relative: 0.0 0.0;
rel2.offset: -1 -1;
color: 255 255 255 255;
image.normal: "left_arrow.png";
}
}
part part
{ {
name: "image_area"; name: "image_area";
@ -425,30 +347,43 @@ collections
{ {
name: "ephoto.swallow.content"; name: "ephoto.swallow.content";
type: SWALLOW; type: SWALLOW;
clip_to: "image_area";
mouse_events: 1; mouse_events: 1;
description clip_to: "image_area";
{
state: "default" 0.0;
rel1.to: "image_area";
rel1.relative: 0.5 0.5;
rel1.offset: 0 0;
rel2.to: "image_area";
rel2.relative: 0.5 0.5;
rel2.offset: 0 0;
color: 255 255 255 255;
}
description description
{ {
state: "hidden" 0.0; state: "default" 0.0;
inherit: "default" 0.0; visible: 1;
visible: 0; rel1.to: "image_area";
color: 255 255 255 0; rel1.relative: 0.5 0.5;
rel1.offset: 0 0;
rel2.to: "image_area";
rel2.relative: 0.5 0.5;
rel2.offset: 0 0;
color: 255 255 255 255;
} }
} }
part part
{ {
name: "move_left"; name: "ephoto.move.back";
type: IMAGE;
mouse_events: 1;
description
{
state: "default" 0.0;
visible: 1;
min: 32 32;
max: 32 32;
rel1.relative: 0.0 0.0;
rel1.offset: 50 50;
rel2.relative: 0.0 0.0;
rel2.offset: -1 -1;
color: 255 255 255 255;
image.normal: "left_arrow.png";
}
}
part
{
name: "ephoto.move.left";
type: IMAGE; type: IMAGE;
mouse_events: 1; mouse_events: 1;
description description
@ -465,7 +400,7 @@ collections
} }
part part
{ {
name: "move_right"; name: "ephoto.move.right";
type: IMAGE; type: IMAGE;
mouse_events: 1; mouse_events: 1;
description description
@ -481,24 +416,6 @@ collections
} }
} }
} }
programs {
program {
name: "hidden";
signal: "ephoto.browser.hidden";
source: "ephoto";
action: STATE_SET "hidden" 0.0;
transition: LINEAR 0.6;
target: "ephoto.swallow.content";
}
program {
name: "visible";
signal: "ephoto.browser.visible";
source: "ephoto";
action: STATE_SET "default" 0.0;
transition: LINEAR 0.6;
target: "ephoto.swallow.content";
}
}
} }
} }

View File

@ -158,11 +158,11 @@ static void _flow_smart_add(Evas_Object *obj)
edje_object_file_set(sd->obj, PACKAGE_DATA_DIR "/themes/default/ephoto.edj", "/ephoto/flow/view"); edje_object_file_set(sd->obj, PACKAGE_DATA_DIR "/themes/default/ephoto.edj", "/ephoto/flow/view");
evas_object_smart_data_set(obj, sd); evas_object_smart_data_set(obj, sd);
edje_object_signal_callback_add(sd->obj, "mouse,up,1", "move_left", move_left, sd); edje_object_signal_callback_add(sd->obj, "mouse,up,1", "ephoto.move.left", move_left, sd);
edje_object_signal_callback_add(sd->obj, "mouse,up,1", "move_right", move_right, sd); edje_object_signal_callback_add(sd->obj, "mouse,up,1", "ephoto.move.right", move_right, sd);
edje_object_signal_callback_add(sd->obj, "mouse,up,1", "back", go_back, sd); edje_object_signal_callback_add(sd->obj, "mouse,up,1", "ephoto.move.back", go_back, sd);
sd->center_image = ephoto_image_add(); sd->center_image = ephoto_image_add();
edje_object_part_swallow(sd->obj, "ephoto.swallow.content", sd->center_image); edje_object_part_swallow(sd->obj, "ephoto.swallow.content", sd->center_image);

View File

@ -625,9 +625,9 @@ static void _table_smart_add(Evas_Object *obj)
edje_object_file_set(sd->obj, PACKAGE_DATA_DIR "/themes/default/ephoto.edj", "/ephoto/image/browser"); edje_object_file_set(sd->obj, PACKAGE_DATA_DIR "/themes/default/ephoto.edj", "/ephoto/image/browser");
evas_object_smart_data_set(obj, sd); evas_object_smart_data_set(obj, sd);
edje_object_signal_callback_add(sd->obj, "mouse,up,1", "move_left", move_left, NULL); edje_object_signal_callback_add(sd->obj, "mouse,up,1", "ephoto.move.left", move_left, NULL);
edje_object_signal_callback_add(sd->obj, "mouse,up,1", "move_right", move_right, NULL); edje_object_signal_callback_add(sd->obj, "mouse,up,1", "ephoto.move.right", move_right, NULL);
img = edje_object_add(em->e); img = edje_object_add(em->e);
edje_object_file_set(img, PACKAGE_DATA_DIR "/themes/default/ephoto.edj", "/ephoto/thumb/shadow"); edje_object_file_set(img, PACKAGE_DATA_DIR "/themes/default/ephoto.edj", "/ephoto/thumb/shadow");