Functions | |
EOAPI void | elm_obj_fileselector_entry_inwin_mode_set (Eina_Bool value) |
Set whether a given file selector entry widget's internal file selector will raise an Elementary "inner window", instead of a dedicated Elementary window. More... | |
EOAPI Eina_Bool | elm_obj_fileselector_entry_inwin_mode_get (void) |
Get whether a given file selector entry widget's internal file selector will raise an Elementary "inner window", instead of a dedicated Elementary window. More... | |
EOAPI void | elm_obj_fileselector_entry_window_size_set (Evas_Coord width, Evas_Coord height) |
Set the size of a given file selector entry widget's window, holding the file selector itself. More... | |
EOAPI void | elm_obj_fileselector_entry_window_size_get (Evas_Coord *width, Evas_Coord *height) |
Get the size of a given file selector entry widget's window, holding the file selector itself. More... | |
EOAPI void | elm_obj_fileselector_entry_window_title_set (const char *title) |
Set the title for a given file selector entry widget's window. More... | |
EOAPI const char * | elm_obj_fileselector_entry_window_title_get (void) |
Get the title set for a given file selector entry widget's window. More... | |
void | elm_fileselector_entry_inwin_mode_set (Eo *obj, Eina_Bool value) |
Set whether a given file selector entry widget's internal file selector will raise an Elementary "inner window", instead of a dedicated Elementary window. More... | |
Eina_Bool | elm_fileselector_entry_inwin_mode_get (const Eo *obj) |
Get whether a given file selector entry widget's internal file selector will raise an Elementary "inner window", instead of a dedicated Elementary window. More... | |
void | elm_fileselector_entry_window_size_set (Eo *obj, Evas_Coord width, Evas_Coord height) |
Set the size of a given file selector entry widget's window, holding the file selector itself. More... | |
void | elm_fileselector_entry_window_size_get (const Eo *obj, Evas_Coord *width, Evas_Coord *height) |
Get the size of a given file selector entry widget's window, holding the file selector itself. More... | |
void | elm_fileselector_entry_window_title_set (Eo *obj, const char *title) |
Set the title for a given file selector entry widget's window. More... | |
const char * | elm_fileselector_entry_window_title_get (const Eo *obj) |
Get the title set for a given file selector entry widget's window. More... | |
Evas_Object * | elm_fileselector_entry_add (Evas_Object *parent) |
Add a new file selector entry widget to the given parent Elementary (container) object. More... | |
EINA_DEPRECATED void | elm_fileselector_entry_path_set (Evas_Object *obj, const char *path) |
Set the initial file system path and the entry's path string for a given file selector entry widget. More... | |
EINA_DEPRECATED const char * | elm_fileselector_entry_path_get (const Evas_Object *obj) |
Get the entry's path string for a given file selector entry widget. More... | |
EINA_DEPRECATED void | elm_fileselector_entry_expandable_set (Evas_Object *obj, Eina_Bool value) |
Enable/disable a tree view in the given file selector entry widget's internal file selector. More... | |
EINA_DEPRECATED Eina_Bool | elm_fileselector_entry_expandable_get (const Evas_Object *obj) |
Get whether tree view is enabled for the given file selector entry widget's internal file selector. More... | |
EINA_DEPRECATED void | elm_fileselector_entry_folder_only_set (Evas_Object *obj, Eina_Bool value) |
Set whether a given file selector entry widget's internal file selector is to display folders only or the directory contents, as well. More... | |
EINA_DEPRECATED Eina_Bool | elm_fileselector_entry_folder_only_get (const Evas_Object *obj) |
Get whether a given file selector entry widget's internal file selector is displaying folders only or the directory contents, as well. More... | |
EINA_DEPRECATED void | elm_fileselector_entry_is_save_set (Evas_Object *obj, Eina_Bool value) |
Enable/disable the file name entry box where the user can type in a name for a file, in a given file selector entry widget's internal file selector. More... | |
EINA_DEPRECATED Eina_Bool | elm_fileselector_entry_is_save_get (const Evas_Object *obj) |
Get whether the given file selector entry widget's internal file selector is in "saving dialog" mode. More... | |
EINA_DEPRECATED void | elm_fileselector_entry_selected_set (Evas_Object *obj, const char *path) |
Set the initial file system path for a given file selector entry widget. More... | |
EINA_DEPRECATED const char * | elm_fileselector_entry_selected_get (const Evas_Object *obj) |
Get the parent directory's path to the latest file selection on a given filer selector entry widget. More... | |
bool | elm_fileselector_entry::inwin_mode_get () const |
Get whether a given file selector entry widget's internal file selector will raise an Elementary "inner window", instead of a dedicated Elementary window. More... | |
void | elm_fileselector_entry::inwin_mode_set (bool value_) const |
Get whether a given file selector entry widget's internal file selector will raise an Elementary "inner window", instead of a dedicated Elementary window. More... | |
void | elm_fileselector_entry::window_size_get (Evas_Coord *width_, Evas_Coord *height_) const |
Get the size of a given file selector entry widget's window, holding the file selector itself. More... | |
void | elm_fileselector_entry::window_size_set (Evas_Coord width_, Evas_Coord height_) const |
Get the size of a given file selector entry widget's window, holding the file selector itself. More... | |
std::string | elm_fileselector_entry::window_title_get () const |
Get the title set for a given file selector entry widget's window. More... | |
void | elm_fileselector_entry::window_title_set (std::string title_) const |
Get the title set for a given file selector entry widget's window. More... | |
This is an entry made to be filled with or display a file system path string. Besides the entry itself, the widget has a file selector button on its side, which will raise an internal file selector widget, when clicked, for path selection aided by file system navigation.
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 a smart event and as the new text on the entry.
This widget inherits from the Layout one, so that all the functions acting on it also work for file selector entry objects (since 1.8).
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 instantiating one directly.
Smart callbacks one can register to:
"changed"
- The text within the entry was changed"activated"
- The entry has had editing finished and changes are to be "committed""press"
- The entry has been clicked"longpressed"
- The entry has been clicked (and held) for a couple seconds"clicked"
- The entry has been clicked"clicked,double"
- The entry has been double clicked"focused"
- The entry has received focus (since 1.8)"unfocused"
- The entry has lost focus (since 1.8)"selection,paste"
- A paste action has occurred on the entry"selection,copy"
- A copy action has occurred on the entry"selection,cut"
- A cut action has occurred on the entry"unpressed"
- The file selector entry's button was released after being pressed."file,chosen"
- The user has selected a path via the file selector entry's internal file selector, whose string pointer comes as the event_info
data (a stringshared string)"language,changed"
- the program's language changedDefault text parts of the fileselector_button widget that you can use for are:
Default content parts of the fileselector_entry widget that you can use for are:
Supported elm_object common APIs.
Here is an example on its usage:
Evas_Object* elm_fileselector_entry_add | ( | Evas_Object * | parent | ) |
Add a new file selector entry widget to the given parent Elementary (container) object.
parent | The parent object |
NULL
, on errors EINA_DEPRECATED Eina_Bool elm_fileselector_entry_expandable_get | ( | const Evas_Object * | obj | ) |
Get whether tree view is enabled for the given file selector entry widget's internal file selector.
obj | The file selector entry widget |
EINA_TRUE
if obj
widget's internal file selector is in tree view, EINA_FALSE
otherwise (and or errors)EINA_DEPRECATED void elm_fileselector_entry_expandable_set | ( | Evas_Object * | obj, |
Eina_Bool | value | ||
) |
Enable/disable a tree view in the given file selector entry widget's internal file selector.
obj | The file selector entry widget |
value | EINA_TRUE to enable tree view, EINA_FALSE to disable |
This has the same effect as elm_fileselector_expandable_set(), but now applied to a file selector entry's internal file selector.
EINA_DEPRECATED Eina_Bool elm_fileselector_entry_folder_only_get | ( | const Evas_Object * | obj | ) |
Get whether a given file selector entry widget's internal file selector is displaying folders only or the directory contents, as well.
obj | The file selector entry widget |
EINA_TRUE
if obj
widget's internal file selector is only displaying directories, EINA_FALSE
if files are being displayed in it too (and on errors)EINA_DEPRECATED void elm_fileselector_entry_folder_only_set | ( | Evas_Object * | obj, |
Eina_Bool | value | ||
) |
Set whether a given file selector entry widget's internal file selector is to display folders only or the directory contents, as well.
obj | The file selector entry widget |
value | EINA_TRUE to make obj widget's internal file selector only display directories, EINA_FALSE to make files to be displayed in it too |
This has the same effect as elm_fileselector_folder_only_set(), but now applied to a file selector entry's internal file selector.
Eina_Bool elm_fileselector_entry_inwin_mode_get | ( | const Eo * | obj | ) |
Get whether a given file selector entry widget's internal file selector will raise an Elementary "inner window", instead of a dedicated Elementary window.
EINA_TRUE
if will use an inner window, EINA_FALSE
if it will use a dedicated windowvoid elm_fileselector_entry_inwin_mode_set | ( | Eo * | obj, |
Eina_Bool | value | ||
) |
Set whether a given file selector entry widget's internal file selector will raise an Elementary "inner window", instead of a dedicated Elementary window.
By default, it depends on the current profile.
[in] | value | EINA_TRUE to make it use an inner window, EINA_FALSE to make it use a dedicated window |
EINA_DEPRECATED Eina_Bool elm_fileselector_entry_is_save_get | ( | const Evas_Object * | obj | ) |
Get whether the given file selector entry widget's internal file selector is in "saving dialog" mode.
obj | The file selector entry widget |
EINA_TRUE
, if obj
widget's internal file selector is in "saving dialog" mode, EINA_FALSE
otherwise (and on errors)EINA_DEPRECATED void elm_fileselector_entry_is_save_set | ( | Evas_Object * | obj, |
Eina_Bool | value | ||
) |
Enable/disable the file name entry box where the user can type in a name for a file, in a given file selector entry widget's internal file selector.
obj | The file selector entry widget |
value | EINA_TRUE to make obj widget's internal file selector a "saving dialog", EINA_FALSE otherwise |
This has the same effect as elm_fileselector_is_save_set(), but now applied to a file selector entry's internal file selector.
EINA_DEPRECATED const char* elm_fileselector_entry_path_get | ( | const Evas_Object * | obj | ) |
Get the entry's path string for a given file selector entry widget.
obj | The file selector entry widget |
EINA_DEPRECATED void elm_fileselector_entry_path_set | ( | Evas_Object * | obj, |
const char * | path | ||
) |
Set the initial file system path and the entry's path string for a given file selector entry widget.
obj | The file selector entry widget |
path | The path string |
It must be a directory path, which will have the contents displayed initially in the file selector's view, when invoked from obj
. The default initial path is the "HOME"
environment variable's value.
EINA_DEPRECATED const char* elm_fileselector_entry_selected_get | ( | const Evas_Object * | obj | ) |
Get the parent directory's path to the latest file selection on a given filer selector entry widget.
obj | The file selector object |
obj
widget, a stringshared stringEINA_DEPRECATED void elm_fileselector_entry_selected_set | ( | Evas_Object * | obj, |
const char * | path | ||
) |
Set the initial file system path for a given file selector entry widget.
obj | The file selector entry widget |
path | The path string |
It must be a directory path, which will have the contents displayed initially in the file selector's view, when invoked from obj
. The default initial path is the "HOME"
environment variable's value.
void elm_fileselector_entry_window_size_get | ( | const Eo * | obj, |
Evas_Coord * | width, | ||
Evas_Coord * | height | ||
) |
Get the size of a given file selector entry widget's window, holding the file selector itself.
NULL
pointers on the size values you're not interested in: they'll be ignored by the function.[out] | width | The window's width |
[out] | height | The window's height |
void elm_fileselector_entry_window_size_set | ( | Eo * | obj, |
Evas_Coord | width, | ||
Evas_Coord | height | ||
) |
Set the size of a given file selector entry widget's window, holding the file selector itself.
[in] | width | The window's width |
[in] | height | The window's height |
const char* elm_fileselector_entry_window_title_get | ( | const Eo * | obj | ) |
Get the title set for a given file selector entry widget's window.
void elm_fileselector_entry_window_title_set | ( | Eo * | obj, |
const char * | title | ||
) |
Set the title for a given file selector entry widget's window.
This will change the window's title, when the file selector pops out after a click on the entry's button. Those windows have the default (unlocalized) value of "Select a file"
as titles.
[in] | title | The title string |
EOAPI Eina_Bool elm_obj_fileselector_entry_inwin_mode_get | ( | void | ) |
Get whether a given file selector entry widget's internal file selector will raise an Elementary "inner window", instead of a dedicated Elementary window.
EINA_TRUE
if will use an inner window, EINA_FALSE
if it will use a dedicated windowReferenced by elm_fileselector_entry_inwin_mode_get(), and elm_fileselector_entry::inwin_mode_get().
EOAPI void elm_obj_fileselector_entry_inwin_mode_set | ( | Eina_Bool | value | ) |
Set whether a given file selector entry widget's internal file selector will raise an Elementary "inner window", instead of a dedicated Elementary window.
By default, it depends on the current profile.
[in] | value | EINA_TRUE to make it use an inner window, EINA_FALSE to make it use a dedicated window |
Referenced by elm_fileselector_entry_inwin_mode_set(), and elm_fileselector_entry::inwin_mode_set().
EOAPI void elm_obj_fileselector_entry_window_size_get | ( | Evas_Coord * | width, |
Evas_Coord * | height | ||
) |
Get the size of a given file selector entry widget's window, holding the file selector itself.
NULL
pointers on the size values you're not interested in: they'll be ignored by the function.[out] | width | The window's width |
[out] | height | The window's height |
Referenced by elm_fileselector_entry_window_size_get(), and elm_fileselector_entry::window_size_get().
EOAPI void elm_obj_fileselector_entry_window_size_set | ( | Evas_Coord | width, |
Evas_Coord | height | ||
) |
Set the size of a given file selector entry widget's window, holding the file selector itself.
[in] | width | The window's width |
[in] | height | The window's height |
Referenced by elm_fileselector_entry_window_size_set(), and elm_fileselector_entry::window_size_set().
EOAPI const char* elm_obj_fileselector_entry_window_title_get | ( | void | ) |
Get the title set for a given file selector entry widget's window.
Referenced by elm_fileselector_entry_window_title_get(), and elm_fileselector_entry::window_title_get().
EOAPI void elm_obj_fileselector_entry_window_title_set | ( | const char * | title | ) |
Set the title for a given file selector entry widget's window.
This will change the window's title, when the file selector pops out after a click on the entry's button. Those windows have the default (unlocalized) value of "Select a file"
as titles.
[in] | title | The title string |
Referenced by elm_fileselector_entry_window_title_set(), and elm_fileselector_entry::window_title_set().
|
inline |
Get whether a given file selector entry widget's internal file selector will raise an Elementary "inner window", instead of a dedicated Elementary window.
EINA_TRUE
if will use an inner window, EINA_FALSE
if it will use a dedicated windowvalue | EINA_TRUE to make it use an inner window, EINA_FALSE to make it use a dedicated window |
References elm_obj_fileselector_entry_inwin_mode_get().
|
inline |
Get whether a given file selector entry widget's internal file selector will raise an Elementary "inner window", instead of a dedicated Elementary window.
EINA_TRUE
if will use an inner window, EINA_FALSE
if it will use a dedicated windowvalue | EINA_TRUE to make it use an inner window, EINA_FALSE to make it use a dedicated window |
References elm_obj_fileselector_entry_inwin_mode_set().
|
inline |
Get the size of a given file selector entry widget's window, holding the file selector itself.
NULL
pointers on the size values you're not interested in: they'll be ignored by the function.width | The window's width |
height | The window's height |
References elm_obj_fileselector_entry_window_size_get().
|
inline |
Get the size of a given file selector entry widget's window, holding the file selector itself.
NULL
pointers on the size values you're not interested in: they'll be ignored by the function.width | The window's width |
height | The window's height |
References elm_obj_fileselector_entry_window_size_set().
|
inline |
Get the title set for a given file selector entry widget's window.
title | The title string |
References elm_obj_fileselector_entry_window_title_get().
|
inline |
Get the title set for a given file selector entry widget's window.
title | The title string |
References elm_obj_fileselector_entry_window_title_set().