summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-08-17 18:38:08 +0900
committerHermet Park <hermetpark@gmail.com>2019-08-18 03:07:26 +0900
commit395f127fcdfb65ebf341bd2b6f52b64699814a31 (patch)
treed9166827a74df687d7969391a1e2913de28c2232
parentf02fb1e57257e4f566eb85869f163c2087889aef (diff)
get rid of unstable eolian usage.
a step to make it stable back.
-rw-r--r--Makefile_Eolian_Cxx_Helper.am19
-rw-r--r--Makefile_Eolian_Helper.am24
-rw-r--r--configure.ac12
-rw-r--r--src/lib/Enventor.h.in61
-rw-r--r--src/lib/Enventor_Eo.h19
-rw-r--r--src/lib/Enventor_Legacy.h36
-rw-r--r--src/lib/Makefile.am19
-rw-r--r--src/lib/enventor_object.eo249
-rw-r--r--src/lib/enventor_smart.c351
9 files changed, 225 insertions, 565 deletions
diff --git a/Makefile_Eolian_Cxx_Helper.am b/Makefile_Eolian_Cxx_Helper.am
deleted file mode 100644
index 12ac58e..0000000
--- a/Makefile_Eolian_Cxx_Helper.am
+++ /dev/null
@@ -1,19 +0,0 @@
1
2if HAVE_EOLIAN_CXX
3EOLIAN_CXX = @eolian_cxx@
4_EOLIAN_CXX_DEP = @eolian_cxx@
5else
6EOLIAN_CXX = EFL_RUN_IN_TREE=1 $(top_builddir)/src/bin/eolian_cxx/eolian_cxx${EXEEXT}
7_EOLIAN_CXX_DEP = bin/eolian_cxx/eolian_cxx${EXEEXT}
8endif
9
10AM_V_EOLCXX = $(am__v_EOLCXX_@AM_V@)
11am__v_EOLCXX_ = $(am__v_EOLCXX_@AM_DEFAULT_V@)
12am__v_EOLCXX_0 = @echo " EOLCXX " $@;
13
14SUFFIXES += .eo.hh
15
16%.eo.hh: %.eo $(_EOLIAN_CXX_DEP)
17 $(AM_V_EOLCXX)$(EOLIAN_CXX) $(EOLIAN_FLAGS) -o $@ $<
18
19CLEANFILES += $(BUILT_SOURCES)
diff --git a/Makefile_Eolian_Helper.am b/Makefile_Eolian_Helper.am
deleted file mode 100644
index 3b4bf7a..0000000
--- a/Makefile_Eolian_Helper.am
+++ /dev/null
@@ -1,24 +0,0 @@
1if HAVE_EOLIAN_GEN
2EOLIAN_GEN = @eolian_gen@
3_EOLIAN_GEN_DEP = @eolian_gen@
4else
5EOLIAN_GEN = EFL_RUN_IN_TREE=1 $(top_builddir)/src/bin/eolian/eolian_gen${EXEEXT}
6_EOLIAN_GEN_DEP = bin/eolian/eolian_gen${EXEEXT}
7endif
8
9AM_V_EOL = $(am__v_EOL_@AM_V@)
10am__v_EOL_ = $(am__v_EOL_@AM_DEFAULT_V@)
11am__v_EOL_0 = @echo " EOLIAN " $@;
12
13SUFFIXES = .eo .eo.c .eo.h .eo.legacy.h
14
15%.eo.c: %.eo ${_EOLIAN_GEN_DEP}
16 $(AM_V_EOL) $(EOLIAN_GEN) $(EOLIAN_FLAGS) -gc -o c:$@ $<
17
18%.eo.h: %.eo ${_EOLIAN_GEN_DEP}
19 $(AM_V_EOL)$(EOLIAN_GEN) $(EOLIAN_FLAGS) -gh -o h:$@ $<
20
21%.eo.legacy.h: %.eo ${_EOLIAN_GEN_DEP}
22 $(AM_V_EOL)$(EOLIAN_GEN) $(EOLIAN_FLAGS) -gl -o l:$@ $<
23
24CLEANFILES += $(BUILT_SOURCES)
diff --git a/configure.ac b/configure.ac
index 0582fc9..f6595a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,7 +69,6 @@ ENVENTOR_VERSION_MINOR=v_min
69AC_SUBST(ENVENTOR_VERSION_MAJOR) 69AC_SUBST(ENVENTOR_VERSION_MAJOR)
70AC_SUBST(ENVENTOR_VERSION_MINOR) 70AC_SUBST(ENVENTOR_VERSION_MINOR)
71 71
72EFL_ENABLE_EO_API_SUPPORT
73EFL_ENABLE_BETA_API_SUPPORT 72EFL_ENABLE_BETA_API_SUPPORT
74AC_DEFINE_UNQUOTED(ENVENTOR_WIN32_BUILD_SUPPORT, 1, "Support Win32 dllexport") 73AC_DEFINE_UNQUOTED(ENVENTOR_WIN32_BUILD_SUPPORT, 1, "Support Win32 dllexport")
75AC_DEFINE_UNQUOTED(ENVENTOR_BETA_API_SUPPORT, 1, "Enable access to unstable ENVENTOR API that are still in beta") 74AC_DEFINE_UNQUOTED(ENVENTOR_BETA_API_SUPPORT, 1, "Enable access to unstable ENVENTOR API that are still in beta")
@@ -78,6 +77,7 @@ AC_DEFINE_UNQUOTED(EFL_UI_FOCUS_OBJECT_PROTECTED, 1, "Enable Focus Protected API
78efl_version="1.18.0" 77efl_version="1.18.0"
79requirement_enventor=" \ 78requirement_enventor=" \
80eo >= ${efl_version} \ 79eo >= ${efl_version} \
80efl >= ${efl_version} \
81eina >= ${efl_version} \ 81eina >= ${efl_version} \
82eet >= ${efl_version} \ 82eet >= ${efl_version} \
83elementary >= ${efl_version} \ 83elementary >= ${efl_version} \
@@ -94,21 +94,11 @@ PKG_CHECK_MODULES([ENVENTOR], [${requirement_enventor}])
94 94
95### Checks for linker characteristics 95### Checks for linker characteristics
96 96
97# Needs to be moved into a macro, and also, needs a way to automatically fetch from all the dependencies using the Requires.
98DEPS_EOLIAN_FLAGS=`${PKG_CONFIG} --variable=eolian_flags eo evas edje ecore elementary efl`
99AC_SUBST([DEPS_EOLIAN_FLAGS])
100
101EFL_ATTRIBUTE_UNUSED 97EFL_ATTRIBUTE_UNUSED
102 98
103# Check edje_cc 99# Check edje_cc
104EFL_WITH_BIN([eet], [eet-eet], [eet]) 100EFL_WITH_BIN([eet], [eet-eet], [eet])
105EFL_WITH_BIN([edje], [edje-cc], [edje_cc]) 101EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
106EFL_WITH_BIN([eolian], [eolian-gen], [eolian_gen])
107EFL_WITH_BIN([eolian-cxx], [eolian-cxx], [eolian_cxx])
108
109# Force the helper to try external eolian generator
110AM_CONDITIONAL([HAVE_EOLIAN_GEN], [true])
111AM_CONDITIONAL([HAVE_EOLIAN_CXX], [true])
112 102
113AC_CONFIG_FILES([ 103AC_CONFIG_FILES([
114po/Makefile.in 104po/Makefile.in
diff --git a/src/lib/Enventor.h.in b/src/lib/Enventor.h.in
index 6ecf7c6..9bb5944 100644
--- a/src/lib/Enventor.h.in
+++ b/src/lib/Enventor.h.in
@@ -27,12 +27,28 @@ extern "C"
27# else 27# else
28# define EAPI __declspec(dllimport) 28# define EAPI __declspec(dllimport)
29# endif 29# endif
30# ifdef EOAPI
31# undef EOAPI
32# endif
33#define EOAPI EAPI
34#endif 30#endif
35 31
32/**
33 * Enventor emits the following signals
34 * @li "cursor,line,changed":
35 * @li "cursor,group,changed":
36 * @li "live_view,updated":
37 * @li "live_view,loaded":
38 * @li "live_view,cursor,moved":
39 * @li "live_view,resized":
40 * @li "max_line,changed":
41 * @li "compile,error":
42 * @li "ctxpopup,activated":
43 * @li "ctxpopup,changed":
44 * @li "ctxpopup,dismissed":
45 * @li "edc,modified":
46 * @li "focused":
47 * @li "file,open,requested":
48*/
49
50typedef struct _Enventor_Item_Data Enventor_Item;
51
36typedef enum 52typedef enum
37{ 53{
38 ENVENTOR_CTXPOPUP_TYPE_SLIDER = 0, 54 ENVENTOR_CTXPOPUP_TYPE_SLIDER = 0,
@@ -97,13 +113,36 @@ typedef enum {
97EAPI int enventor_init(int argc, char **argv); 113EAPI int enventor_init(int argc, char **argv);
98EAPI int enventor_shutdown(void); 114EAPI int enventor_shutdown(void);
99 115
100#ifndef EFL_NOLEGACY_API_SUPPORT 116EAPI Evas_Object *enventor_object_add(Evas_Object *parent);
101#include "Enventor_Legacy.h" 117EAPI Enventor_Item *enventor_object_main_item_set(Evas_Object *obj, const char *file);
102#endif 118EAPI Enventor_Item *enventor_object_sub_item_add(Evas_Object *obj, const char *file);
103 119EAPI Enventor_Item *enventor_object_main_item_get(const Evas_Object *obj);
104#ifdef EFL_EO_API_SUPPORT 120EAPI const Eina_List *enventor_object_sub_items_get(const Evas_Object *obj);
105#include "Enventor_Eo.h" 121EAPI Evas_Object *enventor_item_editor_get(const Enventor_Item *it);
106#endif 122EAPI const char *enventor_item_file_get(const Enventor_Item *it);
123EAPI Enventor_Item *enventor_object_focused_item_get(const Evas_Object *obj);
124EAPI Eina_Bool enventor_item_represent(Enventor_Item *it);
125EAPI int enventor_item_max_line_get(const Enventor_Item *it);
126EAPI Eina_Bool enventor_item_line_goto(Enventor_Item *it, int line);
127EAPI Eina_Bool enventor_item_syntax_color_full_apply(Enventor_Item *it, Eina_Bool force);
128EAPI Eina_Bool enventor_item_syntax_color_partial_apply(Enventor_Item *it, double interval);
129EAPI Eina_Bool enventor_item_select_region_set(Enventor_Item *it, int start, int end);
130EAPI Eina_Bool enventor_item_select_none(Enventor_Item *it);
131EAPI Eina_Bool enventor_item_cursor_pos_set(Enventor_Item *it, int position);
132EAPI int enventor_item_cursor_pos_get(const Enventor_Item *it);
133EAPI const char *enventor_item_selection_get(const Enventor_Item *it);
134EAPI Eina_Bool enventor_item_text_insert(Enventor_Item *it, const char *text);
135EAPI const char * enventor_item_text_get(const Enventor_Item *it);
136EAPI Eina_Bool enventor_item_line_delete(Enventor_Item *it);
137EAPI Eina_Bool enventor_item_file_save(Enventor_Item *it, const char *file);
138EAPI Eina_Bool enventor_item_modified_get(const Enventor_Item *it);
139EAPI void enventor_item_modified_set(Enventor_Item *it, Eina_Bool modified);
140EAPI Eina_Bool enventor_item_del(Enventor_Item *it);
141EAPI Eina_Bool enventor_item_template_insert(Enventor_Item *it, char *syntax, size_t n);
142EAPI Eina_Bool enventor_item_template_part_insert(Enventor_Item *it, Edje_Part_Type part, Enventor_Template_Insert_Type insert_type, Eina_Bool fixed_w, Eina_Bool fixed_h, char *rel1_x_to, char *rel1_y_to, char *rel2_x_to, char *rel2_y_to, float align_x, float align_y, int min_w, int min_h, float rel1_x, float rel1_y, float rel2_x,float rel2_y, char *syntax, size_t n);
143EAPI Eina_Bool enventor_item_redo(Enventor_Item *it);
144EAPI Eina_Bool enventor_item_undo(Enventor_Item *it);
145EAPI Eina_List *enventor_item_group_list_get(Enventor_Item *it);
107 146
108#ifdef __cplusplus 147#ifdef __cplusplus
109} 148}
diff --git a/src/lib/Enventor_Eo.h b/src/lib/Enventor_Eo.h
deleted file mode 100644
index 76f204c..0000000
--- a/src/lib/Enventor_Eo.h
+++ /dev/null
@@ -1,19 +0,0 @@
1/***
2 * Compatible ABI for Win32
3 ***/
4#ifdef _WIN32
5# ifdef EAPI
6# undef EAPI
7# endif
8# ifdef EOAPI
9# undef EOAPI
10# endif
11# ifdef ENVENTOR_WIN32_BUILD_SUPPORT
12# define EAPI __declspec(dllexport)
13# define EOAPI __declspec(dllexport)
14# else
15# define EAPI __declspec(dllimport)
16# define EOAPI __declspec(dllimport)
17# endif
18#endif
19#include "enventor_object.eo.h"
diff --git a/src/lib/Enventor_Legacy.h b/src/lib/Enventor_Legacy.h
deleted file mode 100644
index 5b43685..0000000
--- a/src/lib/Enventor_Legacy.h
+++ /dev/null
@@ -1,36 +0,0 @@
1typedef struct _Enventor_Item_Data Enventor_Item;
2
3EAPI Evas_Object *enventor_object_add(Evas_Object *parent);
4
5//FIXME: Eofy.
6EAPI Enventor_Item *enventor_object_main_item_set(Evas_Object *obj, const char *file);
7EAPI Enventor_Item *enventor_object_sub_item_add(Evas_Object *obj, const char *file);
8EAPI Enventor_Item *enventor_object_main_item_get(const Evas_Object *obj);
9EAPI const Eina_List *enventor_object_sub_items_get(const Evas_Object *obj);
10EAPI Evas_Object *enventor_item_editor_get(const Enventor_Item *it);
11EAPI const char *enventor_item_file_get(const Enventor_Item *it);
12EAPI Enventor_Item *enventor_object_focused_item_get(const Evas_Object *obj);
13EAPI Eina_Bool enventor_item_represent(Enventor_Item *it);
14EAPI int enventor_item_max_line_get(const Enventor_Item *it);
15EAPI Eina_Bool enventor_item_line_goto(Enventor_Item *it, int line);
16EAPI Eina_Bool enventor_item_syntax_color_full_apply(Enventor_Item *it, Eina_Bool force);
17EAPI Eina_Bool enventor_item_syntax_color_partial_apply(Enventor_Item *it, double interval);
18EAPI Eina_Bool enventor_item_select_region_set(Enventor_Item *it, int start, int end);
19EAPI Eina_Bool enventor_item_select_none(Enventor_Item *it);
20EAPI Eina_Bool enventor_item_cursor_pos_set(Enventor_Item *it, int position);
21EAPI int enventor_item_cursor_pos_get(const Enventor_Item *it);
22EAPI const char *enventor_item_selection_get(const Enventor_Item *it);
23EAPI Eina_Bool enventor_item_text_insert(Enventor_Item *it, const char *text);
24EAPI const char * enventor_item_text_get(const Enventor_Item *it);
25EAPI Eina_Bool enventor_item_line_delete(Enventor_Item *it);
26EAPI Eina_Bool enventor_item_file_save(Enventor_Item *it, const char *file);
27EAPI Eina_Bool enventor_item_modified_get(const Enventor_Item *it);
28EAPI void enventor_item_modified_set(Enventor_Item *it, Eina_Bool modified);
29EAPI Eina_Bool enventor_item_del(Enventor_Item *it);
30EAPI Eina_Bool enventor_item_template_insert(Enventor_Item *it, char *syntax, size_t n);
31EAPI Eina_Bool enventor_item_template_part_insert(Enventor_Item *it, Edje_Part_Type part, Enventor_Template_Insert_Type insert_type, Eina_Bool fixed_w, Eina_Bool fixed_h, char *rel1_x_to, char *rel1_y_to, char *rel2_x_to, char *rel2_y_to, float align_x, float align_y, int min_w, int min_h, float rel1_x, float rel1_y, float rel2_x,float rel2_y, char *syntax, size_t n);
32EAPI Eina_Bool enventor_item_redo(Enventor_Item *it);
33EAPI Eina_Bool enventor_item_undo(Enventor_Item *it);
34EAPI Eina_List *enventor_item_group_list_get(Enventor_Item *it);
35
36#include "enventor_object.eo.legacy.h"
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 4206f10..b596b55 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -3,12 +3,6 @@ MAINTAINERCLEANFILES = Makefile.in
3 3
4CLEANFILES = 4CLEANFILES =
5 5
6EOLIAN_FLAGS = @DEPS_EOLIAN_FLAGS@ \
7 -I$(top_srcdir)/src/lib
8
9include $(top_srcdir)/Makefile_Eolian_Helper.am
10include $(top_srcdir)/Makefile_Eolian_Cxx_Helper.am
11
12AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \ 6AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
13 -DPACKAGE_BIN_DIR=\"$(bindir)\" \ 7 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
14 -DPACKAGE_LIB_DIR=\"$(libdir)\" \ 8 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
@@ -19,11 +13,7 @@ AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
19lib_LTLIBRARIES = libenventor.la 13lib_LTLIBRARIES = libenventor.la
20 14
21includes_HEADERS = \ 15includes_HEADERS = \
22 Enventor_Legacy.h \
23 Enventor.h \ 16 Enventor.h \
24 Enventor_Eo.h \
25 enventor_object.eo.h \
26 enventor_object.eo.legacy.h
27includesdir = $(includedir)/enventor-@ENVENTOR_VERSION_MAJOR@ 17includesdir = $(includedir)/enventor-@ENVENTOR_VERSION_MAJOR@
28 18
29libenventor_la_SOURCES = \ 19libenventor_la_SOURCES = \
@@ -52,12 +42,3 @@ libenventor_la_CFLAGS = @ENVENTOR_CFLAGS@
52libenventor_la_LIBADD = @ENVENTOR_LIBS@ 42libenventor_la_LIBADD = @ENVENTOR_LIBS@
53 43
54libenventor_la_LDFLAGS = $(LTLIBINTL) -version-info @version_info@ -no-undefined 44libenventor_la_LDFLAGS = $(LTLIBINTL) -version-info @version_info@ -no-undefined
55
56BUILT_SOURCES = \
57 enventor_object.eo.c \
58 enventor_object.eo.h \
59 enventor_object.eo.legacy.h
60
61enventoreolianfilesdir = $(datadir)/eolian/include/enventor-@ENVENTOR_VERSION_MAJOR@
62enventoreolianfiles_DATA = enventor_object.eo
63EXTRA_DIST = ${enventoreolianfiles_DATA}
diff --git a/src/lib/enventor_object.eo b/src/lib/enventor_object.eo
deleted file mode 100644
index 7ea72f4..0000000
--- a/src/lib/enventor_object.eo
+++ /dev/null
@@ -1,249 +0,0 @@
1type Enventor_Path_Type: __undefined_type;
2type Enventor_Syntax_Color_Type: __undefined_type;
3type Enventor_Template_Insert_Type: __undefined_type;
4type Edje_Part_Type: __undefined_type;
5
6class Enventor.Object extends Efl.Ui.Widget implements Efl.File, Efl.Ui.Focus.Object
7{
8 legacy_prefix: enventor_object;
9 eo_prefix: enventor_obj;
10 methods {
11 @property part_highlight {
12 set {
13 }
14 get {
15 }
16 values {
17 part_highlight: bool;
18 }
19 }
20 @property live_view_scale {
21 set {
22 }
23 get {
24 }
25 values {
26 scale: double;
27 }
28 }
29 @property dummy_parts {
30 set {
31 }
32 get {
33 }
34 values {
35 dummy_parts: bool;
36 }
37 }
38 @property wireframes {
39 set {
40 }
41 get {
42 }
43 values {
44 wireframe: bool;
45 }
46 }
47 @property mirror_mode {
48 set {
49 }
50 get {
51 }
52 values {
53 mirror_mode: bool;
54 }
55 }
56 @property auto_complete {
57 set {
58 }
59 get {
60 }
61 values {
62 auto_complete: bool;
63 }
64 }
65 @property auto_indent {
66 set {
67 }
68 get {
69 }
70 values {
71 auto_indent: bool;
72 }
73 }
74 @property ctxpopup {
75 set {
76 }
77 get {
78 }
79 values {
80 ctxpopup: bool;
81 }
82 }
83 @property font_scale {
84 set {
85 }
86 get {
87 }
88 values {
89 font_scale: double;
90 }
91 }
92 @property linenumber {
93 set {
94 }
95 get {
96 }
97 values {
98 linenumber: bool;
99 }
100 }
101 @property smart_undo_redo {
102 set {
103 }
104 get {
105 }
106 values {
107 smart_undo_redo: bool;
108 }
109 }
110 path_set {
111 return: bool;
112 params {
113 @in type: Enventor_Path_Type;
114 @in pathes: list< stringshare @owned > @owned ;
115 }
116 }
117 path_get {
118 return: const (list< stringshare @owned >) @owned ;
119 params {
120 @in type: Enventor_Path_Type;
121 }
122 }
123 programs_list_get {
124 return: list<string>;
125 }
126 part_states_list_get {
127 return: list<string>;
128 params {
129 @in type: string;
130 }
131 }
132 parts_list_get {
133 return: list<string>;
134 }
135 live_view_get {
136 return: Efl.Canvas.Object;
137 }
138 programs_stop {
139 }
140 program_run {
141 params {
142 @in program: string;
143 }
144 }
145 syntax_color_set {
146 params {
147 @in color_type: Enventor_Syntax_Color_Type;
148 @in val: string;
149 }
150 }
151 syntax_color_get {
152 return: string;
153 params {
154 @in color_type: Enventor_Syntax_Color_Type;
155 }
156 }
157 ctxpopup_visible_get {
158 return: bool;
159 }
160 ctxpopup_dismiss {
161 }
162 disabled_set {
163 params {
164 @in disabled: bool;
165 }
166 }
167 live_view_size_set {
168 params {
169 @in w: int;
170 @in h: int;
171 }
172 }
173 live_view_size_get {
174 params {
175 @in w: ptr(int);
176 @in h: ptr(int);
177 }
178 }
179 part_type_get {
180 return: Edje_Part_Type;
181 params {
182 @in part_name: string;
183 }
184 }
185 font_set {
186 params {
187 @in font_name: string;
188 @in font_style: string;
189 }
190 }
191 font_get {
192 params {
193 @out font_name: string;
194 @out font_style: string;
195 }
196 }
197 auto_complete_list_show {
198 }
199 keyword_reference_show {
200 }
201 base_scale_get {
202 return: double;
203 }
204 }
205 implements {
206 class.constructor;
207 Efl.Object.constructor;
208 Efl.Object.destructor;
209 Efl.Gfx.Entity.visible { set; }
210 Efl.Gfx.Entity.position { set; }
211 Efl.Gfx.Entity.size { set; }
212 Efl.Canvas.Object.clipper { set; }
213 Efl.Canvas.Group.group_member_add;
214 Efl.File.file { set; }
215 Efl.Ui.Focus.Object.focus { set; get; }
216 }
217 events {
218 cursor,line,changed: void;
219 cursor,group,changed: void;
220 live_view,updated: void;
221 live_view,loaded: void;
222 live_view,cursor,moved: void;
223 live_view,resized: void;
224 max_line,changed: void;
225 compile,error: void;
226 ctxpopup,activated: void;
227 ctxpopup,changed: void;
228 ctxpopup,dismissed: void;
229 edc,modified: void;
230 focused: void;
231 file,open,requested: void;
232/*
233 cursor,line,changed: Enventor.Cursor_Line;
234 cursor,group,changed: Eina_String;
235 live_view,updated: Enventor.Item;
236 live_view,loaded: Enventor.Item;
237 live_view,cursor,moved: Enventor.Live_View_Cursor;
238 live_view,resized: Enventor.Live_View_Size;
239 max_line,changed: Enventor.Cursor_Line;
240 compile,error: char;
241 ctxpopup,activated: Enventor.Ctxpopup_Type;
242 ctxpopup,changed: Enventor.Item;
243 ctxpopup,dismissed: Enventor.Item;
244 edc,modified: Enventor.EDC_Modified;
245 focused: void;
246 file,open,requested: char;
247*/
248 }
249}
diff --git a/src/lib/enventor_smart.c b/src/lib/enventor_smart.c
index 13c45a1..ab65633 100644
--- a/src/lib/enventor_smart.c
+++ b/src/lib/enventor_smart.c
@@ -254,18 +254,18 @@ _enventor_part_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *ei)
254 254
255 255
256/*****************************************************************************/ 256/*****************************************************************************/
257/* Internal Eo object required routines */ 257/* Externally accessible calls */
258/*****************************************************************************/ 258/*****************************************************************************/
259EOLIAN static void 259EAPI void
260_enventor_object_class_constructor(Efl_Class *klass) 260enventor_object_class_constructor(Efl_Class *klass)
261{ 261{
262 evas_smart_legacy_type_register(MY_CLASS_NAME_LEGACY, klass); 262 evas_smart_legacy_type_register(MY_CLASS_NAME_LEGACY, klass);
263 263
264 ENVENTOR_FILE_SET_ERROR_GENERIC = eina_error_msg_static_register("Generic load error"); 264 ENVENTOR_FILE_SET_ERROR_GENERIC = eina_error_msg_static_register("Generic load error");
265} 265}
266 266
267EOLIAN static void 267EAPI void
268_enventor_object_efl_canvas_group_group_member_add(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Evas_Object *child) 268enventor_object_efl_canvas_group_group_member_add(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Evas_Object *child)
269{ 269{
270 //Don't go through elm_widget to avoid color set. 270 //Don't go through elm_widget to avoid color set.
271 evas_object_data_set(child, "_elm_leaveme", (void*)1); 271 evas_object_data_set(child, "_elm_leaveme", (void*)1);
@@ -279,8 +279,8 @@ _enventor_object_efl_canvas_group_group_member_add(Eo *obj, Enventor_Object_Data
279 evas_object_clip_set(child, evas_object_clip_get(obj)); 279 evas_object_clip_set(child, evas_object_clip_get(obj));
280} 280}
281 281
282EOLIAN static void 282EAPI void
283_enventor_object_efl_gfx_entity_position_set(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Eina_Position2D pos) 283enventor_object_efl_gfx_entity_position_set(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Eina_Position2D pos)
284{ 284{
285 efl_gfx_entity_position_set(efl_super(obj, MY_CLASS), pos); 285 efl_gfx_entity_position_set(efl_super(obj, MY_CLASS), pos);
286 286
@@ -291,8 +291,8 @@ _enventor_object_efl_gfx_entity_position_set(Eo *obj, Enventor_Object_Data *pd E
291 eina_iterator_free(it); 291 eina_iterator_free(it);
292} 292}
293 293
294EOLIAN static void 294EAPI void
295_enventor_object_efl_gfx_entity_size_set(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Eina_Size2D size) 295enventor_object_efl_gfx_entity_size_set(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Eina_Size2D size)
296{ 296{
297 efl_gfx_entity_size_set(efl_super(obj, MY_CLASS), size); 297 efl_gfx_entity_size_set(efl_super(obj, MY_CLASS), size);
298 298
@@ -303,8 +303,8 @@ _enventor_object_efl_gfx_entity_size_set(Eo *obj, Enventor_Object_Data *pd EINA_
303 eina_iterator_free(it); 303 eina_iterator_free(it);
304} 304}
305 305
306EOLIAN static void 306EAPI void
307_enventor_object_efl_gfx_entity_visible_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, Eina_Bool vis) 307enventor_object_efl_gfx_entity_visible_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, Eina_Bool vis)
308{ 308{
309 efl_gfx_entity_visible_set(efl_super(obj, MY_CLASS), vis); 309 efl_gfx_entity_visible_set(efl_super(obj, MY_CLASS), vis);
310 310
@@ -316,8 +316,8 @@ _enventor_object_efl_gfx_entity_visible_set(Eo *obj EINA_UNUSED, Enventor_Object
316 evas_object_hide(o); 316 evas_object_hide(o);
317} 317}
318 318
319EOLIAN static void 319EAPI void
320_enventor_object_efl_canvas_object_clipper_set(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Evas_Object *clip) 320enventor_object_efl_canvas_object_clipper_set(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Evas_Object *clip)
321{ 321{
322 efl_canvas_object_clipper_set(efl_super(obj, MY_CLASS), clip); 322 efl_canvas_object_clipper_set(efl_super(obj, MY_CLASS), clip);
323 323
@@ -328,8 +328,8 @@ _enventor_object_efl_canvas_object_clipper_set(Eo *obj, Enventor_Object_Data *pd
328 eina_iterator_free(it); 328 eina_iterator_free(it);
329} 329}
330 330
331EOLIAN static Eo * 331EAPI Eo *
332_enventor_object_efl_object_constructor(Eo *obj, Enventor_Object_Data *pd) 332enventor_object_efl_object_constructor(Eo *obj, Enventor_Object_Data *pd)
333{ 333{
334 obj = efl_constructor(efl_super(obj, MY_CLASS)); 334 obj = efl_constructor(efl_super(obj, MY_CLASS));
335 335
@@ -365,8 +365,8 @@ _enventor_object_efl_object_constructor(Eo *obj, Enventor_Object_Data *pd)
365 return obj; 365 return obj;
366} 366}
367 367
368EOLIAN static void 368EAPI void
369_enventor_object_efl_object_destructor(Eo *obj, Enventor_Object_Data *pd) 369enventor_object_efl_object_destructor(Eo *obj, Enventor_Object_Data *pd)
370{ 370{
371 int i; 371 int i;
372 for (i = ENVENTOR_SYNTAX_COLOR_STRING; i < ENVENTOR_SYNTAX_COLOR_LAST; i++) 372 for (i = ENVENTOR_SYNTAX_COLOR_STRING; i < ENVENTOR_SYNTAX_COLOR_LAST; i++)
@@ -389,10 +389,10 @@ _enventor_object_efl_object_destructor(Eo *obj, Enventor_Object_Data *pd)
389 efl_destructor(efl_super(obj, MY_CLASS)); 389 efl_destructor(efl_super(obj, MY_CLASS));
390} 390}
391 391
392EOLIAN static Eina_Error 392EAPI Eina_Error
393_enventor_object_efl_file_file_set(Eo *obj EINA_UNUSED, 393enventor_object_efl_file_file_set(Eo *obj EINA_UNUSED,
394 Enventor_Object_Data *pd, 394 Enventor_Object_Data *pd,
395 const char *file) 395 const char *file)
396{ 396{
397 build_edc_path_set(file); 397 build_edc_path_set(file);
398 if (!file) goto err; 398 if (!file) goto err;
@@ -407,39 +407,39 @@ err:
407 return 1; 407 return 1;
408} 408}
409 409
410EOLIAN static Eina_List * 410EAPI Eina_List *
411_enventor_object_programs_list_get(Eo *obj EINA_UNUSED, 411enventor_object_programs_list_get(Eo *obj EINA_UNUSED,
412 Enventor_Object_Data *pd EINA_UNUSED) 412 Enventor_Object_Data *pd EINA_UNUSED)
413{ 413{
414 return view_programs_list_get(VIEW_DATA); 414 return view_programs_list_get(VIEW_DATA);
415} 415}
416 416
417EOLIAN static Eina_List * 417EAPI Eina_List *
418_enventor_object_part_states_list_get(Eo *obj EINA_UNUSED, 418enventor_object_part_states_list_get(Eo *obj EINA_UNUSED,
419 Enventor_Object_Data *pd EINA_UNUSED, 419 Enventor_Object_Data *pd EINA_UNUSED,
420 const char *part) 420 const char *part)
421{ 421{
422 return view_part_states_list_get(VIEW_DATA, part); 422 return view_part_states_list_get(VIEW_DATA, part);
423} 423}
424 424
425EOLIAN static Edje_Part_Type 425EAPI Edje_Part_Type
426_enventor_object_part_type_get(Eo *obj EINA_UNUSED, 426enventor_object_part_type_get(Eo *obj EINA_UNUSED,
427 Enventor_Object_Data *pd EINA_UNUSED, 427 Enventor_Object_Data *pd EINA_UNUSED,
428 const char *part_name) 428 const char *part_name)
429{ 429{
430 return view_part_type_get(VIEW_DATA, part_name); 430 return view_part_type_get(VIEW_DATA, part_name);
431} 431}
432 432
433EOLIAN static Eina_List * 433EAPI Eina_List *
434_enventor_object_parts_list_get(Eo *obj EINA_UNUSED, 434enventor_object_parts_list_get(Eo *obj EINA_UNUSED,
435 Enventor_Object_Data *pd EINA_UNUSED) 435 Enventor_Object_Data *pd EINA_UNUSED)
436{ 436{
437 return view_parts_list_get(VIEW_DATA); 437 return view_parts_list_get(VIEW_DATA);
438} 438}
439 439
440EOLIAN static void 440EAPI void
441_enventor_object_linenumber_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, 441enventor_object_linenumber_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
442 Eina_Bool linenumber) 442 Eina_Bool linenumber)
443{ 443{
444 linenumber = !!linenumber; 444 linenumber = !!linenumber;
445 445
@@ -453,115 +453,115 @@ _enventor_object_linenumber_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
453 pd->linenumber = linenumber; 453 pd->linenumber = linenumber;
454} 454}
455 455
456EOLIAN static Eina_Bool 456EAPI Eina_Bool
457_enventor_object_linenumber_get(const Eo *obj EINA_UNUSED, 457enventor_object_linenumber_get(const Eo *obj EINA_UNUSED,
458 Enventor_Object_Data *pd) 458 Enventor_Object_Data *pd)
459{ 459{
460 return pd->linenumber; 460 return pd->linenumber;
461} 461}
462 462
463EOLIAN static void 463EAPI void
464_enventor_object_smart_undo_redo_set(Eo *obj EINA_UNUSED, 464enventor_object_smart_undo_redo_set(Eo *obj EINA_UNUSED,
465 Enventor_Object_Data *pd, 465 Enventor_Object_Data *pd,
466 Eina_Bool smart_undo_redo) 466 Eina_Bool smart_undo_redo)
467{ 467{
468 smart_undo_redo = !!smart_undo_redo; 468 smart_undo_redo = !!smart_undo_redo;
469 pd->smart_undo_redo = smart_undo_redo; 469 pd->smart_undo_redo = smart_undo_redo;
470} 470}
471 471
472EOLIAN static Eina_Bool 472EAPI Eina_Bool
473_enventor_object_smart_undo_redo_get(const Eo *obj EINA_UNUSED, 473enventor_object_smart_undo_redo_get(const Eo *obj EINA_UNUSED,
474 Enventor_Object_Data *pd) 474 Enventor_Object_Data *pd)
475{ 475{
476 return pd->smart_undo_redo; 476 return pd->smart_undo_redo;
477} 477}
478 478
479EOLIAN static void 479EAPI void
480_enventor_object_auto_indent_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, 480enventor_object_auto_indent_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
481 Eina_Bool auto_indent) 481 Eina_Bool auto_indent)
482{ 482{
483 pd->auto_indent = !!auto_indent; 483 pd->auto_indent = !!auto_indent;
484} 484}
485 485
486EOLIAN static Eina_Bool 486EAPI Eina_Bool
487_enventor_object_auto_indent_get(const Eo *obj EINA_UNUSED, Enventor_Object_Data *pd) 487enventor_object_auto_indent_get(const Eo *obj EINA_UNUSED, Enventor_Object_Data *pd)
488{ 488{
489 return pd->auto_indent; 489 return pd->auto_indent;
490} 490}
491 491
492EOLIAN static void 492EAPI void
493_enventor_object_auto_complete_set(Eo *obj EINA_UNUSED, 493enventor_object_auto_complete_set(Eo *obj EINA_UNUSED,
494 Enventor_Object_Data *pd EINA_UNUSED, 494 Enventor_Object_Data *pd EINA_UNUSED,
495 Eina_Bool auto_complete) 495 Eina_Bool auto_complete)
496{ 496{
497 autocomp_enabled_set(auto_complete); 497 autocomp_enabled_set(auto_complete);
498} 498}
499 499
500EOLIAN static Eina_Bool 500EAPI Eina_Bool
501_enventor_object_auto_complete_get(const Eo *obj EINA_UNUSED, 501_enventor_object_auto_complete_get(const Eo *obj EINA_UNUSED,
502 Enventor_Object_Data *pd EINA_UNUSED) 502 Enventor_Object_Data *pd EINA_UNUSED)
503{ 503{
504 return autocomp_enabled_get(); 504 return autocomp_enabled_get();
505} 505}
506 506
507EOLIAN static void 507EAPI void
508_enventor_object_auto_complete_list_show(Eo *obj EINA_UNUSED, 508enventor_object_auto_complete_list_show(Eo *obj EINA_UNUSED,
509 Enventor_Object_Data *pd EINA_UNUSED) 509 Enventor_Object_Data *pd EINA_UNUSED)
510{ 510{
511 autocomp_list_show(); 511 autocomp_list_show();
512} 512}
513 513
514EOLIAN static Eina_Bool 514EAPI Eina_Bool
515_enventor_object_path_set(Eo *obj EINA_UNUSED, 515enventor_object_path_set(Eo *obj EINA_UNUSED,
516 Enventor_Object_Data *pd EINA_UNUSED, 516 Enventor_Object_Data *pd EINA_UNUSED,
517 Enventor_Path_Type type, Eina_List *pathes) 517 Enventor_Path_Type type, Eina_List *pathes)
518{ 518{
519 return build_path_set(type, pathes); 519 return build_path_set(type, pathes);
520} 520}
521 521
522EOLIAN static const Eina_List * 522EAPI const Eina_List *
523_enventor_object_path_get(Eo *obj EINA_UNUSED, 523enventor_object_path_get(Eo *obj EINA_UNUSED,
524 Enventor_Object_Data *pd EINA_UNUSED, 524 Enventor_Object_Data *pd EINA_UNUSED,
525 Enventor_Path_Type type) 525 Enventor_Path_Type type)
526{ 526{
527 return build_path_get(type); 527 return build_path_get(type);
528} 528}
529 529
530EOLIAN static void 530EAPI void
531_enventor_object_live_view_scale_set(Eo *obj EINA_UNUSED, 531enventor_object_live_view_scale_set(Eo *obj EINA_UNUSED,
532 Enventor_Object_Data *pd EINA_UNUSED, 532 Enventor_Object_Data *pd EINA_UNUSED,
533 double scale) 533 double scale)
534{ 534{
535 view_scale_set(VIEW_DATA, scale); 535 view_scale_set(VIEW_DATA, scale);
536} 536}
537 537
538EOLIAN static void 538EAPI void
539_enventor_object_live_view_size_set(Eo *obj EINA_UNUSED, 539enventor_object_live_view_size_set(Eo *obj EINA_UNUSED,
540 Enventor_Object_Data *pd EINA_UNUSED, 540 Enventor_Object_Data *pd EINA_UNUSED,
541 Evas_Coord w, Evas_Coord h) 541 Evas_Coord w, Evas_Coord h)
542{ 542{
543 view_size_set(VIEW_DATA, w, h); 543 view_size_set(VIEW_DATA, w, h);
544} 544}
545 545
546EOLIAN static void 546EAPI void
547_enventor_object_live_view_size_get(Eo *obj EINA_UNUSED, 547enventor_object_live_view_size_get(Eo *obj EINA_UNUSED,
548 Enventor_Object_Data *pd EINA_UNUSED, 548 Enventor_Object_Data *pd EINA_UNUSED,
549 Evas_Coord *w, Evas_Coord *h) 549 Evas_Coord *w, Evas_Coord *h)
550{ 550{
551 view_size_get(VIEW_DATA, w, h); 551 view_size_get(VIEW_DATA, w, h);
552} 552}
553 553
554EOLIAN static double 554EAPI double
555_enventor_object_live_view_scale_get(const Eo *obj EINA_UNUSED, 555enventor_object_live_view_scale_get(const Eo *obj EINA_UNUSED,
556 Enventor_Object_Data *pd EINA_UNUSED) 556 Enventor_Object_Data *pd EINA_UNUSED)
557{ 557{
558 return view_scale_get(VIEW_DATA); 558 return view_scale_get(VIEW_DATA);
559} 559}
560 560
561EOLIAN static void 561EAPI void
562_enventor_object_dummy_parts_set(Eo *obj EINA_UNUSED, 562enventor_object_dummy_parts_set(Eo *obj EINA_UNUSED,
563 Enventor_Object_Data *pd, 563 Enventor_Object_Data *pd,
564 Eina_Bool dummy_parts) 564 Eina_Bool dummy_parts)
565{ 565{
566 dummy_parts = !!dummy_parts; 566 dummy_parts = !!dummy_parts;
567 if (pd->dummy_parts == dummy_parts) return; 567 if (pd->dummy_parts == dummy_parts) return;
@@ -570,48 +570,48 @@ _enventor_object_dummy_parts_set(Eo *obj EINA_UNUSED,
570 pd->dummy_parts = dummy_parts; 570 pd->dummy_parts = dummy_parts;
571} 571}
572 572
573EOLIAN static Eina_Bool 573EAPI Eina_Bool
574_enventor_object_ctxpopup_get(const Eo *obj EINA_UNUSED, 574enventor_object_ctxpopup_get(const Eo *obj EINA_UNUSED,
575 Enventor_Object_Data *pd) 575 Enventor_Object_Data *pd)
576{ 576{
577 return pd->ctxpopup; 577 return pd->ctxpopup;
578} 578}
579 579
580EOLIAN static void 580EAPI void
581_enventor_object_ctxpopup_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, 581enventor_object_ctxpopup_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
582 Eina_Bool ctxpopup) 582 Eina_Bool ctxpopup)
583{ 583{
584 ctxpopup = !!ctxpopup; 584 ctxpopup = !!ctxpopup;
585 pd->ctxpopup = ctxpopup; 585 pd->ctxpopup = ctxpopup;
586} 586}
587 587
588EOLIAN static Eina_Bool 588EAPI Eina_Bool
589_enventor_object_ctxpopup_visible_get(Eo *obj EINA_UNUSED, 589enventor_object_ctxpopup_visible_get(Eo *obj EINA_UNUSED,
590 Enventor_Object_Data *pd) 590 Enventor_Object_Data *pd)
591{ 591{
592 if (!pd->focused_it) return EINA_FALSE; 592 if (!pd->focused_it) return EINA_FALSE;
593 return edit_ctxpopup_visible_get(pd->focused_it->ed); 593 return edit_ctxpopup_visible_get(pd->focused_it->ed);
594} 594}
595 595
596EOLIAN static void 596EAPI void
597_enventor_object_ctxpopup_dismiss(Eo *obj EINA_UNUSED, 597enventor_object_ctxpopup_dismiss(Eo *obj EINA_UNUSED,
598 Enventor_Object_Data *pd) 598 Enventor_Object_Data *pd)
599{ 599{
600 if (!pd->focused_it) return; 600 if (!pd->focused_it) return;
601 edit_ctxpopup_dismiss(pd->focused_it->ed); 601 edit_ctxpopup_dismiss(pd->focused_it->ed);
602} 602}
603 603
604EOLIAN static Eina_Bool 604EAPI Eina_Bool
605_enventor_object_dummy_parts_get(const Eo *obj EINA_UNUSED, 605enventor_object_dummy_parts_get(const Eo *obj EINA_UNUSED,
606 Enventor_Object_Data *pd) 606 Enventor_Object_Data *pd)
607{ 607{
608 return pd->dummy_parts; 608 return pd->dummy_parts;
609} 609}
610 610
611EOLIAN static void 611EAPI void
612_enventor_object_wireframes_set(Eo *obj EINA_UNUSED, 612enventor_object_wireframes_set(Eo *obj EINA_UNUSED,
613 Enventor_Object_Data *pd, 613 Enventor_Object_Data *pd,
614 Eina_Bool wireframes) 614 Eina_Bool wireframes)
615{ 615{
616 wireframes = !!wireframes; 616 wireframes = !!wireframes;
617 617
@@ -619,18 +619,18 @@ _enventor_object_wireframes_set(Eo *obj EINA_UNUSED,
619 pd->wireframes = wireframes; 619 pd->wireframes = wireframes;
620} 620}
621 621
622EOLIAN static Eina_Bool 622EAPI Eina_Bool
623_enventor_object_wireframes_get(const Eo *obj EINA_UNUSED, 623enventor_object_wireframes_get(const Eo *obj EINA_UNUSED,
624 Enventor_Object_Data *pd) 624 Enventor_Object_Data *pd)
625{ 625{
626 return pd->wireframes; 626 return pd->wireframes;
627} 627}
628 628
629 629
630EOLIAN static void 630EAPI void
631_enventor_object_part_highlight_set(Eo *obj EINA_UNUSED, 631enventor_object_part_highlight_set(Eo *obj EINA_UNUSED,
632 Enventor_Object_Data *pd, 632 Enventor_Object_Data *pd,
633 Eina_Bool part_highlight) 633 Eina_Bool part_highlight)
634{ 634{
635 part_highlight = !!part_highlight; 635 part_highlight = !!part_highlight;
636 if (pd->part_highlight == part_highlight) return; 636 if (pd->part_highlight == part_highlight) return;
@@ -643,50 +643,50 @@ _enventor_object_part_highlight_set(Eo *obj EINA_UNUSED,
643 else view_part_highlight_set(VIEW_DATA, NULL); 643 else view_part_highlight_set(VIEW_DATA, NULL);
644} 644}
645 645
646EOLIAN static Eina_Bool 646EAPI Eina_Bool
647_enventor_object_part_highlight_get(const Eo *obj EINA_UNUSED, 647enventor_object_part_highlight_get(const Eo *obj EINA_UNUSED,
648 Enventor_Object_Data *pd) 648 Enventor_Object_Data *pd)
649{ 649{
650 return pd->part_highlight; 650 return pd->part_highlight;
651} 651}
652 652
653EOLIAN static void 653EAPI void
654_enventor_object_mirror_mode_set(Eo *obj EINA_UNUSED, 654enventor_object_mirror_mode_set(Eo *obj EINA_UNUSED,
655 Enventor_Object_Data *pd, 655 Enventor_Object_Data *pd,
656 Eina_Bool mirror_mode) 656 Eina_Bool mirror_mode)
657{ 657{
658 pd->mirror_mode = !!mirror_mode; 658 pd->mirror_mode = !!mirror_mode;
659 view_mirror_mode_update(VIEW_DATA); 659 view_mirror_mode_update(VIEW_DATA);
660} 660}
661 661
662EOLIAN static Eina_Bool 662EAPI Eina_Bool
663_enventor_object_mirror_mode_get(const Eo *obj EINA_UNUSED, 663enventor_object_mirror_mode_get(const Eo *obj EINA_UNUSED,
664 Enventor_Object_Data *pd) 664 Enventor_Object_Data *pd)
665{ 665{
666 return pd->mirror_mode; 666 return pd->mirror_mode;
667} 667}
668 668
669EOLIAN static void 669EAPI void
670_enventor_object_efl_ui_focus_object_focus_set(Eo *obj EINA_UNUSED, 670enventor_object_efl_ui_focus_object_focus_set(Eo *obj EINA_UNUSED,
671 Enventor_Object_Data *pd EINA_UNUSED, 671 Enventor_Object_Data *pd EINA_UNUSED,
672 Eina_Bool focus) 672 Eina_Bool focus)
673{ 673{
674 if (!pd->focused_it) return; 674 if (!pd->focused_it) return;
675 675
676 edit_focus_set(pd->focused_it->ed, focus); 676 edit_focus_set(pd->focused_it->ed, focus);
677} 677}
678 678
679EOLIAN static Eina_Bool 679EAPI Eina_Bool
680_enventor_object_efl_ui_focus_object_focus_get(const Eo *obj EINA_UNUSED, 680enventor_object_efl_ui_focus_object_focus_get(const Eo *obj EINA_UNUSED,
681 Enventor_Object_Data *pd) 681 Enventor_Object_Data *pd)
682{ 682{
683 if (!pd->focused_it) return EINA_FALSE; 683 if (!pd->focused_it) return EINA_FALSE;
684 return edit_focus_get(pd->focused_it->ed); 684 return edit_focus_get(pd->focused_it->ed);
685} 685}
686 686
687EOLIAN static void 687EAPI void
688_enventor_object_font_scale_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, 688enventor_object_font_scale_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
689 double font_scale) 689 double font_scale)
690{ 690{
691 if (pd->font_scale == font_scale) return; 691 if (pd->font_scale == font_scale) return;
692 pd->font_scale = font_scale; 692 pd->font_scale = font_scale;
@@ -695,16 +695,16 @@ _enventor_object_font_scale_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
695 edit_font_scale_set(pd->focused_it->ed, font_scale); 695 edit_font_scale_set(pd->focused_it->ed, font_scale);
696} 696}
697 697
698EOLIAN static double 698EAPI double
699_enventor_object_font_scale_get(const Eo *obj EINA_UNUSED, 699enventor_object_font_scale_get(const Eo *obj EINA_UNUSED,
700 Enventor_Object_Data *pd) 700 Enventor_Object_Data *pd)
701{ 701{
702 return pd->font_scale; 702 return pd->font_scale;
703} 703}
704 704
705EOLIAN static void 705EAPI void
706_enventor_object_font_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, 706enventor_object_font_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
707 const char *font_name, const char *font_style) 707 const char *font_name, const char *font_style)
708{ 708{
709 if (!font_name) return; 709 if (!font_name) return;
710 if ((font_name == pd->font_name) && (font_style == pd->font_style)) return; 710 if ((font_name == pd->font_name) && (font_style == pd->font_style)) return;
@@ -720,19 +720,19 @@ _enventor_object_font_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
720 elm_font_fontconfig_name_free(font); 720 elm_font_fontconfig_name_free(font);
721} 721}
722 722
723EOLIAN static void 723EAPI void
724_enventor_object_font_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, 724enventor_object_font_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
725 const char **font_name, const char **font_style) 725 const char **font_name, const char **font_style)
726{ 726{
727 if (font_name) *font_name = pd->font_name; 727 if (font_name) *font_name = pd->font_name;
728 if (font_style) *font_style = pd->font_style; 728 if (font_style) *font_style = pd->font_style;
729} 729}
730 730
731EOLIAN static void 731EAPI void
732_enventor_object_syntax_color_set(Eo *obj EINA_UNUSED, 732enventor_object_syntax_color_set(Eo *obj EINA_UNUSED,
733 Enventor_Object_Data *pd, 733 Enventor_Object_Data *pd,
734 Enventor_Syntax_Color_Type color_type, 734 Enventor_Syntax_Color_Type color_type,
735 const char *val) 735 const char *val)
736{ 736{
737 EINA_SAFETY_ON_NULL_RETURN(val); 737 EINA_SAFETY_ON_NULL_RETURN(val);
738 738
@@ -757,10 +757,10 @@ _enventor_object_syntax_color_set(Eo *obj EINA_UNUSED,
757 edit_syntax_color_set(it->ed, color_type, val); 757 edit_syntax_color_set(it->ed, color_type, val);
758} 758}
759 759
760EOLIAN static const char * 760EAPI const char *
761_enventor_object_syntax_color_get(Eo *obj EINA_UNUSED, 761enventor_object_syntax_color_get(Eo *obj EINA_UNUSED,
762 Enventor_Object_Data *pd, 762 Enventor_Object_Data *pd,
763 Enventor_Syntax_Color_Type color_type) 763 Enventor_Syntax_Color_Type color_type)
764{ 764{
765 if ((color_type < ENVENTOR_SYNTAX_COLOR_STRING) || 765 if ((color_type < ENVENTOR_SYNTAX_COLOR_STRING) ||
766 (color_type >= ENVENTOR_SYNTAX_COLOR_LAST)) 766 (color_type >= ENVENTOR_SYNTAX_COLOR_LAST))
@@ -776,17 +776,17 @@ _enventor_object_syntax_color_get(Eo *obj EINA_UNUSED,
776 return color_value_get(color_type); 776 return color_value_get(color_type);
777} 777}
778 778
779EOLIAN static Eo * 779EAPI Eo *
780_enventor_object_live_view_get(Eo *obj EINA_UNUSED, 780enventor_object_live_view_get(Eo *obj EINA_UNUSED,
781 Enventor_Object_Data *pd EINA_UNUSED) 781 Enventor_Object_Data *pd EINA_UNUSED)
782{ 782{
783 return edj_mgr_obj_get(); 783 return edj_mgr_obj_get();
784} 784}
785 785
786EOLIAN static void 786EAPI void
787_enventor_object_disabled_set(Eo *obj EINA_UNUSED, 787enventor_object_disabled_set(Eo *obj EINA_UNUSED,
788 Enventor_Object_Data *pd, 788 Enventor_Object_Data *pd,
789 Eina_Bool disabled) 789 Eina_Bool disabled)
790{ 790{
791 disabled = !!disabled; 791 disabled = !!disabled;
792 if (pd->disabled == disabled) return; 792 if (pd->disabled == disabled) return;
@@ -797,39 +797,36 @@ _enventor_object_disabled_set(Eo *obj EINA_UNUSED,
797 pd->disabled = !!disabled; 797 pd->disabled = !!disabled;
798} 798}
799 799
800EOLIAN static void 800EAPI void
801_enventor_object_program_run(Eo *obj EINA_UNUSED, 801enventor_object_program_run(Eo *obj EINA_UNUSED,
802 Enventor_Object_Data *pd EINA_UNUSED, 802 Enventor_Object_Data *pd EINA_UNUSED,
803 const char *program) 803 const char *program)
804{ 804{
805 view_program_run(VIEW_DATA, program); 805 view_program_run(VIEW_DATA, program);
806} 806}
807 807
808EOLIAN static void 808EAPI void
809_enventor_object_programs_stop(Eo *obj EINA_UNUSED, 809enventor_object_programs_stop(Eo *obj EINA_UNUSED,
810 Enventor_Object_Data *pd EINA_UNUSED) 810 Enventor_Object_Data *pd EINA_UNUSED)
811{ 811{
812 view_programs_stop(VIEW_DATA); 812 view_programs_stop(VIEW_DATA);
813} 813}
814 814
815EOLIAN static void 815EAPI void
816_enventor_object_keyword_reference_show(Eo *obj EINA_UNUSED, 816enventor_object_keyword_reference_show(Eo *obj EINA_UNUSED,
817 Enventor_Object_Data *pd) 817 Enventor_Object_Data *pd)
818{ 818{
819 if (!pd->focused_it) return; 819 if (!pd->focused_it) return;
820 ref_show(pd->focused_it->ed); 820 ref_show(pd->focused_it->ed);
821} 821}
822 822
823EOLIAN static double 823EAPI double
824_enventor_object_base_scale_get(Eo *obj EINA_UNUSED, 824enventor_object_base_scale_get(Eo *obj EINA_UNUSED,
825 Enventor_Object_Data *pd EINA_UNUSED) 825 Enventor_Object_Data *pd EINA_UNUSED)
826{ 826{
827 return view_base_scale_get(VIEW_DATA); 827 return view_base_scale_get(VIEW_DATA);
828} 828}
829 829
830/*****************************************************************************/
831/* Externally accessible calls */
832/*****************************************************************************/
833EAPI Enventor_Object * 830EAPI Enventor_Object *
834enventor_object_add(Enventor_Object *parent) 831enventor_object_add(Enventor_Object *parent)
835{ 832{
@@ -930,6 +927,8 @@ enventor_object_sub_items_get(const Enventor_Object *obj)
930EAPI Enventor_Item * 927EAPI Enventor_Item *
931enventor_object_focused_item_get(const Enventor_Object *obj) 928enventor_object_focused_item_get(const Enventor_Object *obj)
932{ 929{
930 EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
931
933 Enventor_Object_Data *pd = efl_data_scope_get(obj, ENVENTOR_OBJECT_CLASS); 932 Enventor_Object_Data *pd = efl_data_scope_get(obj, ENVENTOR_OBJECT_CLASS);
934 return pd->focused_it; 933 return pd->focused_it;
935} 934}
@@ -1251,5 +1250,3 @@ enventor_item_group_list_get(Enventor_Item *it)
1251 1250
1252 return edit_group_list_get(it->ed); 1251 return edit_group_list_get(it->ed);
1253} 1252}
1254
1255#include "enventor_object.eo.c"