hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=7fc50a5eab41fb9ee9eb290720b8d87f2f8ba034
commit 7fc50a5eab41fb9ee9eb290720b8d87f2f8ba034 Author: Hermet Park <hermetp...@gmail.com> Date: Fri May 25 14:24:30 2018 +0900 fix build errors. Still it has some abi issues. Need to fix them all. --- src/bin/statusbar.c | 1 - src/lib/Enventor.h.in | 5 ++++- src/lib/enventor_object.eo | 50 ++++++++++++++++++++++++++++++---------------- src/lib/enventor_smart.c | 41 +++++++++++++++++++------------------ 4 files changed, 59 insertions(+), 38 deletions(-) diff --git a/src/bin/statusbar.c b/src/bin/statusbar.c index c867f4d..ba58c12 100644 --- a/src/bin/statusbar.c +++ b/src/bin/statusbar.c @@ -1,4 +1,3 @@ -#define EFL_UI_FOCUS_OBJECT_PROTECTED 1 #include "common.h" #define VIEW_RESIZE_TYPE_W "W" diff --git a/src/lib/Enventor.h.in b/src/lib/Enventor.h.in index cd5cebf..f09fe83 100644 --- a/src/lib/Enventor.h.in +++ b/src/lib/Enventor.h.in @@ -5,13 +5,16 @@ #error "Enventor APIs still unstable. It's under BETA and changeable!! If you really want to use the APIs, Please define ENVENTOR_BETA_API_SUPPORT" #endif +#define EFL_UI_FOCUS_OBJECT_PROTECTED 1 + #ifdef __cplusplus extern "C" { #endif -#include <Efl_Config.h> #include <Elementary.h> +#include <Efl_Config.h> +#include <Efl_Ui.h> /*** * Compatible ABI for Win32 diff --git a/src/lib/enventor_object.eo b/src/lib/enventor_object.eo index fe7eac3..1875b9f 100644 --- a/src/lib/enventor_object.eo +++ b/src/lib/enventor_object.eo @@ -206,28 +206,44 @@ class Enventor.Object (Efl.Ui.Widget, Efl.File, Efl.Ui.Focus.Object) class.constructor; Efl.Object.constructor; Efl.Object.destructor; - Efl.Gfx.visible { set; } - Efl.Gfx.position { set; } - Efl.Gfx.size { set; } + Efl.Gfx.Entity.visible { set; } + Efl.Gfx.Entity.position { set; } + Efl.Gfx.Entity.size { set; } Efl.Canvas.Object.clip { set; } Efl.Canvas.Group.group_member_add; Efl.File.file { set; } Efl.Ui.Focus.Object.focus { set; get; } } events { - cursor,line,changed; - cursor,group,changed; - live_view,updated; - live_view,loaded; - live_view,cursor,moved; - live_view,resized; - max_line,changed; - compile,error; - ctxpopup,activated; - ctxpopup,changed; - ctxpopup,dismissed; - edc,modified; - focused; - file,open,requested; + cursor,line,changed: void; + cursor,group,changed: void; + live_view,updated: void; + live_view,loaded: void; + live_view,cursor,moved: void; + live_view,resized: void; + max_line,changed: void; + compile,error: void; + ctxpopup,activated: void; + ctxpopup,changed: void; + ctxpopup,dismissed: void; + edc,modified: void; + focused: void; + file,open,requested: void; +/* + cursor,line,changed: Enventor.Cursor_Line; + cursor,group,changed: Eina_String; + live_view,updated: Enventor.Item; + live_view,loaded: Enventor.Item; + live_view,cursor,moved: Enventor.Live_View_Cursor; + live_view,resized: Enventor.Live_View_Size; + max_line,changed: Enventor.Cursor_Line; + compile,error: char; + ctxpopup,activated: Enventor.Ctxpopup_Type; + ctxpopup,changed: Enventor.Item; + ctxpopup,dismissed: Enventor.Item; + edc,modified: Enventor.EDC_Modified; + focused: void; + file,open,requested: char; +*/ } } diff --git a/src/lib/enventor_smart.c b/src/lib/enventor_smart.c index 8e17862..3c2a6c8 100644 --- a/src/lib/enventor_smart.c +++ b/src/lib/enventor_smart.c @@ -275,9 +275,9 @@ _enventor_object_efl_canvas_group_group_member_add(Eo *obj, Enventor_Object_Data } EOLIAN static void -_enventor_object_efl_gfx_position_set(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Eina_Position2D pos) +_enventor_object_efl_gfx_entity_position_set(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Eina_Position2D pos) { - efl_gfx_position_set(efl_super(obj, MY_CLASS), pos); + efl_gfx_entity_position_set(efl_super(obj, MY_CLASS), pos); Eina_Iterator *it = evas_object_smart_iterator_new(obj); Evas_Object *o; @@ -287,9 +287,9 @@ _enventor_object_efl_gfx_position_set(Eo *obj, Enventor_Object_Data *pd EINA_UNU } EOLIAN static void -_enventor_object_efl_gfx_size_set(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Eina_Size2D size) +_enventor_object_efl_gfx_entity_size_set(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Eina_Size2D size) { - efl_gfx_size_set(efl_super(obj, MY_CLASS), size); + efl_gfx_entity_size_set(efl_super(obj, MY_CLASS), size); Eina_Iterator *it = evas_object_smart_iterator_new(obj); Evas_Object *o; @@ -299,9 +299,9 @@ _enventor_object_efl_gfx_size_set(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, } EOLIAN static void -_enventor_object_efl_gfx_visible_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, Eina_Bool vis) +_enventor_object_efl_gfx_entity_visible_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, Eina_Bool vis) { - efl_gfx_visible_set(efl_super(obj, MY_CLASS), vis); + efl_gfx_entity_visible_set(efl_super(obj, MY_CLASS), vis); if (!pd->focused_it) return; Evas_Object *o = edit_obj_get(pd->focused_it->ed); @@ -451,7 +451,8 @@ _enventor_object_linenumber_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, } EOLIAN static Eina_Bool -_enventor_object_linenumber_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd) +_enventor_object_linenumber_get(const Eo *obj EINA_UNUSED, + Enventor_Object_Data *pd) { return pd->linenumber; } @@ -466,7 +467,8 @@ _enventor_object_smart_undo_redo_set(Eo *obj EINA_UNUSED, } EOLIAN static Eina_Bool -_enventor_object_smart_undo_redo_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd) +_enventor_object_smart_undo_redo_get(const Eo *obj EINA_UNUSED, + Enventor_Object_Data *pd) { return pd->smart_undo_redo; } @@ -479,7 +481,7 @@ _enventor_object_auto_indent_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, } EOLIAN static Eina_Bool -_enventor_object_auto_indent_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd) +_enventor_object_auto_indent_get(const Eo *obj EINA_UNUSED, Enventor_Object_Data *pd) { return pd->auto_indent; } @@ -493,7 +495,7 @@ _enventor_object_auto_complete_set(Eo *obj EINA_UNUSED, } EOLIAN static Eina_Bool -_enventor_object_auto_complete_get(Eo *obj EINA_UNUSED, +_enventor_object_auto_complete_get(const Eo *obj EINA_UNUSED, Enventor_Object_Data *pd EINA_UNUSED) { return autocomp_enabled_get(); @@ -547,7 +549,7 @@ _enventor_object_live_view_size_get(Eo *obj EINA_UNUSED, } EOLIAN static double -_enventor_object_live_view_scale_get(Eo *obj EINA_UNUSED, +_enventor_object_live_view_scale_get(const Eo *obj EINA_UNUSED, Enventor_Object_Data *pd EINA_UNUSED) { return view_scale_get(VIEW_DATA); @@ -566,7 +568,7 @@ _enventor_object_dummy_parts_set(Eo *obj EINA_UNUSED, } EOLIAN static Eina_Bool -_enventor_object_ctxpopup_get(Eo *obj EINA_UNUSED, +_enventor_object_ctxpopup_get(const Eo *obj EINA_UNUSED, Enventor_Object_Data *pd) { return pd->ctxpopup; @@ -597,8 +599,8 @@ _enventor_object_ctxpopup_dismiss(Eo *obj EINA_UNUSED, } EOLIAN static Eina_Bool -_enventor_object_dummy_parts_get(Eo *obj EINA_UNUSED, - Enventor_Object_Data *pd) +_enventor_object_dummy_parts_get(const Eo *obj EINA_UNUSED, + Enventor_Object_Data *pd) { return pd->dummy_parts; } @@ -615,7 +617,7 @@ _enventor_object_wireframes_set(Eo *obj EINA_UNUSED, } EOLIAN static Eina_Bool -_enventor_object_wireframes_get(Eo *obj EINA_UNUSED, +_enventor_object_wireframes_get(const Eo *obj EINA_UNUSED, Enventor_Object_Data *pd) { return pd->wireframes; @@ -639,7 +641,7 @@ _enventor_object_part_highlight_set(Eo *obj EINA_UNUSED, } EOLIAN static Eina_Bool -_enventor_object_part_highlight_get(Eo *obj EINA_UNUSED, +_enventor_object_part_highlight_get(const Eo *obj EINA_UNUSED, Enventor_Object_Data *pd) { return pd->part_highlight; @@ -655,7 +657,7 @@ _enventor_object_mirror_mode_set(Eo *obj EINA_UNUSED, } EOLIAN static Eina_Bool -_enventor_object_mirror_mode_get(Eo *obj EINA_UNUSED, +_enventor_object_mirror_mode_get(const Eo *obj EINA_UNUSED, Enventor_Object_Data *pd) { return pd->mirror_mode; @@ -672,7 +674,7 @@ _enventor_object_efl_ui_focus_object_focus_set(Eo *obj EINA_UNUSED, } EOLIAN static Eina_Bool -_enventor_object_efl_ui_focus_object_focus_get(Eo *obj EINA_UNUSED, +_enventor_object_efl_ui_focus_object_focus_get(const Eo *obj EINA_UNUSED, Enventor_Object_Data *pd) { if (!pd->focused_it) return EINA_FALSE; @@ -691,7 +693,8 @@ _enventor_object_font_scale_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, } EOLIAN static double -_enventor_object_font_scale_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd) +_enventor_object_font_scale_get(const Eo *obj EINA_UNUSED, + Enventor_Object_Data *pd) { return pd->font_scale; } --