efl/src/lib/elementary/elm_interface_fileselector.eo

174 lines
5.6 KiB
Plaintext
Raw Normal View History

type Elm_Fileselector_Filter_Func: __undefined_type; [[Elementary fileselector filter function type]]
enum Elm.Fileselector.Mode
{
[[Defines how a file selector widget is to layout its contents
(file system entries).
]]
legacy: elm_fileselector;
list = 0, [[Layout as a list.]]
grid, [[Layout as a grid.]]
last [[Sentinel value to indicate last enum field during iteration]]
}
enum Elm.Fileselector.Sort
{
[[Fileselector sorting modes]]
by_filename_asc = 0, [[Alphabetical sort by ascending filename, default]]
by_filename_desc, [[Alphabetical sorting by descending filename]]
by_type_asc, [[Sort by file type]]
by_type_desc, [[Sort by file type description]]
by_size_asc, [[Sort by ascending file size]]
by_size_desc, [[Sort by descending file size]]
by_modified_asc, [[Sort by ascending modified date]]
by_modified_desc, [[Sort by descending modified date]]
last [[Sentinel value to indicate last enum field during iteration]]
}
interface Elm.Interface.Fileselector extends Efl.Ui.View
{
[[Elementary fileselector interface]]
eo_prefix: elm_interface_fileselector;
2015-05-07 09:32:53 -07:00
methods {
@property folder_only {
set {
2015-08-07 05:19:35 -07:00
[[Enable/disable folder-only view for a given file selector widget]]
}
get {
2015-08-07 05:19:35 -07:00
[[Get whether folder-only view is set for a given file selector]]
}
values {
only: bool; [[$true if folder view is set, $false otherwise]]
}
}
2015-05-07 09:32:53 -07:00
@property thumbnail_size {
set {
2015-08-07 05:19:35 -07:00
[[Set the size for the thumbnail of the file selector widget's view.]]
}
get {
2015-08-07 05:19:35 -07:00
[[Get the size for the thumbnail of a given file selector widget]]
}
values {
w: int; [[Width]]
h: int; [[Height]]
}
}
2015-05-07 09:32:53 -07:00
@property hidden_visible {
set {
2015-08-07 05:19:35 -07:00
[[Enable or disable visibility of hidden files/directories in the file selector widget.]]
}
get {
2015-08-07 05:19:35 -07:00
[[Get if hiden files/directories in the file selector are visible or not.]]
}
values {
hidden: bool; [[$true if hidden files are visible, $false otherwise]]
}
}
2015-05-07 09:32:53 -07:00
@property sort_method {
set {
2015-08-07 05:19:35 -07:00
[[Set the sort method of the file selector widget.]]
}
get {
2015-08-07 05:19:35 -07:00
[[Get the sort method of the file selector widget.]]
}
values {
sort: Elm.Fileselector.Sort; [[Sort method]]
}
}
2015-05-07 09:32:53 -07:00
@property multi_select {
set {
2015-08-07 05:19:35 -07:00
[[Enable or disable multi-selection in the fileselector]]
}
get {
2015-08-07 05:19:35 -07:00
[[Gets if multi-selection in fileselector is enabled or disabled.]]
}
values {
multi: bool; [[$true if multiselection is enabled, $false otherwise]]
}
}
2015-05-07 09:32:53 -07:00
@property expandable {
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]]
}
get {
2015-08-07 05:19:35 -07:00
[[Get whether tree view is enabled for the given file selector]]
}
values {
expand: bool; [[$true if tree view is expanded, $false otherwise]]
}
}
2015-05-07 09:32:53 -07:00
@property mode {
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]]
}
get {
2015-08-07 05:19:35 -07:00
[[Get the mode in which a given file selector widget is displaying]]
}
values {
mode: Elm.Fileselector.Mode; [[Fileselector mode]]
}
}
2015-05-07 09:32:53 -07:00
@property is_save {
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]]
}
get {
2015-08-07 05:19:35 -07:00
[[Get whether the given file selector is in "saving dialog" mode]]
}
values {
is_save: bool; [[$true if in saving mode, $false otherwise]]
}
}
@property selected_models {
get {
[[Get a list of models selected in the fileselector.]]
}
values {
ret: const(list<Efl.Model>); [[List of selected models]]
}
}
2015-05-07 09:32:53 -07:00
@property current_name {
[[ The filename that will be displayed in the filename entry]]
set {
}
get {
}
values {
name: string; [[Name]]
}
}
@property selected_model @beta {
set {
[[Set, programmatically, the currently selected file/directory in the given file selector widget]]
return: bool; [[$true on success, $false otherwise]]
}
get {
[[Get the currently selected item's model, in the given file the given file selector widget]]
}
values {
efl_model : rename all efl_model based classes. Summary: As the result of discussion in T7458, we need to rename all efl_model based classes with efl_XXX_Model sequence. I've run few vote for this, see V42, V43 few classes are totally renamed as our consideration of misnaming. | Efl.Model_Loop | Efl.Loop_Model | | Efl.Model_Item | Efl.Generic_Model | | Efl.Model_Container | Efl.Container_Model | | Efl.Model_Container_Item | Efl.Container_Model_Item | | Efl.Model_Composite | Efl.Composite_Model | | Efl.Model_Composite_Boolean | Efl.Boolean_Model | | Efl.Model_Composite_Boolean_Chlidren | Efl.Boolean_Model_Item | | Efl.Model_Composite_Selection | Efl.Select_Model | | Efl.Model_Composite_Selection_Chlidren | Efl.Select_Model_Item | | Efl.Model_View | Efl.View_Model | | Eio.Model | Efl.Io.Model | | Efl.Ui.Model_State | Efl.Ui.State_Model | | Efl.Ui.Model_Size | Efl.Ui.Size_Model | | Efl.Ui.Model_Exact | Efl.Ui.Exact_Model | | Efl.Ui.Model_Average | Efl.Ui.Average_Model | | Efl.Ui.Model_Homogeneous | Efl.Ui.Homogeneous_Model | I worried about Efl.Io.Model changes, cause it is widely used, but as I tested, there is no issue found yet. Eldbus.Model also may can changed Efl.Dbus.Model, but I cannot found any class who using Efl.Dbus namespace, so I left it future work. Test Plan: Run the Make Test, it works well except Efl test about selection. there are class inheritance problem exist in select_model, I reported it and will fix it in another patch. Reviewers: cedric, felipealmeida, woohyun, Hermet Reviewed By: cedric Subscribers: lauromoura Tags: #efl, #do_not_merge Differential Revision: https://phab.enlightenment.org/D7533
2019-01-30 20:35:34 -08:00
model: Efl.Io.Model; [[Model to be set, NULL reset it.]]
}
}
custom_filter_append {
2015-08-07 05:19:35 -07:00
[[Append custom filter into filter list]]
params {
@in func: Elm_Fileselector_Filter_Func; [[Filter function]]
@in data: void_ptr; [[Data pointer]]
@in filter_name: string; [[Filter name]]
}
return: bool; [[$true on success, $false otherwise]]
}
filters_clear {
2015-08-07 05:19:35 -07:00
[[Clear all filters registered]]
}
mime_types_filter_append {
2015-08-07 05:19:35 -07:00
[[Append mime type based filter into filter list]]
params {
@in mime_types: string; [[Mime types]]
@in filter_name: string; [[Filter name]]
}
return: bool; [[$true on success, $false otherwise]]
}
}
}