![]() |
KVIrc 5.2.6
Developer APIs
|
File dialog class. More...
#include <KviFileDialog.h>
Public Member Functions | |
KviFileDialog (const QString &szDirName, const QString &szFilter=QString(), QWidget *pParent=nullptr, const char *name=nullptr, bool bModal=false) | |
Constructs the file dialog object. | |
~KviFileDialog () | |
Destroys the file dialog object. | |
![]() | |
KviTalFileDialog (const QString &szDirName, const QString &szFilter=QString(), QWidget *pParent=nullptr, const char *pcName=nullptr, bool bModal=false) | |
Constructs the filedialog object. | |
void | setFileMode (FileMode m) |
Sets the file mode. | |
~KviTalFileDialog () | |
Destroys the filedialog object. | |
Static Public Member Functions | |
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. | |
Additional Inherited Members | |
![]() | |
enum | FileMode { AnyFile , ExistingFile , ExistingFiles , Directory , DirectoryOnly } |
Indicate what the user may select in the file dialog. More... | |
File dialog class.
KviFileDialog::KviFileDialog | ( | const QString & | szDirName, |
const QString & | szFilter = QString(), | ||
QWidget * | pParent = nullptr, | ||
const char * | name = nullptr, | ||
bool | bModal = false ) |
Constructs the file dialog object.
szDirName | The directory where to use the dialog |
szFilter | The filter to use |
pParent | The parent widget |
name | The name of the dialog |
bModal | Whether to have a modal behaviour |
References KviIconManager::Folder, g_pIconManager, and KviTalFileDialog::KviTalFileDialog().
Referenced by askForDirectoryName(), askForOpenFileName(), askForOpenFileNames(), askForSaveFileName(), and KviKvsCallbackFileDialog::KviKvsCallbackFileDialog().
|
default |
Destroys the file dialog object.
References askForDirectoryName(), askForOpenFileName(), askForOpenFileNames(), askForSaveFileName(), and szBuffer.
|
static |
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 |
References KviFileUtils::adjustFilePath(), KviTalFileDialog::DirectoryOnly, KviFileDialog(), KviTalFileDialog::setFileMode(), and szBuffer.
Referenced by LogViewWindow::exportLog(), AliasEditorWidget::exportSelectionInSinglesFiles(), ClassEditorWidget::exportSelectionInSinglesFiles(), KviDirectorySelector::select(), and ~KviFileDialog().
|
static |
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 |
References KviFileUtils::adjustFilePath(), KviTalFileDialog::ExistingFile, KviFileDialog(), KviTalFileDialog::setFileMode(), and szBuffer.
Referenced by SharedFileEditDialog::browse(), KviIrcView::chooseBackground(), AvatarSelectionDialog::chooseFileClicked(), KviAsyncAvatarSelectionDialog::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(), KviMircServersIniImport::start(), and ~KviFileDialog().
|
static |
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 |
References KviTalFileDialog::ExistingFiles, KviFileDialog(), KviTalFileDialog::setFileMode(), and szBuffer.
Referenced by DccBroker::rsendAskForFileName(), DccBroker::sendFileManage(), and ~KviFileDialog().
|
static |
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 |
References __tr2qs, KviFileUtils::adjustFilePath(), KviTalFileDialog::AnyFile, KviFileUtils::fileExists(), KviFileDialog(), 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(), theme_kvs_cmd_screenshot(), and ~KviFileDialog().