1 #ifndef SUIT_FILEDIALOG_H
2 #define SUIT_FILEDIALOG_H
6 #include <qfiledialog.h>
11 class SUIT_FileValidator;
13 class SUIT_EXPORT SUIT_FileDlg : public QFileDialog
18 SUIT_FileDlg( QWidget*, bool open, bool showQuickDir = true, bool modal = true );
19 virtual ~SUIT_FileDlg();
22 bool isOpenDlg() const;
23 QString selectedFile() const;
25 void setValidator( SUIT_FileValidator* );
27 static QString getFileName( QWidget* parent, const QString& initial, const QStringList& filters,
28 const QString& caption, const bool open, const bool showQuickDir = true,
29 SUIT_FileValidator* validator = 0 );
30 static QStringList getOpenFileNames( QWidget* parent, const QString& initial, const QStringList& filters,
31 const QString& caption, bool showQuickDir = true,
32 SUIT_FileValidator* validator = 0 );
33 static QString getExistingDirectory( QWidget* parent, const QString& initial,
34 const QString& caption, const bool showQuickDir = true );
42 bool processPath( const QString& path );
47 void quickDir( const QString& );
51 bool myOpen; /* open/save selector */
52 QString mySelectedFile; /* selected filename */
53 SUIT_FileValidator* myValidator; /* file validator */
54 QLabel* myQuickLab; /* quick dir combo box */
55 QComboBox* myQuickCombo; /* quick dir combo box */
56 QPushButton* myQuickButton; /* quick dir add button */
58 static QString myLastVisitedPath; /* last visited path */