File dialog class.
More...
#include <KviFileDialog.h>
|
static bool | askForDirectoryName (QString &szBuffer, const QString &szCaption, const QString &szInitial, const QString &szFilter=QString(), bool bShowHidden=false, bool bShowNative=true, QWidget *pParent=nullptr) |
|
static bool | askForOpenFileName (QString &szBuffer, const QString &szCaption, const QString &szInitial=QString(), const QString &szFilter=QString(), bool bShowHidden=false, bool bShowNative=true, QWidget *pParent=nullptr) |
|
static bool | askForOpenFileNames (QStringList &szBuffer, const QString &szCaption, const QString &szInitial, const QString &szFilter=QString(), bool bShowHidden=false, bool bShowNative=true, QWidget *pParent=nullptr) |
|
static bool | askForSaveFileName (QString &szBuffer, const QString &szCaption, const QString &szInitial=QString(), const QString &szFilter=QString(), bool bShowHidden=false, bool bConfirmOverwrite=false, bool bShowNative=true, QWidget *pParent=nullptr) |
|
static QString | getExistingDirectoryPath (const QString &szDir=QString(), const QString &szCaption=QString(), QWidget *pParent=nullptr) |
| Returns an existing directory selected by the user.
|
|
◆ KviFileDialog()
KviFileDialog::KviFileDialog |
( |
const QString & |
szDirName, |
|
|
const QString & |
szFilter = QString() , |
|
|
QWidget * |
pParent = nullptr , |
|
|
const char * |
name = nullptr , |
|
|
bool |
bModal = false |
|
) |
| |
◆ ~KviFileDialog()
KviFileDialog::~KviFileDialog |
( |
| ) |
|
|
default |
Destroys the file dialog object.
◆ askForDirectoryName()
bool KviFileDialog::askForDirectoryName |
( |
QString & |
szBuffer, |
|
|
const QString & |
szCaption, |
|
|
const QString & |
szInitial, |
|
|
const QString & |
szFilter = QString() , |
|
|
bool |
bShowHidden = false , |
|
|
bool |
bShowNative = true , |
|
|
QWidget * |
pParent = nullptr |
|
) |
| |
|
static |
◆ askForOpenFileName()
bool KviFileDialog::askForOpenFileName |
( |
QString & |
szBuffer, |
|
|
const QString & |
szCaption, |
|
|
const QString & |
szInitial = QString() , |
|
|
const QString & |
szFilter = QString() , |
|
|
bool |
bShowHidden = false , |
|
|
bool |
bShowNative = true , |
|
|
QWidget * |
pParent = nullptr |
|
) |
| |
|
static |
- Parameters
-
szBuffer | The buffer where to store the data |
szCaption | The caption of the dialog |
szInitial | The initial directory |
szFilter | The filter to use |
bShowHidden | Whether to show hidden files |
bShowNative | Whether to show native dialogs |
pParent | The parent widget |
- Returns
- bool
References KviFileUtils::adjustFilePath(), KviTalFileDialog::ExistingFile, KviTalFileDialog::setFileMode(), and szBuffer.
Referenced by SharedFileEditDialog::browse(), KviIrcView::chooseBackground(), KviAsyncAvatarSelectionDialog::chooseFileClicked(), AvatarSelectionDialog::chooseFileClicked(), OptionsWidget_textIcons::chooseFromFile(), KviPixmapSelector::choosePixmap(), KviIrcViewToolWidget::filterLoad(), RegisteredUsersDialog::importClicked(), ListWindow::importList(), ThemeManagementDialog::installFromFile(), AddonManagementDialog::installScript(), KviKvsCoreSimpleCommands::KVSCSC(), OptionsWidget_messageColors::load(), ScriptEditorImplementation::loadFromFile(), KviFileSelector::select(), and KviMircServersIniImport::start().
◆ askForOpenFileNames()
bool KviFileDialog::askForOpenFileNames |
( |
QStringList & |
szBuffer, |
|
|
const QString & |
szCaption, |
|
|
const QString & |
szInitial, |
|
|
const QString & |
szFilter = QString() , |
|
|
bool |
bShowHidden = false , |
|
|
bool |
bShowNative = true , |
|
|
QWidget * |
pParent = nullptr |
|
) |
| |
|
static |
◆ askForSaveFileName()
bool KviFileDialog::askForSaveFileName |
( |
QString & |
szBuffer, |
|
|
const QString & |
szCaption, |
|
|
const QString & |
szInitial = QString() , |
|
|
const QString & |
szFilter = QString() , |
|
|
bool |
bShowHidden = false , |
|
|
bool |
bConfirmOverwrite = false , |
|
|
bool |
bShowNative = true , |
|
|
QWidget * |
pParent = nullptr |
|
) |
| |
|
static |
- Parameters
-
szBuffer | The buffer where to store the data |
szCaption | The caption of the dialog |
szInitial | The initial directory |
szFilter | The filter to use |
bShowHidden | Whether to show hidden files |
bConfirmOverwrite | Whether to avoid the check for an already existing file being overwritten |
bShowNative | Whether to show native dialogs |
pParent | The parent widget |
- Returns
- bool
References __tr2qs, KviFileUtils::adjustFilePath(), KviTalFileDialog::AnyFile, KviFileUtils::fileExists(), KviTalFileDialog::setFileMode(), and szBuffer.
Referenced by DccBroker::chooseSaveFileName(), ActionEditor::exportActions(), AliasEditorWidget::exportAliases(), EventEditor::exportAllEvents(), RawEditorWidget::exportAllEvents(), ClassEditorWidget::exportClasses(), RegisteredUsersDialog::exportClicked(), EventEditor::exportCurrentHandler(), RawEditorWidget::exportCurrentHandler(), PopupEditorWidget::exportCurrentPopup(), ListWindow::exportList(), LogViewWindow::exportLog(), PopupEditorWidget::exportPopups(), CustomizeToolBarsDialog::exportToolBar(), KviIrcViewToolWidget::filterSave(), http_kvs_complete_get(), logview_module_ctrl(), OptionsWidget_messageColors::save(), ScriptEditorImplementation::saveToFile(), KviFileSelector::select(), and theme_kvs_cmd_screenshot().
The documentation for this class was generated from the following files: