eric3.KdeQt.KQFileDialog
Compatibility module to use the KDE File Dialog instead of the Qt File Dialog.
Classes
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)
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.
- 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.
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.
- 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.
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.
- 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.
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.
- 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.
iconProvider
iconProvider()
Function to return the previously stored icon provider.
- Returns:
-
QFileIconProvider
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