Elementary: icon, actionslider, fileselector, calendar, bg
authorgastal <gastal@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 21 Jul 2011 16:13:54 +0000 (16:13 +0000)
committergastal <gastal@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 21 Jul 2011 16:13:54 +0000 (16:13 +0000)
 and image widget previews.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61566 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

doc/Makefile.am
doc/index.doxy
doc/widget_preview_actionslider.c [new file with mode: 0644]
doc/widget_preview_bg.c [new file with mode: 0644]
doc/widget_preview_calendar.c [new file with mode: 0644]
doc/widget_preview_fileselector.c [new file with mode: 0644]
doc/widget_preview_icon.c [new file with mode: 0644]
doc/widget_preview_image.c [new file with mode: 0644]
src/lib/Elementary.h.in

index 4e56927..e15d509 100644 (file)
@@ -47,7 +47,13 @@ widget_preview_index \
 widget_preview_clock \
 widget_preview_label \
 widget_preview_frame \
-widget_preview_ctxpopup
+widget_preview_ctxpopup \
+widget_preview_icon \
+widget_preview_image \
+widget_preview_calendar \
+widget_preview_bg \
+widget_preview_fileselector \
+widget_preview_actionslider
 
 LDADD = $(top_builddir)/src/lib/libelementary.la @ELEMENTARY_EWEATHER_LIBS@ @ELEMENTARY_EDBUS_LIBS@ @ELEMENTARY_EFREET_LIBS@ @ELEMENTARY_LIBS@ @EIO_LIBS@ @my_libs@
 
@@ -71,7 +77,13 @@ WGT_PREVIEW = \
        frame:preview-00.png:widget_preview_frame:100:50 \
        label:preview-00.png:widget_preview_label:70:30 \
        clock:preview-00.png:widget_preview_clock:200:100 \
-       ctxpopup:preview-00.png:widget_preview_ctxpopup:200:130
+       ctxpopup:preview-00.png:widget_preview_ctxpopup:200:130 \
+       icon:preview-00.png:widget_preview_icon:50:50 \
+       image:preview-00.png:widget_preview_image:50:50 \
+       calendar:preview-00.png:widget_preview_calendar:300:300 \
+       bg:preview-00.png:widget_preview_bg:50:50 \
+       fileselector:preview-00.png:widget_preview_fileselector:300:300 \
+       actionslider:preview-00.png:widget_preview_actionslider:120:30
 
 widget-preview:
        @for ss in $(WGT_PREVIEW); do \
index cae136a..b88f071 100644 (file)
  * And here a list of the widgets and some images to give you an idea of what
  * they are:
  * @li @ref Actionslider
+ *
+ * @image html img/widget/actionslider/preview-00.png
+ * @image latex img/widget/actionslider/preview-00.eps
  * @li @ref Anchorview
  * @li @ref Anchorblock
  * @li @ref Bg
+ *
+ * @image html img/widget/bg/preview-00.png
+ * @image latex img/widget/bg/preview-00.eps
  * @li @ref Box
  * @li @ref Bubble
  *
@@ -42,6 +48,9 @@
  * @image html img/widget/button/preview-00.png
  * @image latex img/widget/button/preview-00.eps
  * @li @ref Calendar
+ *
+ * @image html img/widget/calendar/preview-00.png
+ * @image latex img/widget/calendar/preview-00.eps
  * @li @ref Check
  *
  * @image html img/widget/check/preview-00.png
@@ -67,6 +76,9 @@
  * @image latex img/widget/fileselector_button/preview-00.eps
  * @li @ref File_Selector_Entry
  * @li @ref Fileselector
+ *
+ * @image html img/widget/fileselector/preview-00.png
+ * @image latex img/widget/fileselector/preview-00.eps
  * @li @ref Flip
  * @li @ref Flipselector
  * @li @ref Frame
  * @li @ref Hover
  * @li @ref Hoversel
  * @li @ref Icon
+ *
+ * @image html img/widget/icon/preview-00.png
+ * @image latex img/widget/icon/preview-00.eps
  * @li @ref Image
+ *
+ * @image html img/widget/image/preview-00.png
+ * @image latex img/widget/image/preview-00.eps
  * @li @ref Index
  *
  * @image html img/widget/index/preview-00.png
diff --git a/doc/widget_preview_actionslider.c b/doc/widget_preview_actionslider.c
new file mode 100644 (file)
index 0000000..e8dc842
--- /dev/null
@@ -0,0 +1,11 @@
+#include "widget_preview_tmpl_head.c"
+
+Evas_Object *o = elm_actionslider_add(win);
+evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+elm_win_resize_object_add(win, o);
+evas_object_show(o);
+
+elm_actionslider_labels_set(o, "left", "center", "right");
+elm_actionslider_indicator_pos_set(o, ELM_ACTIONSLIDER_CENTER);
+
+#include "widget_preview_tmpl_foot.c"
diff --git a/doc/widget_preview_bg.c b/doc/widget_preview_bg.c
new file mode 100644 (file)
index 0000000..b08c01c
--- /dev/null
@@ -0,0 +1,10 @@
+#include "widget_preview_tmpl_head.c"
+
+Evas_Object *o = elm_bg_add(win);
+evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+elm_win_resize_object_add(win, o);
+
+elm_bg_file_set(o, PACKAGE_DATA_DIR"/images/logo_small.png", NULL);
+evas_object_show(o);
+
+#include "widget_preview_tmpl_foot.c"
diff --git a/doc/widget_preview_calendar.c b/doc/widget_preview_calendar.c
new file mode 100644 (file)
index 0000000..5b5625a
--- /dev/null
@@ -0,0 +1,8 @@
+#include "widget_preview_tmpl_head.c"
+
+Evas_Object *o = elm_calendar_add(win);
+evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+elm_win_resize_object_add(win, o);
+evas_object_show(o);
+
+#include "widget_preview_tmpl_foot.c"
diff --git a/doc/widget_preview_fileselector.c b/doc/widget_preview_fileselector.c
new file mode 100644 (file)
index 0000000..1f3d407
--- /dev/null
@@ -0,0 +1,8 @@
+#include "widget_preview_tmpl_head.c"
+
+Evas_Object *o = elm_fileselector_add(win);
+evas_object_resize(o, 300, 300);
+evas_object_show(o);
+elm_fileselector_path_set(o, PACKAGE_DATA_DIR);
+
+#include "widget_preview_tmpl_foot.c"
diff --git a/doc/widget_preview_icon.c b/doc/widget_preview_icon.c
new file mode 100644 (file)
index 0000000..098c5e4
--- /dev/null
@@ -0,0 +1,11 @@
+#include "widget_preview_tmpl_head.c"
+
+Evas_Object *o = elm_icon_add(win);
+evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+elm_win_resize_object_add(win, o);
+
+elm_icon_standard_set(o, "home");
+elm_icon_scale_set(o, EINA_FALSE, EINA_FALSE);
+evas_object_show(o);
+
+#include "widget_preview_tmpl_foot.c"
diff --git a/doc/widget_preview_image.c b/doc/widget_preview_image.c
new file mode 100644 (file)
index 0000000..9943a20
--- /dev/null
@@ -0,0 +1,11 @@
+#include "widget_preview_tmpl_head.c"
+
+Evas_Object *o = elm_image_add(win);
+evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+elm_win_resize_object_add(win, o);
+
+elm_image_file_set(o, PACKAGE_DATA_DIR"/images/logo_small.png", NULL);
+elm_image_scale_set(o, EINA_FALSE, EINA_FALSE);
+evas_object_show(o);
+
+#include "widget_preview_tmpl_foot.c"
index c4473ed..585e6b2 100644 (file)
@@ -1654,6 +1654,9 @@ extern "C" {
    /**
     * @defgroup Bg Bg
     *
+    * @image html img/icon/bg/preview-00.png
+    * @image latex img/icon/bg/preview-00.png
+    *
     * @brief Background object, used for setting a solid color, image or Edje
     * group as background to a window or any container object.
     *
@@ -1830,6 +1833,9 @@ extern "C" {
    /**
     * @defgroup Icon Icon
     *
+    * @image html img/icon/button/preview-00.png
+    * @image latex img/icon/button/preview-00.png
+    *
     * An object that provides standard icon images (delete, edit, arrows, etc.)
     * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
     *
@@ -2191,6 +2197,9 @@ extern "C" {
    /**
     * @defgroup Image Image
     *
+    * @image html img/image/button/preview-00.png
+    * @image latex img/image/button/preview-00.png
+    *
     * An object that allows one to load an image file to it. It can be used
     * anywhere like any other elementary widget.
     *
@@ -7217,6 +7226,9 @@ extern "C" {
    /**
     * @addtogroup Actionslider Actionslider
     *
+    * @image html img/icon/actionslider/preview-00.png
+    * @image latex img/icon/actionslider/preview-00.png
+    *
     * A actionslider is a switcher for 2 or 3 labels with customizable magnet
     * properties. The indicator is the element the user drags to choose a label.
     * When the position is set with magnet, when released the indicator will be
@@ -7782,6 +7794,9 @@ extern "C" {
    /**
     * @defgroup Fileselector File Selector
     *
+    * @image html img/icon/fileselector/preview-00.png
+    * @image latex img/icon/fileselector/preview-00.png
+    *
     * A file selector is a widget that allows a user to navigate
     * through a file system, reporting file selections back via its
     * API.
@@ -9765,6 +9780,9 @@ extern "C" {
     * @defgroup Calendar Calendar
     * @ingroup Elementary
     *
+    * @image html img/widget/calendar/preview-00.png
+    * @image latex img/widget/calendar/preview-00.eps
+    *
     * A calendar is a widget that displays a regular calendar, one
     * month at a time, to the user, and can allows the user to select a date.
     *