Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
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, IsDescendantOf AppChooserDialog 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
Eq AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog (==) :: AppChooserDialog -> AppChooserDialog -> Bool # (/=) :: AppChooserDialog -> AppChooserDialog -> Bool # | |
IsGValue AppChooserDialog Source # | Convert |
Defined in GI.Gtk.Objects.AppChooserDialog toGValue :: AppChooserDialog -> IO GValue # fromGValue :: GValue -> IO AppChooserDialog # | |
GObject AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog gobjectType :: IO GType # | |
HasParentTypes AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog | |
type ParentTypes AppChooserDialog Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog type ParentTypes AppChooserDialog = '[Dialog, Window, Bin, Container, Widget, Object, ImplementorIface, AppChooser, Buildable] |
class (GObject o, IsDescendantOf AppChooserDialog o) => IsAppChooserDialog o Source #
Type class for types which can be safely cast to AppChooserDialog
, for instance with toAppChooserDialog
.
Instances
(GObject o, IsDescendantOf AppChooserDialog o) => IsAppChooserDialog o 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
Overloaded 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 ]