summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elc_fileselector.h
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2012-11-26 06:32:53 +0000
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2012-11-26 06:32:53 +0000
commit5c9834319878a3717b1d422a83e4930190eeab07 (patch)
tree3eb8b9e2d641e5385d1996ba68ea321f3563f612 /legacy/elementary/src/lib/elc_fileselector.h
parent1388bbb3f34e9277c0174ad0ad21a34b3d1e9d0c (diff)
We have ported to Eo all the widgets of elementary. We didn't change the inheritance itself, only the mechanism, as done previously in Evas, Ecore and Edje. We removed totally the previous inheritance mechanism.
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com> Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com> SVN revision: 79668
Diffstat (limited to 'legacy/elementary/src/lib/elc_fileselector.h')
-rw-r--r--legacy/elementary/src/lib/elc_fileselector.h206
1 files changed, 205 insertions, 1 deletions
diff --git a/legacy/elementary/src/lib/elc_fileselector.h b/legacy/elementary/src/lib/elc_fileselector.h
index 7bf9054..24d37e1 100644
--- a/legacy/elementary/src/lib/elc_fileselector.h
+++ b/legacy/elementary/src/lib/elc_fileselector.h
@@ -34,7 +34,7 @@
34 * library, the second form of view will display preview thumbnails 34 * library, the second form of view will display preview thumbnails
35 * of files which it supports. 35 * of files which it supports.
36 * 36 *
37 * This widget inherits from the @ref Layout one, so that all the 37 * This widget inherits from the Layout one, so that all the
38 * functions acting on it also work for file selector objects. 38 * functions acting on it also work for file selector objects.
39 * 39 *
40 * This widget emits the following signals, besides the ones sent from 40 * This widget emits the following signals, besides the ones sent from
@@ -52,6 +52,210 @@
52 * @li @ref fileselector_example 52 * @li @ref fileselector_example
53 */ 53 */
54 54
55#define ELM_OBJ_FILESELECTOR_CLASS elm_obj_fileselector_class_get()
56
57const Eo_Class *elm_obj_fileselector_class_get(void) EINA_CONST;
58
59extern EAPI Eo_Op ELM_OBJ_FILESELECTOR_BASE_ID;
60
61enum
62{
63 ELM_OBJ_FILESELECTOR_SUB_ID_IS_SAVE_SET,
64 ELM_OBJ_FILESELECTOR_SUB_ID_IS_SAVE_GET,
65 ELM_OBJ_FILESELECTOR_SUB_ID_FOLDER_ONLY_SET,
66 ELM_OBJ_FILESELECTOR_SUB_ID_FOLDER_ONLY_GET,
67 ELM_OBJ_FILESELECTOR_SUB_ID_BUTTONS_OK_CANCEL_SET,
68 ELM_OBJ_FILESELECTOR_SUB_ID_BUTTONS_OK_CANCEL_GET,
69 ELM_OBJ_FILESELECTOR_SUB_ID_EXPANDABLE_SET,
70 ELM_OBJ_FILESELECTOR_SUB_ID_EXPANDABLE_GET,
71 ELM_OBJ_FILESELECTOR_SUB_ID_PATH_SET,
72 ELM_OBJ_FILESELECTOR_SUB_ID_PATH_GET,
73 ELM_OBJ_FILESELECTOR_SUB_ID_MODE_SET,
74 ELM_OBJ_FILESELECTOR_SUB_ID_MODE_GET,
75 ELM_OBJ_FILESELECTOR_SUB_ID_SELECTED_GET,
76 ELM_OBJ_FILESELECTOR_SUB_ID_SELECTED_SET,
77 ELM_OBJ_FILESELECTOR_SUB_ID_LAST
78};
79
80#define ELM_OBJ_FILESELECTOR_ID(sub_id) (ELM_OBJ_FILESELECTOR_BASE_ID + sub_id)
81
82
83/**
84 * @def elm_obj_fileselector_is_save_set
85 * @since 1.8
86 *
87 * Enable/disable the file name entry box where the user can type
88 * in a name for a file, in a given file selector widget
89 *
90 * @param[in] is_save
91 *
92 * @see elm_fileselector_is_save_set
93 */
94#define elm_obj_fileselector_is_save_set(is_save) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_IS_SAVE_SET), EO_TYPECHECK(Eina_Bool, is_save)
95
96/**
97 * @def elm_obj_fileselector_is_save_get
98 * @since 1.8
99 *
100 * Get whether the given file selector is in "saving dialog" mode
101 *
102 * @param[out] ret
103 *
104 * @see elm_fileselector_is_save_get
105 */
106#define elm_obj_fileselector_is_save_get(ret) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_IS_SAVE_GET), EO_TYPECHECK(Eina_Bool *, ret)
107
108/**
109 * @def elm_obj_fileselector_folder_only_set
110 * @since 1.8
111 *
112 * Enable/disable folder-only view for a given file selector widget
113 *
114 * @param[in] only
115 *
116 * @see elm_fileselector_folder_only_set
117 */
118#define elm_obj_fileselector_folder_only_set(only) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_FOLDER_ONLY_SET), EO_TYPECHECK(Eina_Bool, only)
119
120/**
121 * @def elm_obj_fileselector_folder_only_get
122 * @since 1.8
123 *
124 * Get whether folder-only view is set for a given file selector
125 *
126 * @param[out] ret
127 *
128 * @see elm_fileselector_folder_only_get
129 */
130#define elm_obj_fileselector_folder_only_get(ret) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_FOLDER_ONLY_GET), EO_TYPECHECK(Eina_Bool *, ret)
131
132/**
133 * @def elm_obj_fileselector_buttons_ok_cancel_set
134 * @since 1.8
135 *
136 * Enable/disable the "ok" and "cancel" buttons on a given file
137 *
138 * @param[in] visible
139 *
140 * @see elm_fileselector_buttons_ok_cancel_set
141 */
142#define elm_obj_fileselector_buttons_ok_cancel_set(visible) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_BUTTONS_OK_CANCEL_SET), EO_TYPECHECK(Eina_Bool, visible)
143
144/**
145 * @def elm_obj_fileselector_buttons_ok_cancel_get
146 * @since 1.8
147 *
148 * Get whether the "ok" and "cancel" buttons on a given file
149 *
150 * @param[out] ret
151 *
152 * @see elm_fileselector_buttons_ok_cancel_get
153 */
154#define elm_obj_fileselector_buttons_ok_cancel_get(ret) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_BUTTONS_OK_CANCEL_GET), EO_TYPECHECK(Eina_Bool *, ret)
155
156/**
157 * @def elm_obj_fileselector_expandable_set
158 * @since 1.8
159 *
160 * Enable/disable a tree view in the given file selector widget,
161 * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
162 *
163 * @param[in] expand
164 *
165 * @see elm_fileselector_expandable_set
166 */
167#define elm_obj_fileselector_expandable_set(expand) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_EXPANDABLE_SET), EO_TYPECHECK(Eina_Bool, expand)
168
169/**
170 * @def elm_obj_fileselector_expandable_get
171 * @since 1.8
172 *
173 * Get whether tree view is enabled for the given file selector
174 *
175 * @param[out] ret
176 *
177 * @see elm_fileselector_expandable_get
178 */
179#define elm_obj_fileselector_expandable_get(ret) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_EXPANDABLE_GET), EO_TYPECHECK(Eina_Bool *, ret)
180
181/**
182 * @def elm_obj_fileselector_path_set
183 * @since 1.8
184 *
185 * Set, programmatically, the directory that a given file
186 * selector widget will display contents from
187 *
188 * @param[in] _path
189 *
190 * @see elm_fileselector_path_set
191 */
192#define elm_obj_fileselector_path_set(_path) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_PATH_SET), EO_TYPECHECK(const char *, _path)
193
194/**
195 * @def elm_obj_fileselector_path_get
196 * @since 1.8
197 *
198 * Get the parent directory's path that a given file selector
199 * selector widget will display contents from
200 *
201 * @param[out] ret
202 *
203 * @see elm_fileselector_path_get
204 */
205#define elm_obj_fileselector_path_get(ret) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_PATH_GET), EO_TYPECHECK(const char **, ret)
206
207/**
208 * @def elm_obj_fileselector_mode_set
209 * @since 1.8
210 *
211 * Set the mode in which a given file selector widget will display
212 * (layout) file system entries in its view
213 *
214 * @param[in] mode
215 *
216 * @see elm_fileselector_mode_set
217 */
218#define elm_obj_fileselector_mode_set(mode) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_MODE_SET), EO_TYPECHECK(Elm_Fileselector_Mode, mode)
219
220/**
221 * @def elm_obj_fileselector_mode_get
222 * @since 1.8
223 *
224 * Get the mode in which a given file selector widget is displaying
225 *
226 * @param[out] ret
227 *
228 * @see elm_fileselector_mode_get
229 */
230#define elm_obj_fileselector_mode_get(ret) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_MODE_GET), EO_TYPECHECK(Elm_Fileselector_Mode *, ret)
231
232/**
233 * @def elm_obj_fileselector_selected_get
234 * @since 1.8
235 *
236 * Get the currently selected item's (full) path, in the given file
237 * the given file selector widget
238 *
239 * @param[out] ret
240 *
241 * @see elm_fileselector_selected_get
242 */
243#define elm_obj_fileselector_selected_get(ret) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_SELECTED_GET), EO_TYPECHECK(const char **, ret)
244
245/**
246 * @def elm_obj_fileselector_selected_set
247 * @since 1.8
248 *
249 * Set, programmatically, the currently selected file/directory in
250 * the given file selector widget
251 *
252 * @param[in] _path
253 * @param[out] ret
254 *
255 * @see elm_fileselector_selected_set
256 */
257#define elm_obj_fileselector_selected_set(_path, ret) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_SELECTED_SET), EO_TYPECHECK(const char *, _path), EO_TYPECHECK(Eina_Bool *, ret)
258
55/** 259/**
56 * @addtogroup Fileselector 260 * @addtogroup Fileselector
57 * @{ 261 * @{