summaryrefslogtreecommitdiff
path: root/src/examples/elementary/clock_cxx_example.cc
diff options
context:
space:
mode:
authorLuciana Magno de Almeida <luciana@expertisesolutions.com.br>2016-05-26 18:46:29 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-15 15:50:04 -0300
commit5af3757ad3cce0d5959f9059b03288a1081afe39 (patch)
treebe26ca4de0fc72d03a58aab363336fbb13ee939c /src/examples/elementary/clock_cxx_example.cc
parent8071109a7016b454e4976740262df91f004b0973 (diff)
elementary-cxx: Fix compilation of some C++ examples
Diffstat (limited to 'src/examples/elementary/clock_cxx_example.cc')
-rw-r--r--src/examples/elementary/clock_cxx_example.cc27
1 files changed, 17 insertions, 10 deletions
diff --git a/src/examples/elementary/clock_cxx_example.cc b/src/examples/elementary/clock_cxx_example.cc
index 546ad33bc1..f1e2c3e813 100644
--- a/src/examples/elementary/clock_cxx_example.cc
+++ b/src/examples/elementary/clock_cxx_example.cc
@@ -1,3 +1,8 @@
1#ifdef HAVE_CONFIG_H
2#include "config.h"
3#include "elementary_config.h"
4#endif
5
1#include <Elementary.hh> 6#include <Elementary.hh>
2 7
3EAPI_MAIN int 8EAPI_MAIN int
@@ -5,31 +10,32 @@ elm_main (int argc, char *argv[])
5{ 10{
6 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); 11 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
7 12
8 ::elm::win_standard win; 13 efl::ui::win::Standard win;
9 win.title_set("Clock Example"); 14 //win.title_set("Clock Example");
10 win.autohide_set(true); 15 win.autohide_set(true);
11 16
12 ::elm::box bx(efl::eo::parent = win); 17 efl::ui::Box bx(win);
13 bx.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 18 //bx.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
14 win.resize_object_add(bx); 19 //win.resize_object_add(bx);
20 bx.eo_cxx::efl::Gfx::size_set(300,300);
15 bx.visible_set(true); 21 bx.visible_set(true);
16 22
17 ::elm::clock ck(efl::eo::parent = win); 23 ::elm::Clock ck(win);
18 bx.pack_end(ck); 24 bx.pack_end(ck);
19 ck.visible_set(true); 25 ck.visible_set(true);
20 26
21 ::elm::clock ck2(efl::eo::parent = win); 27 ::elm::Clock ck2(win);
22 ck2.show_am_pm_set(true); 28 ck2.show_am_pm_set(true);
23 bx.pack_end(ck2); 29 bx.pack_end(ck2);
24 ck2.visible_set(true); 30 ck2.visible_set(true);
25 31
26 ::elm::clock ck3(efl::eo::parent = win); 32 ::elm::Clock ck3(win);
27 ck3.show_seconds_set(true); 33 ck3.show_seconds_set(true);
28 ck3.time_set(10, 11, 12); 34 ck3.time_set(10, 11, 12);
29 bx.pack_end(ck3); 35 bx.pack_end(ck3);
30 ck3.visible_set(true); 36 ck3.visible_set(true);
31 37
32 ::elm::clock ck4(efl::eo::parent = win); 38 ::elm::Clock ck4(win);
33 ck4.edit_set(true); 39 ck4.edit_set(true);
34 ck4.show_seconds_set(true); 40 ck4.show_seconds_set(true);
35 ck4.show_am_pm_set(true); 41 ck4.show_am_pm_set(true);
@@ -37,7 +43,7 @@ elm_main (int argc, char *argv[])
37 bx.pack_end(ck4); 43 bx.pack_end(ck4);
38 ck4.visible_set(true); 44 ck4.visible_set(true);
39 45
40 ::elm::clock ck5(efl::eo::parent = win); 46 ::elm::Clock ck5(win);
41 ck5.show_seconds_set(true); 47 ck5.show_seconds_set(true);
42 ck5.edit_set(true); 48 ck5.edit_set(true);
43 int digedit = ELM_CLOCK_EDIT_HOUR_UNIT | ELM_CLOCK_EDIT_MIN_UNIT | ELM_CLOCK_EDIT_SEC_UNIT; 49 int digedit = ELM_CLOCK_EDIT_HOUR_UNIT | ELM_CLOCK_EDIT_MIN_UNIT | ELM_CLOCK_EDIT_SEC_UNIT;
@@ -45,6 +51,7 @@ elm_main (int argc, char *argv[])
45 bx.pack_end(ck5); 51 bx.pack_end(ck5);
46 ck5.visible_set(true); 52 ck5.visible_set(true);
47 53
54 win.eo_cxx::efl::Gfx::size_set(500,500);
48 win.visible_set(true); 55 win.visible_set(true);
49 56
50 elm_run(); 57 elm_run();