elementary/layout - Add widget preview.
authorantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 20 Jul 2011 20:58:30 +0000 (20:58 +0000)
committerantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 20 Jul 2011 20:58:30 +0000 (20:58 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61539 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

doc/Makefile.am
doc/index.doxy
doc/widget_preview_layout.c [new file with mode: 0644]
src/lib/Elementary.h.in

index 189551b..f3b600c 100644 (file)
@@ -42,6 +42,7 @@ widget_preview_fileselector_button1 \
 widget_preview_fileselector_button2 \
 widget_preview_fileselector_button3 \
 widget_preview_colorselector \
+widget_preview_layout \
 widget_preview_index
 
 LDADD = $(top_builddir)/src/lib/libelementary.la @ELEMENTARY_EWEATHER_LIBS@ @ELEMENTARY_EDBUS_LIBS@ @ELEMENTARY_EFREET_LIBS@ @ELEMENTARY_LIBS@ @EIO_LIBS@ @my_libs@
@@ -61,6 +62,7 @@ WGT_PREVIEW = \
        bubble:preview-01.png:widget_preview_bubble2:160:50 \
        bubble:preview-02.png:widget_preview_bubble3:160:50 \
        colorselector:preview-00.png:widget_preview_colorselector:160:200 \
+       layout:preview-00.png:widget_preview_layout:200:160 \
        index:preview-00.png:widget_preview_index:300:500
 
 widget-preview:
index 66693ce..1cd48a6 100644 (file)
@@ -79,6 +79,9 @@
  * @image latex img/widget/index/preview-00.eps
  * @li @ref Inwin
  * @li @ref Label
+
+ * @image html img/widget/layout/preview-00.png
+ * @image latex img/widget/layout/preview-00.eps
  * @li @ref Layout
  * @li @ref List
  * @li @ref Map
  * @li @ref Video
  * @li @ref Widget
  * @li @ref Win
- */
\ No newline at end of file
+ */
diff --git a/doc/widget_preview_layout.c b/doc/widget_preview_layout.c
new file mode 100644 (file)
index 0000000..8e2710f
--- /dev/null
@@ -0,0 +1,19 @@
+#include "widget_preview_tmpl_head.c"
+
+Evas_Object *layout = elm_layout_add(win);
+evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+elm_layout_theme_set(layout, "layout", "application", "toolbar-content-back-next");
+elm_win_resize_object_add(win, layout);
+evas_object_show(layout);
+
+Evas_Object *icon = elm_icon_add(win);
+elm_icon_standard_set(icon, "home");
+evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, EVAS_HINT_FILL);
+evas_object_size_hint_min_set(icon, 200, 140);
+evas_object_show(icon);
+
+elm_layout_content_set(layout, "elm.swallow.content", icon);
+elm_object_text_part_set(layout, "elm.text.title", "Layout");
+
+#include "widget_preview_tmpl_foot.c"
index b399cb2..f45704d 100644 (file)
@@ -4694,6 +4694,9 @@ extern "C" {
    /**
     * @defgroup Layout Layout
     *
+    * @image html img/widget/layout/preview-00.png
+    * @image latex img/widget/layout/preview-00.eps width=\textwidth
+    *
     * This is a container widget that takes a standard Edje design file and
     * wraps it very thinly in a widget.
     *