2015-07-06 06:54:12 -07:00
|
|
|
enum Elm.Fileselector.Mode
|
|
|
|
{
|
2015-07-08 07:49:38 -07:00
|
|
|
[[Defines how a file selector widget is to layout its contents
|
|
|
|
(file system entries).
|
2015-07-06 06:54:12 -07:00
|
|
|
]]
|
|
|
|
legacy: elm_fileselector;
|
|
|
|
list = 0, [[Layout as a list.]]
|
|
|
|
grid, [[Layout as a grid.]]
|
|
|
|
last [[Sentinel (helper) value, not used.]]
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Elm.Fileselector.Sort
|
|
|
|
{
|
|
|
|
by_filename_asc = 0,
|
|
|
|
by_filename_desc,
|
|
|
|
by_type_asc,
|
|
|
|
by_type_desc,
|
|
|
|
by_size_asc,
|
|
|
|
by_size_desc,
|
|
|
|
by_modified_asc,
|
|
|
|
by_modified_desc,
|
|
|
|
last [[Sentinel (helper) value, not used.]]
|
|
|
|
}
|
|
|
|
|
2014-03-29 21:56:50 -07:00
|
|
|
interface Elm_Interface_Fileselector ()
|
|
|
|
{
|
2014-04-03 00:19:03 -07:00
|
|
|
legacy_prefix: null;
|
2014-03-29 21:56:50 -07:00
|
|
|
eo_prefix: elm_interface_fileselector;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property folder_only {
|
2014-03-29 21:56:50 -07:00
|
|
|
set {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Enable/disable folder-only view for a given file selector widget]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Get whether folder-only view is set for a given file selector]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
only: bool;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property selected {
|
2014-03-29 21:56:50 -07:00
|
|
|
set {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Set, programmatically, the currently selected file/directory in the given file selector widget]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Get the currently selected item's (full) path, in the given file the given file selector widget]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
path: const(char)*;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property thumbnail_size {
|
2014-03-29 21:56:50 -07:00
|
|
|
set {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Set the size for the thumbnail of the file selector widget's view.]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Get the size for the thumbnail of a given file selector widget]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-06-26 07:36:43 -07:00
|
|
|
w: Evas.Coord;
|
|
|
|
h: Evas.Coord;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property hidden_visible {
|
2014-03-29 21:56:50 -07:00
|
|
|
set {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Enable or disable visibility of hidden files/directories in the file selector widget.]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Get if hiden files/directories in the file selector are visible or not.]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
multi: bool;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property sort_method {
|
2014-03-29 21:56:50 -07:00
|
|
|
set {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Set the sort method of the file selector widget.]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Get the sort method of the file selector widget.]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-06 06:54:12 -07:00
|
|
|
sort: Elm.Fileselector.Sort;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property multi_select {
|
2014-03-29 21:56:50 -07:00
|
|
|
set {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Enable or disable multi-selection in the fileselector]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Gets if multi-selection in fileselector is enabled or disabled.]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
multi: bool;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property expandable {
|
2014-03-29 21:56:50 -07:00
|
|
|
set {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Enable/disable a tree view in the given file selector widget, <b>if it's in]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Get whether tree view is enabled for the given file selector]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
expand: bool;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property path {
|
2014-03-29 21:56:50 -07:00
|
|
|
set {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Set, programmatically, the directory that a given file selector widget will display contents from]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Get the parent directory's path that a given file selector selector widget will display contents from]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
path: const(char)*;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property mode {
|
2014-03-29 21:56:50 -07:00
|
|
|
set {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Set the mode in which a given file selector widget will display (layout) file system entries in its view]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Get the mode in which a given file selector widget is displaying]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-06 06:54:12 -07:00
|
|
|
mode: Elm.Fileselector.Mode;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property is_save {
|
2014-03-29 21:56:50 -07:00
|
|
|
set {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Enable/disable the file name entry box where the user can type in a name for a file, in a given file selector widget]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Get whether the given file selector is in "saving dialog" mode]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
is_save: bool;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property selected_paths {
|
2014-03-29 21:56:50 -07:00
|
|
|
get {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Get a list of selected paths in the fileselector.]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
ret: const(list<const(char)*>)*;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property current_name {
|
2014-10-05 16:08:24 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
name: const(char)*;
|
2014-10-05 16:08:24 -07:00
|
|
|
}
|
|
|
|
}
|
2014-03-29 21:56:50 -07:00
|
|
|
custom_filter_append {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Append custom filter into filter list]]
|
2014-03-29 21:56:50 -07:00
|
|
|
params {
|
2015-08-07 05:19:35 -07:00
|
|
|
@in func: Elm_Fileselector_Filter_Func; [[function]]
|
2015-05-18 08:16:08 -07:00
|
|
|
@in data: void *;
|
|
|
|
@in filter_name: const(char)*;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
filters_clear {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Clear all filters registered]]
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
mime_types_filter_append {
|
2015-08-07 05:19:35 -07:00
|
|
|
[[Append mime type based filter into filter list]]
|
2014-03-29 21:56:50 -07:00
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in mime_types: const(char)*;
|
|
|
|
@in filter_name: const(char)*;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-29 21:56:50 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|