summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-05 17:00:37 -0500
committerCedric BAIL <cedric.bail@free.fr>2019-03-07 14:15:14 -0800
commita156cc22898b504fce84964bc90137675d03d61b (patch)
tree5b4046cdd758987830de4456d09234e1a8718647
parenta8057a34032a44d680506d097258e4bf551398b3 (diff)
elm_fileselector*: remove all legacy usage from eo files
this takes the current generated output from eolian for legacy code in efl and adds it to the tree, then removes legacy references from the corresponding eo files. in the case where the entire eo file was for a legacy object, that eo file has been removed from the tree ref T7724 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8167
-rw-r--r--src/Makefile_Elementary.am13
-rw-r--r--src/lib/elementary/elc_fileselector.c8
-rw-r--r--src/lib/elementary/elc_fileselector_button.c8
-rw-r--r--src/lib/elementary/elc_fileselector_button_legacy.h2
-rw-r--r--src/lib/elementary/elc_fileselector_entry.c8
-rw-r--r--src/lib/elementary/elc_fileselector_entry_legacy.h2
-rw-r--r--src/lib/elementary/elc_fileselector_legacy.h2
-rw-r--r--src/lib/elementary/elm_fileselector.eo65
-rw-r--r--src/lib/elementary/elm_fileselector_button.eo30
-rw-r--r--src/lib/elementary/elm_fileselector_button_eo.c149
-rw-r--r--src/lib/elementary/elm_fileselector_button_eo.h32
-rw-r--r--src/lib/elementary/elm_fileselector_button_eo.legacy.h17
-rw-r--r--src/lib/elementary/elm_fileselector_entry.eo27
-rw-r--r--src/lib/elementary/elm_fileselector_entry_eo.c91
-rw-r--r--src/lib/elementary/elm_fileselector_entry_eo.h56
-rw-r--r--src/lib/elementary/elm_fileselector_entry_eo.legacy.h17
-rw-r--r--src/lib/elementary/elm_fileselector_eo.c207
-rw-r--r--src/lib/elementary/elm_fileselector_eo.h87
-rw-r--r--src/lib/elementary/elm_fileselector_eo.legacy.c12
-rw-r--r--src/lib/elementary/elm_fileselector_eo.legacy.h47
-rw-r--r--src/lib/elementary/meson.build9
21 files changed, 746 insertions, 143 deletions
diff --git a/src/Makefile_Elementary.am b/src/Makefile_Elementary.am
index 2823878..ec34d3e 100644
--- a/src/Makefile_Elementary.am
+++ b/src/Makefile_Elementary.am
@@ -187,7 +187,6 @@ elm_private_eolian_files = \
187elm_legacy_eolian_files = \ 187elm_legacy_eolian_files = \
188 lib/elementary/efl_ui_clock_legacy.eo \ 188 lib/elementary/efl_ui_clock_legacy.eo \
189 lib/elementary/elm_interface_fileselector.eo \ 189 lib/elementary/elm_interface_fileselector.eo \
190 lib/elementary/elm_fileselector.eo \
191 lib/elementary/elm_gengrid.eo \ 190 lib/elementary/elm_gengrid.eo \
192 lib/elementary/elm_gengrid_pan.eo \ 191 lib/elementary/elm_gengrid_pan.eo \
193 lib/elementary/elm_genlist.eo \ 192 lib/elementary/elm_genlist.eo \
@@ -237,8 +236,6 @@ elm_legacy_eolian_files = \
237 lib/elementary/elm_actionslider_part.eo \ 236 lib/elementary/elm_actionslider_part.eo \
238 lib/elementary/elm_bubble_part.eo \ 237 lib/elementary/elm_bubble_part.eo \
239 lib/elementary/elm_fileselector_part.eo \ 238 lib/elementary/elm_fileselector_part.eo \
240 lib/elementary/elm_fileselector_button.eo \
241 lib/elementary/elm_fileselector_entry.eo \
242 lib/elementary/elm_flipselector.eo \ 239 lib/elementary/elm_flipselector.eo \
243 lib/elementary/elm_grid.eo \ 240 lib/elementary/elm_grid.eo \
244 lib/elementary/elm_icon.eo \ 241 lib/elementary/elm_icon.eo \
@@ -346,6 +343,10 @@ lib/elementary/elm_diskselector_item_eo.legacy.c \
346lib/elementary/elm_diskselector_item_eo.c \ 343lib/elementary/elm_diskselector_item_eo.c \
347lib/elementary/elm_entry_eo.legacy.c \ 344lib/elementary/elm_entry_eo.legacy.c \
348lib/elementary/elm_entry_eo.c \ 345lib/elementary/elm_entry_eo.c \
346lib/elementary/elm_fileselector_button_eo.c \
347lib/elementary/elm_fileselector_entry_eo.c \
348lib/elementary/elm_fileselector_eo.legacy.c \
349lib/elementary/elm_fileselector_eo.c \
349lib/elementary/elm_hoversel_eo.c \ 350lib/elementary/elm_hoversel_eo.c \
350lib/elementary/elm_hoversel_item_eo.c \ 351lib/elementary/elm_hoversel_item_eo.c \
351lib/elementary/elm_hoversel_item_eo.legacy.c 352lib/elementary/elm_hoversel_item_eo.legacy.c
@@ -431,6 +432,12 @@ lib/elementary/elm_diskselector_item_eo.h \
431lib/elementary/elm_diskselector_item_eo.legacy.h \ 432lib/elementary/elm_diskselector_item_eo.legacy.h \
432lib/elementary/elm_entry_eo.h \ 433lib/elementary/elm_entry_eo.h \
433lib/elementary/elm_entry_eo.legacy.h \ 434lib/elementary/elm_entry_eo.legacy.h \
435lib/elementary/elm_fileselector_button_eo.h \
436lib/elementary/elm_fileselector_button_eo.legacy.h \
437lib/elementary/elm_fileselector_entry_eo.h \
438lib/elementary/elm_fileselector_entry_eo.legacy.h \
439lib/elementary/elm_fileselector_eo.h \
440lib/elementary/elm_fileselector_eo.legacy.h \
434lib/elementary/elm_hoversel_eo.h \ 441lib/elementary/elm_hoversel_eo.h \
435lib/elementary/elm_hoversel_eo.legacy.h \ 442lib/elementary/elm_hoversel_eo.legacy.h \
436lib/elementary/elm_hoversel_item_eo.h \ 443lib/elementary/elm_hoversel_item_eo.h \
diff --git a/src/lib/elementary/elc_fileselector.c b/src/lib/elementary/elc_fileselector.c
index 03ff26b..9df3e4a 100644
--- a/src/lib/elementary/elc_fileselector.c
+++ b/src/lib/elementary/elc_fileselector.c
@@ -17,12 +17,12 @@
17#include <Elementary.h> 17#include <Elementary.h>
18#include "Eio_Eo.h" 18#include "Eio_Eo.h"
19#include "elm_priv.h" 19#include "elm_priv.h"
20#include "elm_fileselector_button.eo.h" 20#include "elm_fileselector_button_eo.h"
21#include "elm_fileselector_entry.eo.h" 21#include "elm_fileselector_entry_eo.h"
22#include "elm_interface_fileselector.h" 22#include "elm_interface_fileselector.h"
23#include "elm_widget_fileselector.h" 23#include "elm_widget_fileselector.h"
24#include "elm_entry_eo.h" 24#include "elm_entry_eo.h"
25#include "elm_fileselector.eo.h" 25#include "elm_fileselector_eo.h"
26#include "elm_genlist.eo.h" 26#include "elm_genlist.eo.h"
27#include "elm_gengrid.eo.h" 27#include "elm_gengrid.eo.h"
28 28
@@ -3079,4 +3079,4 @@ ELM_PART_OVERRIDE_TEXT_SET(elm_fileselector, ELM_FILESELECTOR, Elm_Fileselector_
3079 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_fileselector), \ 3079 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_fileselector), \
3080 EFL_OBJECT_OP_FUNC(efl_event_callback_legacy_call, _elm_fileselector_efl_object_event_callback_legacy_call) 3080 EFL_OBJECT_OP_FUNC(efl_event_callback_legacy_call, _elm_fileselector_efl_object_event_callback_legacy_call)
3081 3081
3082#include "elm_fileselector.eo.c" 3082#include "elm_fileselector_eo.c"
diff --git a/src/lib/elementary/elc_fileselector_button.c b/src/lib/elementary/elc_fileselector_button.c
index 8f2b763..96e5acc 100644
--- a/src/lib/elementary/elc_fileselector_button.c
+++ b/src/lib/elementary/elc_fileselector_button.c
@@ -7,11 +7,11 @@
7#include <Elementary.h> 7#include <Elementary.h>
8#include "Eio_Eo.h" 8#include "Eio_Eo.h"
9#include "elm_priv.h" 9#include "elm_priv.h"
10#include "elm_fileselector_button.eo.h" 10#include "elm_fileselector_button_eo.h"
11#include "elm_fileselector_entry.eo.h" 11#include "elm_fileselector_entry_eo.h"
12#include "elm_interface_fileselector.h" 12#include "elm_interface_fileselector.h"
13#include "elm_widget_fileselector_button.h" 13#include "elm_widget_fileselector_button.h"
14#include "elm_fileselector.eo.h" 14#include "elm_fileselector_eo.h"
15 15
16#define MY_CLASS ELM_FILESELECTOR_BUTTON_CLASS 16#define MY_CLASS ELM_FILESELECTOR_BUTTON_CLASS
17 17
@@ -703,4 +703,4 @@ elm_fileselector_button_inwin_mode_get(const Eo *obj)
703#define ELM_FILESELECTOR_BUTTON_EXTRA_OPS \ 703#define ELM_FILESELECTOR_BUTTON_EXTRA_OPS \
704 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_fileselector_button) 704 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_fileselector_button)
705 705
706#include "elm_fileselector_button.eo.c" 706#include "elm_fileselector_button_eo.c"
diff --git a/src/lib/elementary/elc_fileselector_button_legacy.h b/src/lib/elementary/elc_fileselector_button_legacy.h
index 0b74a91..f34e1a1 100644
--- a/src/lib/elementary/elc_fileselector_button_legacy.h
+++ b/src/lib/elementary/elc_fileselector_button_legacy.h
@@ -10,7 +10,7 @@
10 */ 10 */
11EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent); 11EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent);
12 12
13#include "elm_fileselector_button.eo.legacy.h" 13#include "elm_fileselector_button_eo.legacy.h"
14 14
15/** 15/**
16 * @brief Set whether a given file selector button widget's internal file 16 * @brief Set whether a given file selector button widget's internal file
diff --git a/src/lib/elementary/elc_fileselector_entry.c b/src/lib/elementary/elc_fileselector_entry.c
index 9004408..2df184e 100644
--- a/src/lib/elementary/elc_fileselector_entry.c
+++ b/src/lib/elementary/elc_fileselector_entry.c
@@ -9,12 +9,12 @@
9#include <Elementary.h> 9#include <Elementary.h>
10#include "Eio_Eo.h" 10#include "Eio_Eo.h"
11#include "elm_priv.h" 11#include "elm_priv.h"
12#include "elm_fileselector_button.eo.h" 12#include "elm_fileselector_button_eo.h"
13#include "elm_fileselector_entry.eo.h" 13#include "elm_fileselector_entry_eo.h"
14#include "elm_interface_fileselector.h" 14#include "elm_interface_fileselector.h"
15#include "elm_widget_fileselector_entry.h" 15#include "elm_widget_fileselector_entry.h"
16#include "elm_entry_eo.h" 16#include "elm_entry_eo.h"
17#include "elm_fileselector.eo.h" 17#include "elm_fileselector_eo.h"
18 18
19#include "elm_fileselector_entry_part.eo.h" 19#include "elm_fileselector_entry_part.eo.h"
20#include "elm_part_helper.h" 20#include "elm_part_helper.h"
@@ -574,4 +574,4 @@ ELM_PART_CONTENT_DEFAULT_GET(elm_fileselector_entry, "button icon")
574 ELM_LAYOUT_SIZING_EVAL_OPS(elm_fileselector_entry), \ 574 ELM_LAYOUT_SIZING_EVAL_OPS(elm_fileselector_entry), \
575 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_fileselector_entry) 575 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_fileselector_entry)
576 576
577#include "elm_fileselector_entry.eo.c" 577#include "elm_fileselector_entry_eo.c"
diff --git a/src/lib/elementary/elc_fileselector_entry_legacy.h b/src/lib/elementary/elc_fileselector_entry_legacy.h
index f06d403..af983d7 100644
--- a/src/lib/elementary/elc_fileselector_entry_legacy.h
+++ b/src/lib/elementary/elc_fileselector_entry_legacy.h
@@ -11,7 +11,7 @@
11 */ 11 */
12EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent); 12EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent);
13 13
14#include "elm_fileselector_entry.eo.legacy.h" 14#include "elm_fileselector_entry_eo.legacy.h"
15 15
16/** 16/**
17 * @brief Set whether a given file selector entry widget's internal file 17 * @brief Set whether a given file selector entry widget's internal file
diff --git a/src/lib/elementary/elc_fileselector_legacy.h b/src/lib/elementary/elc_fileselector_legacy.h
index 8fc1065..abc15a8 100644
--- a/src/lib/elementary/elc_fileselector_legacy.h
+++ b/src/lib/elementary/elc_fileselector_legacy.h
@@ -411,4 +411,4 @@ EAPI Elm_Fileselector_Sort elm_fileselector_sort_method_get(const Evas_Object *o
411 */ 411 */
412EAPI void elm_fileselector_sort_method_set(Evas_Object *obj, Elm_Fileselector_Sort sort); 412EAPI void elm_fileselector_sort_method_set(Evas_Object *obj, Elm_Fileselector_Sort sort);
413 413
414#include "elm_fileselector.eo.legacy.h" 414#include "elm_fileselector_eo.legacy.h"
diff --git a/src/lib/elementary/elm_fileselector.eo b/src/lib/elementary/elm_fileselector.eo
deleted file mode 100644
index 177a75a..0000000
--- a/src/lib/elementary/elm_fileselector.eo
+++ /dev/null
@@ -1,65 +0,0 @@
1class Elm.Fileselector extends Efl.Ui.Layout_Base implements Elm.Interface.Fileselector,
2 Efl.Access.Widget.Action, Efl.Ui.Focus.Composition,
3 Efl.Ui.Clickable, Efl.Ui.Selectable, Efl.Ui.Legacy
4{
5 [[Elementary fileselector class]]
6 legacy_prefix: elm_fileselector;
7 eo_prefix: elm_obj_fileselector;
8 event_prefix: elm_fileselector;
9 methods {
10 @property buttons_ok_cancel {
11 set {
12 [[Enable/disable the "ok" and "cancel" buttons on a given file
13 selector widget
14
15 Note: A file selector without those buttons will never emit the
16 "done" smart event, and is only usable if one is just hooking
17 to the other two events.
18
19 See also @.buttons_ok_cancel.get.
20 ]]
21 }
22 get {
23 [[Get whether the "ok" and "cancel" buttons on a given file
24 selector widget are being shown.
25
26 See also @.buttons_ok_cancel.set for more details.
27 ]]
28 }
29 values {
30 visible: bool; [[$true to show buttons, $false to hide.]]
31 }
32 }
33 }
34 implements {
35 class.constructor;
36 class.destructor;
37 Efl.Object.constructor;
38 Efl.Ui.Widget.widget_input_event_handler;
39 Efl.Ui.Widget.theme_apply;
40 Elm.Interface.Fileselector.selected_models { get; }
41 Elm.Interface.Fileselector.selected_model { get; set; }
42 Elm.Interface.Fileselector.custom_filter_append;
43 Elm.Interface.Fileselector.expandable { get; set; }
44 Elm.Interface.Fileselector.thumbnail_size { get; set; }
45 Elm.Interface.Fileselector.mime_types_filter_append;
46 Elm.Interface.Fileselector.hidden_visible { get; set; }
47 Elm.Interface.Fileselector.filters_clear;
48 Elm.Interface.Fileselector.is_save { get; set; }
49 Efl.Ui.View.model { get; set; }
50 Elm.Interface.Fileselector.sort_method { get; set; }
51 Elm.Interface.Fileselector.multi_select { get; set; }
52 Elm.Interface.Fileselector.folder_only { get; set; }
53 Elm.Interface.Fileselector.mode { get; set; }
54 Elm.Interface.Fileselector.current_name { get; set; }
55 Efl.Access.Widget.Action.elm_actions { get; }
56 Efl.Part.part_get;
57 }
58 events {
59 done: string; [[Called when OK button was pressed]]
60 /* FIXME: For all three events below, event_info can either be a string or an Efl.Model */
61 activated: void; [[Called when the filesector was activated]]
62 selected,invalid: void; [[Called when fileselector was selected]]
63 directory,open: void; [[Called when a directory was opened]]
64 }
65}
diff --git a/src/lib/elementary/elm_fileselector_button.eo b/src/lib/elementary/elm_fileselector_button.eo
deleted file mode 100644
index be3de44..0000000
--- a/src/lib/elementary/elm_fileselector_button.eo
+++ /dev/null
@@ -1,30 +0,0 @@
1class Elm.Fileselector_Button extends Efl.Ui.Button implements Elm.Interface.Fileselector,
2 Efl.Ui.Legacy
3{
4 [[Elementary fileselector button class]]
5 event_prefix: elm_fileselector_button;
6 implements {
7 Efl.Object.constructor;
8 Efl.Ui.Widget.theme_apply;
9 Efl.Ui.Autorepeat.autorepeat_supported { get; }
10 Elm.Interface.Fileselector.selected_models { get; }
11 Elm.Interface.Fileselector.expandable { get; set; }
12 Elm.Interface.Fileselector.thumbnail_size { get; set; }
13 Elm.Interface.Fileselector.selected_model { get; set; }
14 Elm.Interface.Fileselector.hidden_visible { get; set; }
15 Elm.Interface.Fileselector.is_save { get; set; }
16 Efl.Ui.View.model { get; set; }
17 Elm.Interface.Fileselector.sort_method { get; set; }
18 Elm.Interface.Fileselector.multi_select { get; set; }
19 Elm.Interface.Fileselector.folder_only { get; set; }
20 Elm.Interface.Fileselector.mode { get; set; }
21 Elm.Interface.Fileselector.current_name { get; set; }
22 Elm.Interface.Fileselector.custom_filter_append;
23 Elm.Interface.Fileselector.mime_types_filter_append;
24 Elm.Interface.Fileselector.filters_clear;
25 }
26 events {
27 /* FIXME: Can be Efl.Model, string and NULL */
28 file,chosen: void; [[Called when a file was chosen in the fileselector]]
29 }
30}
diff --git a/src/lib/elementary/elm_fileselector_button_eo.c b/src/lib/elementary/elm_fileselector_button_eo.c
new file mode 100644
index 0000000..36436bb
--- /dev/null
+++ b/src/lib/elementary/elm_fileselector_button_eo.c
@@ -0,0 +1,149 @@
1EWAPI const Efl_Event_Description _ELM_FILESELECTOR_BUTTON_EVENT_FILE_CHOSEN =
2 EFL_EVENT_DESCRIPTION("file,chosen");
3
4Efl_Object *_elm_fileselector_button_efl_object_constructor(Eo *obj, Elm_Fileselector_Button_Data *pd);
5
6
7Eina_Error _elm_fileselector_button_efl_ui_widget_theme_apply(Eo *obj, Elm_Fileselector_Button_Data *pd);
8
9
10Eina_Bool _elm_fileselector_button_efl_ui_autorepeat_autorepeat_supported_get(const Eo *obj, Elm_Fileselector_Button_Data *pd);
11
12
13const Eina_List *_elm_fileselector_button_elm_interface_fileselector_selected_models_get(const Eo *obj, Elm_Fileselector_Button_Data *pd);
14
15
16void _elm_fileselector_button_elm_interface_fileselector_expandable_set(Eo *obj, Elm_Fileselector_Button_Data *pd, Eina_Bool expand);
17
18
19Eina_Bool _elm_fileselector_button_elm_interface_fileselector_expandable_get(const Eo *obj, Elm_Fileselector_Button_Data *pd);
20
21
22void _elm_fileselector_button_elm_interface_fileselector_thumbnail_size_set(Eo *obj, Elm_Fileselector_Button_Data *pd, int w, int h);
23
24
25void _elm_fileselector_button_elm_interface_fileselector_thumbnail_size_get(const Eo *obj, Elm_Fileselector_Button_Data *pd, int *w, int *h);
26
27
28Eina_Bool _elm_fileselector_button_elm_interface_fileselector_selected_model_set(Eo *obj, Elm_Fileselector_Button_Data *pd, Efl_Io_Model *model);
29
30
31Efl_Io_Model *_elm_fileselector_button_elm_interface_fileselector_selected_model_get(const Eo *obj, Elm_Fileselector_Button_Data *pd);
32
33
34void _elm_fileselector_button_elm_interface_fileselector_hidden_visible_set(Eo *obj, Elm_Fileselector_Button_Data *pd, Eina_Bool hidden);
35
36
37Eina_Bool _elm_fileselector_button_elm_interface_fileselector_hidden_visible_get(const Eo *obj, Elm_Fileselector_Button_Data *pd);
38
39
40void _elm_fileselector_button_elm_interface_fileselector_is_save_set(Eo *obj, Elm_Fileselector_Button_Data *pd, Eina_Bool is_save);
41
42
43Eina_Bool _elm_fileselector_button_elm_interface_fileselector_is_save_get(const Eo *obj, Elm_Fileselector_Button_Data *pd);
44
45
46void _elm_fileselector_button_efl_ui_view_model_set(Eo *obj, Elm_Fileselector_Button_Data *pd, Efl_Model *model);
47
48
49Efl_Model *_elm_fileselector_button_efl_ui_view_model_get(const Eo *obj, Elm_Fileselector_Button_Data *pd);
50
51
52void _elm_fileselector_button_elm_interface_fileselector_sort_method_set(Eo *obj, Elm_Fileselector_Button_Data *pd, Elm_Fileselector_Sort sort);
53
54
55Elm_Fileselector_Sort _elm_fileselector_button_elm_interface_fileselector_sort_method_get(const Eo *obj, Elm_Fileselector_Button_Data *pd);
56
57
58void _elm_fileselector_button_elm_interface_fileselector_multi_select_set(Eo *obj, Elm_Fileselector_Button_Data *pd, Eina_Bool multi);
59
60
61Eina_Bool _elm_fileselector_button_elm_interface_fileselector_multi_select_get(const Eo *obj, Elm_Fileselector_Button_Data *pd);
62
63
64void _elm_fileselector_button_elm_interface_fileselector_folder_only_set(Eo *obj, Elm_Fileselector_Button_Data *pd, Eina_Bool only);
65
66
67Eina_Bool _elm_fileselector_button_elm_interface_fileselector_folder_only_get(const Eo *obj, Elm_Fileselector_Button_Data *pd);
68
69
70void _elm_fileselector_button_elm_interface_fileselector_mode_set(Eo *obj, Elm_Fileselector_Button_Data *pd, Elm_Fileselector_Mode mode);
71
72
73Elm_Fileselector_Mode _elm_fileselector_button_elm_interface_fileselector_mode_get(const Eo *obj, Elm_Fileselector_Button_Data *pd);
74
75
76void _elm_fileselector_button_elm_interface_fileselector_current_name_set(Eo *obj, Elm_Fileselector_Button_Data *pd, const char *name);
77
78
79const char *_elm_fileselector_button_elm_interface_fileselector_current_name_get(const Eo *obj, Elm_Fileselector_Button_Data *pd);
80
81
82Eina_Bool _elm_fileselector_button_elm_interface_fileselector_custom_filter_append(Eo *obj, Elm_Fileselector_Button_Data *pd, Elm_Fileselector_Filter_Func func, void *data, const char *filter_name);
83
84
85Eina_Bool _elm_fileselector_button_elm_interface_fileselector_mime_types_filter_append(Eo *obj, Elm_Fileselector_Button_Data *pd, const char *mime_types, const char *filter_name);
86
87
88void _elm_fileselector_button_elm_interface_fileselector_filters_clear(Eo *obj, Elm_Fileselector_Button_Data *pd);
89
90
91static Eina_Bool
92_elm_fileselector_button_class_initializer(Efl_Class *klass)
93{
94 const Efl_Object_Ops *opsp = NULL;
95
96 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
97
98#ifndef ELM_FILESELECTOR_BUTTON_EXTRA_OPS
99#define ELM_FILESELECTOR_BUTTON_EXTRA_OPS
100#endif
101
102 EFL_OPS_DEFINE(ops,
103 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_fileselector_button_efl_object_constructor),
104 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_fileselector_button_efl_ui_widget_theme_apply),
105 EFL_OBJECT_OP_FUNC(efl_ui_autorepeat_supported_get, _elm_fileselector_button_efl_ui_autorepeat_autorepeat_supported_get),
106 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_selected_models_get, _elm_fileselector_button_elm_interface_fileselector_selected_models_get),
107 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_expandable_set, _elm_fileselector_button_elm_interface_fileselector_expandable_set),
108 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_expandable_get, _elm_fileselector_button_elm_interface_fileselector_expandable_get),
109 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_thumbnail_size_set, _elm_fileselector_button_elm_interface_fileselector_thumbnail_size_set),
110 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_thumbnail_size_get, _elm_fileselector_button_elm_interface_fileselector_thumbnail_size_get),
111 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_selected_model_set, _elm_fileselector_button_elm_interface_fileselector_selected_model_set),
112 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_selected_model_get, _elm_fileselector_button_elm_interface_fileselector_selected_model_get),
113 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_hidden_visible_set, _elm_fileselector_button_elm_interface_fileselector_hidden_visible_set),
114 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_hidden_visible_get, _elm_fileselector_button_elm_interface_fileselector_hidden_visible_get),
115 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_is_save_set, _elm_fileselector_button_elm_interface_fileselector_is_save_set),
116 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_is_save_get, _elm_fileselector_button_elm_interface_fileselector_is_save_get),
117 EFL_OBJECT_OP_FUNC(efl_ui_view_model_set, _elm_fileselector_button_efl_ui_view_model_set),
118 EFL_OBJECT_OP_FUNC(efl_ui_view_model_get, _elm_fileselector_button_efl_ui_view_model_get),
119 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_sort_method_set, _elm_fileselector_button_elm_interface_fileselector_sort_method_set),
120 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_sort_method_get, _elm_fileselector_button_elm_interface_fileselector_sort_method_get),
121 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_multi_select_set, _elm_fileselector_button_elm_interface_fileselector_multi_select_set),
122 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_multi_select_get, _elm_fileselector_button_elm_interface_fileselector_multi_select_get),
123 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_folder_only_set, _elm_fileselector_button_elm_interface_fileselector_folder_only_set),
124 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_folder_only_get, _elm_fileselector_button_elm_interface_fileselector_folder_only_get),
125 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_mode_set, _elm_fileselector_button_elm_interface_fileselector_mode_set),
126 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_mode_get, _elm_fileselector_button_elm_interface_fileselector_mode_get),
127 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_current_name_set, _elm_fileselector_button_elm_interface_fileselector_current_name_set),
128 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_current_name_get, _elm_fileselector_button_elm_interface_fileselector_current_name_get),
129 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_custom_filter_append, _elm_fileselector_button_elm_interface_fileselector_custom_filter_append),
130 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_mime_types_filter_append, _elm_fileselector_button_elm_interface_fileselector_mime_types_filter_append),
131 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_filters_clear, _elm_fileselector_button_elm_interface_fileselector_filters_clear),
132 ELM_FILESELECTOR_BUTTON_EXTRA_OPS
133 );
134 opsp = &ops;
135
136 return efl_class_functions_set(klass, opsp, ropsp);
137}
138
139static const Efl_Class_Description _elm_fileselector_button_class_desc = {
140 EO_VERSION,
141 "Elm.Fileselector_Button",
142 EFL_CLASS_TYPE_REGULAR,
143 sizeof(Elm_Fileselector_Button_Data),
144 _elm_fileselector_button_class_initializer,
145 NULL,
146 NULL
147};
148
149EFL_DEFINE_CLASS(elm_fileselector_button_class_get, &_elm_fileselector_button_class_desc, EFL_UI_BUTTON_CLASS, ELM_INTERFACE_FILESELECTOR_INTERFACE, EFL_UI_LEGACY_INTERFACE, NULL);
diff --git a/src/lib/elementary/elm_fileselector_button_eo.h b/src/lib/elementary/elm_fileselector_button_eo.h
new file mode 100644
index 0000000..d130945
--- /dev/null
+++ b/src/lib/elementary/elm_fileselector_button_eo.h
@@ -0,0 +1,32 @@
1#ifndef _ELM_FILESELECTOR_BUTTON_EO_H_
2#define _ELM_FILESELECTOR_BUTTON_EO_H_
3
4#ifndef _ELM_FILESELECTOR_BUTTON_EO_CLASS_TYPE
5#define _ELM_FILESELECTOR_BUTTON_EO_CLASS_TYPE
6
7typedef Eo Elm_Fileselector_Button;
8
9#endif
10
11#ifndef _ELM_FILESELECTOR_BUTTON_EO_TYPES
12#define _ELM_FILESELECTOR_BUTTON_EO_TYPES
13
14
15#endif
16/** Elementary fileselector button class
17 *
18 * @ingroup Elm_Fileselector_Button
19 */
20#define ELM_FILESELECTOR_BUTTON_CLASS elm_fileselector_button_class_get()
21
22EWAPI const Efl_Class *elm_fileselector_button_class_get(void);
23
24EWAPI extern const Efl_Event_Description _ELM_FILESELECTOR_BUTTON_EVENT_FILE_CHOSEN;
25
26/** Called when a file was chosen in the fileselector
27 *
28 * @ingroup Elm_Fileselector_Button
29 */
30#define ELM_FILESELECTOR_BUTTON_EVENT_FILE_CHOSEN (&(_ELM_FILESELECTOR_BUTTON_EVENT_FILE_CHOSEN))
31
32#endif
diff --git a/src/lib/elementary/elm_fileselector_button_eo.legacy.h b/src/lib/elementary/elm_fileselector_button_eo.legacy.h
new file mode 100644
index 0000000..7ae3058
--- /dev/null
+++ b/src/lib/elementary/elm_fileselector_button_eo.legacy.h
@@ -0,0 +1,17 @@
1#ifndef _ELM_FILESELECTOR_BUTTON_EO_LEGACY_H_
2#define _ELM_FILESELECTOR_BUTTON_EO_LEGACY_H_
3
4#ifndef _ELM_FILESELECTOR_BUTTON_EO_CLASS_TYPE
5#define _ELM_FILESELECTOR_BUTTON_EO_CLASS_TYPE
6
7typedef Eo Elm_Fileselector_Button;
8
9#endif
10
11#ifndef _ELM_FILESELECTOR_BUTTON_EO_TYPES
12#define _ELM_FILESELECTOR_BUTTON_EO_TYPES
13
14
15#endif
16
17#endif
diff --git a/src/lib/elementary/elm_fileselector_entry.eo b/src/lib/elementary/elm_fileselector_entry.eo
deleted file mode 100644
index 5a01b8d..0000000
--- a/src/lib/elementary/elm_fileselector_entry.eo
+++ /dev/null
@@ -1,27 +0,0 @@
1class Elm.Fileselector_Entry extends Efl.Ui.Layout_Base implements Elm.Interface.Fileselector,
2 Efl.Ui.Clickable, Efl.Ui.Selectable, Efl.Ui.Legacy
3{
4 [[Elementary fileselector entry class]]
5 event_prefix: elm_fileselector_entry;
6 implements {
7 class.constructor;
8 Efl.Object.constructor;
9 Efl.Ui.Widget.theme_apply;
10 Elm.Interface.Fileselector.selected_model { get; set; }
11 Elm.Interface.Fileselector.folder_only { get; set; }
12 Elm.Interface.Fileselector.is_save { get; set; }
13 Efl.Ui.View.model { get; set; }
14 Elm.Interface.Fileselector.expandable { get; set; }
15 Efl.Part.part_get;
16 }
17 events {
18 changed: void; [[Called when the entry changed]]
19 activated: void; [[Called when the entry was activated]]
20 /* FIXME: Can be Efl.Model or string */
21 file,chosen: void; [[Called when a file was chosen in the fileselector]]
22 press: void; [[Called when entry was pressed]]
23 }
24 composite {
25 Elm.Interface.Fileselector;
26 }
27}
diff --git a/src/lib/elementary/elm_fileselector_entry_eo.c b/src/lib/elementary/elm_fileselector_entry_eo.c
new file mode 100644
index 0000000..58c0092
--- /dev/null
+++ b/src/lib/elementary/elm_fileselector_entry_eo.c
@@ -0,0 +1,91 @@
1EWAPI const Efl_Event_Description _ELM_FILESELECTOR_ENTRY_EVENT_CHANGED =
2 EFL_EVENT_DESCRIPTION("changed");
3EWAPI const Efl_Event_Description _ELM_FILESELECTOR_ENTRY_EVENT_ACTIVATED =
4 EFL_EVENT_DESCRIPTION("activated");
5EWAPI const Efl_Event_Description _ELM_FILESELECTOR_ENTRY_EVENT_FILE_CHOSEN =
6 EFL_EVENT_DESCRIPTION("file,chosen");
7EWAPI const Efl_Event_Description _ELM_FILESELECTOR_ENTRY_EVENT_PRESS =
8 EFL_EVENT_DESCRIPTION("press");
9
10Efl_Object *_elm_fileselector_entry_efl_object_constructor(Eo *obj, Elm_Fileselector_Entry_Data *pd);
11
12
13Eina_Error _elm_fileselector_entry_efl_ui_widget_theme_apply(Eo *obj, Elm_Fileselector_Entry_Data *pd);
14
15
16Eina_Bool _elm_fileselector_entry_elm_interface_fileselector_selected_model_set(Eo *obj, Elm_Fileselector_Entry_Data *pd, Efl_Io_Model *model);
17
18
19Efl_Io_Model *_elm_fileselector_entry_elm_interface_fileselector_selected_model_get(const Eo *obj, Elm_Fileselector_Entry_Data *pd);
20
21
22void _elm_fileselector_entry_elm_interface_fileselector_folder_only_set(Eo *obj, Elm_Fileselector_Entry_Data *pd, Eina_Bool only);
23
24
25Eina_Bool _elm_fileselector_entry_elm_interface_fileselector_folder_only_get(const Eo *obj, Elm_Fileselector_Entry_Data *pd);
26
27
28void _elm_fileselector_entry_elm_interface_fileselector_is_save_set(Eo *obj, Elm_Fileselector_Entry_Data *pd, Eina_Bool is_save);
29
30
31Eina_Bool _elm_fileselector_entry_elm_interface_fileselector_is_save_get(const Eo *obj, Elm_Fileselector_Entry_Data *pd);
32
33
34void _elm_fileselector_entry_efl_ui_view_model_set(Eo *obj, Elm_Fileselector_Entry_Data *pd, Efl_Model *model);
35
36
37Efl_Model *_elm_fileselector_entry_efl_ui_view_model_get(const Eo *obj, Elm_Fileselector_Entry_Data *pd);
38
39
40void _elm_fileselector_entry_elm_interface_fileselector_expandable_set(Eo *obj, Elm_Fileselector_Entry_Data *pd, Eina_Bool expand);
41
42
43Eina_Bool _elm_fileselector_entry_elm_interface_fileselector_expandable_get(const Eo *obj, Elm_Fileselector_Entry_Data *pd);
44
45
46Efl_Object *_elm_fileselector_entry_efl_part_part_get(const Eo *obj, Elm_Fileselector_Entry_Data *pd, const char *name);
47
48
49static Eina_Bool
50_elm_fileselector_entry_class_initializer(Efl_Class *klass)
51{
52 const Efl_Object_Ops *opsp = NULL;
53
54 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
55
56#ifndef ELM_FILESELECTOR_ENTRY_EXTRA_OPS
57#define ELM_FILESELECTOR_ENTRY_EXTRA_OPS
58#endif
59
60 EFL_OPS_DEFINE(ops,
61 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_fileselector_entry_efl_object_constructor),
62 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_fileselector_entry_efl_ui_widget_theme_apply),
63 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_selected_model_set, _elm_fileselector_entry_elm_interface_fileselector_selected_model_set),
64 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_selected_model_get, _elm_fileselector_entry_elm_interface_fileselector_selected_model_get),
65 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_folder_only_set, _elm_fileselector_entry_elm_interface_fileselector_folder_only_set),
66 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_folder_only_get, _elm_fileselector_entry_elm_interface_fileselector_folder_only_get),
67 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_is_save_set, _elm_fileselector_entry_elm_interface_fileselector_is_save_set),
68 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_is_save_get, _elm_fileselector_entry_elm_interface_fileselector_is_save_get),
69 EFL_OBJECT_OP_FUNC(efl_ui_view_model_set, _elm_fileselector_entry_efl_ui_view_model_set),
70 EFL_OBJECT_OP_FUNC(efl_ui_view_model_get, _elm_fileselector_entry_efl_ui_view_model_get),
71 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_expandable_set, _elm_fileselector_entry_elm_interface_fileselector_expandable_set),
72 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_expandable_get, _elm_fileselector_entry_elm_interface_fileselector_expandable_get),
73 EFL_OBJECT_OP_FUNC(efl_part_get, _elm_fileselector_entry_efl_part_part_get),
74 ELM_FILESELECTOR_ENTRY_EXTRA_OPS
75 );
76 opsp = &ops;
77
78 return efl_class_functions_set(klass, opsp, ropsp);
79}
80
81static const Efl_Class_Description _elm_fileselector_entry_class_desc = {
82 EO_VERSION,
83 "Elm.Fileselector_Entry",
84 EFL_CLASS_TYPE_REGULAR,
85 sizeof(Elm_Fileselector_Entry_Data),
86 _elm_fileselector_entry_class_initializer,
87 _elm_fileselector_entry_class_constructor,
88 NULL
89};
90
91EFL_DEFINE_CLASS(elm_fileselector_entry_class_get, &_elm_fileselector_entry_class_desc, EFL_UI_LAYOUT_BASE_CLASS, ELM_INTERFACE_FILESELECTOR_INTERFACE, EFL_UI_CLICKABLE_INTERFACE, EFL_UI_SELECTABLE_INTERFACE, EFL_UI_LEGACY_INTERFACE, NULL);
diff --git a/src/lib/elementary/elm_fileselector_entry_eo.h b/src/lib/elementary/elm_fileselector_entry_eo.h
new file mode 100644
index 0000000..b343a7e
--- /dev/null
+++ b/src/lib/elementary/elm_fileselector_entry_eo.h
@@ -0,0 +1,56 @@
1#ifndef _ELM_FILESELECTOR_ENTRY_EO_H_
2#define _ELM_FILESELECTOR_ENTRY_EO_H_
3
4#ifndef _ELM_FILESELECTOR_ENTRY_EO_CLASS_TYPE
5#define _ELM_FILESELECTOR_ENTRY_EO_CLASS_TYPE
6
7typedef Eo Elm_Fileselector_Entry;
8
9#endif
10
11#ifndef _ELM_FILESELECTOR_ENTRY_EO_TYPES
12#define _ELM_FILESELECTOR_ENTRY_EO_TYPES
13
14
15#endif
16/** Elementary fileselector entry class
17 *
18 * @ingroup Elm_Fileselector_Entry
19 */
20#define ELM_FILESELECTOR_ENTRY_CLASS elm_fileselector_entry_class_get()
21
22EWAPI const Efl_Class *elm_fileselector_entry_class_get(void);
23
24EWAPI extern const Efl_Event_Description _ELM_FILESELECTOR_ENTRY_EVENT_CHANGED;
25
26/** Called when the entry changed
27 *
28 * @ingroup Elm_Fileselector_Entry
29 */
30#define ELM_FILESELECTOR_ENTRY_EVENT_CHANGED (&(_ELM_FILESELECTOR_ENTRY_EVENT_CHANGED))
31
32EWAPI extern const Efl_Event_Description _ELM_FILESELECTOR_ENTRY_EVENT_ACTIVATED;
33
34/** Called when the entry was activated
35 *
36 * @ingroup Elm_Fileselector_Entry
37 */
38#define ELM_FILESELECTOR_ENTRY_EVENT_ACTIVATED (&(_ELM_FILESELECTOR_ENTRY_EVENT_ACTIVATED))
39
40EWAPI extern const Efl_Event_Description _ELM_FILESELECTOR_ENTRY_EVENT_FILE_CHOSEN;
41
42/** Called when a file was chosen in the fileselector
43 *
44 * @ingroup Elm_Fileselector_Entry
45 */
46#define ELM_FILESELECTOR_ENTRY_EVENT_FILE_CHOSEN (&(_ELM_FILESELECTOR_ENTRY_EVENT_FILE_CHOSEN))
47
48EWAPI extern const Efl_Event_Description _ELM_FILESELECTOR_ENTRY_EVENT_PRESS;
49
50/** Called when entry was pressed
51 *
52 * @ingroup Elm_Fileselector_Entry
53 */
54#define ELM_FILESELECTOR_ENTRY_EVENT_PRESS (&(_ELM_FILESELECTOR_ENTRY_EVENT_PRESS))
55
56#endif
diff --git a/src/lib/elementary/elm_fileselector_entry_eo.legacy.h b/src/lib/elementary/elm_fileselector_entry_eo.legacy.h
new file mode 100644
index 0000000..e0fbd6a
--- /dev/null
+++ b/src/lib/elementary/elm_fileselector_entry_eo.legacy.h
@@ -0,0 +1,17 @@
1#ifndef _ELM_FILESELECTOR_ENTRY_EO_LEGACY_H_
2#define _ELM_FILESELECTOR_ENTRY_EO_LEGACY_H_
3
4#ifndef _ELM_FILESELECTOR_ENTRY_EO_CLASS_TYPE
5#define _ELM_FILESELECTOR_ENTRY_EO_CLASS_TYPE
6
7typedef Eo Elm_Fileselector_Entry;
8
9#endif
10
11#ifndef _ELM_FILESELECTOR_ENTRY_EO_TYPES
12#define _ELM_FILESELECTOR_ENTRY_EO_TYPES
13
14
15#endif
16
17#endif
diff --git a/src/lib/elementary/elm_fileselector_eo.c b/src/lib/elementary/elm_fileselector_eo.c
new file mode 100644
index 0000000..36e7484
--- /dev/null
+++ b/src/lib/elementary/elm_fileselector_eo.c
@@ -0,0 +1,207 @@
1EWAPI const Efl_Event_Description _ELM_FILESELECTOR_EVENT_DONE =
2 EFL_EVENT_DESCRIPTION("done");
3EWAPI const Efl_Event_Description _ELM_FILESELECTOR_EVENT_ACTIVATED =
4 EFL_EVENT_DESCRIPTION("activated");
5EWAPI const Efl_Event_Description _ELM_FILESELECTOR_EVENT_SELECTED_INVALID =
6 EFL_EVENT_DESCRIPTION("selected,invalid");
7EWAPI const Efl_Event_Description _ELM_FILESELECTOR_EVENT_DIRECTORY_OPEN =
8 EFL_EVENT_DESCRIPTION("directory,open");
9
10void _elm_fileselector_buttons_ok_cancel_set(Eo *obj, Elm_Fileselector_Data *pd, Eina_Bool visible);
11
12
13static Eina_Error
14__eolian_elm_fileselector_buttons_ok_cancel_set_reflect(Eo *obj, Eina_Value val)
15{
16 Eina_Error r = 0; Eina_Bool cval;
17 if (!eina_value_bool_convert(&val, &cval))
18 {
19 r = EINA_ERROR_VALUE_FAILED;
20 goto end;
21 }
22 elm_obj_fileselector_buttons_ok_cancel_set(obj, cval);
23 end:
24 eina_value_flush(&val);
25 return r;
26}
27
28EOAPI EFL_VOID_FUNC_BODYV(elm_obj_fileselector_buttons_ok_cancel_set, EFL_FUNC_CALL(visible), Eina_Bool visible);
29
30Eina_Bool _elm_fileselector_buttons_ok_cancel_get(const Eo *obj, Elm_Fileselector_Data *pd);
31
32
33static Eina_Value
34__eolian_elm_fileselector_buttons_ok_cancel_get_reflect(Eo *obj)
35{
36 Eina_Bool val = elm_obj_fileselector_buttons_ok_cancel_get(obj);
37 return eina_value_bool_init(val);
38}
39
40EOAPI EFL_FUNC_BODY_CONST(elm_obj_fileselector_buttons_ok_cancel_get, Eina_Bool, 0);
41
42Efl_Object *_elm_fileselector_efl_object_constructor(Eo *obj, Elm_Fileselector_Data *pd);
43
44
45Eina_Bool _elm_fileselector_efl_ui_widget_widget_input_event_handler(Eo *obj, Elm_Fileselector_Data *pd, const Efl_Event *eo_event, Efl_Canvas_Object *source);
46
47
48Eina_Error _elm_fileselector_efl_ui_widget_theme_apply(Eo *obj, Elm_Fileselector_Data *pd);
49
50
51const Eina_List *_elm_fileselector_elm_interface_fileselector_selected_models_get(const Eo *obj, Elm_Fileselector_Data *pd);
52
53
54Eina_Bool _elm_fileselector_elm_interface_fileselector_selected_model_set(Eo *obj, Elm_Fileselector_Data *pd, Efl_Io_Model *model);
55
56
57Efl_Io_Model *_elm_fileselector_elm_interface_fileselector_selected_model_get(const Eo *obj, Elm_Fileselector_Data *pd);
58
59
60Eina_Bool _elm_fileselector_elm_interface_fileselector_custom_filter_append(Eo *obj, Elm_Fileselector_Data *pd, Elm_Fileselector_Filter_Func func, void *data, const char *filter_name);
61
62
63void _elm_fileselector_elm_interface_fileselector_expandable_set(Eo *obj, Elm_Fileselector_Data *pd, Eina_Bool expand);
64
65
66Eina_Bool _elm_fileselector_elm_interface_fileselector_expandable_get(const Eo *obj, Elm_Fileselector_Data *pd);
67
68
69void _elm_fileselector_elm_interface_fileselector_thumbnail_size_set(Eo *obj, Elm_Fileselector_Data *pd, int w, int h);
70
71
72void _elm_fileselector_elm_interface_fileselector_thumbnail_size_get(const Eo *obj, Elm_Fileselector_Data *pd, int *w, int *h);
73
74
75Eina_Bool _elm_fileselector_elm_interface_fileselector_mime_types_filter_append(Eo *obj, Elm_Fileselector_Data *pd, const char *mime_types, const char *filter_name);
76
77
78void _elm_fileselector_elm_interface_fileselector_hidden_visible_set(Eo *obj, Elm_Fileselector_Data *pd, Eina_Bool hidden);
79
80
81Eina_Bool _elm_fileselector_elm_interface_fileselector_hidden_visible_get(const Eo *obj, Elm_Fileselector_Data *pd);
82
83
84void _elm_fileselector_elm_interface_fileselector_filters_clear(Eo *obj, Elm_Fileselector_Data *pd);
85
86
87void _elm_fileselector_elm_interface_fileselector_is_save_set(Eo *obj, Elm_Fileselector_Data *pd, Eina_Bool is_save);
88
89
90Eina_Bool _elm_fileselector_elm_interface_fileselector_is_save_get(const Eo *obj, Elm_Fileselector_Data *pd);
91
92
93void _elm_fileselector_efl_ui_view_model_set(Eo *obj, Elm_Fileselector_Data *pd, Efl_Model *model);
94
95
96Efl_Model *_elm_fileselector_efl_ui_view_model_get(const Eo *obj, Elm_Fileselector_Data *pd);
97
98
99void _elm_fileselector_elm_interface_fileselector_sort_method_set(Eo *obj, Elm_Fileselector_Data *pd, Elm_Fileselector_Sort sort);
100
101
102Elm_Fileselector_Sort _elm_fileselector_elm_interface_fileselector_sort_method_get(const Eo *obj, Elm_Fileselector_Data *pd);
103
104
105void _elm_fileselector_elm_interface_fileselector_multi_select_set(Eo *obj, Elm_Fileselector_Data *pd, Eina_Bool multi);
106
107
108Eina_Bool _elm_fileselector_elm_interface_fileselector_multi_select_get(const Eo *obj, Elm_Fileselector_Data *pd);
109
110
111void _elm_fileselector_elm_interface_fileselector_folder_only_set(Eo *obj, Elm_Fileselector_Data *pd, Eina_Bool only);
112
113
114Eina_Bool _elm_fileselector_elm_interface_fileselector_folder_only_get(const Eo *obj, Elm_Fileselector_Data *pd);
115
116
117void _elm_fileselector_elm_interface_fileselector_mode_set(Eo *obj, Elm_Fileselector_Data *pd, Elm_Fileselector_Mode mode);
118
119
120Elm_Fileselector_Mode _elm_fileselector_elm_interface_fileselector_mode_get(const Eo *obj, Elm_Fileselector_Data *pd);
121
122
123void _elm_fileselector_elm_interface_fileselector_current_name_set(Eo *obj, Elm_Fileselector_Data *pd, const char *name);
124
125
126const char *_elm_fileselector_elm_interface_fileselector_current_name_get(const Eo *obj, Elm_Fileselector_Data *pd);
127
128
129const Efl_Access_Action_Data *_elm_fileselector_efl_access_widget_action_elm_actions_get(const Eo *obj, Elm_Fileselector_Data *pd);
130
131
132Efl_Object *_elm_fileselector_efl_part_part_get(const Eo *obj, Elm_Fileselector_Data *pd, const char *name);
133
134
135static Eina_Bool
136_elm_fileselector_class_initializer(Efl_Class *klass)
137{
138 const Efl_Object_Ops *opsp = NULL;
139
140 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
141
142#ifndef ELM_FILESELECTOR_EXTRA_OPS
143#define ELM_FILESELECTOR_EXTRA_OPS
144#endif
145
146 EFL_OPS_DEFINE(ops,
147 EFL_OBJECT_OP_FUNC(elm_obj_fileselector_buttons_ok_cancel_set, _elm_fileselector_buttons_ok_cancel_set),
148 EFL_OBJECT_OP_FUNC(elm_obj_fileselector_buttons_ok_cancel_get, _elm_fileselector_buttons_ok_cancel_get),
149 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_fileselector_efl_object_constructor),
150 EFL_OBJECT_OP_FUNC(efl_ui_widget_input_event_handler, _elm_fileselector_efl_ui_widget_widget_input_event_handler),
151 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_fileselector_efl_ui_widget_theme_apply),
152 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_selected_models_get, _elm_fileselector_elm_interface_fileselector_selected_models_get),
153 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_selected_model_set, _elm_fileselector_elm_interface_fileselector_selected_model_set),
154 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_selected_model_get, _elm_fileselector_elm_interface_fileselector_selected_model_get),
155 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_custom_filter_append, _elm_fileselector_elm_interface_fileselector_custom_filter_append),
156 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_expandable_set, _elm_fileselector_elm_interface_fileselector_expandable_set),
157 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_expandable_get, _elm_fileselector_elm_interface_fileselector_expandable_get),
158 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_thumbnail_size_set, _elm_fileselector_elm_interface_fileselector_thumbnail_size_set),
159 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_thumbnail_size_get, _elm_fileselector_elm_interface_fileselector_thumbnail_size_get),
160 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_mime_types_filter_append, _elm_fileselector_elm_interface_fileselector_mime_types_filter_append),
161 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_hidden_visible_set, _elm_fileselector_elm_interface_fileselector_hidden_visible_set),
162 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_hidden_visible_get, _elm_fileselector_elm_interface_fileselector_hidden_visible_get),
163 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_filters_clear, _elm_fileselector_elm_interface_fileselector_filters_clear),
164 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_is_save_set, _elm_fileselector_elm_interface_fileselector_is_save_set),
165 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_is_save_get, _elm_fileselector_elm_interface_fileselector_is_save_get),
166 EFL_OBJECT_OP_FUNC(efl_ui_view_model_set, _elm_fileselector_efl_ui_view_model_set),
167 EFL_OBJECT_OP_FUNC(efl_ui_view_model_get, _elm_fileselector_efl_ui_view_model_get),
168 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_sort_method_set, _elm_fileselector_elm_interface_fileselector_sort_method_set),
169 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_sort_method_get, _elm_fileselector_elm_interface_fileselector_sort_method_get),
170 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_multi_select_set, _elm_fileselector_elm_interface_fileselector_multi_select_set),
171 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_multi_select_get, _elm_fileselector_elm_interface_fileselector_multi_select_get),
172 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_folder_only_set, _elm_fileselector_elm_interface_fileselector_folder_only_set),
173 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_folder_only_get, _elm_fileselector_elm_interface_fileselector_folder_only_get),
174 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_mode_set, _elm_fileselector_elm_interface_fileselector_mode_set),
175 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_mode_get, _elm_fileselector_elm_interface_fileselector_mode_get),
176 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_current_name_set, _elm_fileselector_elm_interface_fileselector_current_name_set),
177 EFL_OBJECT_OP_FUNC(elm_interface_fileselector_current_name_get, _elm_fileselector_elm_interface_fileselector_current_name_get),
178 EFL_OBJECT_OP_FUNC(efl_access_widget_action_elm_actions_get, _elm_fileselector_efl_access_widget_action_elm_actions_get),
179 EFL_OBJECT_OP_FUNC(efl_part_get, _elm_fileselector_efl_part_part_get),
180 ELM_FILESELECTOR_EXTRA_OPS
181 );
182 opsp = &ops;
183
184 static const Efl_Object_Property_Reflection refl_table[] = {
185 {"buttons_ok_cancel", __eolian_elm_fileselector_buttons_ok_cancel_set_reflect, __eolian_elm_fileselector_buttons_ok_cancel_get_reflect},
186 };
187 static const Efl_Object_Property_Reflection_Ops rops = {
188 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
189 };
190 ropsp = &rops;
191
192 return efl_class_functions_set(klass, opsp, ropsp);
193}
194
195static const Efl_Class_Description _elm_fileselector_class_desc = {
196 EO_VERSION,
197 "Elm.Fileselector",
198 EFL_CLASS_TYPE_REGULAR,
199 sizeof(Elm_Fileselector_Data),
200 _elm_fileselector_class_initializer,
201 _elm_fileselector_class_constructor,
202 _elm_fileselector_class_destructor
203};
204
205EFL_DEFINE_CLASS(elm_fileselector_class_get, &_elm_fileselector_class_desc, EFL_UI_LAYOUT_BASE_CLASS, ELM_INTERFACE_FILESELECTOR_INTERFACE, EFL_ACCESS_WIDGET_ACTION_MIXIN, EFL_UI_FOCUS_COMPOSITION_MIXIN, EFL_UI_CLICKABLE_INTERFACE, EFL_UI_SELECTABLE_INTERFACE, EFL_UI_LEGACY_INTERFACE, NULL);
206
207#include "elm_fileselector_eo.legacy.c"
diff --git a/src/lib/elementary/elm_fileselector_eo.h b/src/lib/elementary/elm_fileselector_eo.h
new file mode 100644
index 0000000..74ce3f1
--- /dev/null
+++ b/src/lib/elementary/elm_fileselector_eo.h
@@ -0,0 +1,87 @@
1#ifndef _ELM_FILESELECTOR_EO_H_
2#define _ELM_FILESELECTOR_EO_H_
3
4#ifndef _ELM_FILESELECTOR_EO_CLASS_TYPE
5#define _ELM_FILESELECTOR_EO_CLASS_TYPE
6
7typedef Eo Elm_Fileselector;
8
9#endif
10
11#ifndef _ELM_FILESELECTOR_EO_TYPES
12#define _ELM_FILESELECTOR_EO_TYPES
13
14
15#endif
16/** Elementary fileselector class
17 *
18 * @ingroup Elm_Fileselector
19 */
20#define ELM_FILESELECTOR_CLASS elm_fileselector_class_get()
21
22EWAPI const Efl_Class *elm_fileselector_class_get(void);
23
24/**
25 * @brief Enable/disable the "ok" and "cancel" buttons on a given file selector
26 * widget
27 *
28 * @note A file selector without those buttons will never emit the "done" smart
29 * event, and is only usable if one is just hooking to the other two events.
30 *
31 * See also @ref elm_obj_fileselector_buttons_ok_cancel_get.
32 *
33 * @param[in] obj The object.
34 * @param[in] visible @c true to show buttons, @c false to hide.
35 *
36 * @ingroup Elm_Fileselector
37 */
38EOAPI void elm_obj_fileselector_buttons_ok_cancel_set(Eo *obj, Eina_Bool visible);
39
40/**
41 * @brief Get whether the "ok" and "cancel" buttons on a given file selector
42 * widget are being shown.
43 *
44 * See also @ref elm_obj_fileselector_buttons_ok_cancel_set for more details.
45 *
46 * @param[in] obj The object.
47 *
48 * @return @c true to show buttons, @c false to hide.
49 *
50 * @ingroup Elm_Fileselector
51 */
52EOAPI Eina_Bool elm_obj_fileselector_buttons_ok_cancel_get(const Eo *obj);
53
54EWAPI extern const Efl_Event_Description _ELM_FILESELECTOR_EVENT_DONE;
55
56/** Called when OK button was pressed
57 * @return const char *
58 *
59 * @ingroup Elm_Fileselector
60 */
61#define ELM_FILESELECTOR_EVENT_DONE (&(_ELM_FILESELECTOR_EVENT_DONE))
62
63EWAPI extern const Efl_Event_Description _ELM_FILESELECTOR_EVENT_ACTIVATED;
64
65/** Called when the filesector was activated
66 *
67 * @ingroup Elm_Fileselector
68 */
69#define ELM_FILESELECTOR_EVENT_ACTIVATED (&(_ELM_FILESELECTOR_EVENT_ACTIVATED))
70
71EWAPI extern const Efl_Event_Description _ELM_FILESELECTOR_EVENT_SELECTED_INVALID;
72
73/** Called when fileselector was selected
74 *
75 * @ingroup Elm_Fileselector
76 */
77#define ELM_FILESELECTOR_EVENT_SELECTED_INVALID (&(_ELM_FILESELECTOR_EVENT_SELECTED_INVALID))
78
79EWAPI extern const Efl_Event_Description _ELM_FILESELECTOR_EVENT_DIRECTORY_OPEN;
80
81/** Called when a directory was opened
82 *
83 * @ingroup Elm_Fileselector
84 */
85#define ELM_FILESELECTOR_EVENT_DIRECTORY_OPEN (&(_ELM_FILESELECTOR_EVENT_DIRECTORY_OPEN))
86
87#endif
diff --git a/src/lib/elementary/elm_fileselector_eo.legacy.c b/src/lib/elementary/elm_fileselector_eo.legacy.c
new file mode 100644
index 0000000..3780777
--- /dev/null
+++ b/src/lib/elementary/elm_fileselector_eo.legacy.c
@@ -0,0 +1,12 @@
1
2EAPI void
3elm_fileselector_buttons_ok_cancel_set(Elm_Fileselector *obj, Eina_Bool visible)
4{
5 elm_obj_fileselector_buttons_ok_cancel_set(obj, visible);
6}
7
8EAPI Eina_Bool
9elm_fileselector_buttons_ok_cancel_get(const Elm_Fileselector *obj)
10{
11 return elm_obj_fileselector_buttons_ok_cancel_get(obj);
12}
diff --git a/src/lib/elementary/elm_fileselector_eo.legacy.h b/src/lib/elementary/elm_fileselector_eo.legacy.h
new file mode 100644
index 0000000..c9c46be
--- /dev/null
+++ b/src/lib/elementary/elm_fileselector_eo.legacy.h
@@ -0,0 +1,47 @@
1#ifndef _ELM_FILESELECTOR_EO_LEGACY_H_
2#define _ELM_FILESELECTOR_EO_LEGACY_H_
3
4#ifndef _ELM_FILESELECTOR_EO_CLASS_TYPE
5#define _ELM_FILESELECTOR_EO_CLASS_TYPE
6
7typedef Eo Elm_Fileselector;
8
9#endif
10
11#ifndef _ELM_FILESELECTOR_EO_TYPES
12#define _ELM_FILESELECTOR_EO_TYPES
13
14
15#endif
16
17/**
18 * @brief Enable/disable the "ok" and "cancel" buttons on a given file selector
19 * widget
20 *
21 * @note A file selector without those buttons will never emit the "done" smart
22 * event, and is only usable if one is just hooking to the other two events.
23 *
24 * See also @ref elm_fileselector_buttons_ok_cancel_get.
25 *
26 * @param[in] obj The object.
27 * @param[in] visible @c true to show buttons, @c false to hide.
28 *
29 * @ingroup Elm_Fileselector_Group
30 */
31EAPI void elm_fileselector_buttons_ok_cancel_set(Elm_Fileselector *obj, Eina_Bool visible);
32
33/**
34 * @brief Get whether the "ok" and "cancel" buttons on a given file selector
35 * widget are being shown.
36 *
37 * See also @ref elm_fileselector_buttons_ok_cancel_set for more details.
38 *
39 * @param[in] obj The object.
40 *
41 * @return @c true to show buttons, @c false to hide.
42 *
43 * @ingroup Elm_Fileselector_Group
44 */
45EAPI Eina_Bool elm_fileselector_buttons_ok_cancel_get(const Elm_Fileselector *obj);
46
47#endif
diff --git a/src/lib/elementary/meson.build b/src/lib/elementary/meson.build
index dbc68cf..73f97ee 100644
--- a/src/lib/elementary/meson.build
+++ b/src/lib/elementary/meson.build
@@ -1,7 +1,6 @@
1pub_legacy_eo_files = [ 1pub_legacy_eo_files = [
2 'efl_ui_clock_legacy.eo', 2 'efl_ui_clock_legacy.eo',
3 'elm_interface_fileselector.eo', 3 'elm_interface_fileselector.eo',
4 'elm_fileselector.eo',
5 'elm_gengrid.eo', 4 'elm_gengrid.eo',
6 'elm_gengrid_pan.eo', 5 'elm_gengrid_pan.eo',
7 'elm_genlist.eo', 6 'elm_genlist.eo',
@@ -51,8 +50,6 @@ pub_legacy_eo_files = [
51 'elm_actionslider_part.eo', 50 'elm_actionslider_part.eo',
52 'elm_bubble_part.eo', 51 'elm_bubble_part.eo',
53 'elm_fileselector_part.eo', 52 'elm_fileselector_part.eo',
54 'elm_fileselector_button.eo',
55 'elm_fileselector_entry.eo',
56 'elm_flipselector.eo', 53 'elm_flipselector.eo',
57 'elm_grid.eo', 54 'elm_grid.eo',
58 'elm_icon.eo', 55 'elm_icon.eo',
@@ -741,6 +738,12 @@ elementary_pub_headers = [
741 'elm_diskselector_item_eo.legacy.h', 738 'elm_diskselector_item_eo.legacy.h',
742 'elm_entry_eo.h', 739 'elm_entry_eo.h',
743 'elm_entry_eo.legacy.h', 740 'elm_entry_eo.legacy.h',
741 'elm_fileselector_button_eo.h',
742 'elm_fileselector_button_eo.legacy.h',
743 'elm_fileselector_entry_eo.h',
744 'elm_fileselector_entry_eo.legacy.h',
745 'elm_fileselector_eo.h',
746 'elm_fileselector_eo.legacy.h',
744 'elm_hoversel_eo.h', 747 'elm_hoversel_eo.h',
745 'elm_hoversel_eo.legacy.h', 748 'elm_hoversel_eo.legacy.h',
746 'elm_hoversel_item_eo.h', 749 'elm_hoversel_item_eo.h',