Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
AppChooserDialog
shows a AppChooserWidget
inside a Dialog
.
Note that AppChooserDialog
does not have any interesting methods
of its own. Instead, you should get the embedded AppChooserWidget
using appChooserDialogGetWidget
and call its methods if
the generic AppChooser
interface is not sufficient for your needs.
To set the heading that is shown above the AppChooserWidget
,
use appChooserDialogSetHeading
.
Synopsis
- newtype AppChooserDialog = AppChooserDialog (ManagedPtr AppChooserDialog)
- class GObject o => IsAppChooserDialog o
- toAppChooserDialog :: (MonadIO m, IsAppChooserDialog o) => o -> m AppChooserDialog
- noAppChooserDialog :: Maybe AppChooserDialog
- appChooserDialogGetHeading :: (HasCallStack, MonadIO m, IsAppChooserDialog a) => a -> m (Maybe Text)
- appChooserDialogGetWidget :: (HasCallStack, MonadIO m, IsAppChooserDialog a) => a -> m Widget
- appChooserDialogNew :: (HasCallStack, MonadIO m, IsWindow a, IsFile b) => Maybe a -> [DialogFlags] -> b -> m AppChooserDialog
- appChooserDialogNewForContentType :: (HasCallStack, MonadIO m, IsWindow a) => Maybe a -> [DialogFlags] -> Text -> m AppChooserDialog
- appChooserDialogSetHeading :: (HasCallStack, MonadIO m, IsAppChooserDialog a) => a -> Text -> m ()
- constructAppChooserDialogGfile :: (IsAppChooserDialog o, IsFile a) => a -> IO (GValueConstruct o)
- getAppChooserDialogGfile :: (MonadIO m, IsAppChooserDialog o) => o -> m (Maybe File)
- constructAppChooserDialogHeading :: IsAppChooserDialog o => Text -> IO (GValueConstruct o)
- getAppChooserDialogHeading :: (MonadIO m, IsAppChooserDialog o) => o -> m (Maybe Text)
- setAppChooserDialogHeading :: (MonadIO m, IsAppChooserDialog o) => o -> Text -> m ()
Exported types
newtype AppChooserDialog Source #
Memory-managed wrapper type.
Instances
GObject AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog gobjectType :: AppChooserDialog -> IO GType # | |
IsImplementorIface AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog | |
IsObject AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog | |
IsAppChooser AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog | |
IsBuildable AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog | |
IsBin AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog | |
IsContainer AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog | |
IsDialog AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog | |
IsWidget AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog | |
IsWindow AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog | |
IsAppChooserDialog AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog |
class GObject o => IsAppChooserDialog o Source #
Type class for types which can be safely cast to AppChooserDialog
, for instance with toAppChooserDialog
.
Instances
(GObject a, (UnknownAncestorError AppChooserDialog a :: Constraint)) => IsAppChooserDialog a Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog | |
IsAppChooserDialog AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog |
toAppChooserDialog :: (MonadIO m, IsAppChooserDialog o) => o -> m AppChooserDialog Source #
Cast to AppChooserDialog
, for types for which this is known to be safe. For general casts, use castTo
.
noAppChooserDialog :: Maybe AppChooserDialog Source #
A convenience alias for Nothing
:: Maybe
AppChooserDialog
.
Methods
getHeading
appChooserDialogGetHeading Source #
:: (HasCallStack, MonadIO m, IsAppChooserDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: the text to display at the top of the dialog, or |
Returns the text to display at the top of the dialog.
getWidget
appChooserDialogGetWidget Source #
:: (HasCallStack, MonadIO m, IsAppChooserDialog a) | |
=> a |
|
-> m Widget | Returns: the |
Returns the AppChooserWidget
of this dialog.
Since: 3.0
new
:: (HasCallStack, MonadIO m, IsWindow a, IsFile b) | |
=> Maybe a | |
-> [DialogFlags] |
|
-> b |
|
-> m AppChooserDialog | Returns: a newly created |
Creates a new AppChooserDialog
for the provided File
,
to allow the user to select an application for it.
Since: 3.0
newForContentType
appChooserDialogNewForContentType Source #
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> Maybe a | |
-> [DialogFlags] |
|
-> Text |
|
-> m AppChooserDialog | Returns: a newly created |
Creates a new AppChooserDialog
for the provided content type,
to allow the user to select an application for it.
Since: 3.0
setHeading
appChooserDialogSetHeading Source #
:: (HasCallStack, MonadIO m, IsAppChooserDialog a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the text to display at the top of the dialog. If the heading is not set, the dialog displays a default text.
Properties
gfile
The GFile used by the AppChooserDialog
.
The dialog's AppChooserWidget
content type will be guessed from the
file, if present.
constructAppChooserDialogGfile :: (IsAppChooserDialog o, IsFile a) => a -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “gfile
” property. This is rarely needed directly, but it is used by new
.
getAppChooserDialogGfile :: (MonadIO m, IsAppChooserDialog o) => o -> m (Maybe File) Source #
Get the value of the “gfile
” property.
When overloading is enabled, this is equivalent to
get
appChooserDialog #gfile
heading
The text to show at the top of the dialog. The string may contain Pango markup.
constructAppChooserDialogHeading :: IsAppChooserDialog o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “heading
” property. This is rarely needed directly, but it is used by new
.
getAppChooserDialogHeading :: (MonadIO m, IsAppChooserDialog o) => o -> m (Maybe Text) Source #
Get the value of the “heading
” property.
When overloading is enabled, this is equivalent to
get
appChooserDialog #heading
setAppChooserDialogHeading :: (MonadIO m, IsAppChooserDialog o) => o -> Text -> m () Source #
Set the value of the “heading
” property.
When overloading is enabled, this is equivalent to
set
appChooserDialog [ #heading:=
value ]