struct SPhotoZoomView *m;
private:
- static Eina_Bool sm_CbIdler(void *data);
- Eina_Bool m_OnIdler(void);
+ static Eina_Bool sm_CbTimer(void *data);
+ Eina_Bool m_OnTimer(void);
static void sm_CbContentMoved(void *dt, Evas_Object *obj, void *event_info);
void m_OnContentMoved(Evas_Object *obj);
};
-#endif /* __ZOOM_VIEW_H__ */
\ No newline at end of file
+#endif /* __ZOOM_VIEW_H__ */
int prev_event;
struct zoom_data *data;
- Ecore_Idler *idler;
+
+ Ecore_Timer *timer;
struct SArrow {
Evas_Object *eoLeft;
private:
SPhotoZoomView *m;
- protected:
+ protected:
void t_MoveZoomNavi(Evas_Coord_Point coord)
{
int x, y, w, h, w2, h2;
prev_event = 0;;
data = NULL;
- idler = NULL;
+ timer = NULL;
+
pHandlerArrow = new CHandlerArrow(this);
pHandlerZoomNavi = new CHandlerZoomNavi(this);
pHandlerRect = new CHandlerZoomNavi(this);
};
-Eina_Bool CPhotoZoomView::sm_CbIdler(void *data)
+Eina_Bool CPhotoZoomView::sm_CbTimer(void *data)
{
CPhotoZoomView *root = (CPhotoZoomView*)data;
Eina_Bool ret = ECORE_CALLBACK_CANCEL;
if (root)
- ret = root->m_OnIdler();
+ ret = root->m_OnTimer();
return ret;
}
-Eina_Bool CPhotoZoomView::m_OnIdler(void)
+Eina_Bool CPhotoZoomView::m_OnTimer(void)
{
- m->idler = NULL;
+ ecore_timer_del(m->timer);
+ m->timer = NULL;
elm_photocam_zoom_mode_set(m->eoPhotocam,
ELM_PHOTOCAM_ZOOM_MODE_MANUAL);
if (!m_DrawZoomNavi())
goto error;
- m->idler = ecore_idler_add(sm_CbIdler, this);
- if (!m->idler)
+ m->timer = ecore_timer_add(TIMEOUT_ZOOMNAVI, sm_CbTimer, this);
+ if (!m->timer)
goto error;
if (!m->cTimeout.Create(TIMEOUT_PHOTOZOOM, this))
goto error;
CListenerMgr::Connect(m->eoBase); //evas_object_event_callback_add(m->eoBase, EVAS_CALLBACK_KEY_DOWN, _base_key_pressed, m);
- CListenerMgr::Connect(m->eoBase); //evas_object_event_callback_add(m->eoBase, EVAS_CALLBACK_KEY_UP, _base_key_released, m);
CBaseView::Create(NULL);
if (m->data)
free(m->data);
- ecore_idler_del(m->idler);
m->cTimeout.Destroy();
evas_object_del(m->eoBase);