Logo Search packages:      
Sourcecode: qmmp version File versions

FileDialog Class Reference

#include <filedialog.h>

Inherited by QmmpFileDialog, and QtFileDialog.

List of all members.


Detailed Description

Author:
Vladimir Kuznetsov <vovanec@gmail.com>

Definition at line 37 of file filedialog.h.


Public Types

enum  Mode {
  AddFile = 0, AddDir, AddFiles, AddDirs,
  AddDirsFiles, SaveFile
}

Signals

void filesAdded (const QStringList &)

Static Public Member Functions

static QString getExistingDirectory (QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString())
static QString getOpenFileName (QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=0)
static QStringList getOpenFileNames (QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=0)
static QString getSaveFileName (QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=0)
static bool isEnabled (FileDialogFactory *factory)
static bool isModal ()
static void popup (QWidget *parent=0, Mode=AddFiles, QString *dir=0, QObject *receiver=0, const char *member=0, const QString &caption=QString(), const QString &filters=QString())
static QList< FileDialogFactory * > registeredFactories ()
static void setEnabled (FileDialogFactory *factory)

Protected Member Functions

virtual QString existingDirectory (QWidget *parent, const QString &caption, const QString &dir)
void init (QObject *receiver, const char *member, QString *dir)
virtual bool modal () const
virtual QString openFileName (QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter)
virtual QStringList openFileNames (QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter)
virtual void raise (const QString &dir=QString(), Mode mode=AddFiles, const QString &caption=QString(), const QStringList &mask=QStringList())
virtual QString saveFileName (QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter)

Static Protected Member Functions

static FileDialogdefaultInstance ()
static FileDialoginstance ()
static void registerBuiltinFactories ()
static void registerExternalFactories ()
static bool registerFactory (FileDialogFactory *factory, const QString &name)

Private Slots

void updateLastDir (const QStringList &)

Private Attributes

bool m_initialized
QString * m_lastDir

Static Private Attributes

static FileDialog_instance = 0
static QMap< QString,
FileDialogFactory * > 
factories = QMap<QString,FileDialogFactory*>()
static QString m_current_factory = QString()

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

Generated by  Doxygen 1.6.0   Back to index