eric3.KdeQt.KQFileDialog

Compatibility module to use the KDE File Dialog instead of the Qt File Dialog.

Classes

None

Functions

__convertFilter Private function to convert a Qt file filter to a KDE file filter.
getExistingDirectory Function to open a modal dialog to get the name of an existing file.
getOpenFileName Function to open a modal dialog to get the name of an existing file.
getOpenFileNames Function to open a modal dialog to get the name of an existing file.
getSaveFileName Function to open a modal dialog to get the name of an existing file.
iconProvider Function to return the previously stored icon provider.
setIconProvider Function to set the icon provider.


__convertFilter

__convertFilter(filter, selectedFilter = None)

Private function to convert a Qt file filter to a KDE file filter.

filter
Qt file filter (QString or string)
selectedFilter
this is set to the selected filter
Returns:
the corresponding KDE file filter (QString)
Up


getExistingDirectory

getExistingDirectory(startWith = QString.null, parent = None, name = None, caption = QString.null, dirOnly = 1, resolveSymlinks = 1)

Function to open a modal dialog to get the name of an existing file.

startWith
the file dialogs working directory. If this includes a file name, the file will be selected.
parent
parent widget of the dialog
name
name of the dialog
caption
the caption of the dialog
dirOnly
flag indicating, whether only directories should be shown
resolveSymlinks
flag to indicate, whether symbolic links should be followed
Up


getOpenFileName

getOpenFileName(startWith = QString.null, filter = QString.null, parent = None, name = None, caption = QString.null, selectedFilter = None, resolveSymlinks = 1)

Function to open a modal dialog to get the name of an existing file.

startWith
the file dialogs working directory. If this includes a file name, the file will be selected.
filter
only files matching the selected filter will be shown
parent
parent widget of the dialog
name
name of the dialog
caption
the caption of the dialog
selectedFilter
this is set to the selected filter
resolveSymlinks
flag to indicate, whether symbolic links should be followed
Up


getOpenFileNames

getOpenFileNames(filter = QString.null, startWith = QString.null, parent = None, name = None, caption = QString.null, selectedFilter = None, resolveSymlinks = 1)

Function to open a modal dialog to get the name of an existing file.

filter
only files matching the selected filter will be shown
startWith
the file dialogs working directory. If this includes a file name, the file will be selected.
parent
parent widget of the dialog
name
name of the dialog
caption
the caption of the dialog
selectedFilter
this is set to the selected filter
resolveSymlinks
flag to indicate, whether symbolic links should be followed
Up


getSaveFileName

getSaveFileName(startWith = QString.null, filter = QString.null, parent = None, name = None, caption = QString.null, selectedFilter = None, resolveSymlinks = 1)

Function to open a modal dialog to get the name of an existing file.

startWith
the file dialogs working directory. If this includes a file name, the file will be selected.
filter
only files matching the selected filter will be shown
parent
parent widget of the dialog
name
name of the dialog
caption
the caption of the dialog
selectedFilter
this is set to the selected filter
resolveSymlinks
flag to indicate, whether symbolic links should be followed
Up


iconProvider

iconProvider()

Function to return the previously stored icon provider.

Returns:
QFileIconProvider
Up


setIconProvider

setIconProvider(provider)

Function to set the icon provider.

This variant just stores the icon provider. KDE has it's own mechanisms built in.

provider
QFileIconProvider
Up