diff --git a/data/images/ENVENTOR_EMBEDDED_ICON_ARROW.png b/data/images/ENVENTOR_EMBEDDED_ICON_ARROW.png new file mode 100644 index 0000000..081e3cf Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_ICON_ARROW.png differ diff --git a/data/images/ENVENTOR_EMBEDDED_ICON_BADGE.png b/data/images/ENVENTOR_EMBEDDED_ICON_BADGE.png new file mode 100644 index 0000000..1975d95 Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_ICON_BADGE.png differ diff --git a/data/images/ENVENTOR_EMBEDDED_ICON_BADGE_DOWN.png b/data/images/ENVENTOR_EMBEDDED_ICON_BADGE_DOWN.png new file mode 100644 index 0000000..3fa4967 Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_ICON_BADGE_DOWN.png differ diff --git a/data/images/ENVENTOR_EMBEDDED_ICON_CHECK.png b/data/images/ENVENTOR_EMBEDDED_ICON_CHECK.png new file mode 100644 index 0000000..0617ac2 Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_ICON_CHECK.png differ diff --git a/data/images/ENVENTOR_EMBEDDED_ICON_CHECK_DOWN.png b/data/images/ENVENTOR_EMBEDDED_ICON_CHECK_DOWN.png new file mode 100644 index 0000000..05d3fac Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_ICON_CHECK_DOWN.png differ diff --git a/data/images/ENVENTOR_EMBEDDED_ICON_CLIP.png b/data/images/ENVENTOR_EMBEDDED_ICON_CLIP.png new file mode 100644 index 0000000..e386b3b Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_ICON_CLIP.png differ diff --git a/data/images/ENVENTOR_EMBEDDED_ICON_CLIP_DOWN.png b/data/images/ENVENTOR_EMBEDDED_ICON_CLIP_DOWN.png new file mode 100644 index 0000000..8d5ac2e Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_ICON_CLIP_DOWN.png differ diff --git a/data/images/ENVENTOR_EMBEDDED_ICON_LOCK.png b/data/images/ENVENTOR_EMBEDDED_ICON_LOCK.png new file mode 100644 index 0000000..5892b34 Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_ICON_LOCK.png differ diff --git a/data/images/ENVENTOR_EMBEDDED_ICON_LOCK_DOWN.png b/data/images/ENVENTOR_EMBEDDED_ICON_LOCK_DOWN.png new file mode 100644 index 0000000..a903915 Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_ICON_LOCK_DOWN.png differ diff --git a/data/images/ENVENTOR_EMBEDDED_ICON_USER.png b/data/images/ENVENTOR_EMBEDDED_ICON_USER.png new file mode 100644 index 0000000..ebd1cda Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_ICON_USER.png differ diff --git a/data/images/Makefile.am b/data/images/Makefile.am index 607e075..4fa5290 100644 --- a/data/images/Makefile.am +++ b/data/images/Makefile.am @@ -25,6 +25,16 @@ files_DATA = ENVENTOR_EMBEDDED_IMAGE.png \ ENVENTOR_EMBEDDED_NEEDLE_MINUTE_RECT.png \ ENVENTOR_EMBEDDED_NEEDLE_SECOND_RECT.png \ ENVENTOR_EMBEDDED_WATCHFACE_RECT.png \ + ENVENTOR_EMBEDDED_ICON_ARROW.png \ + ENVENTOR_EMBEDDED_ICON_BADGE.png \ + ENVENTOR_EMBEDDED_ICON_BADGE_DOWN.png \ + ENVENTOR_EMBEDDED_ICON_CHECK.png \ + ENVENTOR_EMBEDDED_ICON_CHECK_DOWN.png \ + ENVENTOR_EMBEDDED_ICON_CLIP.png \ + ENVENTOR_EMBEDDED_ICON_CLIP_DOWN.png \ + ENVENTOR_EMBEDDED_ICON_LOCK.png \ + ENVENTOR_EMBEDDED_ICON_LOCK_DOWN.png \ + ENVENTOR_EMBEDDED_ICON_USER.png \ enventor_logo.png EXTRA_DIST = $(files_DATA) diff --git a/data/templates/Listitem.edc b/data/templates/Listitem.edc new file mode 100644 index 0000000..9f1150e --- /dev/null +++ b/data/templates/Listitem.edc @@ -0,0 +1,311 @@ +collections { + base_scale: 1.0; + group { "main"; + /* TODO: Please replace embedded image files to your application image files. */ + images { + image: "ENVENTOR_EMBEDDED_IMAGE.png" COMP; + image: "ENVENTOR_EMBEDDED_ICON_ARROW.png" COMP; + image: "ENVENTOR_EMBEDDED_ICON_BADGE.png" COMP; + image: "ENVENTOR_EMBEDDED_ICON_BADGE_DOWN.png" COMP; + image: "ENVENTOR_EMBEDDED_ICON_CHECK.png" COMP; + image: "ENVENTOR_EMBEDDED_ICON_CHECK_DOWN.png" COMP; + image: "ENVENTOR_EMBEDDED_ICON_CLIP.png" COMP; + image: "ENVENTOR_EMBEDDED_ICON_CLIP_DOWN.png" COMP; + image: "ENVENTOR_EMBEDDED_ICON_LOCK.png" COMP; + image: "ENVENTOR_EMBEDDED_ICON_LOCK_DOWN.png" COMP; + image: "ENVENTOR_EMBEDDED_ICON_USER.png" COMP; + } + parts { + rect { "bg"; + scale: 1; + desc { "default"; + color: 233 242 242 255; + visible: 1; + align: 0.5 0.5; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + min: 300 60; + max: 99999 60; + fixed: 1 1; + } + } + rect { "point_rect"; + scale: 1; + desc { "default"; + color: 0 176 137 255; + visible: 1; + align: 0.0 0.0; + rel1.to: "bg"; + rel1.relative: 0.0 0.0; + rel2.to: "bg"; + min: 5 0; + max: 5 99999; + fixed: 1 0; + } + } + spacer { "padding_left"; + scale: 1; + desc { "default"; + align: 0.0 0.5; + rel1.to: "point_rect"; + rel1.relative: 1.0 0.0; + rel2.to: "point_rect"; + min: 15 0; + fixed: 1 0; + } + } + image { "icon_status"; + scale: 1; + desc { "default"; + visible: 1; + /* TODO: Please replace embedded image files to your application image files. */ + image.normal: "ENVENTOR_EMBEDDED_ICON_ARROW.png"; + //aspect: 1 1; + align: 0.0 0.5; + rel1.to: "padding_left"; + rel1.relative: 1.0 0.1; + rel2.to: "padding_left"; + rel2.relative: 0.0 0.5; + min: 20 20; + max: 20 20; + fixed: 1 1; + } + } + + image { "icon_user"; + scale: 1; + desc { "default"; + visible: 1; + /* TODO: Please replace embedded image files to your application image files. */ + image.normal: "ENVENTOR_EMBEDDED_ICON_USER.png"; + //aspect: 1 1; + align: 0.0 0.5; + rel1.to: "icon_status"; + rel1.relative: 1.0 0.0; + rel2.to: "icon_status"; + min: 20 0; + fixed: 1 0; + } + } + text { "user_name"; + scale: 1; + desc { "default"; + color: 130 130 130 255; + visible: 1; + text { + size: 15; + font: "Sans"; + text: "Bowon Ryu"; + align: 0.0 0.5; + min: 0 0; + } + align: 0.0 0.5; + rel1.to: "icon_user"; + rel1.relative: 1.0 0.0; + rel2.to: "icon_user"; + min: 100 0; + fixed: 1 0; + } + } + text { "message"; + scale: 1; + desc { "default"; + color: 145 145 145 255; + visible: 1; + text { + size: 10; + font: "Sans"; + text: "How are you? I'm fine, thank you, and you?"; + align: 0.0 0.5; + min: 0 0; + } + align: 0.0 0.5; + rel1.to_x: "padding_left"; + rel1.to_y: "padding_icon"; + rel1.relative: 1.0 0.0; + rel2.to: "padding_icon"; + rel2.relative: 0.0 1.0; + min: 200 0; + fixed: 1 0; + } + } + spacer { "padding_right"; + scale: 1; + desc { "default"; + align: 1.0 0.5; + rel1.to: "bg"; + rel1.relative: 1.0 0.0; + rel2.to: "bg"; + min: 15 0; + fixed: 1 0; + } + } + text { "date"; + scale: 1; + desc { "default"; + color: 135 135 135 255; + visible: 1; + text { + size: 10; + font: "Sans"; + text: "21 Mar."; + align: 0.5 0.5; + min: 0 0; + } + align: 1.0 0.5; + rel1.to: "padding_right"; + rel1.relative: 1.0 0.1; + rel2.to: "padding_right"; + rel2.relative: 0.0 0.5; + min: 40 20; + max: 40 20; + fixed: 1 1; + } + } + image { "icon_clip"; + scale: 1; + desc { "default"; + visible: 1; + /* TODO: Please replace embedded image files to your application image files. */ + image.normal: "ENVENTOR_EMBEDDED_ICON_CLIP.png"; + //aspect: 1 1; + align: 1.0 0.5; + rel1.to: "date"; + rel1.relative: 1.0 0.0; + rel2.to: "date"; + rel2.relative: 0.0 1.0; + min: 20 0; + fixed: 1 0; + } + desc { "clicked"; + inherit: "default"; + image.normal: "ENVENTOR_EMBEDDED_ICON_CLIP_DOWN.png"; + } + } + image { "icon_badge"; + scale: 1; + desc { "default"; + visible: 1; + /* TODO: Please replace embedded image files to your application image files. */ + image.normal: "ENVENTOR_EMBEDDED_ICON_BADGE.png"; + //aspect: 1 1; + align: 1.0 0.5; + rel1.to: "icon_clip"; + rel1.relative: 1.0 0.0; + rel2.to: "icon_clip"; + rel2.relative: 0.0 1.0; + min: 20 0; + fixed: 1 0; + } + desc { "clicked"; + inherit: "default"; + image.normal: "ENVENTOR_EMBEDDED_ICON_BADGE_DOWN.png"; + } + } + image { "icon_lock"; + scale: 1; + desc { "default"; + visible: 1; + /* TODO: Please replace embedded image files to your application image files. */ + image.normal: "ENVENTOR_EMBEDDED_ICON_LOCK.png"; + //aspect: 1 1; + align: 1.0 0.5; + rel1.to: "icon_badge"; + rel1.relative: 1.0 0.0; + rel2.to: "icon_badge"; + rel2.relative: 0.0 1.0; + min: 20 0; + fixed: 1 0; + } + desc { "clicked"; + inherit: "default"; + image.normal: "ENVENTOR_EMBEDDED_ICON_LOCK_DOWN.png"; + } + } + image { "icon_check"; + scale: 1; + desc { "default"; + visible: 1; + /* TODO: Please replace embedded image files to your application image files. */ + image.normal: "ENVENTOR_EMBEDDED_ICON_CHECK.png"; + //aspect: 1 1; + align: 1.0 0.5; + rel1.to: "padding_right"; + rel1.relative: 1.0 0.5; + rel2.to: "padding_right"; + rel2.relative: 0.0 0.9; + min: 20 20; + max: 20 20; + fixed: 1 1; + } + desc { "clicked"; + inherit: "default"; + image.normal: "ENVENTOR_EMBEDDED_ICON_CHECK_DOWN.png"; + } + } + spacer { "padding_icon"; + scale: 1; + desc { "default"; + align: 1.0 0.5; + rel1.to: "icon_check"; + rel1.relative: 1.0 0.0; + rel2.to: "icon_check"; + rel2.relative: 0.0 1.0; + min: 20 0; + fixed: 1 0; + } + } + } + + programs { + program { "mouse_down_lock"; + signal: "mouse,down,1"; + source: "icon_lock"; + action: STATE_SET "clicked"; + target: "icon_lock"; + } + program { "mouse_up_lock"; + signal: "mouse,up,1"; + source: "icon_lock"; + action: STATE_SET "default"; + target: "icon_lock"; + } + program { "mouse_down_badge"; + signal: "mouse,down,1"; + source: "icon_badge"; + action: STATE_SET "clicked"; + target: "icon_badge"; + } + program { "mouse_up_badge"; + signal: "mouse,up,1"; + source: "icon_badge"; + action: STATE_SET "default"; + target: "icon_badge"; + } + program { "mouse_down_clip"; + signal: "mouse,down,1"; + source: "icon_clip"; + action: STATE_SET "clicked"; + target: "icon_clip"; + } + program { "mouse_up_clip"; + signal: "mouse,up,1"; + source: "icon_clip"; + action: STATE_SET "default"; + target: "icon_clip"; + } + program { "mouse_down_check"; + signal: "mouse,down,1"; + source: "icon_check"; + action: STATE_SET "clicked"; + target: "icon_check"; + } + program { "mouse_up_check"; + signal: "mouse,up,1"; + source: "icon_check"; + action: STATE_SET "default"; + target: "icon_check"; + } + } + } +} \ No newline at end of file diff --git a/data/templates/Makefile.am b/data/templates/Makefile.am index 66cc785..1634a98 100644 --- a/data/templates/Makefile.am +++ b/data/templates/Makefile.am @@ -14,6 +14,8 @@ files_DATA = Basic.edc \ Group.edj \ Image.edc \ Image.edj \ + Listitem.edc \ + Listitem.edj \ Map.edc \ Map.edj \ Proxy.edc \ @@ -71,6 +73,9 @@ Rotation+Zoom.edj: Makefile Rotation+Zoom.edc Group.edj: Makefile Group.edc $(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/Group.edc $(builddir)/Group.edj +Listitem.edj: Makefile Listitem.edc + $(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/Listitem.edc $(builddir)/Listitem.edj + Image.edj: Makefile Image.edc $(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/Image.edc $(builddir)/Image.edj