eric4.KdeQt.KQFileDialog
Compatibility module to use the KDE File Dialog instead of the Qt File Dialog.
Global Attributes
Classes
Functions
__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)
__kdeGetExistingDirectory
__kdeGetExistingDirectory(parent = None, caption = QString(), dir_ = QString(), options = QFileDialog.Options(QFileDialog.ShowDirsOnly))
Module function to get the name of a directory.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of selected directory (QString)
__kdeGetOpenFileName
__kdeGetOpenFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = QFileDialog.Options())
Module function to get the name of a file for opening it.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of file to be opened (QString)
__kdeGetOpenFileNames
__kdeGetOpenFileNames(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = QFileDialog.Options())
Module function to get a list of names of files for opening.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
list of filenames to be opened (QStringList)
__kdeGetSaveFileName
__kdeGetSaveFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = QFileDialog.Options())
Module function to get the name of a file for saving it.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of file to be saved (QString)
__qtGetExistingDirectory
__qtGetExistingDirectory(parent = None, caption = QString(), dir_ = QString(), options = QFileDialog.Options(QFileDialog.ShowDirsOnly))
Module function to get the name of a directory.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of selected directory (QString)
__qtGetOpenFileName
__qtGetOpenFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = QFileDialog.Options())
Module function to get the name of a file for opening it.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of file to be opened (QString)
__qtGetOpenFileNames
__qtGetOpenFileNames(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = QFileDialog.Options())
Module function to get a list of names of files for opening.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
list of filenames to be opened (QStringList)
__qtGetSaveFileName
__qtGetSaveFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = QFileDialog.Options())
Module function to get the name of a file for saving it.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of file to be saved (QString)
__qtReorderFilter
__qtReorderFilter(filter, selectedFilter = None)
Private function to reorder the file filter to cope with a KDE issue introduced
by distributors usage of KDE file dialogs.
- filter
-
Qt file filter (QString or string)
- selectedFilter
-
this is set to the selected filter (QString or string)
- Returns:
-
the rearranged Qt file filter (QString)
__workingDirectory
__workingDirectory(path_)
Private function to determine working directory for the file dialog.
- path_
-
path of the intended working directory (string or QString)
- Returns:
-
calculated working directory (QString)
getExistingDirectory
getExistingDirectory(parent = None, caption = QString(), dir_ = QString(), options = QFileDialog.Options(QFileDialog.ShowDirsOnly))
Module function to get the name of a directory.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of selected directory (QString)
getOpenFileName
getOpenFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = QFileDialog.Options())
Module function to get the name of a file for opening it.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of file to be opened (QString)
getOpenFileNames
getOpenFileNames(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = QFileDialog.Options())
Module function to get a list of names of files for opening.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
list of filenames to be opened (QStringList)
getSaveFileName
getSaveFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = QFileDialog.Options())
Module function to get the name of a file for saving it.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of file to be saved (QString)