KVIrc 5.2.6
Developer APIs
KviTalFileDialog Class Reference

Toolkit Abstraction Layer: filedialog class. More...

#include <KviTalFileDialog.h>

+ Inheritance diagram for KviTalFileDialog:

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=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 QString getExistingDirectoryPath (const QString &szDir=QString(), const QString &szCaption=QString(), QWidget *pParent=nullptr)
 Returns an existing directory selected by the user.
 

Detailed Description

Toolkit Abstraction Layer: filedialog class.

Member Enumeration Documentation

◆ FileMode

Indicate what the user may select in the file dialog.

Enumerator
AnyFile 

The name of a file, whether it exists or not

ExistingFile 

The name of a single existing file

ExistingFiles 

The names of zero or more existing files

Directory 

The name of a directory. Both files and directories are displayed

DirectoryOnly 

The name of a directory. The file dialog will only display directories

Constructor & Destructor Documentation

◆ KviTalFileDialog()

KviTalFileDialog::KviTalFileDialog ( const QString & szDirName,
const QString & szFilter = QString(),
QWidget * pParent = nullptr,
const char * pcName = nullptr,
bool bModal = false )

Constructs the filedialog object.

Parameters
szDirNameThe initial directory to display
szFilterThe filter to use to display
pParentThe parent object
pcNameThe caption name of the dialog
bModalWhether the dialog is modal
Returns
KviTalFileDialog

◆ ~KviTalFileDialog()

KviTalFileDialog::~KviTalFileDialog ( )
default

Destroys the filedialog object.

Member Function Documentation

◆ getExistingDirectoryPath()

static QString KviTalFileDialog::getExistingDirectoryPath ( const QString & szDir = QString(),
const QString & szCaption = QString(),
QWidget * pParent = nullptr )
inlinestatic

Returns an existing directory selected by the user.

Parameters
szDirThe directory to display
szCaptionThe caption of the dialog
pParentThe parent object
Returns
QString

Referenced by SetupWizard::chooseDataPath(), SetupWizard::chooseIncomingPath(), and SetupWizard::chooseOldDataPath().

◆ setFileMode()

void KviTalFileDialog::setFileMode ( FileMode m)

The documentation for this class was generated from the following files: