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

File dialog class. More...

#include <KviFileDialog.h>

+ Inheritance diagram for KviFileDialog:

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

Detailed Description

File dialog class.

Constructor & Destructor Documentation

KviFileDialog::KviFileDialog ( const QString &  szDirName,
const QString &  szFilter = QString(),
QWidget *  pParent = 0,
const char *  name = 0,
bool  bModal = false 
)

Constructs the file dialog object.

Parameters
szDirNameThe directory where to use the dialog
szFilterThe filter to use
pParentThe parent widget
nameThe name of the dialog
bModalWhether to have a modal behaviour
Returns
KviFileDialog

References KviIconManager::Folder, g_pIconManager, and KviIconManager::getSmallIcon().

Referenced by askForDirectoryName(), askForOpenFileName(), askForOpenFileNames(), and askForSaveFileName().

KviFileDialog::~KviFileDialog ( )
default

Destroys the file dialog object.

Member Function Documentation

bool KviFileDialog::askForDirectoryName ( QString &  szBuffer,
const QString &  szCaption,
const QString &  szInitial,
const QString &  szFilter = QString(),
bool  bShowHidden = false,
bool  bShowNative = true,
QWidget *  pParent = 0 
)
static
Parameters
szBufferThe buffer where to store the data
szCaptionThe caption of the dialog
szInitialThe initial directory
szFilterThe filter to use
bShowHiddenWhether to show hidden files
bShowNativeWhether to show native dialogs
pParentThe parent widget
Returns
bool

References KviFileUtils::adjustFilePath(), KviTalFileDialog::Directory, KviFileDialog(), and KviTalFileDialog::setFileMode().

Referenced by AliasEditorWidget::exportSelectionInSinglesFiles(), ClassEditorWidget::exportSelectionInSinglesFiles(), and KviDirectorySelector::select().

bool KviFileDialog::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 KviFileDialog::askForOpenFileNames ( QStringList &  szBuffer,
const QString &  szCaption,
const QString &  szInitial,
const QString &  szFilter = QString(),
bool  bShowHidden = false,
bool  bShowNative = true,
QWidget *  pParent = 0 
)
static
Parameters
szBufferThe buffer where to store the data
szCaptionThe caption of the dialog
szInitialThe initial directory
szFilterThe filter to use
bShowHiddenWhether to show hidden files
bShowNativeWhether to show native dialogs
pParentThe parent widget
Returns
bool

References KviTalFileDialog::ExistingFiles, KviFileDialog(), and KviTalFileDialog::setFileMode().

Referenced by DccBroker::rsendAskForFileName(), and DccBroker::sendFileManage().

bool KviFileDialog::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

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