KVIrc  4.9.2
DeveloperAPIs
Public Types | Public Member Functions | Static Public Member Functions | List of all members
KviTalFileDialog Class Reference

defined(COMPILE_KDE4_SUPPORT) 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=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...
 

Detailed Description

defined(COMPILE_KDE4_SUPPORT)

Toolkit Abstraction Layer: filedialog class.

defined(COMPILE_KDE4_SUPPORT)

Member Enumeration Documentation

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 ( 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))

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 ( )
default

Destroys the filedialog object.

defined(COMPILE_KDE4_SUPPORT))

Member Function Documentation

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

Returns an existing directory selected by the user.

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

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.

Parameters
szDirectoryThe directory
Returns
void

defined(COMPILE_KDE4_SUPPORT)

defined(COMPILE_KDE4_SUPPORT)

void KviTalFileDialog::setFileMode ( FileMode  m)

Sets the file mode.

Parameters
mThe mode :)
Returns
void

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().


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