hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=f562d86376e720fe9c42d3b437ed6303ecfd5921

commit f562d86376e720fe9c42d3b437ed6303ecfd5921
Author: Hermet Park <[email protected]>
Date:   Fri May 27 11:50:51 2016 +0900

    templates: add watchface.
---
 data/images/ENVENTOR_EMBEDDED_CALENDAR_UNIT.png   | Bin 0 -> 24493 bytes
 data/images/ENVENTOR_EMBEDDED_DATE_BG.png         | Bin 0 -> 2881 bytes
 data/images/ENVENTOR_EMBEDDED_MONTH_STROKE.png    | Bin 0 -> 3564 bytes
 data/images/ENVENTOR_EMBEDDED_MOONPHASE_COVER.png | Bin 0 -> 15111 bytes
 data/images/ENVENTOR_EMBEDDED_MOONPHASE_MOON.png  | Bin 0 -> 10468 bytes
 data/images/ENVENTOR_EMBEDDED_NEEDLE_HOUR.png     | Bin 0 -> 511 bytes
 data/images/ENVENTOR_EMBEDDED_NEEDLE_MINUTE.png   | Bin 0 -> 548 bytes
 data/images/ENVENTOR_EMBEDDED_NEEDLE_SECOND.png   | Bin 0 -> 753 bytes
 data/images/ENVENTOR_EMBEDDED_WATCHFACE.png       | Bin 0 -> 75840 bytes
 data/images/Makefile.am                           |  11 +-
 data/templates/Makefile.am                        |   7 +-
 data/templates/watchface.edc                      | 270 ++++++++++++++++++++++
 12 files changed, 286 insertions(+), 2 deletions(-)

diff --git a/data/images/ENVENTOR_EMBEDDED_CALENDAR_UNIT.png 
b/data/images/ENVENTOR_EMBEDDED_CALENDAR_UNIT.png
new file mode 100644
index 0000000..dfe7b80
Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_CALENDAR_UNIT.png 
differ
diff --git a/data/images/ENVENTOR_EMBEDDED_DATE_BG.png 
b/data/images/ENVENTOR_EMBEDDED_DATE_BG.png
new file mode 100644
index 0000000..14434c9
Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_DATE_BG.png differ
diff --git a/data/images/ENVENTOR_EMBEDDED_MONTH_STROKE.png 
b/data/images/ENVENTOR_EMBEDDED_MONTH_STROKE.png
new file mode 100644
index 0000000..09f486f
Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_MONTH_STROKE.png 
differ
diff --git a/data/images/ENVENTOR_EMBEDDED_MOONPHASE_COVER.png 
b/data/images/ENVENTOR_EMBEDDED_MOONPHASE_COVER.png
new file mode 100644
index 0000000..e90d54a
Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_MOONPHASE_COVER.png 
differ
diff --git a/data/images/ENVENTOR_EMBEDDED_MOONPHASE_MOON.png 
b/data/images/ENVENTOR_EMBEDDED_MOONPHASE_MOON.png
new file mode 100644
index 0000000..12074dc
Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_MOONPHASE_MOON.png 
differ
diff --git a/data/images/ENVENTOR_EMBEDDED_NEEDLE_HOUR.png 
b/data/images/ENVENTOR_EMBEDDED_NEEDLE_HOUR.png
new file mode 100644
index 0000000..6e51387
Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_NEEDLE_HOUR.png 
differ
diff --git a/data/images/ENVENTOR_EMBEDDED_NEEDLE_MINUTE.png 
b/data/images/ENVENTOR_EMBEDDED_NEEDLE_MINUTE.png
new file mode 100644
index 0000000..987c3e2
Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_NEEDLE_MINUTE.png 
differ
diff --git a/data/images/ENVENTOR_EMBEDDED_NEEDLE_SECOND.png 
b/data/images/ENVENTOR_EMBEDDED_NEEDLE_SECOND.png
new file mode 100644
index 0000000..bb89631
Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_NEEDLE_SECOND.png 
differ
diff --git a/data/images/ENVENTOR_EMBEDDED_WATCHFACE.png 
b/data/images/ENVENTOR_EMBEDDED_WATCHFACE.png
new file mode 100644
index 0000000..40c0f96
Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_WATCHFACE.png differ
diff --git a/data/images/Makefile.am b/data/images/Makefile.am
index fb0f3d1..59c3487 100644
--- a/data/images/Makefile.am
+++ b/data/images/Makefile.am
@@ -14,6 +14,15 @@ files_DATA = ENVENTOR_EMBEDDED_IMAGE.png \
              ENVENTOR_EMBEDDED_TRIAB-10.png \
              ENVENTOR_EMBEDDED_TRIAB-11.png \
              ENVENTOR_EMBEDDED_TRIAB-12.png \
-                                enventor_logo.png
+             ENVENTOR_EMBEDDED_CALENDAR_UNIT.png \
+             ENVENTOR_EMBEDDED_DATE_BG.png \
+             ENVENTOR_EMBEDDED_MONTH_STROKE.png \
+             ENVENTOR_EMBEDDED_MOONPHASE_COVER.png \
+             ENVENTOR_EMBEDDED_MOONPHASE_MOON.png \
+             ENVENTOR_EMBEDDED_NEEDLE_HOUR.png \
+             ENVENTOR_EMBEDDED_NEEDLE_MINUTE.png \
+             ENVENTOR_EMBEDDED_NEEDLE_SECOND.png \
+             ENVENTOR_EMBEDDED_WATCHFACE.png \
+             enventor_logo.png
 
 EXTRA_DIST = $(files_DATA)
diff --git a/data/templates/Makefile.am b/data/templates/Makefile.am
index 831781e..6d92d9c 100644
--- a/data/templates/Makefile.am
+++ b/data/templates/Makefile.am
@@ -33,7 +33,9 @@ files_DATA = basic.edc \
              transition.edc \
              transition.edj \
              tween.edc \
-             tween.edj
+             tween.edj \
+             watchface.edc \
+             watchface.edj
 
 EXTRA_DIST = $(files_DATA)
 
@@ -85,5 +87,8 @@ spacer.edj: Makefile spacer.edc
 sound.edj: Makefile sound.edc
        $(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/sound.edc $(builddir)/sound.edj
 
+watchface.edj: Makefile watchface.edc
+       $(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/watchface.edc 
$(builddir)/watchface.edj
+
 clean-local:
        rm -f *.edj
diff --git a/data/templates/watchface.edc b/data/templates/watchface.edc
new file mode 100644
index 0000000..df15f20
--- /dev/null
+++ b/data/templates/watchface.edc
@@ -0,0 +1,270 @@
+collections {
+   base_scale: 1;
+   group { "main";
+      /* TODO: Please replace embedded image files to your application image 
files. */
+      images {
+         image: "ENVENTOR_EMBEDDED_WATCHFACE.png" COMP;
+         image: "ENVENTOR_EMBEDDED_CALENDAR_UNIT.png" COMP;
+         image: "ENVENTOR_EMBEDDED_MOONPHASE_COVER.png" COMP;
+         image: "ENVENTOR_EMBEDDED_MOONPHASE_MOON.png" COMP;
+         image: "ENVENTOR_EMBEDDED_MONTH_STROKE.png" COMP;
+         image: "ENVENTOR_EMBEDDED_DATE_BG.png" COMP;
+         image: "ENVENTOR_EMBEDDED_NEEDLE_HOUR.png" COMP;
+         image: "ENVENTOR_EMBEDDED_NEEDLE_MINUTE.png" COMP;
+         image: "ENVENTOR_EMBEDDED_NEEDLE_SECOND.png" COMP;
+      }
+      parts {
+         image { "bg";
+            scale: 1;
+            desc { "default";
+               /* TODO: Please replace embedded image files to your 
application image files. */
+               image.normal: "ENVENTOR_EMBEDDED_WATCHFACE.png";
+               min: 250 250;
+               rel1.relative: 0.5 0.5;
+               rel2.relative: 0.5 0.5;
+               fixed: 1 1;
+            }
+         }
+         image { "calendar";
+            scale: 1;
+            desc { "default";
+               /* TODO: Please replace embedded image files to your 
application image files. */
+               image.normal: "ENVENTOR_EMBEDDED_CALENDAR_UNIT.png";
+               min: 220 220;
+               rel1.relative: 0.5 0.5;
+               rel2.relative: 0.5 0.5;
+               fixed: 1 1;
+            }
+         }
+         image { "moonphase_moon";
+            scale: 1;
+            desc { "default";
+               /* TODO: Please replace embedded image files to your 
application image files. */
+               image.normal: "ENVENTOR_EMBEDDED_MOONPHASE_MOON.png";
+               rel1.to: "moonphase_cover";
+               rel2.to: "moonphase_cover";
+               fixed: 1 1;
+               map.on: 1;
+               map.rotation.z: 0;
+            }
+            desc { "rotated";
+               inherit: "default";
+               map.rotation.z: 360;
+            }
+         }
+         image { "moonphase_cover";
+            scale: 1;
+            desc { "default";
+               /* TODO: Please replace embedded image files to your 
application image files. */
+               image.normal: "ENVENTOR_EMBEDDED_MOONPHASE_COVER.png";
+               min: 130 130;
+               align: 0.5 1.0;
+               rel1.to: "bg";
+               rel2.to: "bg";
+               rel1.relative: 0.5 1;
+               rel2.relative: 0.5 1;
+               fixed: 1 1;
+            }
+         }
+         image { "month_stroke";
+            scale: 1;
+            desc { "default";
+               /* TODO: Please replace embedded image files to your 
application image files. */
+               image.normal: "ENVENTOR_EMBEDDED_MONTH_STROKE.png";
+               rel1.to: "calendar";
+               rel2.to: "calendar";
+               fixed: 1 1;
+               map.on: 1;
+            }
+            desc { "feb";
+               inherit: "default";
+               map.rotation.z: 20;
+            }
+            desc { "mar";
+               inherit: "default";
+               map.rotation.z: 40;
+            }
+            desc { "apr";
+               inherit: "default";
+               map.rotation.z: 60;
+            }
+            desc { "may";
+               inherit: "default";
+               map.rotation.z: 80;
+            }
+            desc { "jun";
+               inherit: "default";
+               map.rotation.z: 100;
+            }
+            desc { "jul";
+               inherit: "default";
+               map.rotation.z: 120;
+            }
+            desc { "aug";
+               inherit: "default";
+               map.rotation.z: 140;
+            }
+            desc { "sep";
+               inherit: "default";
+               map.rotation.z: 160;
+            }
+            desc { "oct";
+               inherit: "default";
+               map.rotation.z: 180;
+            }
+            desc { "nov";
+               inherit: "default";
+               map.rotation.z: 200;
+            }
+            desc { "dec";
+               inherit: "default";
+               map.rotation.z: 220;
+            }
+         }
+         image { "date_bg";
+            scale: 1;
+            desc { "default";
+               /* TODO: Please replace embedded image files to your 
application image files. */
+               image.normal: "ENVENTOR_EMBEDDED_DATE_BG.png";
+               min: 30 30;
+               align: 0.5 1.0;
+               fixed: 1 1;
+               rel1.to: "bg";
+               rel2.to: "bg";
+               rel1.relative: 0.9 0.55;
+               rel2.relative: 0.9 0.55;
+            }
+         }
+         text { "date";
+            scale: 1;
+            desc { "default";
+               color: 0 0 0 255;
+               fixed: 1 1;
+               text {
+                  size: 10;
+                  font: "Sans";
+                  text: "18";
+                  align: 0.5 0.5;
+                  min: 0 0;
+               }
+               rel1.to: "date_bg";
+               rel2.to: "date_bg";
+            }
+         }
+         image { "hour";
+            scale: 1;
+            nomouse;
+            desc { "default";
+               rel1.to: "bg";
+               rel2.to: "bg";
+               /* TODO: Please replace embedded image files to your 
application image files. */
+               image.normal: "ENVENTOR_EMBEDDED_NEEDLE_HOUR.png";
+               map.on: 1;
+               map.rotation.z: 0;
+            }
+            desc { "rotated";
+               inherit: "default";
+               map.rotation.z: 360;
+            }
+         }
+         image { "minute";
+            scale: 1;
+            nomouse;
+            desc { "default";
+               rel1.to: "bg";
+               rel2.to: "bg";
+               /* TODO: Please replace embedded image files to your 
application image files. */
+               image.normal: "ENVENTOR_EMBEDDED_NEEDLE_MINUTE.png";
+               map.on: 1;
+               map.rotation.z: 0;
+            }
+            desc { "rotated";
+               inherit: "default";
+               map.rotation.z: 360;
+            }
+         }
+         image { "second";
+            scale: 1;
+            nomouse;
+            desc { "default";
+               rel1.to: "bg";
+               rel2.to: "bg";
+               /* TODO: Please replace embedded image files to your 
application image files. */
+               image.normal: "ENVENTOR_EMBEDDED_NEEDLE_SECOND.png";
+               map.on: 1;
+               map.rotation.z: 0;
+            }
+            desc { "rotated";
+               inherit: "default";
+               map.rotation.z: 360;
+            }
+         }
+         image { "roatry";
+            scale: 1;
+            desc { "default";
+               /* TODO: Please replace embedded image files to your 
application image files. */
+               image.normal: "ENVENTOR_EMBEDDED_DATE_BG.png";
+               min: 15 15;
+               align: 0.5 0.5;
+               rel1.relative: 0.5 0.5;
+               rel2.relative: 0.5 0.5;
+               fixed: 1 1;
+            }
+         }
+      }
+      programs {
+         program { "load";
+            signal: "load";
+            source: "";
+            action: STATE_SET "rotated";
+            target: "moonphase_moon";
+            transition: LINEAR 30;
+            after: "reset";
+         }
+         program { "reset";
+            action: STATE_SET "default";
+            target: "moonphase_moon";
+            after: "load";
+         }
+         program { "hour_begin";
+            signal: "load";
+            source: "";
+            action: STATE_SET "rotated";
+            target: "hour";
+            transition: LINEAR 216000;
+            after: "hour_reset";
+         }
+         program { "hour_reset";
+            action: STATE_SET "default";
+            target: "hour";
+            after: "hour_begin";
+         }
+         program { "minute_begin";
+            signal: "load";
+            source: "";
+            action: STATE_SET "rotated";
+            target: "minute";
+            transition: LINEAR 3600;
+            after: "minute_begin";
+         }
+         program { "minute_reset";
+            action: STATE_SET "default";
+            target: "minute";
+            after: "minute_begin";
+         }
+         program { "second_begin";
+            signal: "load";
+            source: "";
+            action: STATE_SET "rotated";
+            target: "second";
+            transition: LINEAR 60;
+            after: "second_reset";
+         }
+         program { "second_reset";
+            action: STATE_SET "default";
+            target: "second";
+            after: "second_begin";
+         }
+      }
+   }
+}

-- 


Reply via email to