Class: Gtk::FileDialog
- Inherits:
-
Object
- Object
- Gtk::FileDialog
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#accept_label ⇒ String
Label for the file chooser's accept button.
-
#accept_label=(accept_label) ⇒ String
Label for the file chooser's accept button.
-
#default_filter ⇒ Gtk::FileFilter
The default filter, that is, the filter that is initially active in the file chooser dialog.
-
#default_filter=(default_filter) ⇒ Gtk::FileFilter
The default filter, that is, the filter that is initially active in the file chooser dialog.
-
#filters ⇒ Gio::ListModel
The list of filters.
-
#filters=(filters) ⇒ Gio::ListModel
The list of filters.
-
#initial_file ⇒ Gio::File
The initial file, that is, the file that is initially selected in the file chooser dialog.
-
#initial_file=(initial_file) ⇒ Gio::File
The initial file, that is, the file that is initially selected in the file chooser dialog.
-
#initial_folder ⇒ Gio::File
The initial folder, that is, the directory that is initially opened in the file chooser dialog.
-
#initial_folder=(initial_folder) ⇒ Gio::File
The initial folder, that is, the directory that is initially opened in the file chooser dialog.
-
#initial_name ⇒ String
The initial name, that is, the filename that is initially selected in the file chooser dialog.
-
#initial_name=(initial_name) ⇒ String
The initial name, that is, the filename that is initially selected in the file chooser dialog.
-
#initialize ⇒ Gtk::FileDialog
constructor
Creates a new
GtkFileDialogobject. -
#modal ⇒ Boolean
Returns whether the file chooser dialog blocks interaction with the parent window while it is presented.
-
#modal=(modal) ⇒ Boolean
Whether the file chooser dialog is modal.
-
#modal? ⇒ Boolean
Whether the file chooser dialog is modal.
-
#open(parent, cancellable, callback, user_data) ⇒ nil
This function initiates a file selection operation by presenting a file chooser dialog to the user.
-
#open_finish(result) ⇒ Gio::File
Finishes the [methodGtk.FileDialog.open] call and returns the resulting file.
-
#open_multiple(parent, cancellable, callback, user_data) ⇒ nil
This function initiates a multi-file selection operation by presenting a file chooser dialog to the user.
-
#open_multiple_finish(result) ⇒ Gio::ListModel
Finishes the [methodGtk.FileDialog.open] call and returns the resulting files in a
GListModel. -
#save(parent, cancellable, callback, user_data) ⇒ nil
This function initiates a file save operation by presenting a file chooser dialog to the user.
-
#save_finish(result) ⇒ Gio::File
Finishes the [methodGtk.FileDialog.save] call and returns the resulting file.
-
#select_folder(parent, cancellable, callback, user_data) ⇒ nil
This function initiates a directory selection operation by presenting a file chooser dialog to the user.
-
#select_folder_finish(result) ⇒ Gio::File
Finishes the [methodGtk.FileDialog.select_folder] call and returns the resulting file.
-
#select_multiple_folders(parent, cancellable, callback, user_data) ⇒ nil
This function initiates a multi-directory selection operation by presenting a file chooser dialog to the user.
-
#select_multiple_folders_finish(result) ⇒ Gio::ListModel
Finishes the [methodGtk.FileDialog.select_multiple_folders] call and returns the resulting files in a
GListModel. -
#title ⇒ String
A title that may be shown on the file chooser dialog.
-
#title=(title) ⇒ String
A title that may be shown on the file chooser dialog.
Constructor Details
#initialize ⇒ Gtk::FileDialog
Creates a new GtkFileDialog object.
Instance Method Details
#accept_label ⇒ String
Label for the file chooser's accept button.
#accept_label=(accept_label) ⇒ String
Label for the file chooser's accept button.
#default_filter ⇒ Gtk::FileFilter
The default filter, that is, the filter that is initially active in the file chooser dialog.
If the default filter is nil, the first filter of [propertyGtk.FileDialog:filters] is used as the default filter. If that property contains no filter, the dialog will be unfiltered.
If [propertyGtk.FileDialog:filters] is not nil, the default filter should be part of the list. If it is not, the dialog may choose to not make it available.
#default_filter=(default_filter) ⇒ Gtk::FileFilter
The default filter, that is, the filter that is initially active in the file chooser dialog.
If the default filter is nil, the first filter of [propertyGtk.FileDialog:filters] is used as the default filter. If that property contains no filter, the dialog will be unfiltered.
If [propertyGtk.FileDialog:filters] is not nil, the default filter should be part of the list. If it is not, the dialog may choose to not make it available.
#filters ⇒ Gio::ListModel
The list of filters.
See [propertyGtk.FileDialog:default-filter] about how those two properties interact.
#filters=(filters) ⇒ Gio::ListModel
The list of filters.
See [propertyGtk.FileDialog:default-filter] about how those two properties interact.
#initial_file ⇒ Gio::File
The initial file, that is, the file that is initially selected in the file chooser dialog
This is a utility property that sets both [propertyGtk.FileDialog:initial-folder] and [propertyGtk.FileDialog:initial-name].
#initial_file=(initial_file) ⇒ Gio::File
The initial file, that is, the file that is initially selected in the file chooser dialog
This is a utility property that sets both [propertyGtk.FileDialog:initial-folder] and [propertyGtk.FileDialog:initial-name].
#initial_folder ⇒ Gio::File
The initial folder, that is, the directory that is initially opened in the file chooser dialog
#initial_folder=(initial_folder) ⇒ Gio::File
The initial folder, that is, the directory that is initially opened in the file chooser dialog
#initial_name ⇒ String
The initial name, that is, the filename that is initially selected in the file chooser dialog.
#initial_name=(initial_name) ⇒ String
The initial name, that is, the filename that is initially selected in the file chooser dialog.
#modal ⇒ Boolean
Returns whether the file chooser dialog blocks interaction with the parent window while it is presented.
#modal=(modal) ⇒ Boolean
Whether the file chooser dialog is modal.
#modal? ⇒ Boolean
Whether the file chooser dialog is modal.
#open(parent, cancellable, callback, user_data) ⇒ nil
This function initiates a file selection operation by presenting a file chooser dialog to the user.
The callback will be called when the dialog is dismissed. It should call [methodGtk.FileDialog.open_finish] to obtain the result.
#open_finish(result) ⇒ Gio::File
Finishes the [methodGtk.FileDialog.open] call and returns the resulting file.
#open_multiple(parent, cancellable, callback, user_data) ⇒ nil
This function initiates a multi-file selection operation by presenting a file chooser dialog to the user.
The file chooser will initially be opened in the directory [propertyGtk.FileDialog:initial-folder].
The callback will be called when the dialog is dismissed. It should call [methodGtk.FileDialog.open_multiple_finish] to obtain the result.
#open_multiple_finish(result) ⇒ Gio::ListModel
Finishes the [methodGtk.FileDialog.open] call and
returns the resulting files in a GListModel.
#save(parent, cancellable, callback, user_data) ⇒ nil
This function initiates a file save operation by presenting a file chooser dialog to the user.
The callback will be called when the dialog is dismissed. It should call [methodGtk.FileDialog.save_finish] to obtain the result.
#save_finish(result) ⇒ Gio::File
Finishes the [methodGtk.FileDialog.save] call and returns the resulting file.
#select_folder(parent, cancellable, callback, user_data) ⇒ nil
This function initiates a directory selection operation by presenting a file chooser dialog to the user.
If you pass initial_folder, the file chooser will initially be opened in the parent directory of that folder, otherwise, it will be in the directory [propertyGtk.FileDialog:initial-folder].
The callback will be called when the dialog is dismissed. It should call [methodGtk.FileDialog.select_folder_finish] to obtain the result.
#select_folder_finish(result) ⇒ Gio::File
Finishes the [methodGtk.FileDialog.select_folder] call and returns the resulting file.
#select_multiple_folders(parent, cancellable, callback, user_data) ⇒ nil
This function initiates a multi-directory selection operation by presenting a file chooser dialog to the user.
The file chooser will initially be opened in the directory [propertyGtk.FileDialog:initial-folder].
The callback will be called when the dialog is dismissed. It should call [methodGtk.FileDialog.select_multiple_folders_finish] to obtain the result.
#select_multiple_folders_finish(result) ⇒ Gio::ListModel
Finishes the [methodGtk.FileDialog.select_multiple_folders]
call and returns the resulting files in a GListModel.
#title ⇒ String
A title that may be shown on the file chooser dialog.
#title=(title) ⇒ String
A title that may be shown on the file chooser dialog.