1 // SALOME SALOMEGUI : implementation of desktop and GUI kernel
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : QAD_FileDlg.h
12 #ifndef QAD_FILEDIALOG_H
13 #define QAD_FILEDIALOG_H
15 #include <qfiledialog.h>
16 #include <qcombobox.h>
18 #include "QAD_FileValidator.h"
20 class QAD_EXPORT QAD_FileDlg : public QFileDialog
25 QAD_FileDlg( QWidget* parent, bool open, bool showQuickDir = true, bool modal = true );
29 bool isOpenDlg() const;
30 QString selectedFile() const;
32 void setValidator( QAD_FileValidator* );
34 static QString getFileName( QWidget* parent,
35 const QString& initial,
36 const QStringList& filters,
37 const QString& caption,
39 bool showQuickDir = true,
40 QAD_FileValidator* validator = 0);
41 static QString getExistingDirectory ( QWidget* parent,
42 const QString& initial,
43 const QString& caption,
44 bool showQuickDir = true);
48 bool processPath( const QString& path );
53 void quickDir(const QString&);
56 bool myOpen; /* open/save selector */
57 QString mySelectedFile; /* selected filename */
58 QAD_FileValidator* myValidator; /* file validator */
59 static QString myLastVisitedPath; /* last visited path */
60 QComboBox* myQuickCombo; /* quick dir combo box */