m_win->getConformant().setContent(*m_navi);
- FAIL_RETURN(util::createCircleSurface(*m_navi),
+ FAIL_RETURN(util::createCircleSurface(*m_win),
"util::createCircleSurface() failed!");
m_sysEventProvider.addEventHandler(WEAK_DELEGATE_THIS(onSysEvent));
#include <system_settings.h>
#include <utils_i18n_ulocale.h>
-#include "ucl/gui/Window.h"
-#include "ucl/gui/Layout.h"
-
#include "common.h"
namespace gallery { namespace { namespace impl {
namespace gallery { namespace util {
- using ucl::Layout;
- using ucl::Naviframe;
+ using ucl::Window;
- Result createCircleSurface(Naviframe &navi)
+ Result createCircleSurface(Window &win)
{
- const auto win = navi.getWindow();
- if (!win) {
- LOG_RETURN(RES_FAIL, "Failed to get Window from Naviframe!");
- }
-
- if (win->getData(impl::CIRCLE_SURFACE)) {
+ if (win.getData(impl::CIRCLE_SURFACE)) {
LOG_RETURN(RES_INVALID_OPERATION,
"Circle Surface data already set!");
}
- const auto sfc = eext_circle_surface_naviframe_add(as_eo(navi));
+ const auto sfc = eext_circle_surface_conformant_add(
+ as_eo(win.getConformant()));
if (!sfc) {
LOG_RETURN(RES_FAIL,
"eext_circle_surface_conformant_add() failed!");
}
- win->setData(impl::CIRCLE_SURFACE, sfc);
+ win.setData(impl::CIRCLE_SURFACE, sfc);
return RES_OK;
}
#ifndef __GALLERY_VIEW_HELPERS_H__
#define __GALLERY_VIEW_HELPERS_H__
-#include "ucl/gui/Naviframe.h"
+#include "ucl/gui/Window.h"
#include "types.h"
namespace gallery { namespace util {
/**
- * @brief Creates circle surface
- * @param[in] navi Naviframe object. @see ucl::Naviframe
+ * @brief Creates conformant circle surface
+ * @param[in] win Window object. @see ucl::Window
* @return RES_OK on success, otherwise an error code on failure
*/
- ucl::Result createCircleSurface(ucl::Naviframe &navi);
+ ucl::Result createCircleSurface(ucl::Window &win);
/**
- * @brief Gets circle surface
+ * @brief Gets conformant circle surface
* @param[in] widget ElmWidget object. @see ucl::ElmWidget
* @return Pointer to circle surface
*/
Eext_Circle_Surface *getCircleSurface(const ucl::ElmWidget &widget);
+ /**
+ * @brief Updates Elementary widgets language
+ */
void updateElmLanguage();
}}