KVIrc
4.9.2
DeveloperAPIs
|
defined(COMPILE_KDE4_SUPPORT) More...
#include <KviTalFileDialog.h>
Public Types | |
enum | FileMode { AnyFile, ExistingFile, ExistingFiles, Directory, DirectoryOnly } |
Indicate what the user may select in the file dialog. More... | |
Public Member Functions | |
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 QString | getExistingDirectoryPath (const QString &szDir=QString(), const QString &szCaption=QString(), QWidget *pParent=0) |
Returns an existing directory selected by the user. More... | |
defined(COMPILE_KDE4_SUPPORT)
Toolkit Abstraction Layer: filedialog class.
defined(COMPILE_KDE4_SUPPORT)
Indicate what the user may select in the file dialog.
KviTalFileDialog::KviTalFileDialog | ( | const QString & | szDirName, |
const QString & | szFilter = QString() , |
||
QWidget * | pParent = 0 , |
||
const char * | pcName = 0 , |
||
bool | bModal = false |
||
) |
Constructs the filedialog object.
defined(COMPILE_KDE4_SUPPORT))
szDirName | The initial directory to display |
szFilter | The filter to use to display |
pParent | The parent object |
pcName | The caption name of the dialog |
bModal | Whether the dialog is modal |
|
default |
Destroys the filedialog object.
defined(COMPILE_KDE4_SUPPORT))
|
inlinestatic |
Returns an existing directory selected by the user.
szDir | The directory to display |
szCaption | The caption of the dialog |
pParent | The parent object |
defined(COMPILE_KDE4_SUPPORT)
defined(COMPILE_KDE4_SUPPORT)
Referenced by SetupWizard::chooseDataPath(), SetupWizard::chooseIncomingPath(), and SetupWizard::chooseOldDataPath().
void KviTalFileDialog::setDirectory | ( | const QString & | szDirectory | ) |
Sets the current directory.
szDirectory | The directory |
defined(COMPILE_KDE4_SUPPORT)
defined(COMPILE_KDE4_SUPPORT)
void KviTalFileDialog::setFileMode | ( | FileMode | m | ) |
Sets the file mode.
m | The mode :) |
defined(COMPILE_KDE4_SUPPORT)
defined(COMPILE_KDE4_SUPPORT)
References AnyFile, Directory, DirectoryOnly, ExistingFile, and ExistingFiles.
Referenced by KviFileDialog::askForDirectoryName(), KviFileDialog::askForOpenFileName(), KviFileDialog::askForOpenFileNames(), KviFileDialog::askForSaveFileName(), and dialog_kvs_cmd_file().