summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-21 23:50:31 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-21 23:50:31 +0900
commit389ba85493c324fc0f5a9dbb75a34d5c589203aa (patch)
tree0d66d771c48b24cdc14bba10864781e1f7bf77ce
parentf272d437d5a3c11173f4222ef93f17fe11022d56 (diff)
fileselector_entry: 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_entry.c20
-rw-r--r--src/lib/elc_fileselector_entry_legacy.h168
-rw-r--r--src/lib/elm_deprecated.h186
3 files changed, 196 insertions, 178 deletions
diff --git a/src/lib/elc_fileselector_entry.c b/src/lib/elc_fileselector_entry.c
index 8d2452f76..05e9a68cc 100644
--- a/src/lib/elc_fileselector_entry.c
+++ b/src/lib/elc_fileselector_entry.c
@@ -420,7 +420,7 @@ _constructor(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
420 evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL)); 420 evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL));
421} 421}
422 422
423EAPI void 423EINA_DEPRECATED EAPI void
424elm_fileselector_entry_selected_set(Evas_Object *obj, 424elm_fileselector_entry_selected_set(Evas_Object *obj,
425 const char *path) 425 const char *path)
426{ 426{
@@ -438,7 +438,7 @@ _selected_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
438 elm_fileselector_path_set(sd->button, path); 438 elm_fileselector_path_set(sd->button, path);
439} 439}
440 440
441EAPI const char * 441EINA_DEPRECATED EAPI const char *
442elm_fileselector_entry_selected_get(const Evas_Object *obj) 442elm_fileselector_entry_selected_get(const Evas_Object *obj)
443{ 443{
444 ELM_FILESELECTOR_INTERFACE_CHECK(obj, NULL); 444 ELM_FILESELECTOR_INTERFACE_CHECK(obj, NULL);
@@ -529,7 +529,7 @@ _window_size_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
529 elm_fileselector_button_window_size_get(sd->button, width, height); 529 elm_fileselector_button_window_size_get(sd->button, width, height);
530} 530}
531 531
532EAPI void 532EINA_DEPRECATED EAPI void
533elm_fileselector_entry_path_set(Evas_Object *obj, 533elm_fileselector_entry_path_set(Evas_Object *obj,
534 const char *path) 534 const char *path)
535{ 535{
@@ -554,7 +554,7 @@ _path_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
554 } 554 }
555} 555}
556 556
557EAPI const char * 557EINA_DEPRECATED EAPI const char *
558elm_fileselector_entry_path_get(const Evas_Object *obj) 558elm_fileselector_entry_path_get(const Evas_Object *obj)
559{ 559{
560 ELM_FILESELECTOR_INTERFACE_CHECK(obj, NULL); 560 ELM_FILESELECTOR_INTERFACE_CHECK(obj, NULL);
@@ -574,7 +574,7 @@ _path_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
574 *ret = sd->path; 574 *ret = sd->path;
575} 575}
576 576
577EAPI void 577EINA_DEPRECATED EAPI void
578elm_fileselector_entry_expandable_set(Evas_Object *obj, 578elm_fileselector_entry_expandable_set(Evas_Object *obj,
579 Eina_Bool value) 579 Eina_Bool value)
580{ 580{
@@ -591,7 +591,7 @@ _expandable_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
591 elm_fileselector_expandable_set(sd->button, value); 591 elm_fileselector_expandable_set(sd->button, value);
592} 592}
593 593
594EAPI Eina_Bool 594EINA_DEPRECATED EAPI Eina_Bool
595elm_fileselector_entry_expandable_get(const Evas_Object *obj) 595elm_fileselector_entry_expandable_get(const Evas_Object *obj)
596{ 596{
597 ELM_FILESELECTOR_INTERFACE_CHECK(obj, EINA_FALSE); 597 ELM_FILESELECTOR_INTERFACE_CHECK(obj, EINA_FALSE);
@@ -609,7 +609,7 @@ _expandable_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
609 *ret = elm_fileselector_expandable_get(sd->button); 609 *ret = elm_fileselector_expandable_get(sd->button);
610} 610}
611 611
612EAPI void 612EINA_DEPRECATED EAPI void
613elm_fileselector_entry_folder_only_set(Evas_Object *obj, 613elm_fileselector_entry_folder_only_set(Evas_Object *obj,
614 Eina_Bool value) 614 Eina_Bool value)
615{ 615{
@@ -626,7 +626,7 @@ _folder_only_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
626 elm_fileselector_folder_only_set(sd->button, value); 626 elm_fileselector_folder_only_set(sd->button, value);
627} 627}
628 628
629EAPI Eina_Bool 629EINA_DEPRECATED EAPI Eina_Bool
630elm_fileselector_entry_folder_only_get(const Evas_Object *obj) 630elm_fileselector_entry_folder_only_get(const Evas_Object *obj)
631{ 631{
632 ELM_FILESELECTOR_INTERFACE_CHECK(obj, EINA_FALSE); 632 ELM_FILESELECTOR_INTERFACE_CHECK(obj, EINA_FALSE);
@@ -644,7 +644,7 @@ _folder_only_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
644 *ret = elm_fileselector_folder_only_get(sd->button); 644 *ret = elm_fileselector_folder_only_get(sd->button);
645} 645}
646 646
647EAPI void 647EINA_DEPRECATED EAPI void
648elm_fileselector_entry_is_save_set(Evas_Object *obj, 648elm_fileselector_entry_is_save_set(Evas_Object *obj,
649 Eina_Bool value) 649 Eina_Bool value)
650{ 650{
@@ -661,7 +661,7 @@ _is_save_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
661 elm_fileselector_is_save_set(sd->button, value); 661 elm_fileselector_is_save_set(sd->button, value);
662} 662}
663 663
664EAPI Eina_Bool 664EINA_DEPRECATED EAPI Eina_Bool
665elm_fileselector_entry_is_save_get(const Evas_Object *obj) 665elm_fileselector_entry_is_save_get(const Evas_Object *obj)
666{ 666{
667 ELM_FILESELECTOR_INTERFACE_CHECK(obj, EINA_FALSE); 667 ELM_FILESELECTOR_INTERFACE_CHECK(obj, EINA_FALSE);
diff --git a/src/lib/elc_fileselector_entry_legacy.h b/src/lib/elc_fileselector_entry_legacy.h
index 89d9ce519..92e59d535 100644
--- a/src/lib/elc_fileselector_entry_legacy.h
+++ b/src/lib/elc_fileselector_entry_legacy.h
@@ -79,142 +79,6 @@ EAPI void elm_fileselector_entry_window_size_set(Evas_Obj
79EAPI void elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height); 79EAPI void elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height);
80 80
81/** 81/**
82 * Set the initial file system path and the entry's path string for
83 * a given file selector entry widget
84 *
85 * @param obj The file selector entry widget
86 * @param path The path string
87 *
88 * It must be a <b>directory</b> path, which will have the contents
89 * displayed initially in the file selector's view, when invoked
90 * from @p obj. The default initial path is the @c "HOME"
91 * environment variable's value.
92 *
93 * @see elm_fileselector_entry_path_get()
94 *
95 * @ingroup File_Selector_Entry
96 */
97EINA_DEPRECATED EAPI void elm_fileselector_entry_path_set(Evas_Object *obj, const char *path);
98
99/**
100 * Get the entry's path string for a given file selector entry
101 * widget
102 *
103 * @param obj The file selector entry widget
104 * @return path The path string
105 *
106 * @see elm_fileselector_entry_path_set() for more details
107 *
108 * @ingroup File_Selector_Entry
109 */
110EINA_DEPRECATED EAPI const char *elm_fileselector_entry_path_get(const Evas_Object *obj);
111
112/**
113 * Enable/disable a tree view in the given file selector entry
114 * widget's internal file selector
115 *
116 * @param obj The file selector entry widget
117 * @param value @c EINA_TRUE to enable tree view, @c EINA_FALSE to disable
118 *
119 * This has the same effect as elm_fileselector_expandable_set(),
120 * but now applied to a file selector entry's internal file
121 * selector.
122 *
123 * @note There's no way to put a file selector entry'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_Entry
130 */
131EINA_DEPRECATED EAPI void elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value);
132
133/**
134 * Get whether tree view is enabled for the given file selector
135 * entry widget's internal file selector
136 *
137 * @param obj The file selector entry 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_Entry
144 */
145EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_entry_expandable_get(const Evas_Object *obj);
146
147/**
148 * Set whether a given file selector entry 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 entry 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 entry's internal file
159 * selector.
160 *
161 * @see elm_fileselector_folder_only_get()
162 *
163 * @ingroup File_Selector_Entry
164 */
165EINA_DEPRECATED EAPI void elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value);
166
167/**
168 * Get whether a given file selector entry widget's internal file
169 * selector is displaying folders only or the directory contents,
170 * as well.
171 *
172 * @param obj The file selector entry 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_entry_folder_only_set() for more details
178 *
179 * @ingroup File_Selector_Entry
180 */
181EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_entry_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 entry widget's
186 * internal file selector.
187 *
188 * @param obj The file selector entry 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 entry's internal file
194 * selector.
195 *
196 * @see elm_fileselector_is_save_get()
197 *
198 * @ingroup File_Selector_Entry
199 */
200EINA_DEPRECATED EAPI void elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value);
201
202/**
203 * Get whether the given file selector entry widget's internal
204 * file selector is in "saving dialog" mode
205 *
206 * @param obj The file selector entry 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_entry_is_save_set() for more details
212 *
213 * @ingroup File_Selector_Entry
214 */
215EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_entry_is_save_get(const Evas_Object *obj);
216
217/**
218 * Set whether a given file selector entry widget's internal file 82 * Set whether a given file selector entry widget's internal file
219 * selector will raise an Elementary "inner window", instead of a 83 * selector will raise an Elementary "inner window", instead of a
220 * dedicated Elementary window. By default, it depends on the current 84 * dedicated Elementary window. By default, it depends on the current
@@ -245,35 +109,3 @@ EAPI void elm_fileselector_entry_inwin_mode_set(Evas_Obje
245 * @ingroup File_Selector_Entry 109 * @ingroup File_Selector_Entry
246 */ 110 */
247EAPI Eina_Bool elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj); 111EAPI Eina_Bool elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj);
248
249/**
250 * Set the initial file system path for a given file selector entry
251 * widget
252 *
253 * @param obj The file selector entry widget
254 * @param path The path string
255 *
256 * It must be a <b>directory</b> path, which will have the contents
257 * displayed initially in the file selector's view, when invoked
258 * from @p obj. The default initial path is the @c "HOME"
259 * environment variable's value.
260 *
261 * @see elm_fileselector_entry_path_get()
262 *
263 * @ingroup File_Selector_Entry
264 */
265EINA_DEPRECATED EAPI void elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path);
266
267/**
268 * Get the parent directory's path to the latest file selection on
269 * a given filer selector entry widget
270 *
271 * @param obj The file selector object
272 * @return The (full) path of the directory of the last selection
273 * on @p obj widget, a @b stringshared string
274 *
275 * @see elm_fileselector_entry_path_set()
276 *
277 * @ingroup File_Selector_Entry
278 */
279EINA_DEPRECATED EAPI const char *elm_fileselector_entry_selected_get(const Evas_Object *obj);
diff --git a/src/lib/elm_deprecated.h b/src/lib/elm_deprecated.h
index 9c7b258a8..2ad95a9b5 100644
--- a/src/lib/elm_deprecated.h
+++ b/src/lib/elm_deprecated.h
@@ -1450,6 +1450,192 @@ EINA_DEPRECATED EAPI void elm_fileselector_button_is_save_set(Evas_Object
1450 */ 1450 */
1451EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_button_is_save_get(const Evas_Object *obj); 1451EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_button_is_save_get(const Evas_Object *obj);
1452 1452
1453/**
1454 * Set the initial file system path and the entry's path string for
1455 * a given file selector entry widget
1456 *
1457 * @param obj The file selector entry widget
1458 * @param path The path string
1459 *
1460 * It must be a <b>directory</b> path, which will have the contents
1461 * displayed initially in the file selector's view, when invoked
1462 * from @p obj. The default initial path is the @c "HOME"
1463 * environment variable's value.
1464 *
1465 * @see elm_fileselector_path_get()
1466 *
1467 * @deprecated Use elm_fileselector_path_set() instead.
1468 *
1469 * @ingroup File_Selector_Entry
1470 */
1471EINA_DEPRECATED EAPI void elm_fileselector_entry_path_set(Evas_Object *obj, const char *path);
1472
1473/**
1474 * Get the entry's path string for a given file selector entry
1475 * widget
1476 *
1477 * @param obj The file selector entry widget
1478 * @return path The path string
1479 *
1480 * @see elm_fileselector_path_set() for more details
1481 *
1482 * @deprecated Use elm_fileselector_path_get() instead.
1483 * @ingroup File_Selector_Entry
1484 */
1485EINA_DEPRECATED EAPI const char *elm_fileselector_entry_path_get(const Evas_Object *obj);
1486
1487/**
1488 * Enable/disable a tree view in the given file selector entry
1489 * widget's internal file selector
1490 *
1491 * @param obj The file selector entry widget
1492 * @param value @c EINA_TRUE to enable tree view, @c EINA_FALSE to disable
1493 *
1494 * This has the same effect as elm_fileselector_expandable_set(),
1495 * but now applied to a file selector entry's internal file
1496 * selector.
1497 *
1498 * @note There's no way to put a file selector entry's internal
1499 * file selector in "grid mode", as one may do with "pure" file
1500 * selectors.
1501 *
1502 * @see elm_fileselector_expandable_get()
1503 *
1504 * @deprecated Use elm_fileselector_expandable_set() instead.
1505 *
1506 * @ingroup File_Selector_Entry
1507 */
1508EINA_DEPRECATED EAPI void elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value);
1509
1510/**
1511 * Get whether tree view is enabled for the given file selector
1512 * entry widget's internal file selector
1513 *
1514 * @param obj The file selector entry widget
1515 * @return @c EINA_TRUE if @p obj widget's internal file selector
1516 * is in tree view, @c EINA_FALSE otherwise (and or errors)
1517 *
1518 * @see elm_fileselector_expandable_set() for more details
1519 *
1520 * @deprecated Use elm_fileselector_expandable_get() instead.
1521 *
1522 * @ingroup File_Selector_Entry
1523 */
1524EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_entry_expandable_get(const Evas_Object *obj);
1525
1526/**
1527 * Set whether a given file selector entry widget's internal file
1528 * selector is to display folders only or the directory contents,
1529 * as well.
1530 *
1531 * @param obj The file selector entry widget
1532 * @param value @c EINA_TRUE to make @p obj widget's internal file
1533 * selector only display directories, @c EINA_FALSE to make files
1534 * to be displayed in it too
1535 *
1536 * This has the same effect as elm_fileselector_folder_only_set(),
1537 * but now applied to a file selector entry's internal file
1538 * selector.
1539 *
1540 * @see elm_fileselector_folder_only_get()
1541 *
1542 * @deprecated Use elm_fileselector_folder_only_set() instead.
1543 *
1544 * @ingroup File_Selector_Entry
1545 */
1546EINA_DEPRECATED EAPI void elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value);
1547
1548/**
1549 * Get whether a given file selector entry widget's internal file
1550 * selector is displaying folders only or the directory contents,
1551 * as well.
1552 *
1553 * @param obj The file selector entry widget
1554 * @return @c EINA_TRUE if @p obj widget's internal file
1555 * selector is only displaying directories, @c EINA_FALSE if files
1556 * are being displayed in it too (and on errors)
1557 *
1558 * @see elm_fileselector_folder_only_set() for more details
1559 *
1560 * @deprecated Use elm_fileselector_folder_only_get() instead.
1561 *
1562 * @ingroup File_Selector_Entry
1563 */
1564EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_entry_folder_only_get(const Evas_Object *obj);
1565
1566/**
1567 * Enable/disable the file name entry box where the user can type
1568 * in a name for a file, in a given file selector entry widget's
1569 * internal file selector.
1570 *
1571 * @param obj The file selector entry widget
1572 * @param value @c EINA_TRUE to make @p obj widget's internal
1573 * file selector a "saving dialog", @c EINA_FALSE otherwise
1574 *
1575 * This has the same effect as elm_fileselector_is_save_set(),
1576 * but now applied to a file selector entry's internal file
1577 * selector.
1578 *
1579 * @see elm_fileselector_is_save_get()
1580 *
1581 * @deprecated Use elm_fileselector_is_save_set() instead.
1582 *
1583 * @ingroup File_Selector_Entry
1584 */
1585EINA_DEPRECATED EAPI void elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value);
1586
1587/**
1588 * Get whether the given file selector entry widget's internal
1589 * file selector is in "saving dialog" mode
1590 *
1591 * @param obj The file selector entry widget
1592 * @return @c EINA_TRUE, if @p obj widget's internal file selector
1593 * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
1594 * errors)
1595 *
1596 * @see elm_fileselector_is_save_set() for more details
1597 *
1598 * @deprecated Use elm_fileselector_is_save_get() instead.
1599 *
1600 * @ingroup File_Selector_Entry
1601 */
1602EINA_DEPRECATED EAPI Eina_Bool elm_fileselector_entry_is_save_get(const Evas_Object *obj);
1603
1604/**
1605 * Set the initial file system path for a given file selector entry
1606 * widget
1607 *
1608 * @param obj The file selector entry widget
1609 * @param path The path string
1610 *
1611 * It must be a <b>directory</b> path, which will have the contents
1612 * displayed initially in the file selector's view, when invoked
1613 * from @p obj. The default initial path is the @c "HOME"
1614 * environment variable's value.
1615 *
1616 * @see elm_fileselector_path_get()
1617 *
1618 * @deprecated Use elm_fileselector_selected_set() instead.
1619 *
1620 * @ingroup File_Selector_Entry
1621 */
1622EINA_DEPRECATED EAPI void elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path);
1623
1624/**
1625 * Get the parent directory's path to the latest file selection on
1626 * a given filer selector entry widget
1627 *
1628 * @param obj The file selector object
1629 * @return The (full) path of the directory of the last selection
1630 * on @p obj widget, a @b stringshared string
1631 *
1632 * @see elm_fileselector_path_set()
1633 *
1634 * @deprecated Use elm_fileselector_selected_get() instead.
1635 *
1636 * @ingroup File_Selector_Entry
1637 */
1638EINA_DEPRECATED EAPI const char *elm_fileselector_entry_selected_get(const Evas_Object *obj);
1453 1639
1454//TODO: remvoe below - use elm_access_text_set(); or elm_access_cb_set(); 1640//TODO: remvoe below - use elm_access_text_set(); or elm_access_cb_set();
1455EINA_DEPRECATED EAPI void elm_access_external_info_set(Evas_Object *obj, const char *text); 1641EINA_DEPRECATED EAPI void elm_access_external_info_set(Evas_Object *obj, const char *text);