summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_interface_fileselector.eo
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_interface_fileselector.eo')
-rw-r--r--src/lib/elementary/elm_interface_fileselector.eo173
1 files changed, 0 insertions, 173 deletions
diff --git a/src/lib/elementary/elm_interface_fileselector.eo b/src/lib/elementary/elm_interface_fileselector.eo
deleted file mode 100644
index 1bdd24c..0000000
--- a/src/lib/elementary/elm_interface_fileselector.eo
+++ /dev/null
@@ -1,173 +0,0 @@
1type Elm_Fileselector_Filter_Func: __undefined_type; [[Elementary fileselector filter function type]]
2
3enum Elm.Fileselector.Mode
4{
5 [[Defines how a file selector widget is to layout its contents
6 (file system entries).
7 ]]
8 legacy: elm_fileselector;
9 list = 0, [[Layout as a list.]]
10 grid, [[Layout as a grid.]]
11 last [[Sentinel value to indicate last enum field during iteration]]
12}
13
14enum Elm.Fileselector.Sort
15{
16 [[Fileselector sorting modes]]
17 by_filename_asc = 0, [[Alphabetical sort by ascending filename, default]]
18 by_filename_desc, [[Alphabetical sorting by descending filename]]
19 by_type_asc, [[Sort by file type]]
20 by_type_desc, [[Sort by file type description]]
21 by_size_asc, [[Sort by ascending file size]]
22 by_size_desc, [[Sort by descending file size]]
23 by_modified_asc, [[Sort by ascending modified date]]
24 by_modified_desc, [[Sort by descending modified date]]
25 last [[Sentinel value to indicate last enum field during iteration]]
26}
27
28interface Elm.Interface.Fileselector extends Efl.Ui.View
29{
30 [[Elementary fileselector interface]]
31 eo_prefix: elm_interface_fileselector;
32 methods {
33 @property folder_only {
34 set {
35 [[Enable/disable folder-only view for a given file selector widget]]
36 }
37 get {
38 [[Get whether folder-only view is set for a given file selector]]
39 }
40 values {
41 only: bool; [[$true if folder view is set, $false otherwise]]
42 }
43 }
44 @property thumbnail_size {
45 set {
46 [[Set the size for the thumbnail of the file selector widget's view.]]
47 }
48 get {
49 [[Get the size for the thumbnail of a given file selector widget]]
50 }
51 values {
52 w: int; [[Width]]
53 h: int; [[Height]]
54 }
55 }
56 @property hidden_visible {
57 set {
58 [[Enable or disable visibility of hidden files/directories in the file selector widget.]]
59 }
60 get {
61 [[Get if hiden files/directories in the file selector are visible or not.]]
62 }
63 values {
64 hidden: bool; [[$true if hidden files are visible, $false otherwise]]
65 }
66 }
67 @property sort_method {
68 set {
69 [[Set the sort method of the file selector widget.]]
70 }
71 get {
72 [[Get the sort method of the file selector widget.]]
73 }
74 values {
75 sort: Elm.Fileselector.Sort; [[Sort method]]
76 }
77 }
78 @property multi_select {
79 set {
80 [[Enable or disable multi-selection in the fileselector]]
81 }
82 get {
83 [[Gets if multi-selection in fileselector is enabled or disabled.]]
84 }
85 values {
86 multi: bool; [[$true if multiselection is enabled, $false otherwise]]
87 }
88 }
89 @property expandable {
90 set {
91 [[Enable/disable a tree view in the given file selector widget, <b>if it's in]]
92 }
93 get {
94 [[Get whether tree view is enabled for the given file selector]]
95 }
96 values {
97 expand: bool; [[$true if tree view is expanded, $false otherwise]]
98 }
99 }
100 @property mode {
101 set {
102 [[Set the mode in which a given file selector widget will display (layout) file system entries in its view]]
103 }
104 get {
105 [[Get the mode in which a given file selector widget is displaying]]
106 }
107 values {
108 mode: Elm.Fileselector.Mode; [[Fileselector mode]]
109 }
110 }
111 @property is_save {
112 set {
113 [[Enable/disable the file name entry box where the user can type in a name for a file, in a given file selector widget]]
114 }
115 get {
116 [[Get whether the given file selector is in "saving dialog" mode]]
117 }
118 values {
119 is_save: bool; [[$true if in saving mode, $false otherwise]]
120 }
121 }
122 @property selected_models {
123 get {
124 [[Get a list of models selected in the fileselector.]]
125 }
126 values {
127 ret: const(list<Efl.Model>); [[List of selected models]]
128 }
129 }
130 @property current_name {
131 [[ The filename that will be displayed in the filename entry]]
132 set {
133 }
134 get {
135 }
136 values {
137 name: string; [[Name]]
138 }
139 }
140 @property selected_model @beta {
141 set {
142 [[Set, programmatically, the currently selected file/directory in the given file selector widget]]
143 return: bool; [[$true on success, $false otherwise]]
144 }
145 get {
146 [[Get the currently selected item's model, in the given file the given file selector widget]]
147 }
148 values {
149 model: Efl.Io.Model; [[Model to be set, NULL reset it.]]
150 }
151 }
152 custom_filter_append {
153 [[Append custom filter into filter list]]
154 params {
155 @in func: Elm_Fileselector_Filter_Func; [[Filter function]]
156 @in data: void_ptr; [[Data pointer]]
157 @in filter_name: string; [[Filter name]]
158 }
159 return: bool; [[$true on success, $false otherwise]]
160 }
161 filters_clear {
162 [[Clear all filters registered]]
163 }
164 mime_types_filter_append {
165 [[Append mime type based filter into filter list]]
166 params {
167 @in mime_types: string; [[Mime types]]
168 @in filter_name: string; [[Filter name]]
169 }
170 return: bool; [[$true on success, $false otherwise]]
171 }
172 }
173}