#include "main.h"
-Evas_Object*
-create_landscape_content(Evas_Object *parent, const char *text, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb)
+Eo*
+create_landscape_content(Eo *parent, const char *text, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb)
{
char buf[PATH_MAX];
Elm_Grid *grid;
}
-Evas_Object*
-create_title_handle_content(Evas_Object *parent, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb,
- Evas_Smart_Cb title_show_btn_clicked_cb, Evas_Smart_Cb title_hide_btn_clicked_cb,
- Evas_Smart_Cb title_show_anim_btn_clicked_cb, Evas_Smart_Cb title_hide_anim_btn_clicked_cb, ui_view *view)
+Eo*
+create_title_handle_content(Eo *parent, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb,
+ Evas_Smart_Cb title_show_btn_clicked_cb, Evas_Smart_Cb title_hide_btn_clicked_cb,
+ Evas_Smart_Cb title_show_anim_btn_clicked_cb, Evas_Smart_Cb title_hide_anim_btn_clicked_cb, ui_view *view)
{
Elm_Grid *grid;
Elm_Box *box;
return grid;
}
-Evas_Object*
-create_content(Evas_Object *parent, const char *text, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb)
+Eo*
+create_content(Eo *parent, const char *text, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb)
{
Elm_Grid *grid;
Elm_Box *box;
return scroller;
}
-Evas_Object*
-create_scrolling_content(Evas_Object *parent)
+Eo*
+create_scrolling_content(Eo *parent)
{
char buf[PATH_MAX];
Elm_Image *image;
}
Elm_Toolbar*
-create_toolbar(Evas_Object *parent, const char *style)
+create_toolbar(Eo *parent, const char *style)
{
Elm_Toolbar *toolbar;
#define PACKAGE "ui-viewmgr"
#endif
-Evas_Object* create_content(Evas_Object *parent, const char *text, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb);
-Evas_Object* create_landscape_content(Evas_Object *parent, const char *text, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb);
-Evas_Object* create_title_handle_content(Evas_Object *parent, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb,
- Evas_Smart_Cb title_show_btn_clicked_cb, Evas_Smart_Cb title_hide_btn_clicked_cb,
- Evas_Smart_Cb title_show_anim_btn_clicked_cb, Evas_Smart_Cb title_hide_anim_btn_clicked_cb, ui_view *view);
-Evas_Object* create_scrolling_content(Evas_Object *parent);
-Elm_Toolbar* create_toolbar(Evas_Object *parent, const char *style);
+Eo* create_content(Eo *parent, const char *text, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb);
+Eo* create_landscape_content(Eo *parent, const char *text, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb);
+Eo* create_title_handle_content(Eo *parent, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb,
+ Evas_Smart_Cb title_show_btn_clicked_cb, Evas_Smart_Cb title_hide_btn_clicked_cb,
+ Evas_Smart_Cb title_show_anim_btn_clicked_cb, Evas_Smart_Cb title_hide_anim_btn_clicked_cb, ui_view *view);
+Eo* create_scrolling_content(Eo *parent);
+Elm_Toolbar* create_toolbar(Eo *parent, const char *style);
void create_page1();
void create_page2();
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
//FIXME: deactivate??? or ui_app deactivate??? or ui_viewmgr pop???
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page2();
}
static bool
view1_load_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page11();
}
static bool
view10_rotate_cb(ui_standard_view *view, int degree, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page12();
}
static bool
view11_load_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
}
static void
-ctxpopup_item_select_cb(void *data, Evas_Object *obj, void *event_info)
+ctxpopup_item_select_cb(void *data, Eo *obj, void *event_info)
{
Elm_Object_Item *it = (Elm_Object_Item *) event_info;
LOGE("Item (%s) is selected", elm_object_item_text_get(it));
static bool
view11_menu_cb(ui_menu *menu, void *data)
{
- Evas_Object *base = NULL;
+ Eo *base = NULL;
Elm_Ctxpopup *ctxpopup = NULL;
//Get a base object from menu.
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page13();
}
static void
-popup_block_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+popup_block_clicked_cb(void *data, Eo *obj, void *event_info)
{
elm_popup_dismiss(obj);
}
static void
-popup_timeout_cb(void *data, Evas_Object *obj, void *event_info)
+popup_timeout_cb(void *data, Eo *obj, void *event_info)
{
elm_popup_dismiss(obj);
}
static void
-popup_dismissed_cb(void *data, Evas_Object *obj, void *event_info)
+popup_dismissed_cb(void *data, Eo *obj, void *event_info)
{
evas_object_smart_callback_del(obj, "dismissed", popup_dismissed_cb);
}
static void
-view12_btn_clicked(void *data, Evas_Object *obj, void *event_info)
+view12_btn_clicked(void *data, Eo *obj, void *event_info)
{
ui_standard_view *view = NULL;
ui_popup *popup = NULL;
- Evas_Object *base = NULL;
+ Eo *base = NULL;
Elm_Popup *content = NULL;
view = (ui_standard_view *) data;
static bool
view12_load_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
Elm_Button *right_btn = NULL;
//Get a base object from view.
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page14();
}
static bool
view13_load_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page15();
}
static bool
view14_load_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
#include "main.h"
static void
-view15_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+view15_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page16();
}
static bool
view15_load_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_DEACTIVATE();
}
static void
-title_show_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+title_show_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
ui_standard_view *view = (ui_standard_view *) data;
ui_standard_view_set_title_visible(view, true, false);
}
static void
-title_hide_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+title_hide_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
ui_standard_view *view = (ui_standard_view *) data;
ui_standard_view_set_title_visible(view, false, false);
}
static void
-title_show_anim_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+title_show_anim_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
ui_standard_view *view = (ui_standard_view *) data;
ui_standard_view_set_title_visible(view, true, true);
}
static void
-title_hide_anim_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+title_hide_anim_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
ui_standard_view *view = (ui_standard_view *) data;
ui_standard_view_set_title_visible(view, false, true);
static bool
view16_load_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page3();
}
static bool
view2_load_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page4();
}
static bool
view3_load_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page5();
}
static bool
view4_load_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page6();
}
static bool
view5_load_cb(ui_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page7();
}
static bool
view6_load_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page8();
}
static bool
view7_load_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page9();
}
create_page8()
{
ui_standard_view *view = NULL;
- Evas_Object *base = NULL;
- Evas_Object *content = NULL;
+ Eo *base = NULL;
+ Eo *content = NULL;
//Create a view.
view = ui_standard_view_create("page8");
#include "main.h"
static void
-prev_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
UI_VIEWMGR_POP_VIEW();
}
static void
-next_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
create_page10();
}
static bool
view9_portrait_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
//Get a base object from view.
base = ui_view_get_base(view);
static bool
view9_landscape_cb(ui_standard_view *view, void *data)
{
- Evas_Object *content = NULL;
- Evas_Object *base = NULL;
+ Eo *content = NULL;
+ Eo *base = NULL;
base = ui_view_get_base(view);
if (!base)
#include "main.h"
Elm_Toolbar*
-createToolbar(Evas_Object *parent, const char *style)
+createToolbar(Eo *parent, const char *style)
{
Elm_Toolbar *toolbar;
return toolbar;
}
-Evas_Object*
-createScrollingContent(Evas_Object *parent)
+Eo*
+createScrollingContent(Eo *parent)
{
char buf[PATH_MAX];
Elm_Image *image;
return image;
}
-Evas_Object*
-createLandscapeContent(Evas_Object *parent, const char *text, Evas_Smart_Cb _prevBtnClickedCb, Evas_Smart_Cb _nextBtnClickedCb)
+Eo*
+createLandscapeContent(Eo *parent, const char *text, Evas_Smart_Cb _prevBtnClickedCb, Evas_Smart_Cb _nextBtnClickedCb)
{
char buf[PATH_MAX];
Elm_Grid *grid;
return scroller;
}
-Evas_Object*
-createTitleHandleContent(Evas_Object *parent, Evas_Smart_Cb _prevBtnClickedCb, Evas_Smart_Cb _nextBtnClickedCb,
+Eo*
+createTitleHandleContent(Eo *parent, Evas_Smart_Cb _prevBtnClickedCb, Evas_Smart_Cb _nextBtnClickedCb,
Evas_Smart_Cb _titleShowBtnClickedCb, Evas_Smart_Cb _titleHideBtnClickedCb,
Evas_Smart_Cb _titleShowAnimBtnClickedCb, Evas_Smart_Cb _titleHideAnimBtnClickedCb, UiView *view)
{
return grid;
}
-Evas_Object*
-createContent(Evas_Object *parent, const char *text, Evas_Smart_Cb _prevBtnClickedCb, Evas_Smart_Cb _nextBtnClickedCb)
+Eo*
+createContent(Eo *parent, const char *text, Evas_Smart_Cb _prevBtnClickedCb, Evas_Smart_Cb _nextBtnClickedCb)
{
Elm_Grid *grid;
Elm_Box *box;
using namespace efl_viewmanager;
-Evas_Object *createLandscapeContent(Evas_Object *parent, const char *text, Evas_Smart_Cb _prevBtnClickedCb, Evas_Smart_Cb _nextBtnClickedCb);
-Evas_Object *createContent(Evas_Object *parent, const char *text, Evas_Smart_Cb _prevBtnClickedCb, Evas_Smart_Cb _nexBtnClickedCb);
-Evas_Object *createScrollingContent(Evas_Object *parent);
-Evas_Object* createTitleHandleContent(Evas_Object *parent, Evas_Smart_Cb _prevBtnClickedCb, Evas_Smart_Cb _nextBtnClickedCb,
- Evas_Smart_Cb _titleShowBtnClickedCb, Evas_Smart_Cb _titleHideBtnClickedCb,
- Evas_Smart_Cb _titleShowAnimBtnClickedCb, Evas_Smart_Cb _titleHideAnimBtnClickedCb, UiView *view);
-Elm_Toolbar *createToolbar(Evas_Object *parent, const char *style);
+Eo *createLandscapeContent(Eo *parent, const char *text, Evas_Smart_Cb _prevBtnClickedCb, Evas_Smart_Cb _nextBtnClickedCb);
+Eo *createContent(Eo *parent, const char *text, Evas_Smart_Cb _prevBtnClickedCb, Evas_Smart_Cb _nexBtnClickedCb);
+Eo *createScrollingContent(Eo *parent);
+Eo* createTitleHandleContent(Eo *parent, Evas_Smart_Cb _prevBtnClickedCb, Evas_Smart_Cb _nextBtnClickedCb, Evas_Smart_Cb _titleShowBtnClickedCb,
+ Evas_Smart_Cb _titleHideBtnClickedCb, Evas_Smart_Cb _titleShowAnimBtnClickedCb, Evas_Smart_Cb _titleHideAnimBtnClickedCb,
+ UiView *view);
+Elm_Toolbar *createToolbar(Eo *parent, const char *style);
UiStandardView::onLoad();
//Create a main content.
- Evas_Object *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Basic View",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page2());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Basic View",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page2());
+ });
//Set title text, content
this->setTitle("Page1");
if (this->getOrientationMode() == UI_VIEW_ORIENTATION_MODE_PORTRAIT)
{
//Portrait
- Evas_Object *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Rotation",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page11());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Rotation",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page11());
+ });
//Set title text, content, indicator property
this->setTitle("Page10");
this->setIndicator(UI_VIEW_INDICATOR_DEFAULT);
} else {
//Landscape
- Evas_Object *content = createLandscapeContent(this->getBase(), "ViewMgr++ Demo<br>Rotation",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page11());
- });
+ Eo *content = createLandscapeContent(this->getBase(), "ViewMgr++ Demo<br>Rotation",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page11());
+ });
//Set title text, content, indicator property
this->setTitle("Page10");
/** This page implement on_menu() method to create ctxpopup when menu HW key clicked.
* This page will be created menu(ctxpopup)items in on_menu() method.
*/
-static void _ctxpopupItemSelectCb(void *data, Evas_Object *obj, void *event_info)
+static void _ctxpopupItemSelectCb(void *data, Eo *obj, void *event_info)
{
auto it = static_cast<Elm_Object_Item *>(event_info);
LOGE("Item (%s) is selected", elm_object_item_text_get(it));
UiStandardView::onLoad();
//Create a main content.
- Evas_Object *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Menu Popup",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page12());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Menu Popup",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page12());
+ });
//Set title text, content
this->setTitle("Page11");
* The created popup has view and it will be managed by viewmgr.
*/
-static void _popupDismissedCb(void *data, Evas_Object *obj, void *event_info)
+static void _popupDismissedCb(void *data, Eo *obj, void *event_info)
{
evas_object_smart_callback_del(obj, "dismissed", _popupDismissedCb);
auto popup = static_cast<UiPopup *>(data);
UiStandardView::onLoad();
//Create a main content.
- Evas_Object *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Popup",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page13());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Popup",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page13());
+ });
//Title Right button
Elm_Button *rightBtn = elm_button_add(this->getBase());
elm_object_text_set(rightBtn, "popup");
evas_object_smart_callback_add(rightBtn, "clicked",
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- auto view = static_cast<page12 *>(data);
- view->createPopup();
- },
- this);
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ auto view = static_cast<page12 *>(data);
+ view->createPopup();
+ },
+ this);
//Set title text, right button, content
this->setTitle("Page12");
elm_popup_timeout_set(obj, 3.0);
evas_object_smart_callback_add(obj, "dismissed", _popupDismissedCb, popup);
evas_object_smart_callback_add(obj, "block,clicked",
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- elm_popup_dismiss(obj);
- },
- nullptr);
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ elm_popup_dismiss(obj);
+ },
+ nullptr);
evas_object_smart_callback_add(obj, "timeout",
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- elm_popup_dismiss(obj);
- },
- nullptr);
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ elm_popup_dismiss(obj);
+ },
+ nullptr);
popup->setContent(obj);
popup->activate();
UiStandardView::onLoad();
//Create a main content.
- Evas_Object *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Fade Transition",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page14());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Fade Transition",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page14());
+ });
//Set title text, content
this->setTitle("Page13");
UiStandardView::onLoad();
//Create a main content.
- Evas_Object *content = createContent(this->getBase(), "ViewMgr++ Demo<br>None Transition",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page15());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr++ Demo<br>None Transition",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page15());
+ });
//Set title text, right button, content
this->setTitle("Page14");
UiStandardView::onLoad();
//Create a main content.
- Evas_Object *content = createScrollingContent(this->getBase());
+ Eo *content = createScrollingContent(this->getBase());
//Title Right button
Elm_Button *rightBtn = elm_button_add(this->getBase());
elm_object_text_set(rightBtn, "Next");
evas_object_smart_callback_add(rightBtn, "clicked",
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page16());
- },
- this);
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page16());
+ },
+ this);
//Set title text, right button, content
this->setTitle("Page15 Scroller In Viewmgr");
UiStandardView::onLoad();
//Create a main content.
- Evas_Object *content = createTitleHandleContent(this->getBase(),
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->deactivate();
- },
- //Title Show Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- auto view = static_cast<UiStandardView *>(data);
- view->setTitleVisible(true, false);
- },
- //Title Hide Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- auto view = static_cast<UiStandardView *>(data);
- view->setTitleVisible(false, false);
- },
- //Title Show Anim Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- auto view = static_cast<UiStandardView *>(data);
- view->setTitleVisible(true, true);
- },
- //Title Hide Anim Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- auto view = static_cast<UiStandardView *>(data);
- view->setTitleVisible(false, true);
- }, this);
+ Eo *content = createTitleHandleContent(this->getBase(),
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->deactivate();
+ },
+ //Title Show Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ auto view = static_cast<UiStandardView *>(data);
+ view->setTitleVisible(true, false);
+ },
+ //Title Hide Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ auto view = static_cast<UiStandardView *>(data);
+ view->setTitleVisible(false, false);
+ },
+ //Title Show Anim Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ auto view = static_cast<UiStandardView *>(data);
+ view->setTitleVisible(true, true);
+ },
+ //Title Hide Anim Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ auto view = static_cast<UiStandardView *>(data);
+ view->setTitleVisible(false, true);
+ }, this);
//Set title text, content
this->setTitle("Page16");
UiStandardView::onLoad();
//Create a main content.
- Evas_Object *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Title Buttons",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page3());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Title Buttons",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page3());
+ });
//Title left button
Elm_Button *leftTitleBtn = elm_button_add(this->getBase());
UiStandardView::onLoad();
//Create a main content.
- Evas_Object *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Subtitle",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page4());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Subtitle",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page4());
+ });
//Set title text, subtitle text, content
this->setTitle("Page3");
UiStandardView::onLoad();
//Create a main content.
- Evas_Object *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Title Badge",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page5());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Title Badge",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page5());
+ });
//Set title text, badge text, content
this->setTitle("Page4. We put a long title here intentionally");
UiView::onLoad();
//Create a main content.
- Evas_Object *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Full View",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page6());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Full View",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page6());
+ });
//Set content, indicator property
this->setContent(content);
UiStandardView::onLoad();
//Create a main content.
- Evas_Object *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Toolbar",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page7());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Toolbar",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page7());
+ });
Elm_Toolbar *toolbar = createToolbar(this->getBase(), "toolbar_with_title");
UiStandardView::onLoad();
//Create a main content.
- Evas_Object *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Navigationbar",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page8());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Navigationbar",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page8());
+ });
Elm_Toolbar *toolbar = createToolbar(this->getBase(), "navigationbar");
page8() : UiStandardView("page8")
{
//Create a main content.
- Evas_Object *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Content Preloading",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page9());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr++ Demo<br>Content Preloading",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page9());
+ });
//Set title text, content
this->setTitle("Page8");
{
UiStandardView::onPortrait();
- Evas_Object *content = createContent(this->getBase(), "ViewMgr Demo<br>Portrait/Landscape",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page10());
- });
+ Eo *content = createContent(this->getBase(), "ViewMgr Demo<br>Portrait/Landscape",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page10());
+ });
//Set title text, content, indicator property
this->setTitle("Page9");
{
UiStandardView::onLandscape();
- Evas_Object *content = createLandscapeContent(this->getBase(), "ViewMgr Demo<br>Portrait/Landscape",
- //Prev Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->popView();
- },
- //Next Button Callback
- [](void *data, Evas_Object *obj, void *event_info) -> void
- {
- UI_VIEWMGR->pushView(new page10());
- });
+ Eo *content = createLandscapeContent(this->getBase(), "ViewMgr Demo<br>Portrait/Landscape",
+ //Prev Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->popView();
+ },
+ //Next Button Callback
+ [](void *data, Eo *obj, void *event_info) -> void
+ {
+ UI_VIEWMGR->pushView(new page10());
+ });
//Set title text, content, indicator property
this->setTitle("Page9");
*
* @return key grabber object.
*/
- Evas_Object *getKeygrabObj();
+ Eo *getKeygrabObj();
public:
_UI_DISABLE_COPY_AND_ASSIGN(UiBaseKeyListener);
* @ingroup efl_viewmanager
*
* @brief This is a base class of EFL view. Typically, this view extends UiIfaceView and implements basic behaviors for EFL view in all profiles.
- * A view must have one Evas_Object content instance which represents a view for a current screen.
+ * A view must have one Eo content instance which represents a view for a current screen.
*/
class UiBaseView: public ui_viewmanager::UiIfaceView
{
*
* @return A previous content. If it wasn't, return @c nullptr.
*/
- virtual bool setContent(Evas_Object *content) override;
+ virtual bool setContent(Eo *content) override;
/**
* @brief This is for unsetting a content of the view.
*
* @return A previous content. If it wasn't, return @c nullptr.
*/
- virtual Evas_Object *unsetContent() override;
+ virtual Eo *unsetContent() override;
/**
* @brief Get a base object of ui_view.
*
* @return The base object of ui_view.
*/
- virtual Evas_Object *getBase();
+ virtual Eo *getBase();
/**
* @brief Set the indicator mode.
*
* @return The base layout object of viewmgr.
*/
- Evas_Object *getParent();
+ Eo *getParent();
/**
* @brief Toggle event block.
#ifndef _UI_BASE_VIEWMANAGER_H_
#define _UI_BASE_VIEWMANAGER_H_
-//FIXME: ??
-#ifndef Elm_Conformant
-#define Elm_Conformant Evas_Object
-#endif
-
#include "../interface/UiIfaceViewManager.h"
+
+using Elm_Conformant = Eo;
+
#include "UiBaseOverlay.h"
#include "UiBaseKeyListener.h"
#include "UiBaseViewmgr.h"
*
* @return The base object of this viewmgr.
*/
- Evas_Object *getBase();
+ Eo *getBase();
protected:
/**
* @note Normally, A base object can be used for a parent of UiMenu content.
* @return base object of UiMenu.
*/
- virtual Evas_Object *getBase();
+ virtual Eo *getBase();
/**
* @brief Get a current menu's degree.
*
* @return base object of UiPopup.
*/
- virtual Evas_Object *getBase();
+ virtual Eo *getBase();
/**
* @brief Get current popup's degree.
*
* @return @c true if it succeeds, @c false otherwise.
*/
- bool setContent(Evas_Object *content);
+ bool setContent(Eo *content);
/**
* @brief Set a title badge text.
*
* @return A previous content. If it wasn't, return @c nullptr.
*/
- Evas_Object *unsetContent() override;
+ Eo *unsetContent() override;
/**
* @brief Unset a title left button of title area.
*
* @return viewmgr's base layout object.
*/
- virtual Evas_Object *getBase() override;
+ virtual Eo *getBase() override;
protected:
/**
*
* @since_tizen 3.0
*/
-EAPI Evas_Object *ui_menu_get_base(ui_menu *menu);
+EAPI Eo *ui_menu_get_base(ui_menu *menu);
/**
* @brief Get a current ui_menu's degree.
#include <app.h>
#include <dlog.h>
-//FIXME?
-#ifndef Elm_Conformant
-#define Elm_Conformant Evas_Object
-#endif
-
-#ifndef Elm_Ctxpopup
-#define Elm_Ctxpopup Evas_Object
-#endif
-
typedef struct ui_viewmgr_s ui_viewmgr;
typedef struct ui_view_s ui_view;
typedef ui_view ui_standard_view;
*
* @since_tizen 3.0
*/
-EAPI Evas_Object *ui_popup_get_base(ui_popup *popup);
+EAPI Eo *ui_popup_get_base(ui_popup *popup);
/**
* @brief Get current ui_popup's degree.
*
* @since_tizen 3.0
*/
-EAPI bool ui_standard_view_set_title_right_btn(ui_standard_view *view, Evas_Object *title_right_btn);
+EAPI bool ui_standard_view_set_title_right_btn(ui_standard_view *view, Elm_Button *title_right_btn);
/**
* @brief Return a title right button of the view.
*
* @since_tizen 3.0
*/
-EAPI bool ui_standard_view_set_title_left_btn(ui_standard_view *view, Evas_Object *title_left_btn);
+EAPI bool ui_standard_view_set_title_left_btn(ui_standard_view *view, Elm_Button *title_left_btn);
/**
* @brief Return a title left button of the view.
*
* @since_tizen 3.0
*/
-EAPI bool ui_view_set_content(ui_view *view, Evas_Object *content);
+EAPI bool ui_view_set_content(ui_view *view, Eo *content);
/**
* @brief Set callback functions for handling view's lifecycle events.
*
* @since_tizen 3.0
*/
-EAPI Evas_Object* ui_view_get_base(ui_view *view);
+EAPI Eo* ui_view_get_base(ui_view *view);
/**
* @brief Unset a ui_view content.
*
* @since_tizen 3.0
*/
-EAPI Evas_Object *ui_view_unset_content(ui_view *view);
+EAPI Eo *ui_view_unset_content(ui_view *view);
/**
* @brief Set the indicator mode of a ui_view.
*
* @since_tizen 3.0
*/
-EAPI Evas_Object *ui_view_get_content(ui_view *view);
+EAPI Eo *ui_view_get_content(ui_view *view);
/**
* @brief A destructor for an ui_view.
*
* @since_tizen 3.0
*/
-EAPI Evas_Object *ui_viewmgr_get_base(ui_viewmgr *viewmgr);
+EAPI Eo *ui_viewmgr_get_base(ui_viewmgr *viewmgr);
/**
* @brief Return a view index(page) number of the given view.
* @brief This is for replacing or setting a content of the view.
*
* @note @p content is a logical object that represents a view in your framework. The actual type of the content could be translated to any certain types.
- * For instance, the type could be Evas_Object * in EFL and Layer * in Dali.
+ * For instance, the type could be Eo * in EFL and Layer * in Dali.
*
* @param content a new content. It allows @c nullptr for canceling the previous content.
*
* @brief Replace or set a content of the view.
*
* @note @p content is a logical object that represents a view in your framework. The actual type of the content could be translated to any certain types.
- * For instance, the type could be Evas_Object * in EFL and Layer * in Dali.
+ * For instance, the type could be Eo * in EFL and Layer * in Dali.
*
* @param content a new content. It allows @c nullptr for canceling the previous content.
*
#if UI_EFL
#include <Elementary.h>
- using T = Evas_Object*;
+ using T = Eo*;
#elif UI_DALI
#endif