Salome HOME
Merge from OCC_development_generic_2006
[modules/gui.git] / src / SUIT / SUIT_FileDlg.h
index 7bf1cc663a78804b52e5fc01405a5adf46932180..fcdb7da1351a64669481561031ea4d181b1060f1 100755 (executable)
@@ -1,3 +1,21 @@
+// Copyright (C) 2005  OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
+// 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either 
+// version 2.1 of the License.
+// 
+// This library is distributed in the hope that it will be useful 
+// but WITHOUT ANY WARRANTY; without even the implied warranty of 
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public  
+// License along with this library; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/
+//
 #ifndef SUIT_FILEDIALOG_H
 #define SUIT_FILEDIALOG_H
 
@@ -27,6 +45,9 @@ public:
 
   void                setValidator( SUIT_FileValidator* );
 
+  QString             dirPath() const; // QFileDialog::dirPath() has a bug on Linux Debian (1 level up from correct 
+                                       // directory is returned).  This redefinition fixes the bug.  
+
   static QString      getFileName( QWidget* parent, const QString& initial, const QStringList& filters, 
                                   const QString& caption, const bool open, const bool showQuickDir = true,
                                    SUIT_FileValidator* validator = 0 );
@@ -64,7 +85,10 @@ protected:
    * in file name editor while file name is not acceptable by acceptData()
    * (e.g. permission denied)
    */
-  bool                myAccepted;
+//  bool                myAccepted;
+  /*! ASL: this bug can be fixed with help of call setDefault( false ) 
+   *       and setAutoDefault( false ) methods for all QPushButtons of this dialog
+   */
 
   static QString      myLastVisitedPath;  //!< last visited path
 };