Hoogle Search
Within LTS Haskell 24.70 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fileChooserSetAction :: (HasCallStack, MonadIO m, IsFileChooser a) => a -> FileChooserAction -> m ()gi-gtk3 GI.Gtk.Interfaces.FileChooser Sets the type of operation that the chooser is performing; the user interface is adapted to suit the selected action. For example, an option to create a new folder might be shown if the action is FileChooserActionSave but not if the action is FileChooserActionOpen. Since: 2.4
fileChooserSetChoice :: (HasCallStack, MonadIO m, IsFileChooser a) => a -> Text -> Text -> m ()gi-gtk3 GI.Gtk.Interfaces.FileChooser Selects an option in a 'choice' that has been added with fileChooserAddChoice. For a boolean choice, the possible options are "true" and "false". Since: 3.22
fileChooserSetCreateFolders :: (HasCallStack, MonadIO m, IsFileChooser a) => a -> Bool -> m ()gi-gtk3 GI.Gtk.Interfaces.FileChooser Sets whether file choser will offer to create new folders. This is only relevant if the action is not set to be FileChooserActionOpen. Since: 2.18
fileChooserSetCurrentFolder :: (HasCallStack, MonadIO m, IsFileChooser a) => a -> [Char] -> m Boolgi-gtk3 GI.Gtk.Interfaces.FileChooser Sets the current folder for chooser from a local filename. The user will be shown the full contents of the current folder, plus user interface elements for navigating to other folders. In general, you should not use this function. See the [section on setting up a file chooser dialog][gtkfilechooserdialog-setting-up] for the rationale behind this. Since: 2.4
-
gi-gtk3 GI.Gtk.Interfaces.FileChooser Sets the current folder for chooser from a File. Internal function, see fileChooserSetCurrentFolderUri. Since: 2.14
fileChooserSetCurrentFolderUri :: (HasCallStack, MonadIO m, IsFileChooser a) => a -> Text -> m Boolgi-gtk3 GI.Gtk.Interfaces.FileChooser Sets the current folder for chooser from an URI. The user will be shown the full contents of the current folder, plus user interface elements for navigating to other folders. In general, you should not use this function. See the [section on setting up a file chooser dialog][gtkfilechooserdialog-setting-up] for the rationale behind this. Since: 2.4
fileChooserSetCurrentName :: (HasCallStack, MonadIO m, IsFileChooser a) => a -> Text -> m ()gi-gtk3 GI.Gtk.Interfaces.FileChooser Sets the current name in the file selector, as if entered by the user. Note that the name passed in here is a UTF-8 string rather than a filename. This function is meant for such uses as a suggested name in a “Save As...” dialog. You can pass “Untitled.doc” or a similarly suitable suggestion for the name. If you want to preselect a particular existing file, you should use fileChooserSetFilename or fileChooserSetUri instead. Please see the documentation for those functions for an example of using fileChooserSetCurrentName as well. Since: 2.4
-
gi-gtk3 GI.Gtk.Interfaces.FileChooser Sets whether a file chooser in FileChooserActionSave mode will present a confirmation dialog if the user types a file name that already exists. This is False by default. If set to True, the chooser will emit the FileChooser::confirmOverwrite signal when appropriate. If all you need is the stock confirmation dialog, set this property to True. You can override the way confirmation is done by actually handling the FileChooser::confirmOverwrite signal; please refer to its documentation for the details. Since: 2.8
-
gi-gtk3 GI.Gtk.Interfaces.FileChooser Sets an application-supplied widget to provide extra options to the user. Since: 2.4
fileChooserSetFile :: (HasCallStack, MonadIO m, IsFileChooser a, IsFile b) => a -> b -> m ()gi-gtk3 GI.Gtk.Interfaces.FileChooser Sets file as the current filename for the file chooser, by changing to the file’s parent folder and actually selecting the file in list. If the chooser is in FileChooserActionSave mode, the file’s base name will also appear in the dialog’s file name entry. If the file name isn’t in the current folder of chooser, then the current folder of chooser will be changed to the folder containing filename. This is equivalent to a sequence of fileChooserUnselectAll followed by fileChooserSelectFilename. Note that the file must exist, or nothing will be done except for the directory change. If you are implementing a save dialog, you should use this function if you already have a file name to which the user may save; for example, when the user opens an existing file and then does Save As... If you don’t have a file name already — for example, if the user just created a new file and is saving it for the first time, do not call this function. Instead, use something similar to this:
C code
if (document_is_new) { // the user just created a new document gtk_file_chooser_set_current_folder_file (chooser, default_file_for_saving); gtk_file_chooser_set_current_name (chooser, "Untitled document"); } else { // the user edited an existing document gtk_file_chooser_set_file (chooser, existing_file); }Since: 2.14