gi-gtk-3.0.38: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Objects.FileChooserWidget

Description

FileChooserWidget is a widget for choosing files. It exposes the FileChooser interface, and you should use the methods of this interface to interact with the widget.

CSS nodes

GtkFileChooserWidget has a single CSS node with name filechooser.

Synopsis

Exported types

class (GObject o, IsDescendantOf FileChooserWidget o) => IsFileChooserWidget o Source #

Type class for types which can be safely cast to FileChooserWidget, for instance with toFileChooserWidget.

Instances

Instances details
(GObject o, IsDescendantOf FileChooserWidget o) => IsFileChooserWidget o Source # 
Instance details

Defined in GI.Gtk.Objects.FileChooserWidget

toFileChooserWidget :: (MonadIO m, IsFileChooserWidget o) => o -> m FileChooserWidget Source #

Cast to FileChooserWidget, 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

Expand

Methods

activate, add, addAccelerator, addChild, addChoice, addDeviceEvents, addEvents, addFilter, addMnemonicLabel, addShortcutFolder, addShortcutFolderUri, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, destroy, destroyed, deviceIsShadowed, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, ensureStyle, errorBell, event, forall, forceFloating, foreach, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listFilters, listMnemonicLabels, listShortcutFolderUris, listShortcutFolders, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, packEnd, packStart, parserFinished, path, propagateDraw, queryChildPacking, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, remove, removeAccelerator, removeChoice, removeFilter, removeMnemonicLabel, removeShortcutFolder, removeShortcutFolderUri, removeTickCallback, renderIcon, renderIconPixbuf, reorderChild, reparent, resetRcStyles, resetStyle, resizeChildren, runDispose, selectAll, selectFile, selectFilename, selectUri, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unselectAll, unselectFile, unselectFilename, unselectUri, unsetFocusChain, unsetStateFlags, watchClosure.

Getters

getAccessible, getAction, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getBaselinePosition, getBorderWidth, getCanDefault, getCanFocus, getCenterWidget, getChildRequisition, getChildVisible, getChildren, getChoice, getClip, getClipboard, getCompositeName, getCreateFolders, getCurrentFolder, getCurrentFolderFile, getCurrentFolderUri, getCurrentName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoOverwriteConfirmation, getDoubleBuffered, getEvents, getExtraWidget, getFile, getFilename, getFilenames, getFiles, getFilter, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getHomogeneous, getInternalChild, getLocalOnly, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getOrientation, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getPreviewFile, getPreviewFilename, getPreviewUri, getPreviewWidget, getPreviewWidgetActive, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizeMode, getRootWindow, getScaleFactor, getScreen, getSelectMultiple, getSensitive, getSettings, getShowHidden, getSizeRequest, getSpacing, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getUri, getUris, getUsePreviewLabel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.

Setters

setAccelPath, setAction, setAllocation, setAppPaintable, setBaselinePosition, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setCenterWidget, setChildPacking, setChildVisible, setChoice, setClip, setCompositeName, setCreateFolders, setCurrentFolder, setCurrentFolderFile, setCurrentFolderUri, setCurrentName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoOverwriteConfirmation, setDoubleBuffered, setEvents, setExtraWidget, setFile, setFilename, setFilter, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setHomogeneous, setLocalOnly, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setOrientation, setParent, setParentWindow, setPreviewWidget, setPreviewWidgetActive, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setSelectMultiple, setSensitive, setShowHidden, setSizeRequest, setSpacing, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setUri, setUsePreviewLabel, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.

new

fileChooserWidgetNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FileChooserAction

action: Open or save mode for the widget

-> m FileChooserWidget

Returns: a new FileChooserWidget

Creates a new FileChooserWidget. This is a file chooser widget that can be embedded in custom windows, and it is the same widget that is used by FileChooserDialog.

Since: 2.4

Properties

searchMode

No description available in the introspection data.

constructFileChooserWidgetSearchMode :: (IsFileChooserWidget o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “search-mode” property. This is rarely needed directly, but it is used by new.

getFileChooserWidgetSearchMode :: (MonadIO m, IsFileChooserWidget o) => o -> m Bool Source #

Get the value of the “search-mode” property. When overloading is enabled, this is equivalent to

get fileChooserWidget #searchMode

setFileChooserWidgetSearchMode :: (MonadIO m, IsFileChooserWidget o) => o -> Bool -> m () Source #

Set the value of the “search-mode” property. When overloading is enabled, this is equivalent to

set fileChooserWidget [ #searchMode := value ]

subtitle

No description available in the introspection data.

getFileChooserWidgetSubtitle :: (MonadIO m, IsFileChooserWidget o) => o -> m (Maybe Text) Source #

Get the value of the “subtitle” property. When overloading is enabled, this is equivalent to

get fileChooserWidget #subtitle

Signals

desktopFolder

type FileChooserWidgetDesktopFolderCallback = IO () Source #

The desktopFolder signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.

This is used to make the file chooser show the user's Desktop folder in the file list.

The default binding for this signal is Alt + D.

afterFileChooserWidgetDesktopFolder :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetDesktopFolderCallback) -> m SignalHandlerId Source #

Connect a signal handler for the desktopFolder signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after fileChooserWidget #desktopFolder callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onFileChooserWidgetDesktopFolder :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetDesktopFolderCallback) -> m SignalHandlerId Source #

Connect a signal handler for the desktopFolder signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on fileChooserWidget #desktopFolder callback

downFolder

type FileChooserWidgetDownFolderCallback = IO () Source #

The downFolder signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.

This is used to make the file chooser go to a child of the current folder in the file hierarchy. The subfolder that will be used is displayed in the path bar widget of the file chooser. For example, if the path bar is showing "/foo/bar/baz", with bar currently displayed, then this will cause the file chooser to switch to the "baz" subfolder.

The default binding for this signal is Alt + Down.

afterFileChooserWidgetDownFolder :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetDownFolderCallback) -> m SignalHandlerId Source #

Connect a signal handler for the downFolder signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after fileChooserWidget #downFolder callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onFileChooserWidgetDownFolder :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetDownFolderCallback) -> m SignalHandlerId Source #

Connect a signal handler for the downFolder signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on fileChooserWidget #downFolder callback

homeFolder

type FileChooserWidgetHomeFolderCallback = IO () Source #

The homeFolder signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.

This is used to make the file chooser show the user's home folder in the file list.

The default binding for this signal is Alt + Home.

afterFileChooserWidgetHomeFolder :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetHomeFolderCallback) -> m SignalHandlerId Source #

Connect a signal handler for the homeFolder signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after fileChooserWidget #homeFolder callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onFileChooserWidgetHomeFolder :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetHomeFolderCallback) -> m SignalHandlerId Source #

Connect a signal handler for the homeFolder signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on fileChooserWidget #homeFolder callback

locationPopup

type FileChooserWidgetLocationPopupCallback Source #

Arguments

 = Text

path: a string that gets put in the text entry for the file name

-> IO () 

The locationPopup signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.

This is used to make the file chooser show a "Location" prompt which the user can use to manually type the name of the file he wishes to select.

The default bindings for this signal are Control + L with a path string of "" (the empty string). It is also bound to / with a path string of "/" (a slash): this lets you type / and immediately type a path name. On Unix systems, this is bound to ~ (tilde) with a path string of "~" itself for access to home directories.

afterFileChooserWidgetLocationPopup :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetLocationPopupCallback) -> m SignalHandlerId Source #

Connect a signal handler for the locationPopup signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after fileChooserWidget #locationPopup callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onFileChooserWidgetLocationPopup :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetLocationPopupCallback) -> m SignalHandlerId Source #

Connect a signal handler for the locationPopup signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on fileChooserWidget #locationPopup callback

locationPopupOnPaste

type FileChooserWidgetLocationPopupOnPasteCallback = IO () Source #

The locationPopupOnPaste signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.

This is used to make the file chooser show a "Location" prompt when the user pastes into a FileChooserWidget.

The default binding for this signal is Control + V.

afterFileChooserWidgetLocationPopupOnPaste :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetLocationPopupOnPasteCallback) -> m SignalHandlerId Source #

Connect a signal handler for the locationPopupOnPaste signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after fileChooserWidget #locationPopupOnPaste callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onFileChooserWidgetLocationPopupOnPaste :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetLocationPopupOnPasteCallback) -> m SignalHandlerId Source #

Connect a signal handler for the locationPopupOnPaste signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on fileChooserWidget #locationPopupOnPaste callback

locationTogglePopup

type FileChooserWidgetLocationTogglePopupCallback = IO () Source #

The locationTogglePopup signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.

This is used to toggle the visibility of a "Location" prompt which the user can use to manually type the name of the file he wishes to select.

The default binding for this signal is Control + L.

afterFileChooserWidgetLocationTogglePopup :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetLocationTogglePopupCallback) -> m SignalHandlerId Source #

Connect a signal handler for the locationTogglePopup signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after fileChooserWidget #locationTogglePopup callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onFileChooserWidgetLocationTogglePopup :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetLocationTogglePopupCallback) -> m SignalHandlerId Source #

Connect a signal handler for the locationTogglePopup signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on fileChooserWidget #locationTogglePopup callback

placesShortcut

type FileChooserWidgetPlacesShortcutCallback = IO () Source #

The placesShortcut signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.

This is used to move the focus to the places sidebar.

The default binding for this signal is Alt + P.

afterFileChooserWidgetPlacesShortcut :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetPlacesShortcutCallback) -> m SignalHandlerId Source #

Connect a signal handler for the placesShortcut signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after fileChooserWidget #placesShortcut callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onFileChooserWidgetPlacesShortcut :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetPlacesShortcutCallback) -> m SignalHandlerId Source #

Connect a signal handler for the placesShortcut signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on fileChooserWidget #placesShortcut callback

quickBookmark

type FileChooserWidgetQuickBookmarkCallback Source #

Arguments

 = Int32

bookmarkIndex: the number of the bookmark to switch to

-> IO () 

The quickBookmark signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.

This is used to make the file chooser switch to the bookmark specified in the bookmarkIndex parameter. For example, if you have three bookmarks, you can pass 0, 1, 2 to this signal to switch to each of them, respectively.

The default binding for this signal is Alt + 1, Alt + 2, etc. until Alt + 0. Note that in the default binding, that Alt + 1 is actually defined to switch to the bookmark at index 0, and so on successively; Alt + 0 is defined to switch to the bookmark at index 10.

afterFileChooserWidgetQuickBookmark :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetQuickBookmarkCallback) -> m SignalHandlerId Source #

Connect a signal handler for the quickBookmark signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after fileChooserWidget #quickBookmark callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onFileChooserWidgetQuickBookmark :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetQuickBookmarkCallback) -> m SignalHandlerId Source #

Connect a signal handler for the quickBookmark signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on fileChooserWidget #quickBookmark callback

recentShortcut

type FileChooserWidgetRecentShortcutCallback = IO () Source #

The recentShortcut signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.

This is used to make the file chooser show the Recent location.

The default binding for this signal is Alt + R.

afterFileChooserWidgetRecentShortcut :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetRecentShortcutCallback) -> m SignalHandlerId Source #

Connect a signal handler for the recentShortcut signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after fileChooserWidget #recentShortcut callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onFileChooserWidgetRecentShortcut :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetRecentShortcutCallback) -> m SignalHandlerId Source #

Connect a signal handler for the recentShortcut signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on fileChooserWidget #recentShortcut callback

searchShortcut

type FileChooserWidgetSearchShortcutCallback = IO () Source #

The searchShortcut signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.

This is used to make the file chooser show the search entry.

The default binding for this signal is Alt + S.

afterFileChooserWidgetSearchShortcut :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetSearchShortcutCallback) -> m SignalHandlerId Source #

Connect a signal handler for the searchShortcut signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after fileChooserWidget #searchShortcut callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onFileChooserWidgetSearchShortcut :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetSearchShortcutCallback) -> m SignalHandlerId Source #

Connect a signal handler for the searchShortcut signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on fileChooserWidget #searchShortcut callback

showHidden

type FileChooserWidgetShowHiddenCallback = IO () Source #

The showHidden signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.

This is used to make the file chooser display hidden files.

The default binding for this signal is Control + H.

afterFileChooserWidgetShowHidden :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetShowHiddenCallback) -> m SignalHandlerId Source #

Connect a signal handler for the showHidden signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after fileChooserWidget #showHidden callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onFileChooserWidgetShowHidden :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetShowHiddenCallback) -> m SignalHandlerId Source #

Connect a signal handler for the showHidden signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on fileChooserWidget #showHidden callback

upFolder

type FileChooserWidgetUpFolderCallback = IO () Source #

The upFolder signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.

This is used to make the file chooser go to the parent of the current folder in the file hierarchy.

The default binding for this signal is Alt + Up.

afterFileChooserWidgetUpFolder :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetUpFolderCallback) -> m SignalHandlerId Source #

Connect a signal handler for the upFolder signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after fileChooserWidget #upFolder callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onFileChooserWidgetUpFolder :: (IsFileChooserWidget a, MonadIO m) => a -> ((?self :: a) => FileChooserWidgetUpFolderCallback) -> m SignalHandlerId Source #

Connect a signal handler for the upFolder signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on fileChooserWidget #upFolder callback