Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- Exported types
- Methods
- getAcceptLabel
- getDefaultFilter
- getFilters
- getInitialFile
- getInitialFolder
- getInitialName
- getModal
- getTitle
- new
- open
- openFinish
- openMultiple
- openMultipleFinish
- save
- saveFinish
- selectFolder
- selectFolderFinish
- selectMultipleFolders
- selectMultipleFoldersFinish
- setAcceptLabel
- setDefaultFilter
- setFilters
- setInitialFile
- setInitialFolder
- setInitialName
- setModal
- setTitle
- Properties
A GtkFileDialog
object collects the arguments that
are needed to present a file chooser dialog to the
user, such as a title for the dialog and whether it
should be modal.
The dialog is shown with fileDialogOpen
,
fileDialogSave
, etc. These APIs follow the
GIO async pattern, and the result can be obtained by calling
the corresponding finish function, for example
fileDialogOpenFinish
.
Since: 4.10
Synopsis
- newtype FileDialog = FileDialog (ManagedPtr FileDialog)
- class (GObject o, IsDescendantOf FileDialog o) => IsFileDialog o
- toFileDialog :: (MonadIO m, IsFileDialog o) => o -> m FileDialog
- fileDialogGetAcceptLabel :: (HasCallStack, MonadIO m, IsFileDialog a) => a -> m (Maybe Text)
- fileDialogGetDefaultFilter :: (HasCallStack, MonadIO m, IsFileDialog a) => a -> m (Maybe FileFilter)
- fileDialogGetFilters :: (HasCallStack, MonadIO m, IsFileDialog a) => a -> m (Maybe ListModel)
- fileDialogGetInitialFile :: (HasCallStack, MonadIO m, IsFileDialog a) => a -> m (Maybe File)
- fileDialogGetInitialFolder :: (HasCallStack, MonadIO m, IsFileDialog a) => a -> m (Maybe File)
- fileDialogGetInitialName :: (HasCallStack, MonadIO m, IsFileDialog a) => a -> m (Maybe Text)
- fileDialogGetModal :: (HasCallStack, MonadIO m, IsFileDialog a) => a -> m Bool
- fileDialogGetTitle :: (HasCallStack, MonadIO m, IsFileDialog a) => a -> m Text
- fileDialogNew :: (HasCallStack, MonadIO m) => m FileDialog
- fileDialogOpen :: (HasCallStack, MonadIO m, IsFileDialog a, IsWindow b, IsCancellable c) => a -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- fileDialogOpenFinish :: (HasCallStack, MonadIO m, IsFileDialog a, IsAsyncResult b) => a -> b -> m (Maybe File)
- fileDialogOpenMultiple :: (HasCallStack, MonadIO m, IsFileDialog a, IsWindow b, IsCancellable c) => a -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- fileDialogOpenMultipleFinish :: (HasCallStack, MonadIO m, IsFileDialog a, IsAsyncResult b) => a -> b -> m (Maybe ListModel)
- fileDialogSave :: (HasCallStack, MonadIO m, IsFileDialog a, IsWindow b, IsCancellable c) => a -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- fileDialogSaveFinish :: (HasCallStack, MonadIO m, IsFileDialog a, IsAsyncResult b) => a -> b -> m (Maybe File)
- fileDialogSelectFolder :: (HasCallStack, MonadIO m, IsFileDialog a, IsWindow b, IsCancellable c) => a -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- fileDialogSelectFolderFinish :: (HasCallStack, MonadIO m, IsFileDialog a, IsAsyncResult b) => a -> b -> m (Maybe File)
- fileDialogSelectMultipleFolders :: (HasCallStack, MonadIO m, IsFileDialog a, IsWindow b, IsCancellable c) => a -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- fileDialogSelectMultipleFoldersFinish :: (HasCallStack, MonadIO m, IsFileDialog a, IsAsyncResult b) => a -> b -> m (Maybe ListModel)
- fileDialogSetAcceptLabel :: (HasCallStack, MonadIO m, IsFileDialog a) => a -> Maybe Text -> m ()
- fileDialogSetDefaultFilter :: (HasCallStack, MonadIO m, IsFileDialog a, IsFileFilter b) => a -> Maybe b -> m ()
- fileDialogSetFilters :: (HasCallStack, MonadIO m, IsFileDialog a, IsListModel b) => a -> b -> m ()
- fileDialogSetInitialFile :: (HasCallStack, MonadIO m, IsFileDialog a, IsFile b) => a -> Maybe b -> m ()
- fileDialogSetInitialFolder :: (HasCallStack, MonadIO m, IsFileDialog a, IsFile b) => a -> Maybe b -> m ()
- fileDialogSetInitialName :: (HasCallStack, MonadIO m, IsFileDialog a) => a -> Maybe Text -> m ()
- fileDialogSetModal :: (HasCallStack, MonadIO m, IsFileDialog a) => a -> Bool -> m ()
- fileDialogSetTitle :: (HasCallStack, MonadIO m, IsFileDialog a) => a -> Text -> m ()
- clearFileDialogAcceptLabel :: (MonadIO m, IsFileDialog o) => o -> m ()
- constructFileDialogAcceptLabel :: (IsFileDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getFileDialogAcceptLabel :: (MonadIO m, IsFileDialog o) => o -> m (Maybe Text)
- setFileDialogAcceptLabel :: (MonadIO m, IsFileDialog o) => o -> Text -> m ()
- clearFileDialogDefaultFilter :: (MonadIO m, IsFileDialog o) => o -> m ()
- constructFileDialogDefaultFilter :: (IsFileDialog o, MonadIO m, IsFileFilter a) => a -> m (GValueConstruct o)
- getFileDialogDefaultFilter :: (MonadIO m, IsFileDialog o) => o -> m (Maybe FileFilter)
- setFileDialogDefaultFilter :: (MonadIO m, IsFileDialog o, IsFileFilter a) => o -> a -> m ()
- constructFileDialogFilters :: (IsFileDialog o, MonadIO m, IsListModel a) => a -> m (GValueConstruct o)
- getFileDialogFilters :: (MonadIO m, IsFileDialog o) => o -> m (Maybe ListModel)
- setFileDialogFilters :: (MonadIO m, IsFileDialog o, IsListModel a) => o -> a -> m ()
- clearFileDialogInitialFile :: (MonadIO m, IsFileDialog o) => o -> m ()
- constructFileDialogInitialFile :: (IsFileDialog o, MonadIO m, IsFile a) => a -> m (GValueConstruct o)
- getFileDialogInitialFile :: (MonadIO m, IsFileDialog o) => o -> m (Maybe File)
- setFileDialogInitialFile :: (MonadIO m, IsFileDialog o, IsFile a) => o -> a -> m ()
- clearFileDialogInitialFolder :: (MonadIO m, IsFileDialog o) => o -> m ()
- constructFileDialogInitialFolder :: (IsFileDialog o, MonadIO m, IsFile a) => a -> m (GValueConstruct o)
- getFileDialogInitialFolder :: (MonadIO m, IsFileDialog o) => o -> m (Maybe File)
- setFileDialogInitialFolder :: (MonadIO m, IsFileDialog o, IsFile a) => o -> a -> m ()
- clearFileDialogInitialName :: (MonadIO m, IsFileDialog o) => o -> m ()
- constructFileDialogInitialName :: (IsFileDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getFileDialogInitialName :: (MonadIO m, IsFileDialog o) => o -> m (Maybe Text)
- setFileDialogInitialName :: (MonadIO m, IsFileDialog o) => o -> Text -> m ()
- constructFileDialogModal :: (IsFileDialog o, MonadIO m) => Bool -> m (GValueConstruct o)
- getFileDialogModal :: (MonadIO m, IsFileDialog o) => o -> m Bool
- setFileDialogModal :: (MonadIO m, IsFileDialog o) => o -> Bool -> m ()
- constructFileDialogTitle :: (IsFileDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getFileDialogTitle :: (MonadIO m, IsFileDialog o) => o -> m Text
- setFileDialogTitle :: (MonadIO m, IsFileDialog o) => o -> Text -> m ()
Exported types
newtype FileDialog Source #
Memory-managed wrapper type.
FileDialog (ManagedPtr FileDialog) |
Instances
Eq FileDialog Source # | |
Defined in GI.Gtk.Objects.FileDialog (==) :: FileDialog -> FileDialog -> Bool # (/=) :: FileDialog -> FileDialog -> Bool # | |
GObject FileDialog Source # | |
Defined in GI.Gtk.Objects.FileDialog | |
ManagedPtrNewtype FileDialog Source # | |
Defined in GI.Gtk.Objects.FileDialog toManagedPtr :: FileDialog -> ManagedPtr FileDialog | |
TypedObject FileDialog Source # | |
Defined in GI.Gtk.Objects.FileDialog | |
HasParentTypes FileDialog Source # | |
Defined in GI.Gtk.Objects.FileDialog | |
IsGValue (Maybe FileDialog) Source # | Convert |
Defined in GI.Gtk.Objects.FileDialog gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe FileDialog -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe FileDialog) | |
type ParentTypes FileDialog Source # | |
Defined in GI.Gtk.Objects.FileDialog type ParentTypes FileDialog = '[Object] |
class (GObject o, IsDescendantOf FileDialog o) => IsFileDialog o Source #
Type class for types which can be safely cast to FileDialog
, for instance with toFileDialog
.
Instances
(GObject o, IsDescendantOf FileDialog o) => IsFileDialog o Source # | |
Defined in GI.Gtk.Objects.FileDialog |
toFileDialog :: (MonadIO m, IsFileDialog o) => o -> m FileDialog Source #
Cast to FileDialog
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, open, openFinish, openMultiple, openMultipleFinish, ref, refSink, runDispose, save, saveFinish, selectFolder, selectFolderFinish, selectMultipleFolders, selectMultipleFoldersFinish, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getAcceptLabel, getData, getDefaultFilter, getFilters, getInitialFile, getInitialFolder, getInitialName, getModal, getProperty, getQdata, getTitle.
Setters
setAcceptLabel, setData, setDataFull, setDefaultFilter, setFilters, setInitialFile, setInitialFolder, setInitialName, setModal, setProperty, setTitle.
getAcceptLabel
fileDialogGetAcceptLabel Source #
:: (HasCallStack, MonadIO m, IsFileDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: the label shown on the file chooser's accept button. |
No description available in the introspection data.
Since: 4.10
getDefaultFilter
fileDialogGetDefaultFilter Source #
:: (HasCallStack, MonadIO m, IsFileDialog a) | |
=> a |
|
-> m (Maybe FileFilter) | Returns: the current filter |
Gets the filter that will be selected by default in the file chooser dialog.
Since: 4.10
getFilters
:: (HasCallStack, MonadIO m, IsFileDialog a) | |
=> a |
|
-> m (Maybe ListModel) | Returns: the filters, as
a |
Gets the filters that will be offered to the user in the file chooser dialog.
Since: 4.10
getInitialFile
fileDialogGetInitialFile Source #
:: (HasCallStack, MonadIO m, IsFileDialog a) | |
=> a |
|
-> m (Maybe File) | Returns: the file |
Gets the file that will be initially selected in the file chooser dialog.
Since: 4.10
getInitialFolder
fileDialogGetInitialFolder Source #
:: (HasCallStack, MonadIO m, IsFileDialog a) | |
=> a |
|
-> m (Maybe File) | Returns: the folder |
Gets the folder that will be set as the initial folder in the file chooser dialog.
Since: 4.10
getInitialName
fileDialogGetInitialName Source #
:: (HasCallStack, MonadIO m, IsFileDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: the name |
Gets the name for the file that should be initially set.
Since: 4.10
getModal
:: (HasCallStack, MonadIO m, IsFileDialog a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether the file chooser dialog blocks interaction with the parent window while it is presented.
Since: 4.10
getTitle
:: (HasCallStack, MonadIO m, IsFileDialog a) | |
=> a |
|
-> m Text | Returns: the title |
Returns the title that will be shown on the file chooser dialog.
Since: 4.10
new
:: (HasCallStack, MonadIO m) | |
=> m FileDialog | Returns: the new |
Creates a new GtkFileDialog
object.
Since: 4.10
open
:: (HasCallStack, MonadIO m, IsFileDialog a, IsWindow b, IsCancellable c) | |
=> a |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
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 fileDialogOpenFinish
to obtain the result.
Since: 4.10
openFinish
:: (HasCallStack, MonadIO m, IsFileDialog a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m (Maybe File) | Returns: the file that was selected.
Otherwise, |
Finishes the fileDialogOpen
call and
returns the resulting file.
Since: 4.10
openMultiple
fileDialogOpenMultiple Source #
:: (HasCallStack, MonadIO m, IsFileDialog a, IsWindow b, IsCancellable c) | |
=> a |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
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 FileDialog:initialFolder.
The callback
will be called when the dialog is dismissed.
It should call fileDialogOpenMultipleFinish
to obtain the result.
Since: 4.10
openMultipleFinish
fileDialogOpenMultipleFinish Source #
:: (HasCallStack, MonadIO m, IsFileDialog a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m (Maybe ListModel) | Returns: the file that was selected,
as a |
Finishes the fileDialogOpen
call and
returns the resulting files in a GListModel
.
Since: 4.10
save
:: (HasCallStack, MonadIO m, IsFileDialog a, IsWindow b, IsCancellable c) | |
=> a |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
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 fileDialogSaveFinish
to obtain the result.
Since: 4.10
saveFinish
:: (HasCallStack, MonadIO m, IsFileDialog a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m (Maybe File) | Returns: the file that was selected.
Otherwise, |
Finishes the fileDialogSave
call and
returns the resulting file.
Since: 4.10
selectFolder
fileDialogSelectFolder Source #
:: (HasCallStack, MonadIO m, IsFileDialog a, IsWindow b, IsCancellable c) | |
=> a |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
This function initiates a directory selection operation by presenting a file chooser dialog to the user.
If you pass initialFolder
, the file chooser will initially be
opened in the parent directory of that folder, otherwise, it
will be in the directory FileDialog:initialFolder.
The callback
will be called when the dialog is dismissed.
It should call fileDialogSelectFolderFinish
to obtain the result.
Since: 4.10
selectFolderFinish
fileDialogSelectFolderFinish Source #
:: (HasCallStack, MonadIO m, IsFileDialog a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m (Maybe File) | Returns: the file that was selected.
Otherwise, |
Finishes the fileDialogSelectFolder
call and
returns the resulting file.
Since: 4.10
selectMultipleFolders
fileDialogSelectMultipleFolders Source #
:: (HasCallStack, MonadIO m, IsFileDialog a, IsWindow b, IsCancellable c) | |
=> a |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
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 FileDialog:initialFolder.
The callback
will be called when the dialog is dismissed.
It should call fileDialogSelectMultipleFoldersFinish
to obtain the result.
Since: 4.10
selectMultipleFoldersFinish
fileDialogSelectMultipleFoldersFinish Source #
:: (HasCallStack, MonadIO m, IsFileDialog a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m (Maybe ListModel) | Returns: the file that was selected,
as a |
Finishes the fileDialogSelectMultipleFolders
call and returns the resulting files in a GListModel
.
Since: 4.10
setAcceptLabel
fileDialogSetAcceptLabel Source #
:: (HasCallStack, MonadIO m, IsFileDialog a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the label shown on the file chooser's accept button.
Leaving the accept label unset or setting it as NULL
will fall back to
a default label, depending on what API is used to launch the file dialog.
Since: 4.10
setDefaultFilter
fileDialogSetDefaultFilter Source #
:: (HasCallStack, MonadIO m, IsFileDialog a, IsFileFilter b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the filter that will be selected by default in the file chooser dialog.
If set to Nothing
, the first item in FileDialog:filters
will be used as the default filter. If that list is empty, the dialog
will be unfiltered.
Since: 4.10
setFilters
:: (HasCallStack, MonadIO m, IsFileDialog a, IsListModel b) | |
=> a |
|
-> b |
|
-> m () |
Sets the filters that will be offered to the user in the file chooser dialog.
Since: 4.10
setInitialFile
fileDialogSetInitialFile Source #
:: (HasCallStack, MonadIO m, IsFileDialog a, IsFile b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the file that will be initially selected in the file chooser dialog.
This function is a shortcut for calling both
fileDialogSetInitialFolder
and
fileDialogSetInitialName
with the directory and
name of file
respectively.
Since: 4.10
setInitialFolder
fileDialogSetInitialFolder Source #
:: (HasCallStack, MonadIO m, IsFileDialog a, IsFile b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the folder that will be set as the initial folder in the file chooser dialog.
Since: 4.10
setInitialName
fileDialogSetInitialName Source #
:: (HasCallStack, MonadIO m, IsFileDialog a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the name for the file that should be initially set. For saving dialogs, this will usually be pre-entered into the name field.
If a file with this name already exists in the directory set via FileDialog:initialFolder, the dialog should preselect it.
Since: 4.10
setModal
:: (HasCallStack, MonadIO m, IsFileDialog a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the file chooser dialog blocks interaction with the parent window while it is presented.
Since: 4.10
setTitle
:: (HasCallStack, MonadIO m, IsFileDialog a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the title that will be shown on the file chooser dialog.
Since: 4.10
Properties
acceptLabel
Label for the file chooser's accept button.
Since: 4.10
clearFileDialogAcceptLabel :: (MonadIO m, IsFileDialog o) => o -> m () Source #
Set the value of the “accept-label
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#acceptLabel
constructFileDialogAcceptLabel :: (IsFileDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “accept-label
” property. This is rarely needed directly, but it is used by new
.
getFileDialogAcceptLabel :: (MonadIO m, IsFileDialog o) => o -> m (Maybe Text) Source #
Get the value of the “accept-label
” property.
When overloading is enabled, this is equivalent to
get
fileDialog #acceptLabel
setFileDialogAcceptLabel :: (MonadIO m, IsFileDialog o) => o -> Text -> m () Source #
Set the value of the “accept-label
” property.
When overloading is enabled, this is equivalent to
set
fileDialog [ #acceptLabel:=
value ]
defaultFilter
The default filter, that is, the filter that is initially active in the file chooser dialog.
If the default filter is Nothing
, the first filter of FileDialog:filters
is used as the default filter. If that property contains no filter, the dialog will
be unfiltered.
If FileDialog:filters is not Nothing
, the default filter should be part
of the list. If it is not, the dialog may choose to not make it available.
Since: 4.10
clearFileDialogDefaultFilter :: (MonadIO m, IsFileDialog o) => o -> m () Source #
Set the value of the “default-filter
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#defaultFilter
constructFileDialogDefaultFilter :: (IsFileDialog o, MonadIO m, IsFileFilter a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “default-filter
” property. This is rarely needed directly, but it is used by new
.
getFileDialogDefaultFilter :: (MonadIO m, IsFileDialog o) => o -> m (Maybe FileFilter) Source #
Get the value of the “default-filter
” property.
When overloading is enabled, this is equivalent to
get
fileDialog #defaultFilter
setFileDialogDefaultFilter :: (MonadIO m, IsFileDialog o, IsFileFilter a) => o -> a -> m () Source #
Set the value of the “default-filter
” property.
When overloading is enabled, this is equivalent to
set
fileDialog [ #defaultFilter:=
value ]
filters
The list of filters.
See FileDialog:defaultFilter about how those two properties interact.
Since: 4.10
constructFileDialogFilters :: (IsFileDialog o, MonadIO m, IsListModel a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “filters
” property. This is rarely needed directly, but it is used by new
.
getFileDialogFilters :: (MonadIO m, IsFileDialog o) => o -> m (Maybe ListModel) Source #
Get the value of the “filters
” property.
When overloading is enabled, this is equivalent to
get
fileDialog #filters
setFileDialogFilters :: (MonadIO m, IsFileDialog o, IsListModel a) => o -> a -> m () Source #
Set the value of the “filters
” property.
When overloading is enabled, this is equivalent to
set
fileDialog [ #filters:=
value ]
initialFile
The inital file, that is, the file that is initially selected in the file chooser dialog
This is a utility property that sets both FileDialog:initialFolder and FileDialog:initialName.
Since: 4.10
clearFileDialogInitialFile :: (MonadIO m, IsFileDialog o) => o -> m () Source #
Set the value of the “initial-file
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#initialFile
constructFileDialogInitialFile :: (IsFileDialog o, MonadIO m, IsFile a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “initial-file
” property. This is rarely needed directly, but it is used by new
.
getFileDialogInitialFile :: (MonadIO m, IsFileDialog o) => o -> m (Maybe File) Source #
Get the value of the “initial-file
” property.
When overloading is enabled, this is equivalent to
get
fileDialog #initialFile
setFileDialogInitialFile :: (MonadIO m, IsFileDialog o, IsFile a) => o -> a -> m () Source #
Set the value of the “initial-file
” property.
When overloading is enabled, this is equivalent to
set
fileDialog [ #initialFile:=
value ]
initialFolder
The inital folder, that is, the directory that is initially opened in the file chooser dialog
Since: 4.10
clearFileDialogInitialFolder :: (MonadIO m, IsFileDialog o) => o -> m () Source #
Set the value of the “initial-folder
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#initialFolder
constructFileDialogInitialFolder :: (IsFileDialog o, MonadIO m, IsFile a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “initial-folder
” property. This is rarely needed directly, but it is used by new
.
getFileDialogInitialFolder :: (MonadIO m, IsFileDialog o) => o -> m (Maybe File) Source #
Get the value of the “initial-folder
” property.
When overloading is enabled, this is equivalent to
get
fileDialog #initialFolder
setFileDialogInitialFolder :: (MonadIO m, IsFileDialog o, IsFile a) => o -> a -> m () Source #
Set the value of the “initial-folder
” property.
When overloading is enabled, this is equivalent to
set
fileDialog [ #initialFolder:=
value ]
initialName
The inital name, that is, the filename that is initially selected in the file chooser dialog.
Since: 4.10
clearFileDialogInitialName :: (MonadIO m, IsFileDialog o) => o -> m () Source #
Set the value of the “initial-name
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#initialName
constructFileDialogInitialName :: (IsFileDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “initial-name
” property. This is rarely needed directly, but it is used by new
.
getFileDialogInitialName :: (MonadIO m, IsFileDialog o) => o -> m (Maybe Text) Source #
Get the value of the “initial-name
” property.
When overloading is enabled, this is equivalent to
get
fileDialog #initialName
setFileDialogInitialName :: (MonadIO m, IsFileDialog o) => o -> Text -> m () Source #
Set the value of the “initial-name
” property.
When overloading is enabled, this is equivalent to
set
fileDialog [ #initialName:=
value ]
modal
Whether the file chooser dialog is modal.
Since: 4.10
constructFileDialogModal :: (IsFileDialog o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “modal
” property. This is rarely needed directly, but it is used by new
.
getFileDialogModal :: (MonadIO m, IsFileDialog o) => o -> m Bool Source #
Get the value of the “modal
” property.
When overloading is enabled, this is equivalent to
get
fileDialog #modal
setFileDialogModal :: (MonadIO m, IsFileDialog o) => o -> Bool -> m () Source #
Set the value of the “modal
” property.
When overloading is enabled, this is equivalent to
set
fileDialog [ #modal:=
value ]
title
A title that may be shown on the file chooser dialog.
Since: 4.10
constructFileDialogTitle :: (IsFileDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “title
” property. This is rarely needed directly, but it is used by new
.
getFileDialogTitle :: (MonadIO m, IsFileDialog o) => o -> m Text Source #
Get the value of the “title
” property.
When overloading is enabled, this is equivalent to
get
fileDialog #title
setFileDialogTitle :: (MonadIO m, IsFileDialog o) => o -> Text -> m () Source #
Set the value of the “title
” property.
When overloading is enabled, this is equivalent to
set
fileDialog [ #title:=
value ]