eric4.KdeQt.KQFileDialog

Compatibility module to use the KDE File Dialog instead of the Qt File Dialog.

Classes

None

Functions

__qtGetExistingDirectory Private function to get the name of a directory.
__qtGetOpenFileName Private function to get the name of a file for opening it.
__qtGetOpenFileNames Private function to get a list of names of files for opening.
__qtGetSaveFileName Private function to get the name of a file for saving it.
__qtIconProvider Function to return the previously stored icon provider.
__qtSetIconProvider Function to set the icon provider.
_initialSelection Protected module helper function to determine the initial selection for a file dialog.
_workingDirectory Protected module helper function to determine the working directory for a file dialog.
getExistingDirectory Module function to get the name of a directory.
getOpenFileName Module function to get the name of a file for opening it.
getOpenFileNames Module function to get a list of names of files for opening.
getSaveFileName Module function to get the name of a file for saving it.
iconProvider Function to return the previously stored icon provider.
setIconProvider Function to set the icon provider.


__qtGetExistingDirectory

__qtGetExistingDirectory(parent = None, caption = QString(), dir_ = QString(), options = QFileDialog.Options(QFileDialog.ShowDirsOnly))

Private 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)
Up


__qtGetOpenFileName

__qtGetOpenFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = 0)

Private 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)
Up


__qtGetOpenFileNames

__qtGetOpenFileNames(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = 0)

Private 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)
Up


__qtGetSaveFileName

__qtGetSaveFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = 0)

Private 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)
Up


__qtIconProvider

__qtIconProvider()

Function to return the previously stored icon provider.

Returns:
QFileIconProvider
Up


__qtSetIconProvider

__qtSetIconProvider(provider)

Function to set the icon provider.

provider
QFileIconProvider
Up


_initialSelection

_initialSelection(path)

Protected module helper function to determine the initial selection for a file dialog.

path
pathname to determine initial selection from (QString)
Returns:
initial selection for the dialog (QString)
Up


_workingDirectory

_workingDirectory(path)

Protected module helper function to determine the working directory for a file dialog.

path
pathname to determine working directory from (QString)
Returns:
working directory for the dialog (QString)
Up


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)
Up


getOpenFileName

getOpenFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = 0)

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)
Up


getOpenFileNames

getOpenFileNames(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = 0)

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)
Up


getSaveFileName

getSaveFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = 0)

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)
Up


iconProvider

iconProvider()

Function to return the previously stored icon provider.

Returns:
QFileIconProvider
Up


setIconProvider

setIconProvider(provider)

Function to set the icon provider.

provider
QFileIconProvider
Up