summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-04-25 18:58:10 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-04-25 18:58:10 +0000
commit8e2ec6390616ac1e7f6546df2994b70c4c9f4f09 (patch)
tree4fad38268eb3d623b8267405fdead09c9f964e2a /src/bin
parent2ec8b92f14944eea8bc249e7ad6a6c2c24902a0b (diff)
reformat
SVN revision: 70476
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_entry_anchor2.c81
1 files changed, 41 insertions, 40 deletions
diff --git a/src/bin/test_entry_anchor2.c b/src/bin/test_entry_anchor2.c
index eb1762b55..63982f8f1 100644
--- a/src/bin/test_entry_anchor2.c
+++ b/src/bin/test_entry_anchor2.c
@@ -25,48 +25,48 @@ my_anchorview_anchor(void *data, Evas_Object *obj, void *event_info)
25 // hints as to where we probably should put hover contents (buttons etc.). 25 // hints as to where we probably should put hover contents (buttons etc.).
26 if (ei->hover_top) 26 if (ei->hover_top)
27 { 27 {
28 bx = elm_box_add(obj); 28 bx = elm_box_add(obj);
29 bt = elm_button_add(obj); 29 bt = elm_button_add(obj);
30 elm_object_text_set(bt, "Top 1"); 30 elm_object_text_set(bt, "Top 1");
31 elm_box_pack_end(bx, bt); 31 elm_box_pack_end(bx, bt);
32 evas_object_smart_callback_add(bt, "clicked", my_entry_anchor_bt, av); 32 evas_object_smart_callback_add(bt, "clicked", my_entry_anchor_bt, av);
33 evas_object_show(bt); 33 evas_object_show(bt);
34 bt = elm_button_add(obj); 34 bt = elm_button_add(obj);
35 elm_object_text_set(bt, "Top 2"); 35 elm_object_text_set(bt, "Top 2");
36 elm_box_pack_end(bx, bt); 36 elm_box_pack_end(bx, bt);
37 evas_object_smart_callback_add(bt, "clicked", my_entry_anchor_bt, av); 37 evas_object_smart_callback_add(bt, "clicked", my_entry_anchor_bt, av);
38 evas_object_show(bt); 38 evas_object_show(bt);
39 bt = elm_button_add(obj); 39 bt = elm_button_add(obj);
40 elm_object_text_set(bt, "Top 3"); 40 elm_object_text_set(bt, "Top 3");
41 elm_box_pack_end(bx, bt); 41 elm_box_pack_end(bx, bt);
42 evas_object_smart_callback_add(bt, "clicked", my_entry_anchor_bt, av); 42 evas_object_smart_callback_add(bt, "clicked", my_entry_anchor_bt, av);
43 evas_object_show(bt); 43 evas_object_show(bt);
44 elm_object_part_content_set(ei->hover, "top", bx); 44 elm_object_part_content_set(ei->hover, "top", bx);
45 evas_object_show(bx); 45 evas_object_show(bx);
46 } 46 }
47 if (ei->hover_bottom) 47 if (ei->hover_bottom)
48 { 48 {
49 bt = elm_button_add(obj); 49 bt = elm_button_add(obj);
50 elm_object_text_set(bt, "Bot"); 50 elm_object_text_set(bt, "Bot");
51 elm_object_part_content_set(ei->hover, "bottom", bt); 51 elm_object_part_content_set(ei->hover, "bottom", bt);
52 evas_object_smart_callback_add(bt, "clicked", my_entry_anchor_bt, av); 52 evas_object_smart_callback_add(bt, "clicked", my_entry_anchor_bt, av);
53 evas_object_show(bt); 53 evas_object_show(bt);
54 } 54 }
55 if (ei->hover_left) 55 if (ei->hover_left)
56 { 56 {
57 bt = elm_button_add(obj); 57 bt = elm_button_add(obj);
58 elm_object_text_set(bt, "Left"); 58 elm_object_text_set(bt, "Left");
59 elm_object_part_content_set(ei->hover, "left", bt); 59 elm_object_part_content_set(ei->hover, "left", bt);
60 evas_object_smart_callback_add(bt, "clicked", my_entry_anchor_bt, av); 60 evas_object_smart_callback_add(bt, "clicked", my_entry_anchor_bt, av);
61 evas_object_show(bt); 61 evas_object_show(bt);
62 } 62 }
63 if (ei->hover_right) 63 if (ei->hover_right)
64 { 64 {
65 bt = elm_button_add(obj); 65 bt = elm_button_add(obj);
66 elm_object_text_set(bt, "Right"); 66 elm_object_text_set(bt, "Right");
67 elm_object_part_content_set(ei->hover, "right", bt); 67 elm_object_part_content_set(ei->hover, "right", bt);
68 evas_object_smart_callback_add(bt, "clicked", my_entry_anchor_bt, av); 68 evas_object_smart_callback_add(bt, "clicked", my_entry_anchor_bt, av);
69 evas_object_show(bt); 69 evas_object_show(bt);
70 } 70 }
71} 71}
72 72
@@ -82,13 +82,13 @@ test_entry_anchor2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *eve
82 elm_entry_anchor_hover_style_set(av, "popout"); 82 elm_entry_anchor_hover_style_set(av, "popout");
83 elm_entry_anchor_hover_parent_set(av, win); 83 elm_entry_anchor_hover_parent_set(av, win);
84 elm_object_text_set(av, 84 elm_object_text_set(av,
85 "This is an entry widget in this window that<br/>" 85 "This is an entry widget in this window that<br/>"
86 "uses markup <b>like this</> for styling and<br/>" 86 "uses markup <b>like this</> for styling and<br/>"
87 "formatting <em>like this</>, as well as<br/>" 87 "formatting <em>like this</>, as well as<br/>"
88 "<a href=X><link>links in the text</></a>, so enter text<br/>" 88 "<a href=X><link>links in the text</></a>, so enter text<br/>"
89 "in here to edit it. By the way, links are<br/>" 89 "in here to edit it. By the way, links are<br/>"
90 "called <a href=anc-02>Anchors</a> so you will need<br/>" 90 "called <a href=anc-02>Anchors</a> so you will need<br/>"
91 "to refer to them this way. <item relsize=16x16 vsize=full href=emoticon/guilty-smile></item>"); 91 "to refer to them this way. <item relsize=16x16 vsize=full href=emoticon/guilty-smile></item>");
92 evas_object_size_hint_weight_set(av, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 92 evas_object_size_hint_weight_set(av, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
93 evas_object_smart_callback_add(av, "anchor,hover,opened", my_anchorview_anchor, av); 93 evas_object_smart_callback_add(av, "anchor,hover,opened", my_anchorview_anchor, av);
94 elm_win_resize_object_add(win, av); 94 elm_win_resize_object_add(win, av);
@@ -99,4 +99,5 @@ test_entry_anchor2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *eve
99 elm_object_focus_set(win, EINA_TRUE); 99 elm_object_focus_set(win, EINA_TRUE);
100 evas_object_show(win); 100 evas_object_show(win);
101} 101}
102
102#endif 103#endif