Replace Evas_Object to Eo 36/90136/2
authorHermet Park <hermet@hermet.pe.kr>
Wed, 28 Sep 2016 12:02:22 +0000 (21:02 +0900)
committerHermet Park <chuneon.park@samsung.com>
Wed, 28 Sep 2016 12:05:54 +0000 (05:05 -0700)
handle over the leftovers...

Change-Id: I3f3be2f0633bae2632127e7252c9d08aeb44bc52

src/lib/efl/UiBaseKeyListener.cpp
src/lib/efl/UiBaseView.cpp
src/lib/efl/UiBaseViewmgr.cpp
src/lib/efl/mobile/UiMenu.cpp
src/lib/efl/mobile/UiPopup.cpp
src/lib/efl/mobile/UiStandardView.cpp
src/lib/efl/mobile/c/ui_menu.cpp
src/lib/efl/mobile/c/ui_popup.cpp
src/lib/efl/mobile/c/ui_standard_view.cpp
src/lib/efl/mobile/c/ui_view.cpp
src/lib/efl/mobile/c/ui_viewmgr.cpp

index 34ea818f245d6f9914566ead68d1148209d7e949..8d0d0024a5bbb485e44f418a34be70a605319af2 100644 (file)
@@ -29,7 +29,7 @@ class UiBaseKeyListenerImpl
 protected:
        UiBaseKeyListener *keyListener = nullptr;
        UiBaseViewmgr *viewmgr = nullptr;
-       Evas_Object *keyGrabber = nullptr;
+       Eo *keyGrabber = nullptr;
 
 public:
        UiBaseKeyListenerImpl(UiBaseKeyListener *key_listener, UiBaseViewmgr *viewmgr);
@@ -39,7 +39,7 @@ public:
        bool term();
        void eventProc(Evas_Event_Key_Down *ev);
        UiBaseViewmgr *getViewmgr() { return this->viewmgr; }
-       Evas_Object *getKeygrabObj() { return this->keyGrabber; }
+       Eo *getKeygrabObj() { return this->keyGrabber; }
 };
 }
 
@@ -93,13 +93,13 @@ bool UiBaseKeyListenerImpl::init()
                return false;
        }
 
-       Evas_Object *keyGrabRect = evas_object_rectangle_add(e);
+       Eo *keyGrabRect = evas_object_rectangle_add(e);
        if (!keyGrabRect) {
                LOGE("Failed to create a key grabber rectangle");
                return false;
        }
 
-       evas_object_event_callback_add(keyGrabRect, EVAS_CALLBACK_KEY_UP, [](void *data, Evas *e, Evas_Object *obj, void *event_info) -> void
+       evas_object_event_callback_add(keyGrabRect, EVAS_CALLBACK_KEY_UP, [](void *data, Evas *e, Eo *obj, void *event_info) -> void
        {
                auto ev = static_cast<Evas_Event_Key_Down *>(event_info);
                auto keyListener = static_cast<UiBaseKeyListenerImpl *>(data);
@@ -148,7 +148,7 @@ bool UiBaseKeyListener::init()
        return this->_impl->init();
 }
 
-Evas_Object *UiBaseKeyListener::getKeygrabObj()
+Eo *UiBaseKeyListener::getKeygrabObj()
 {
        return this->_impl->getKeygrabObj();
 }
index 0dc38a529101f5eff644401fa199e377990d0a45..356d12b29b32a04dbf3e359ab830aacaf875c36a 100644 (file)
@@ -31,7 +31,7 @@ class UiBaseViewImpl;
 /* External class Implementation                                                               */
 /***********************************************************************************************/
 
-static void _contentDelCb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+static void _contentDelCb(void *data, Evas *e, Eo *obj, void *event_info)
 {
        auto view = static_cast<UiBaseView *>(data);
        view->unsetContent();
@@ -46,9 +46,9 @@ UiBaseView::~UiBaseView()
 {
 }
 
-bool UiBaseView::setContent(Evas_Object *content)
+bool UiBaseView::setContent(Eo *content)
 {
-       Evas_Object *pcontent = this->unsetContent();
+       Eo *pcontent = this->unsetContent();
 
        if (pcontent) {
                evas_object_del(pcontent);
@@ -62,9 +62,9 @@ bool UiBaseView::setContent(Evas_Object *content)
        return true;
 }
 
-Evas_Object *UiBaseView::unsetContent()
+Eo *UiBaseView::unsetContent()
 {
-       Evas_Object *obj = UiIfaceView::unsetContent();
+       Eo *obj = UiIfaceView::unsetContent();
 
        if (obj) {
                evas_object_event_callback_del(obj, EVAS_CALLBACK_DEL, _contentDelCb);
@@ -74,7 +74,7 @@ Evas_Object *UiBaseView::unsetContent()
        return obj;
 }
 
-Evas_Object *UiBaseView::getBase()
+Eo *UiBaseView::getBase()
 {
        auto viewmgr = UI_BASE_VIEWMGR;
 
@@ -85,7 +85,7 @@ Evas_Object *UiBaseView::getBase()
        return viewmgr->getBase();
 }
 
-Evas_Object *UiBaseView ::getParent()
+Eo *UiBaseView ::getParent()
 {
        auto viewmgr = UI_BASE_VIEWMGR;
 
index 9da19c36be41ab27ff154cef078c6c4fc6ef2d31..18a01dce17b7180993ecf6a16bb82adeec35859a 100644 (file)
@@ -63,7 +63,7 @@ public:
        UiBaseView *pushView(UiBaseView *view);
        bool popView();
 
-       Evas_Object *getBase() {
+       Eo *getBase() {
                return this->_layout;
        }
 
@@ -95,7 +95,7 @@ bool UiBaseViewmgrImpl::_createBaseLayout(Elm_Scroller *scroller, const char *st
 
        //Push Finished Event
        elm_layout_signal_callback_add(layout, "push,finished", "viewmgr",
-                       [](void *data, Evas_Object *obj, const char *emission, const char *source) -> void
+                       [](void *data, Eo *obj, const char *emission, const char *source) -> void
                        {
                                auto viewmgr = static_cast<UiBaseViewmgr *>(data);
                                UiBaseView *pview = viewmgr->getView(viewmgr->getViewCount() - 2);
@@ -107,7 +107,7 @@ bool UiBaseViewmgrImpl::_createBaseLayout(Elm_Scroller *scroller, const char *st
 
        //Pop Finished Event
        elm_layout_signal_callback_add(layout, "pop,finished", "viewmgr",
-                       [](void *data, Evas_Object *obj, const char *emission, const char *source) -> void
+                       [](void *data, Eo *obj, const char *emission, const char *source) -> void
                        {
                                auto viewmgr = static_cast<UiBaseViewmgr *>(data);
                                UiBaseView *pview = viewmgr->getView(viewmgr->getViewCount() - 2);
@@ -158,13 +158,13 @@ Elm_Layout *UiBaseViewmgrImpl::_setTransitionLayout(string transitionStyle)
 
 void UiBaseViewmgrImpl::_activateTopView()
 {
-       Evas_Object *pcontent = elm_object_part_content_unset(this->getBase(), "content");
+       Eo *pcontent = elm_object_part_content_unset(this->getBase(), "content");
        if (pcontent) evas_object_hide(pcontent);
 
        auto view = this->_viewmgr->getLastView();
 
        //In case of UiBaseView, it doesn't have any base form. It uses viewmgr base instead.
-       Evas_Object *content;
+       Eo *content;
        if (view->getBase() == this->getBase()) {
                content = view->getContent();
        } else {
@@ -276,7 +276,7 @@ UiBaseViewmgrImpl::UiBaseViewmgrImpl(UiBaseViewmgr *viewmgr, const char *pkg, Ui
                elm_win_wm_rotation_available_rotations_set(this->_win, (const int *) (&rots), 4);
        }
        evas_object_smart_callback_add(this->_win, "wm,rotation,changed",
-                       [](void *data, Evas_Object *obj, void *event_info) -> void
+                       [](void *data, Eo *obj, void *event_info) -> void
                        {
                                int rot = elm_win_rotation_get(obj);
 
@@ -293,7 +293,7 @@ UiBaseViewmgrImpl::UiBaseViewmgrImpl(UiBaseViewmgr *viewmgr, const char *pkg, Ui
                        , this->_viewmgr);
        //Window is requested to delete.
        evas_object_smart_callback_add(this->_win, "delete,request",
-                       [](void *data, Evas_Object *obj, void *event_info) -> void
+                       [](void *data, Eo *obj, void *event_info) -> void
                        {
                                auto viewmgr = static_cast<UiBaseViewmgr*>(data);
                                delete(viewmgr);
@@ -381,10 +381,10 @@ bool UiBaseViewmgrImpl::popView()
        }
 
        //Trigger Effects.
-       Evas_Object *prv = this->getBase() == pview->getBase() ? pview->getContent() : pview->getBase();
+       Eo *prv = this->getBase() == pview->getBase() ? pview->getContent() : pview->getBase();
        elm_layout_content_set(effect, "content", prv);
 
-       Evas_Object *cur = this->getBase() == view->getBase() ? view->getContent() : view->getBase();
+       Eo *cur = this->getBase() == view->getBase() ? view->getContent() : view->getBase();
        elm_layout_content_set(effect, "pcontent", cur);
 
        elm_layout_signal_emit(effect, "view,pop", "viewmgr");
@@ -427,10 +427,10 @@ UiBaseView * UiBaseViewmgrImpl::pushView(UiBaseView *view)
        }
 
        //Trigger Effects.
-       Evas_Object *prv = this->getBase() == pview->getBase() ? pview->getContent() : pview->getBase();
+       Eo *prv = this->getBase() == pview->getBase() ? pview->getContent() : pview->getBase();
        elm_layout_content_set(effect, "pcontent", prv);
 
-       Evas_Object *cur = this->getBase() == view->getBase() ? view->getContent() : view->getBase();
+       Eo *cur = this->getBase() == view->getBase() ? view->getContent() : view->getBase();
        elm_layout_content_set(effect, "content", cur);
 
        elm_layout_signal_emit(effect, "view,push", "viewmgr");
@@ -526,7 +526,7 @@ UiBaseView *UiBaseViewmgr::getLastView()
        return dynamic_cast<UiBaseView *>(UiIfaceViewmgr::getLastView());
 }
 
-Evas_Object *UiBaseViewmgr::getBase()
+Eo *UiBaseViewmgr::getBase()
 {
        return this->_impl->getBase();
 }
index 7adac3db791eff882f291c480a596d7e4bcb6c28..30b2af4cee7ff39d052cb5be345b4cea02ddfb8b 100644 (file)
 using namespace ui_viewmanager;
 using namespace efl_viewmanager;
 
-static void _ctxpopupDismissedCb(void *data, Evas_Object *obj, void *event_info)
+static void _ctxpopupDismissedCb(void *data, Eo *obj, void *event_info)
 {
        evas_object_hide(obj);
 }
 
-static void _ctxpopupDelCb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+static void _ctxpopupDelCb(void *data, Evas *e, Eo *obj, void *event_info)
 {
        auto menu = static_cast<UiMenu *>(data);
        menu->unsetContent();
@@ -59,7 +59,7 @@ static bool _updateMenu(UiMenu *menu)
        return true;
 }
 
-static void _winResizeCb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+static void _winResizeCb(void *data, Evas *e, Eo *obj, void *event_info)
 {
        auto menu = static_cast<UiMenu *>(data);
        if (!menu->isActivated()) return;
@@ -158,7 +158,7 @@ Elm_Ctxpopup *UiMenu::unsetContent()
        return ctxpopup;
 }
 
-Evas_Object *UiMenu::getBase()
+Eo *UiMenu::getBase()
 {
        return this->getWindow();
 }
index 8c7a6155240506941f1029ecb7346dee870e4c0d..b6e72024927473043b87fcdc14d400f1a6157304 100644 (file)
@@ -32,12 +32,12 @@ static bool _updatePopup(UiPopup *popup)
        return true;
 }
 
-static void _popupDismissedCb(void *data, Evas_Object *obj, void *event_info)
+static void _popupDismissedCb(void *data, Eo *obj, void *event_info)
 {
        evas_object_hide(obj);
 }
 
-static void _popupDelCb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+static void _popupDelCb(void *data, Evas *e, Eo *obj, void *event_info)
 {
        auto popup = static_cast<UiPopup *>(data);
        popup->unsetContent();
@@ -127,7 +127,7 @@ Elm_Popup *UiPopup::unsetContent()
        return popup;
 }
 
-Evas_Object *UiPopup::getBase()
+Eo *UiPopup::getBase()
 {
        return this->getWindow();
 }
index a413765da8615699dda40e9864c2dc84409785e7..f8117c3fbb65946cf9ded8f157db7bc02272bdd8 100644 (file)
@@ -45,7 +45,7 @@ public:
        explicit UiStandardViewImpl(UiStandardView *view);
        ~UiStandardViewImpl();
 
-       bool setContent(Evas_Object *content);
+       bool setContent(Eo *content);
        bool setTitleBadge(const char *text);
        bool setSubtitle(const char *text);
        bool setTitleLeftBtn(Elm_Button *titleLeftBtn);
@@ -57,7 +57,7 @@ public:
        Elm_Button *unsetTitleLeftBtn();
        Elm_Button *unsetTitleRightBtn();
        Elm_Toolbar *unsetToolbar();
-       Evas_Object *getBase();
+       Eo *getBase();
 
        Elm_Button *getTitleLeftBtn() {
                return this->_titleLeftBtn;
@@ -81,21 +81,21 @@ public:
                                        return false; \
                                }
 
-static void _titleLeftBtnDelCb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+static void _titleLeftBtnDelCb(void *data, Evas *e, Eo *obj, void *event_info)
 {
        auto view = static_cast<UiStandardView *>(data);
 
        view->unsetTitleLeftBtn();
 }
 
-static void _titleRightBtnDelCb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+static void _titleRightBtnDelCb(void *data, Evas *e, Eo *obj, void *event_info)
 {
        auto view = static_cast<UiStandardView *>(data);
 
        view->unsetTitleRightBtn();
 }
 
-static void _toolbarDelCb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+static void _toolbarDelCb(void *data, Evas *e, Eo *obj, void *event_info)
 {
        auto view = static_cast<UiStandardView *>(data);
 
@@ -143,7 +143,7 @@ bool UiStandardViewImpl::_createLayout()
                if (!prevBtn) {
                        LOGE("Failed to create a button = UiStandardView(%p)", this);
                } else {
-                       evas_object_smart_callback_add(prevBtn, "clicked", [](void *data, Evas_Object *obj, void *event_info) -> void
+                       evas_object_smart_callback_add(prevBtn, "clicked", [](void *data, Eo *obj, void *event_info) -> void
                        {
                                auto viewmgr = static_cast<UiViewmgr *>(data);
                                viewmgr->popView();
@@ -170,7 +170,7 @@ UiStandardViewImpl::~UiStandardViewImpl()
        _destroyLayout();
 }
 
-bool UiStandardViewImpl::setContent(Evas_Object *content)
+bool UiStandardViewImpl::setContent(Eo *content)
 {
        Elm_Layout *layout = this->getBase();
        LAYOUT_VALIDATE();
@@ -385,7 +385,7 @@ Elm_Toolbar *UiStandardViewImpl::unsetToolbar()
        return toolbar;
 }
 
-Evas_Object *UiStandardViewImpl::getBase()
+Eo *UiStandardViewImpl::getBase()
 {
        if (!this->_layout) {
                this->_createLayout();
@@ -446,7 +446,7 @@ void UiStandardView::onUnload()
        evas_object_hide(layout);
 }
 
-bool UiStandardView::setContent(Evas_Object *content)
+bool UiStandardView::setContent(Eo *content)
 {
        UiView::setContent(content);
 
@@ -490,9 +490,9 @@ void UiStandardView::setEventBlock(bool block)
        evas_object_freeze_events_set(this->getBase(), block);
 }
 
-Evas_Object *UiStandardView::unsetContent()
+Eo *UiStandardView::unsetContent()
 {
-       Evas_Object *pcontent = UiView::unsetContent();
+       Eo *pcontent = UiView::unsetContent();
        if (!pcontent) return nullptr;
 
        this->_impl->unsetContent();
@@ -515,7 +515,7 @@ Elm_Toolbar *UiStandardView::unsetToolbar()
        return this->_impl->unsetToolbar();
 }
 
-Evas_Object *UiStandardView::getBase()
+Eo *UiStandardView::getBase()
 {
        return this->_impl->getBase();
 }
index 89db1ddc02a810a6782b3d983e111d124fadea7f..75498d6bb0df9cac3960ca309622e59d513c3f1b 100644 (file)
@@ -52,7 +52,7 @@ EAPI bool ui_menu_get_activated(ui_menu *menu)
        return menu->isActivated();
 }
 
-EAPI Evas_Object *ui_menu_get_base(ui_menu *menu)
+EAPI Eo *ui_menu_get_base(ui_menu *menu)
 {
        if (!validate_menu(menu)) return nullptr;
        return menu->getBase();
index a43ac50126df9736cfb785478dc89fa4b0d00f2b..ff2b032e8328fc908e0f3db8db0da00d45ed2531 100644 (file)
@@ -63,7 +63,7 @@ EAPI bool ui_popup_get_activate(ui_popup *popup)
        return popup->isActivated();
 }
 
-EAPI Evas_Object *ui_popup_get_base(ui_popup *popup)
+EAPI Eo *ui_popup_get_base(ui_popup *popup)
 {
        if (!validate_popup(popup)) return nullptr;
        return popup->getBase();
index 70e1b8be4abdfd399d30c7f47afc00a6a0d283e8..a87fccfd79e68c55805d6ef241ab1e76a74719f8 100644 (file)
@@ -175,7 +175,7 @@ EAPI bool ui_standard_view_set_title_badge(ui_standard_view *view, const char *b
        return capi_view->setTitleBadge(badge_text);
 }
 
-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, Eo *title_right_btn)
 {
        ui_standard_view_capi *capi_view;
        if (!(capi_view = validate_view(view))) return false;
@@ -196,7 +196,7 @@ EAPI Elm_Button *ui_standard_view_unset_title_right_btn(ui_standard_view *view)
        return capi_view->unsetTitleRightBtn();
 }
 
-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, Eo *title_left_btn)
 {
        ui_standard_view_capi *capi_view;
        if (!(capi_view = validate_view(view))) return false;
index 10a9bf1c08c6caed2f8fd85b7dce0182885085ac..66bc07bd7f90a479cf704b34382898ea6f70319b 100644 (file)
@@ -187,13 +187,13 @@ EAPI bool ui_view_set_event_cb(ui_view *view, ui_view_event_type_e event_type, u
        return true;
 }
 
-EAPI Evas_Object* ui_view_get_base(ui_view *view)
+EAPI Eo* ui_view_get_base(ui_view *view)
 {
        if (!validate_view(view)) return nullptr;
        return view->getBase();
 }
 
-EAPI Evas_Object *ui_view_unset_content(ui_view *view)
+EAPI Eo *ui_view_unset_content(ui_view *view)
 {
        if (!validate_view(view)) return nullptr;
        return view->unsetContent();
@@ -277,7 +277,7 @@ EAPI ui_view_state ui_view_get_state(ui_view *view)
        return view->getState();
 }
 
-EAPI Evas_Object *ui_view_get_content(ui_view *view)
+EAPI Eo *ui_view_get_content(ui_view *view)
 {
        if (!validate_view(view)) return nullptr;
        return view->getContent();
@@ -290,7 +290,7 @@ EAPI bool ui_view_destroy(ui_view *view)
        return true;
 }
 
-EAPI bool ui_view_set_content(ui_view *view, Evas_Object *content)
+EAPI bool ui_view_set_content(ui_view *view, Eo *content)
 {
        if (!validate_view(view)) return false;
        return view->setContent(content);
index a00f6a51d70cafe7298c818b489ebf30f7964d45..22ef717bc169e794f00f26773cb9356325b218d4 100644 (file)
@@ -89,7 +89,7 @@ EAPI ui_view *ui_viewmgr_get_view_by_name(const char *name)
        return dynamic_cast<ui_view *>(viewmgr->getView(name));
 }
 
-EAPI Evas_Object *ui_viewmgr_get_base(void)
+EAPI Eo *ui_viewmgr_get_base(void)
 {
        ui_viewmgr*viewmgr = UI_VIEWMGR;