#include "SUIT.h"
-#include <qcombobox.h>
#include <qfiledialog.h>
-class SUIT_ResourceMgr;
+class QLabel;
+class QComboBox;
+class QPushButton;
class SUIT_FileValidator;
class SUIT_EXPORT SUIT_FileDlg : public QFileDialog
void setValidator( SUIT_FileValidator* );
static QString getFileName( QWidget* parent, const QString& initial, const QStringList& filters,
- const QString& caption, bool open, bool showQuickDir = true,
+ const QString& caption, const bool open, const bool showQuickDir = true,
SUIT_FileValidator* validator = 0 );
+ static QStringList getOpenFileNames( QWidget* parent, const QString& initial, const QStringList& filters,
+ const QString& caption, bool showQuickDir = true,
+ SUIT_FileValidator* validator = 0 );
static QString getExistingDirectory( QWidget* parent, const QString& initial,
- const QString& caption, bool showQuickDir = true );
+ const QString& caption, const bool showQuickDir = true );
+
+public slots:
+ void polish();
private:
bool acceptData();
void accept();
void reject();
void quickDir( const QString& );
+ void addQuickDir();
protected:
- bool myOpen; /* open/save selector */
- QString mySelectedFile; /* selected filename */
- SUIT_FileValidator* myValidator; /* file validator */
- QComboBox* myQuickCombo; /* quick dir combo box */
-
- static QString myLastVisitedPath; /* last visited path */
+ bool myOpen; /* open/save selector */
+ QString mySelectedFile; /* selected filename */
+ SUIT_FileValidator* myValidator; /* file validator */
+ QLabel* myQuickLab; /* quick dir combo box */
+ QComboBox* myQuickCombo; /* quick dir combo box */
+ QPushButton* myQuickButton; /* quick dir add button */
+ bool myAccepted; /* 'Accepted' flag */
+
+ static QString myLastVisitedPath; /* last visited path */
};
#endif