eric5.E5Gui.E5FileDialog

Module implementing alternative functions for the QFileDialog static methods to cope with dustributor's usage of KDE wrapper dialogs for Qt file dialogs.

Global Attributes

None

Classes

None

Functions

__reorderFilter Private function to reorder the file filter to cope with a KDE issue introduced by distributor's usage of KDE file dialogs.
getOpenFileNameAndFilter Module function to get the name of a file for opening it and the selected file name filter.
getOpenFileNamesAndFilter Module function to get a list of names of files for opening and the selected file name filter.
getSaveFileNameAndFilter Module function to get the name of a file for saving it and the selected file name filter.


__reorderFilter

__reorderFilter(filter, initialFilter = "")

Private function to reorder the file filter to cope with a KDE issue introduced by distributor's usage of KDE file dialogs.

filter
Qt file filter (string)
initialFilter
initial filter (string)
Returns:
the rearranged Qt file filter (string)
Up


getOpenFileNameAndFilter

getOpenFileNameAndFilter(parent = None, caption = "", directory = "", filter = "", initialFilter = "", options = QFileDialog.Options())

Module function to get the name of a file for opening it and the selected file name filter.

parent
parent widget of the dialog (QWidget)
caption
window title of the dialog (string)
directory
working directory of the dialog (string)
filter
filter string for the dialog (string)
initialFilter
initial filter for the dialog (string)
options
various options for the dialog (QFileDialog.Options)
Returns:
name of file to be opened and selected filter (string, string)
Up


getOpenFileNamesAndFilter

getOpenFileNamesAndFilter(parent = None, caption = "", directory = "", filter = "", initialFilter = "", options = QFileDialog.Options())

Module function to get a list of names of files for opening and the selected file name filter.

parent
parent widget of the dialog (QWidget)
caption
window title of the dialog (string)
directory
working directory of the dialog (string)
filter
filter string for the dialog (string)
initialFilter
initial filter for the dialog (string)
options
various options for the dialog (QFileDialog.Options)
Returns:
list of file names to be opened and selected filter (list of string, string)
Up


getSaveFileNameAndFilter

getSaveFileNameAndFilter(parent = None, caption = "", directory = "", filter = "", initialFilter = "", options = QFileDialog.Options())

Module function to get the name of a file for saving it and the selected file name filter.

parent
parent widget of the dialog (QWidget)
caption
window title of the dialog (string)
directory
working directory of the dialog (string)
filter
filter string for the dialog (string)
initialFilter
initial filter for the dialog (string)
options
various options for the dialog (QFileDialog.Options)
Returns:
name of file to be saved and selected filter (string, string)
Up