KVIrc
4.9.2
DeveloperAPIs
|
File dialog class. More...
#include <KviFileDialog.h>
Public Member Functions | |
KviFileDialog (const QString &szDirName, const QString &szFilter=QString(), QWidget *pParent=0, const char *name=0, bool bModal=false) | |
Constructs the file dialog object. More... | |
~KviFileDialog () | |
Destroys the file dialog object. More... | |
Public Member Functions inherited from KviTalFileDialog | |
KviTalFileDialog (const QString &szDirName, const QString &szFilter=QString(), QWidget *pParent=0, const char *pcName=0, bool bModal=false) | |
Constructs the filedialog object. More... | |
void | setDirectory (const QString &szDirectory) |
Sets the current directory. More... | |
void | setFileMode (FileMode m) |
Sets the file mode. More... | |
~KviTalFileDialog () | |
Destroys the filedialog object. More... | |
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=0) |
static bool | askForOpenFileName (QString &szBuffer, const QString &szCaption, const QString &szInitial=QString(), const QString &szFilter=QString(), bool bShowHidden=false, bool bShowNative=true, QWidget *pParent=0) |
static bool | askForOpenFileNames (QStringList &szBuffer, const QString &szCaption, const QString &szInitial, const QString &szFilter=QString(), bool bShowHidden=false, bool bShowNative=true, QWidget *pParent=0) |
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=0) |
Static Public Member Functions inherited from KviTalFileDialog | |
static QString | getExistingDirectoryPath (const QString &szDir=QString(), const QString &szCaption=QString(), QWidget *pParent=0) |
Returns an existing directory selected by the user. More... | |
Additional Inherited Members | |
Public Types inherited from KviTalFileDialog | |
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 = 0 , |
||
const char * | name = 0 , |
||
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 KviIconManager::getSmallIcon().
Referenced by askForDirectoryName(), askForOpenFileName(), askForOpenFileNames(), and askForSaveFileName().
|
default |
Destroys the file dialog object.
|
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::Directory, KviFileDialog(), and KviTalFileDialog::setFileMode().
Referenced by AliasEditorWidget::exportSelectionInSinglesFiles(), ClassEditorWidget::exportSelectionInSinglesFiles(), and KviDirectorySelector::select().
|
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(), and KviTalFileDialog::setFileMode().
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().
|
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(), and KviTalFileDialog::setFileMode().
Referenced by DccBroker::rsendAskForFileName(), and DccBroker::sendFileManage().
|
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, KviControlCodes::Escape, KviFileUtils::fileExists(), KviMessageBox::information(), KviFileDialog(), and KviTalFileDialog::setFileMode().
Referenced by DccBroker::chooseSaveFileName(), LogViewWindow::createLog(), ActionEditor::exportActions(), AliasEditorWidget::exportAliases(), EventEditor::exportAllEvents(), RawEditorWidget::exportAllEvents(), ClassEditorWidget::exportClasses(), RegisteredUsersDialog::exportClicked(), EventEditor::exportCurrentHandler(), RawEditorWidget::exportCurrentHandler(), PopupEditorWidget::exportCurrentPopup(), ListWindow::exportList(), PopupEditorWidget::exportPopups(), CustomizeToolBarsDialog::exportToolBar(), KviIrcViewToolWidget::filterSave(), http_kvs_complete_get(), OptionsWidget_messageColors::save(), ScriptEditorImplementation::saveToFile(), KviFileSelector::select(), and theme_kvs_cmd_screenshot().