eric4.KdeQt.KQFileDialog
Compatibility module to use the KDE File Dialog instead of the Qt File Dialog.
Global Attributes
__qtGetExistingDirectory |
__qtGetOpenFileName |
__qtGetOpenFileNames |
__qtGetSaveFileName |
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)
__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)