Salome HOME
studyActivated() virtual method has been added
[modules/gui.git] / src / SUIT / SUIT_FileDlg.h
index 3f6b96815b4204142d5078af7505370c5bf2e129..5770584d06cb75d1a488fd5e11175f4a3c80a4c7 100755 (executable)
@@ -3,10 +3,11 @@
 
 #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
@@ -24,10 +25,16 @@ public:
   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();
@@ -38,14 +45,18 @@ protected slots:
   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