Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Filter = Filter {
- name :: Text
- fileTypes :: [FilterFileType]
- data FilterFileType
- data ChoiceCombo = ChoiceCombo {
- id :: Text
- label_ :: Text
- choices :: [ChoiceComboOption]
- defaultChoiceId :: Text
- data ChoiceComboOption = ChoiceComboOption {}
- data ChoiceComboSelection = ChoiceComboSelection {}
- data OpenFileOptions = OpenFileOptions {}
- data OpenFileResults = OpenFileResults {
- uris :: [OsPath]
- choices :: Maybe [ChoiceComboSelection]
- currentFilter :: Maybe Filter
- openFile :: Client -> OpenFileOptions -> IO (Request OpenFileResults)
- data SaveFileOptions = SaveFileOptions {
- parentWindow :: Maybe Text
- title :: Maybe Text
- acceptLabel :: Maybe Text
- modal :: Maybe Bool
- filters :: Maybe [Filter]
- currentFilter :: Maybe Filter
- choices :: Maybe [ChoiceCombo]
- currentName :: Maybe Text
- currentFolder :: Maybe OsPath
- currentFile :: Maybe OsPath
- data SaveFileResults = SaveFileResults {
- uris :: [OsPath]
- choices :: Maybe [ChoiceComboSelection]
- currentFilter :: Maybe Filter
- saveFile :: Client -> SaveFileOptions -> IO (Request SaveFileResults)
Common Types
Filter | |
|
data FilterFileType Source #
Instances
Show FilterFileType Source # | |
Defined in Desktop.Portal.FileChooser showsPrec :: Int -> FilterFileType -> ShowS # show :: FilterFileType -> String # showList :: [FilterFileType] -> ShowS # | |
Eq FilterFileType Source # | |
Defined in Desktop.Portal.FileChooser (==) :: FilterFileType -> FilterFileType -> Bool # (/=) :: FilterFileType -> FilterFileType -> Bool # |
data ChoiceCombo Source #
ChoiceCombo | |
|
Instances
Show ChoiceCombo Source # | |
Defined in Desktop.Portal.FileChooser showsPrec :: Int -> ChoiceCombo -> ShowS # show :: ChoiceCombo -> String # showList :: [ChoiceCombo] -> ShowS # | |
Eq ChoiceCombo Source # | |
Defined in Desktop.Portal.FileChooser (==) :: ChoiceCombo -> ChoiceCombo -> Bool # (/=) :: ChoiceCombo -> ChoiceCombo -> Bool # |
data ChoiceComboOption Source #
Instances
Show ChoiceComboOption Source # | |
Defined in Desktop.Portal.FileChooser showsPrec :: Int -> ChoiceComboOption -> ShowS # show :: ChoiceComboOption -> String # showList :: [ChoiceComboOption] -> ShowS # | |
Eq ChoiceComboOption Source # | |
Defined in Desktop.Portal.FileChooser (==) :: ChoiceComboOption -> ChoiceComboOption -> Bool # (/=) :: ChoiceComboOption -> ChoiceComboOption -> Bool # |
data ChoiceComboSelection Source #
Instances
Show ChoiceComboSelection Source # | |
Defined in Desktop.Portal.FileChooser showsPrec :: Int -> ChoiceComboSelection -> ShowS # show :: ChoiceComboSelection -> String # showList :: [ChoiceComboSelection] -> ShowS # | |
Eq ChoiceComboSelection Source # | |
Defined in Desktop.Portal.FileChooser (==) :: ChoiceComboSelection -> ChoiceComboSelection -> Bool # (/=) :: ChoiceComboSelection -> ChoiceComboSelection -> Bool # |
Open File
data OpenFileOptions Source #
Instances
Show OpenFileOptions Source # | |
Defined in Desktop.Portal.FileChooser showsPrec :: Int -> OpenFileOptions -> ShowS # show :: OpenFileOptions -> String # showList :: [OpenFileOptions] -> ShowS # | |
Default OpenFileOptions Source # | |
Defined in Desktop.Portal.FileChooser def :: OpenFileOptions # | |
Eq OpenFileOptions Source # | |
Defined in Desktop.Portal.FileChooser (==) :: OpenFileOptions -> OpenFileOptions -> Bool # (/=) :: OpenFileOptions -> OpenFileOptions -> Bool # |
data OpenFileResults Source #
OpenFileResults | |
|
Instances
Show OpenFileResults Source # | |
Defined in Desktop.Portal.FileChooser showsPrec :: Int -> OpenFileResults -> ShowS # show :: OpenFileResults -> String # showList :: [OpenFileResults] -> ShowS # | |
Eq OpenFileResults Source # | |
Defined in Desktop.Portal.FileChooser (==) :: OpenFileResults -> OpenFileResults -> Bool # (/=) :: OpenFileResults -> OpenFileResults -> Bool # |
openFile :: Client -> OpenFileOptions -> IO (Request OpenFileResults) Source #
Save File
data SaveFileOptions Source #
SaveFileOptions | |
|
Instances
Show SaveFileOptions Source # | |
Defined in Desktop.Portal.FileChooser showsPrec :: Int -> SaveFileOptions -> ShowS # show :: SaveFileOptions -> String # showList :: [SaveFileOptions] -> ShowS # | |
Default SaveFileOptions Source # | |
Defined in Desktop.Portal.FileChooser def :: SaveFileOptions # | |
Eq SaveFileOptions Source # | |
Defined in Desktop.Portal.FileChooser (==) :: SaveFileOptions -> SaveFileOptions -> Bool # (/=) :: SaveFileOptions -> SaveFileOptions -> Bool # |
data SaveFileResults Source #
SaveFileResults | |
|
Instances
Show SaveFileResults Source # | |
Defined in Desktop.Portal.FileChooser showsPrec :: Int -> SaveFileResults -> ShowS # show :: SaveFileResults -> String # showList :: [SaveFileResults] -> ShowS # | |
Eq SaveFileResults Source # | |
Defined in Desktop.Portal.FileChooser (==) :: SaveFileResults -> SaveFileResults -> Bool # (/=) :: SaveFileResults -> SaveFileResults -> Bool # |
saveFile :: Client -> SaveFileOptions -> IO (Request SaveFileResults) Source #