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 = None, parent = None, name = None, caption = None, dirOnly = 1, resolveSymlinks = 1)

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

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


getOpenFileName

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

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

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


getOpenFileNames

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

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

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


getSaveFileName

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

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

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