summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-21 23:42:56 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-21 23:43:41 +0900
commit4c9f0bcbd842c8c9435fb2b0e1349a5ca48da992 (patch)
tree80fba56cc31a0141b54fa35166ab0e523475a0ad
parent635916ce26bd87db9e8a78df53c33d5c0527fa6c (diff)
fileselector_button: Moved declarations of deprecated APIs to
elm_deprecated.h and marked them as EINA_DEPRECATED in c code.
-rw-r--r--src/lib/elc_fileselector_button.c16
-rw-r--r--src/lib/elc_fileselector_button_legacy.h137
-rw-r--r--src/lib/elm_deprecated.h154
3 files changed, 162 insertions, 145 deletions
diff --git a/src/lib/elc_fileselector_button.c b/src/lib/elc_fileselector_button.c
index 14259b06c..363c9a311 100644
--- a/src/lib/elc_fileselector_button.c
+++ b/src/lib/elc_fileselector_button.c
@@ -315,7 +315,7 @@ _window_size_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
315 if (height) *height = sd->h; 315 if (height) *height = sd->h;
316} 316}
317 317
318EAPI void 318EINA_DEPRECATED EAPI void
319elm_fileselector_button_path_set(Evas_Object *obj, 319elm_fileselector_button_path_set(Evas_Object *obj,
320 const char *path) 320 const char *path)
321{ 321{
@@ -334,7 +334,7 @@ _path_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
334 if (sd->fs) elm_fileselector_selected_set(sd->fs, sd->fsd.path); 334 if (sd->fs) elm_fileselector_selected_set(sd->fs, sd->fsd.path);
335} 335}
336 336
337EAPI const char * 337EINA_DEPRECATED EAPI const char *
338elm_fileselector_button_path_get(const Evas_Object *obj) 338elm_fileselector_button_path_get(const Evas_Object *obj)
339{ 339{
340 ELM_FILESELECTOR_INTERFACE_CHECK(obj, NULL); 340 ELM_FILESELECTOR_INTERFACE_CHECK(obj, NULL);
@@ -352,7 +352,7 @@ _path_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
352 *ret = sd->fsd.path; 352 *ret = sd->fsd.path;
353} 353}
354 354
355EAPI void 355EINA_DEPRECATED EAPI void
356elm_fileselector_button_expandable_set(Evas_Object *obj, 356elm_fileselector_button_expandable_set(Evas_Object *obj,
357 Eina_Bool value) 357 Eina_Bool value)
358{ 358{
@@ -371,7 +371,7 @@ _expandable_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
371 if (sd->fs) elm_fileselector_expandable_set(sd->fs, sd->fsd.expandable); 371 if (sd->fs) elm_fileselector_expandable_set(sd->fs, sd->fsd.expandable);
372} 372}
373 373
374EAPI Eina_Bool 374EINA_DEPRECATED EAPI Eina_Bool
375elm_fileselector_button_expandable_get(const Evas_Object *obj) 375elm_fileselector_button_expandable_get(const Evas_Object *obj)
376{ 376{
377 ELM_FILESELECTOR_INTERFACE_CHECK(obj, EINA_FALSE); 377 ELM_FILESELECTOR_INTERFACE_CHECK(obj, EINA_FALSE);
@@ -389,7 +389,7 @@ _expandable_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
389 *ret = sd->fsd.expandable; 389 *ret = sd->fsd.expandable;
390} 390}
391 391
392EAPI void 392EINA_DEPRECATED EAPI void
393elm_fileselector_button_folder_only_set(Evas_Object *obj, 393elm_fileselector_button_folder_only_set(Evas_Object *obj,
394 Eina_Bool value) 394 Eina_Bool value)
395{ 395{
@@ -408,7 +408,7 @@ _folder_only_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
408 if (sd->fs) elm_fileselector_folder_only_set(sd->fs, sd->fsd.folder_only); 408 if (sd->fs) elm_fileselector_folder_only_set(sd->fs, sd->fsd.folder_only);
409} 409}
410 410
411EAPI Eina_Bool 411EINA_DEPRECATED EAPI Eina_Bool
412elm_fileselector_button_folder_only_get(const Evas_Object *obj) 412elm_fileselector_button_folder_only_get(const Evas_Object *obj)
413{ 413{
414 ELM_FILESELECTOR_INTERFACE_CHECK(obj, EINA_FALSE); 414 ELM_FILESELECTOR_INTERFACE_CHECK(obj, EINA_FALSE);
@@ -426,7 +426,7 @@ _folder_only_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
426 *ret = sd->fsd.folder_only; 426 *ret = sd->fsd.folder_only;
427} 427}
428 428
429EAPI void 429EINA_DEPRECATED EAPI void
430elm_fileselector_button_is_save_set(Evas_Object *obj, 430elm_fileselector_button_is_save_set(Evas_Object *obj,
431 Eina_Bool value) 431 Eina_Bool value)
432{ 432{
@@ -445,7 +445,7 @@ _is_save_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
445 if (sd->fs) elm_fileselector_is_save_set(sd->fs, sd->fsd.is_save); 445 if (sd->fs) elm_fileselector_is_save_set(sd->fs, sd->fsd.is_save);
446} 446}
447 447
448EAPI Eina_Bool 448EINA_DEPRECATED EAPI Eina_Bool
449elm_fileselector_button_is_save_get(const Evas_Object *obj) 449elm_fileselector_button_is_save_get(const Evas_Object *obj)
450{ 450{
451 ELM_FILESELECTOR_INTERFACE_CHECK(obj, EINA_FALSE); 451 ELM_FILESELECTOR_INTERFACE_CHECK(obj, EINA_FALSE);
diff --git a/src/lib/elc_fileselector_button_legacy.h b/src/lib/elc_fileselector_button_legacy.h
index 2cf33aafc..820a69a50 100644
--- a/src/lib/elc_fileselector_button_legacy.h
+++ b/src/lib/elc_fileselector_button_legacy.h
@@ -78,143 +78,6 @@ EAPI void elm_fileselector_button_window_size_set(Evas_Ob
78EAPI void elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height); 78EAPI void elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height);
79 79
80/** 80/**
81 * Set the initial file system path for a given file selector
82 * button widget
83 *
84 * @param obj The file selector button widget
85 * @param path The path string
86 *
87 * It must be a <b>directory</b> path, which will have the contents
88 * displayed initially in the file selector's view, when invoked
89 * from @p obj. The default initial path is the @c "HOME"
90 * environment variable's value.
91 *
92 * @see elm_fileselector_button_path_get()
93 *
94 * @ingroup File_Selector_Button
95 */
96EINA_DEPRECATED EAPI void elm_fileselector_button_path_set(Evas_Object *obj, const char *path);
97
98/**
99 * Get the initial file system path set for a given file selector
100 * button widget
101 *
102 * @param obj The file selector button widget
103 * @return path The path string
104 *
105 * @see elm_fileselector_button_path_set() for more details
106 *
107 * @ingroup File_Selector_Button
108 */
109EINA_DEPRECATED EAPI const char *elm_fileselector_button_path_get(const Evas_Object *obj);
110
111/**
112 * Enable/disable a tree view in the given file selector button
113 * widget's internal file selector
114 *
115 * @param obj The file selector button widget
116 * @param value @c EINA_TRUE to enable tree view, @c EINA_FALSE to
117 * disable
118 *
119 * This has the same effect as elm_fileselector_expandable_set(),
120 * but now applied to a file selector button's internal file
121 * selector.
122 *
123 * @note There's no way to put a file selector button's internal
124 * file selector in "grid mode", as one may do with "pure" file
125 * selectors.
126 *
127 * @see elm_fileselector_expandable_get()
128 *
129 * @ingroup File_Selector_Button
130 */
131EINA_DEPRECATED EAPI void elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value);
132
133/**
134 * Get whether tree view is enabled for the given file selector
135 * button widget's internal file selector
136 *
137 * @param obj The file selector button widget
138 * @return @c EINA_TRUE if @p obj widget's internal file selector
139 * is in tree view, @c EINA_FALSE otherwise (and or errors)
140 *
141 * @see elm_fileselector_expandable_set() for more details
142 *
143 * @ingroup File_Selector_Button
144 */
145EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_button_expandable_get(const Evas_Object *obj);
146
147/**
148 * Set whether a given file selector button widget's internal file
149 * selector is to display folders only or the directory contents,
150 * as well.
151 *
152 * @param obj The file selector button widget
153 * @param value @c EINA_TRUE to make @p obj widget's internal file
154 * selector only display directories, @c EINA_FALSE to make files
155 * to be displayed in it too
156 *
157 * This has the same effect as elm_fileselector_folder_only_set(),
158 * but now applied to a file selector button's internal file
159 * selector.
160 *
161 * @see elm_fileselector_folder_only_get()
162 *
163 * @ingroup File_Selector_Button
164 */
165EINA_DEPRECATED EAPI void elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value);
166
167/**
168 * Get whether a given file selector button widget's internal file
169 * selector is displaying folders only or the directory contents,
170 * as well.
171 *
172 * @param obj The file selector button widget
173 * @return @c EINA_TRUE if @p obj widget's internal file
174 * selector is only displaying directories, @c EINA_FALSE if files
175 * are being displayed in it too (and on errors)
176 *
177 * @see elm_fileselector_button_folder_only_set() for more details
178 *
179 * @ingroup File_Selector_Button
180 */
181EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_button_folder_only_get(const Evas_Object *obj);
182
183/**
184 * Enable/disable the file name entry box where the user can type
185 * in a name for a file, in a given file selector button widget's
186 * internal file selector.
187 *
188 * @param obj The file selector button widget
189 * @param value @c EINA_TRUE to make @p obj widget's internal
190 * file selector a "saving dialog", @c EINA_FALSE otherwise
191 *
192 * This has the same effect as elm_fileselector_is_save_set(),
193 * but now applied to a file selector button's internal file
194 * selector.
195 *
196 * @see elm_fileselector_is_save_get()
197 *
198 * @ingroup File_Selector_Button
199 */
200EINA_DEPRECATED EAPI void elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value);
201
202/**
203 * Get whether the given file selector button widget's internal
204 * file selector is in "saving dialog" mode
205 *
206 * @param obj The file selector button widget
207 * @return @c EINA_TRUE, if @p obj widget's internal file selector
208 * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
209 * errors)
210 *
211 * @see elm_fileselector_button_is_save_set() for more details
212 *
213 * @ingroup File_Selector_Button
214 */
215EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_button_is_save_get(const Evas_Object *obj);
216
217/**
218 * Set whether a given file selector button widget's internal file 81 * Set whether a given file selector button widget's internal file
219 * selector will raise an Elementary "inner window", instead of a 82 * selector will raise an Elementary "inner window", instead of a
220 * dedicated Elementary window. By default, it depends on the current 83 * dedicated Elementary window. By default, it depends on the current
diff --git a/src/lib/elm_deprecated.h b/src/lib/elm_deprecated.h
index f8ed58420..9c7b258a8 100644
--- a/src/lib/elm_deprecated.h
+++ b/src/lib/elm_deprecated.h
@@ -1297,6 +1297,160 @@ EINA_DEPRECATED EAPI void elm_icon_aspect_fixed_set(Evas_Object *obj, Eina_Bool
1297 */ 1297 */
1298EINA_DEPRECATED EAPI Eina_Bool elm_icon_aspect_fixed_get(const Evas_Object *obj); 1298EINA_DEPRECATED EAPI Eina_Bool elm_icon_aspect_fixed_get(const Evas_Object *obj);
1299 1299
1300/**
1301 * Set the initial file system path for a given file selector
1302 * button widget
1303 *
1304 * @param obj The file selector button widget
1305 * @param path The path string
1306 *
1307 * It must be a <b>directory</b> path, which will have the contents
1308 * displayed initially in the file selector's view, when invoked
1309 * from @p obj. The default initial path is the @c "HOME"
1310 * environment variable's value.
1311 *
1312 * @see elm_fileselector_path_get()
1313 *
1314 * @deprecated Use elm_fileselector_path_set() instead.
1315 *
1316 * @ingroup File_Selector_Button
1317 */
1318EINA_DEPRECATED EAPI void elm_fileselector_button_path_set(Evas_Object *obj, const char *path);
1319
1320/**
1321 * Get the initial file system path set for a given file selector
1322 * button widget
1323 *
1324 * @param obj The file selector button widget
1325 * @return path The path string
1326 *
1327 * @see elm_fileselector_path_set() for more details
1328 *
1329 * @deprecated Use elm_fileselector_path_get() instead.
1330 *
1331 * @ingroup File_Selector_Button
1332 */
1333EINA_DEPRECATED EAPI const char *elm_fileselector_button_path_get(const Evas_Object *obj);
1334
1335/**
1336 * Enable/disable a tree view in the given file selector button
1337 * widget's internal file selector
1338 *
1339 * @param obj The file selector button widget
1340 * @param value @c EINA_TRUE to enable tree view, @c EINA_FALSE to
1341 * disable
1342 *
1343 * This has the same effect as elm_fileselector_expandable_set(),
1344 * but now applied to a file selector button's internal file
1345 * selector.
1346 *
1347 * @note There's no way to put a file selector button's internal
1348 * file selector in "grid mode", as one may do with "pure" file
1349 * selectors.
1350 *
1351 * @see elm_fileselector_expandable_get()
1352 *
1353 * @deprecated Use elm_fileselector_expandable_set() instead.
1354 *
1355 * @ingroup File_Selector_Button
1356 */
1357EINA_DEPRECATED EAPI void elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value);
1358
1359/**
1360 * Get whether tree view is enabled for the given file selector
1361 * button widget's internal file selector
1362 *
1363 * @param obj The file selector button widget
1364 * @return @c EINA_TRUE if @p obj widget's internal file selector
1365 * is in tree view, @c EINA_FALSE otherwise (and or errors)
1366 *
1367 * @see elm_fileselector_expandable_set() for more details
1368 *
1369 * @deprecated Use elm_fileselector_expandable_get() instead.
1370 *
1371 * @ingroup File_Selector_Button
1372 */
1373EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_button_expandable_get(const Evas_Object *obj);
1374
1375/**
1376 * Set whether a given file selector button widget's internal file
1377 * selector is to display folders only or the directory contents,
1378 * as well.
1379 *
1380 * @param obj The file selector button widget
1381 * @param value @c EINA_TRUE to make @p obj widget's internal file
1382 * selector only display directories, @c EINA_FALSE to make files
1383 * to be displayed in it too
1384 *
1385 * This has the same effect as elm_fileselector_folder_only_set(),
1386 * but now applied to a file selector button's internal file
1387 * selector.
1388 *
1389 * @see elm_fileselector_folder_only_get()
1390 *
1391 * @deprecated Use elm_fileselector_folder_only_set() instead.
1392 *
1393 * @ingroup File_Selector_Button
1394 */
1395EINA_DEPRECATED EAPI void elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value);
1396
1397/**
1398 * Get whether a given file selector button widget's internal file
1399 * selector is displaying folders only or the directory contents,
1400 * as well.
1401 *
1402 * @param obj The file selector button widget
1403 * @return @c EINA_TRUE if @p obj widget's internal file
1404 * selector is only displaying directories, @c EINA_FALSE if files
1405 * are being displayed in it too (and on errors)
1406 *
1407 * @see elm_fileselector_folder_only_set() for more details
1408 *
1409 * @deprecated Use elm_fileselector_folder_only_get() instead.
1410 *
1411 * @ingroup File_Selector_Button
1412 */
1413EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_button_folder_only_get(const Evas_Object *obj);
1414
1415/**
1416 * Enable/disable the file name entry box where the user can type
1417 * in a name for a file, in a given file selector button widget's
1418 * internal file selector.
1419 *
1420 * @param obj The file selector button widget
1421 * @param value @c EINA_TRUE to make @p obj widget's internal
1422 * file selector a "saving dialog", @c EINA_FALSE otherwise
1423 *
1424 * This has the same effect as elm_fileselector_is_save_set(),
1425 * but now applied to a file selector button's internal file
1426 * selector.
1427 *
1428 * @see elm_fileselector_is_save_get()
1429 *
1430 * @deprecated Use elm_fileselector_is_save_set() instead.
1431 *
1432 * @ingroup File_Selector_Button
1433 */
1434EINA_DEPRECATED EAPI void elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value);
1435
1436/**
1437 * Get whether the given file selector button widget's internal
1438 * file selector is in "saving dialog" mode
1439 *
1440 * @param obj The file selector button widget
1441 * @return @c EINA_TRUE, if @p obj widget's internal file selector
1442 * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
1443 * errors)
1444 *
1445 * @see elm_fileselector_is_save_set() for more details
1446 *
1447 * @deprecated Use elm_fileselector_is_save_get() instead.
1448 *
1449 * @ingroup File_Selector_Button
1450 */
1451EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_button_is_save_get(const Evas_Object *obj);
1452
1453
1300//TODO: remvoe below - use elm_access_text_set(); or elm_access_cb_set(); 1454//TODO: remvoe below - use elm_access_text_set(); or elm_access_cb_set();
1301EINA_DEPRECATED EAPI void elm_access_external_info_set(Evas_Object *obj, const char *text); 1455EINA_DEPRECATED EAPI void elm_access_external_info_set(Evas_Object *obj, const char *text);
1302EINA_DEPRECATED EAPI char *elm_access_external_info_get(const Evas_Object *obj); 1456EINA_DEPRECATED EAPI char *elm_access_external_info_get(const Evas_Object *obj);