summaryrefslogtreecommitdiff
path: root/src/examples/elementary/calendar_cxx_example_04.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/calendar_cxx_example_04.cc
parent8071109a7016b454e4976740262df91f004b0973 (diff)
elementary-cxx: Fix compilation of some C++ examples
Diffstat (limited to 'src/examples/elementary/calendar_cxx_example_04.cc')
-rw-r--r--src/examples/elementary/calendar_cxx_example_04.cc39
1 files changed, 25 insertions, 14 deletions
diff --git a/src/examples/elementary/calendar_cxx_example_04.cc b/src/examples/elementary/calendar_cxx_example_04.cc
index 9df983df91..6a26778b83 100644
--- a/src/examples/elementary/calendar_cxx_example_04.cc
+++ b/src/examples/elementary/calendar_cxx_example_04.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
3#define SECS_DAY 86400 8#define SECS_DAY 86400
@@ -10,31 +15,37 @@ elm_main (int argc, char *argv[])
10 15
11 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); 16 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
12 17
13 ::elm::win_standard win; 18 efl::ui::win::Standard win;
14 win.title_set("Calendar Day Selection Example"); 19 //win.title_set("Calendar Day Selection Example");
15 win.autohide_set(true); 20 win.autohide_set(true);
16 21
17 ::elm::box bx(efl::eo::parent = win); 22 ::efl::ui::Box bx(win);
18 bx.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 23 //bx.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
19 win.resize_object_add(bx); 24 //win.resize_object_add(bx);
25 bx.eo_cxx::efl::Gfx::size_set(700,700);
20 bx.visible_set(true); 26 bx.visible_set(true);
21 27
22 ::elm::calendar cal(efl::eo::parent = win); 28 ::elm::Calendar cal(win);
23 cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 29 // cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
24 cal.size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL); 30 // cal.size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL);
25 cal.select_mode_set(ELM_CALENDAR_SELECT_MODE_NONE); 31 cal.select_mode_set(ELM_CALENDAR_SELECT_MODE_NONE);
32 cal.eo_cxx::efl::Gfx::size_set(125,135);
26 cal.visible_set(true); 33 cal.visible_set(true);
27 bx.pack_end(cal); 34 //bx.pack_end(cal); no matching function for call to ‘efl::ui::Box::pack_end(elm::Calendar&)’
35 //candidate: bool eo_cxx::efl::pack::Linear::pack_end(Efl_Gfx*) const
36 // inline bool eo_cxx::efl::pack::Linear::pack_end(Efl_Gfx * subobj_) const
28 37
29 ::elm::calendar cal2(efl::eo::parent = win); 38 ::elm::Calendar cal2(win);
30 cal2.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 39 //cal2.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
31 cal2.size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL); 40 //cal2.size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL);
32 current_time = time(NULL) +2 * SECS_DAY; 41 current_time = time(NULL) +2 * SECS_DAY;
33 localtime_r(&current_time, &selected_time); 42 localtime_r(&current_time, &selected_time);
34 cal2.selected_time_set(&selected_time); 43 // cal2.selected_time_set(&selected_time);
44 cal2.eo_cxx::efl::Gfx::size_set(125,135);
35 cal2.visible_set(true); 45 cal2.visible_set(true);
36 bx.pack_end(cal2); 46 //bx.pack_end(cal2);
37 47
48 win.eo_cxx::efl::Gfx::size_set(500,560);
38 win.visible_set(true); 49 win.visible_set(true);
39 50
40 elm_run(); 51 elm_run();