[EGIT] [website/www-content] master 01/01: Wiki page popup_tutorial changed with summary [] by Amitesh Singh

2015-07-18 Thread Amitesh Singh
WWW-www.enlightenment.org pushed a commit to branch master.

http://git.enlightenment.org/website/www-content.git/commit/?id=1ab2d2dac481ff6135e588cc546a609f55fbc07e

commit 1ab2d2dac481ff6135e588cc546a609f55fbc07e
Author: Amitesh Singh singh.amit...@gmail.com
Date:   Sat Jul 18 08:40:42 2015 -0700

Wiki page popup_tutorial changed with summary [] by Amitesh Singh
---
 pages/tutorial/popup_tutorial.txt | 217 --
 1 file changed, 23 insertions(+), 194 deletions(-)

diff --git a/pages/tutorial/popup_tutorial.txt 
b/pages/tutorial/popup_tutorial.txt
index c15d6d5..979491d 100644
--- a/pages/tutorial/popup_tutorial.txt
+++ b/pages/tutorial/popup_tutorial.txt
@@ -8,7 +8,7 @@ This tutorial explains how to use Popup in the application.
   * [[#Initializing_the_Application|Initializing the Application]]
   * [[#Creating_a_Popup_Widget|Creating a Popup Widget]]
  
-A popup example : {{ :panes.png?direct |list}}
+A popup example : {{ :popup.png?direct |list}}
 
 //**__The whole code__ : **//{{/code_c/tutorial/popup/popup.c}}
 
@@ -20,6 +20,13 @@ entitled Popup Tutorial and a button which opens up popup 
on click.
 code c
 #include Elementary.h
 
+static void 
+_btn_click_cb(void *data, Evas_Object *objEINA_UNUSED,
+  void *event_info EINA_UNUSED)
+{
+  //popup code here  
+}
+
 EAPI_MAIN int
 elm_main(int argc, char **argv)
 {
@@ -46,203 +53,25 @@ ELM_MAIN()
 /code
 
 === Creating a popup Widget ===
-
-The elm_panes widget adds a draggable bar between two contents. When dragged,
-this bar resizes the contents. To create a new Panes into an Elementary
-object, use the ''elm_panes_add()'' function:
+This widget is an enhancement of Notify. In addition to content area, there 
are two optional sections, namely title area and action area.
 
 code c
-// Add an elm_panes
-Evas_Object *panes;
-panes = elm_panes_add(win);
-evas_object_size_hint_weight_set(panes, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-elm_win_resize_object_add(win, panes);
-evas_object_show(panes);
-/code
+  // Add an elm popup
+   Evas_Object *popup;
+   Evas_Object *btn;
 
-=== Configure the Panes ===
+   popup = elm_popup_add(data);
+   elm_object_text_set(popup, This Popup has content area and 
+   action area set, action area has one button Close);
 
-By default, the orientation of the Panes is vertical. To modify the
-orientation, use the ''elm_panes_horizontal_set()'' function.
+   // popup buttons
+   btn = elm_button_add(popup);
+   elm_object_text_set(btn, Close);
+   elm_object_part_content_set(popup, button1, btn);
+   evas_object_smart_callback_add(btn, clicked, _popup_close_cb, popup);
 
-code c
-Evas_Object *panes_h;
-// Add a horizontal elm_panes
-panes_h = elm_panes_add(win);
-elm_panes_horizontal_set(panes_h, EINA_TRUE);
-/code
-
-The code above creates another Panes object and sets the horizontal
-orientation. To add content in a panes, use the
-''elm_object_part_content_set()'' function. Here we add the horizontal Panes
-''panes_h'' to the left part of the first Panes ''panes'' created.
-
-code c
-elm_object_part_content_set(panes, left, panes_h);
-/code
-
-This is how to set a button object to the right side of our vertical Panes
-widget.
-
-code c
-// Create a button object
-bt = elm_button_add(win);
-elm_object_text_set(bt, Right);
-evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
-evas_object_show(bt);
-
-// and set it to the right part of the vertical Panes
-elm_object_part_content_set(panes, right, bt);
-/code
-
-The content of the horizontal Panes is set with two button objects (up and
-down). When populating a vertically displayed Panes, the left content is
-placed at the top, and the right content is placed at the bottom.
-
-code c
-// Create a Up button
-bt = elm_button_add(win);
-elm_object_text_set(bt, Up);
-evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
-evas_object_show(bt);
-elm_object_part_content_set(panes_h, left, bt);
-
-// Create a Down button
-bt = elm_button_add(win);
-elm_object_text_set(bt, Down);
-evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
-evas_object_show(bt);
-elm_object_part_content_set(panes_h, right, bt);
-/code
-
-The elm_panes can be dragged with the mouse but the proportion can also be set
-with the ''elm_panes_content_left_size_set()'' and
-''elm_panes_content_right_size_set()'' functions. As an example, this is how to
-set the left size of both panes to 80%.
-
-code c
-// Set the proportion of the panes to 80%
-elm_panes_content_left_size_set(panes, 0.8);
-elm_panes_content_left_size_set(panes_h, 0.8);
-/code
-
-The Panes proportions can also be fixed so that the user is not able to drag
-them. To do this, use the ''elm_panes_fixed_set()'' 

[EGIT] [website/www-content] master 01/01: Wiki page popup_tutorial changed with summary [] by Amitesh Singh

2015-07-18 Thread Amitesh Singh
WWW-www.enlightenment.org pushed a commit to branch master.

http://git.enlightenment.org/website/www-content.git/commit/?id=79550d0c5b2ac7a2cc338d32186da28d9dfbad5d

commit 79550d0c5b2ac7a2cc338d32186da28d9dfbad5d
Author: Amitesh Singh singh.amit...@gmail.com
Date:   Sat Jul 18 08:49:20 2015 -0700

Wiki page popup_tutorial changed with summary [] by Amitesh Singh
---
 pages/tutorial/popup_tutorial.txt | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pages/tutorial/popup_tutorial.txt 
b/pages/tutorial/popup_tutorial.txt
index b6d249d..4ee77e1 100644
--- a/pages/tutorial/popup_tutorial.txt
+++ b/pages/tutorial/popup_tutorial.txt
@@ -7,6 +7,7 @@ This tutorial explains how to use Popup in the application.
 
   * [[#Initializing_the_Application|Initializing the Application]]
   * [[#Creating_a_Popup_Widget|Creating a Popup Widget]]
+  * [[#Creating_a_Custom_Popup|Creating a Custop Popup]]
  
 A popup example : {{ :popup.png?direct |list}}
 
@@ -52,7 +53,7 @@ elm_main(int argc, char **argv)
 ELM_MAIN()
 /code
 
-=== Creating a popup Widget ===
+=== Creating a Popup Widget ===
 This widget is an enhancement of Notify. In addition to content area, there 
are two optional sections, namely title area and action area.
 
 code c
@@ -88,3 +89,7 @@ _btn_click_cb(void *data, Evas_Object *obj EINA_UNUSED,
evas_object_show(popup);
 }
 /code
+
+=== Creating a Custom Popup ===
+
+TODO
\ No newline at end of file

-- 




[EGIT] [website/www-content] master 01/01: Wiki page popup_tutorial changed with summary [] by Amitesh Singh

2015-07-18 Thread Amitesh Singh
WWW-www.enlightenment.org pushed a commit to branch master.

http://git.enlightenment.org/website/www-content.git/commit/?id=6f3083c092a2d84f450e1ca6a2bafb2a3f925765

commit 6f3083c092a2d84f450e1ca6a2bafb2a3f925765
Author: Amitesh Singh singh.amit...@gmail.com
Date:   Sat Jul 18 21:23:19 2015 -0700

Wiki page popup_tutorial changed with summary [] by Amitesh Singh
---
 pages/tutorial/popup_tutorial.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pages/tutorial/popup_tutorial.txt 
b/pages/tutorial/popup_tutorial.txt
index 4ee77e1..ec62ee5 100644
--- a/pages/tutorial/popup_tutorial.txt
+++ b/pages/tutorial/popup_tutorial.txt
@@ -7,7 +7,7 @@ This tutorial explains how to use Popup in the application.
 
   * [[#Initializing_the_Application|Initializing the Application]]
   * [[#Creating_a_Popup_Widget|Creating a Popup Widget]]
-  * [[#Creating_a_Custom_Popup|Creating a Custop Popup]]
+  * [[#Creating_a_Custom_Popup|Creating a Custom Popup]]
  
 A popup example : {{ :popup.png?direct |list}}
 
@@ -70,10 +70,10 @@ static void
 _btn_click_cb(void *data, Evas_Object *obj EINA_UNUSED,
   void *event_info EINA_UNUSED)
 { 
-  // Add an elm popup
Evas_Object *popup;
Evas_Object *btn;
-
+   
+   // Add an elm popup
popup = elm_popup_add(data);
elm_object_text_set(popup, This Popup has content area and 
action area set, action area has one button Close);

--