Revert "Removed additional acceleration routine."
[framework/uifw/elementary.git] / src / lib / elc_fileselector_entry.h
index b60b190..8703e42 100644 (file)
@@ -1,5 +1,6 @@
 /**
  * @defgroup File_Selector_Entry File Selector Entry
+ * @ingroup Elementary
  *
  * @image html img/widget/fileselector_entry/preview-00.png
  * @image latex img/widget/fileselector_entry/preview-00.eps
  * This file selector may appear in an Elementary window or in an
  * inner window. When a file is chosen from it, the (inner) window
  * is closed and the selected file's path string is exposed both as
- * an smart event and as the new text on the entry.
+ * a smart event and as the new text on the entry.
  *
  * This widget encapsulates operations on its internal file
  * selector on its own API. There is less control over its file
- * selector than that one would have instatiating one directly.
+ * selector than that one would have instantiating one directly.
  *
  * Smart callbacks one can register to:
  * - @c "changed" - The text within the entry was changed
  *   selector entry's internal file selector, whose string pointer
  *   comes as the @c event_info data (a stringshared string)
  *
+ * Default text parts of the fileselector_button widget that you can use for
+ * are:
+ * @li "default" - Label of the fileselector_button
+ *
+ * Default content parts of the fileselector_entry widget that you can use for
+ * are:
+ * @li "button icon" - Button icon of the fileselector_entry
+ *
+ * Supported elm_object common APIs.
+ * @li @ref elm_object_part_text_set
+ * @li @ref elm_object_part_text_get
+ * @li @ref elm_object_part_content_set
+ * @li @ref elm_object_part_content_get
+ * @li @ref elm_object_part_content_unset
+ * @li @ref elm_object_disabled_set
+ * @li @ref elm_object_disabled_get
+ *
  * Here is an example on its usage:
  * @li @ref fileselector_entry_example
  *
  * @param parent The parent object
  * @return a new file selector entry widget handle or @c NULL, on
  * errors
- */
-EAPI Evas_Object *
-                                 elm_fileselector_entry_add(Evas_Object *parent)
-EINA_ARG_NONNULL(1);
-
-/**
- * Set the label for a given file selector entry widget's button
- *
- * @param obj The file selector entry widget
- * @param label The text label to be displayed on @p obj widget's
- * button
- *
- * @deprecated use elm_object_text_set() instead.
- */
-EINA_DEPRECATED EAPI void        elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
-
-/**
- * Get the label set for a given file selector entry widget's button
- *
- * @param obj The file selector entry widget
- * @return The widget button's label
- *
- * @deprecated use elm_object_text_set() instead.
- */
-EINA_DEPRECATED EAPI const char *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
-
-/**
- * Set the icon on a given file selector entry widget's button
- *
- * @param obj The file selector entry widget
- * @param icon The icon object for the entry's button
- *
- * Once the icon object is set, a previously set one will be
- * deleted. If you want to keep the latter, use the
- * elm_fileselector_entry_button_icon_unset() function.
- *
- * @see elm_fileselector_entry_button_icon_get()
- */
-EAPI void                        elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
-
-/**
- * Get the icon set for a given file selector entry widget's button
  *
- * @param obj The file selector entry widget
- * @return The icon object currently set on @p obj widget's button
- * or @c NULL, if none is
- *
- * @see elm_fileselector_entry_button_icon_set()
+ * @ingroup File_Selector_Entry
  */
-EAPI Evas_Object                *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
-
-/**
- * Unset the icon used in a given file selector entry widget's
- * button
- *
- * @param obj The file selector entry widget
- * @return The icon object that was being used on @p obj widget's
- * button or @c NULL, on errors
- *
- * Unparent and return the icon object which was set for this
- * widget's button.
- *
- * @see elm_fileselector_entry_button_icon_set()
- */
-EAPI Evas_Object                *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
+EAPI Evas_Object                *elm_fileselector_entry_add(Evas_Object *parent);
 
 /**
  * Set the title for a given file selector entry widget's window
@@ -135,8 +92,10 @@ EAPI Evas_Object                *elm_fileselector_entry_button_icon_unset(Evas_O
  * entry widget is @b not under "inwin mode".
  *
  * @see elm_fileselector_entry_window_title_get()
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI void                        elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
+EAPI void                        elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title);
 
 /**
  * Get the title set for a given file selector entry widget's
@@ -146,8 +105,10 @@ EAPI void                        elm_fileselector_entry_window_title_set(Evas_Ob
  * @return Title of the file selector entry's window
  *
  * @see elm_fileselector_entry_window_title_get() for more details
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI const char                 *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
+EAPI const char                 *elm_fileselector_entry_window_title_get(const Evas_Object *obj);
 
 /**
  * Set the size of a given file selector entry widget's window,
@@ -162,8 +123,10 @@ EAPI const char                 *elm_fileselector_entry_window_title_get(const E
  * window (when applicable) is 400x400 pixels.
  *
  * @see elm_fileselector_entry_window_size_get()
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI void                        elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
+EAPI void                        elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height);
 
 /**
  * Get the size of a given file selector entry widget's window,
@@ -177,8 +140,10 @@ EAPI void                        elm_fileselector_entry_window_size_set(Evas_Obj
  * interested in: they'll be ignored by the function.
  *
  * @see elm_fileselector_entry_window_size_set(), for more details
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI void                        elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
+EAPI void                        elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height);
 
 /**
  * Set the initial file system path and the entry's path string for
@@ -193,8 +158,10 @@ EAPI void                        elm_fileselector_entry_window_size_get(const Ev
  * environment variable's value.
  *
  * @see elm_fileselector_entry_path_get()
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI void                        elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
+EAPI void                        elm_fileselector_entry_path_set(Evas_Object *obj, const char *path);
 
 /**
  * Get the entry's path string for a given file selector entry
@@ -204,8 +171,10 @@ EAPI void                        elm_fileselector_entry_path_set(Evas_Object *ob
  * @return path The path string
  *
  * @see elm_fileselector_entry_path_set() for more details
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI const char                 *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
+EAPI const char                 *elm_fileselector_entry_path_get(const Evas_Object *obj);
 
 /**
  * Enable/disable a tree view in the given file selector entry
@@ -223,8 +192,10 @@ EAPI const char                 *elm_fileselector_entry_path_get(const Evas_Obje
  * selectors.
  *
  * @see elm_fileselector_expandable_get()
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI void                        elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
+EAPI void                        elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value);
 
 /**
  * Get whether tree view is enabled for the given file selector
@@ -235,8 +206,10 @@ EAPI void                        elm_fileselector_entry_expandable_set(Evas_Obje
  * is in tree view, @c EINA_FALSE otherwise (and or errors)
  *
  * @see elm_fileselector_expandable_set() for more details
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI Eina_Bool                   elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
+EAPI Eina_Bool                   elm_fileselector_entry_expandable_get(const Evas_Object *obj);
 
 /**
  * Set whether a given file selector entry widget's internal file
@@ -253,8 +226,10 @@ EAPI Eina_Bool                   elm_fileselector_entry_expandable_get(const Eva
  * selector.
  *
  * @see elm_fileselector_folder_only_get()
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI void                        elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
+EAPI void                        elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value);
 
 /**
  * Get whether a given file selector entry widget's internal file
@@ -267,8 +242,10 @@ EAPI void                        elm_fileselector_entry_folder_only_set(Evas_Obj
  * are being displayed in it too (and on errors)
  *
  * @see elm_fileselector_entry_folder_only_set() for more details
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI Eina_Bool                   elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
+EAPI Eina_Bool                   elm_fileselector_entry_folder_only_get(const Evas_Object *obj);
 
 /**
  * Enable/disable the file name entry box where the user can type
@@ -284,8 +261,10 @@ EAPI Eina_Bool                   elm_fileselector_entry_folder_only_get(const Ev
  * selector.
  *
  * @see elm_fileselector_is_save_get()
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI void                        elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
+EAPI void                        elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value);
 
 /**
  * Get whether the given file selector entry widget's internal
@@ -297,8 +276,10 @@ EAPI void                        elm_fileselector_entry_is_save_set(Evas_Object
  * errors)
  *
  * @see elm_fileselector_entry_is_save_set() for more details
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI Eina_Bool                   elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
+EAPI Eina_Bool                   elm_fileselector_entry_is_save_get(const Evas_Object *obj);
 
 /**
  * Set whether a given file selector entry widget's internal file
@@ -311,8 +292,10 @@ EAPI Eina_Bool                   elm_fileselector_entry_is_save_get(const Evas_O
  *
  * @see elm_win_inwin_add() for more information on inner windows
  * @see elm_fileselector_entry_inwin_mode_get()
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI void                        elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
+EAPI void                        elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value);
 
 /**
  * Get whether a given file selector entry widget's internal file
@@ -324,8 +307,10 @@ EAPI void                        elm_fileselector_entry_inwin_mode_set(Evas_Obje
  * if it will use a dedicated window
  *
  * @see elm_fileselector_entry_inwin_mode_set() for more details
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI Eina_Bool                   elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
+EAPI Eina_Bool                   elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj);
 
 /**
  * Set the initial file system path for a given file selector entry
@@ -340,8 +325,10 @@ EAPI Eina_Bool                   elm_fileselector_entry_inwin_mode_get(const Eva
  * environment variable's value.
  *
  * @see elm_fileselector_entry_path_get()
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI void                        elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
+EAPI void                        elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path);
 
 /**
  * Get the parent directory's path to the latest file selection on
@@ -352,8 +339,10 @@ EAPI void                        elm_fileselector_entry_selected_set(Evas_Object
  * on @p obj widget, a @b stringshared string
  *
  * @see elm_fileselector_entry_path_set()
+ *
+ * @ingroup File_Selector_Entry
  */
-EAPI const char                 *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
+EAPI const char                 *elm_fileselector_entry_selected_get(const Evas_Object *obj);
 
 /**
  * @}