X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUIT%2FSUIT_FileDlg.h;h=7bf1cc663a78804b52e5fc01405a5adf46932180;hb=3b3dce973acb7299499dd3527ded627940516ab3;hp=cd33167a77949641f037bbb48f7344bbcb43a456;hpb=162fc2a41225bd9c090b883664df86294407f860;p=modules%2Fgui.git diff --git a/src/SUIT/SUIT_FileDlg.h b/src/SUIT/SUIT_FileDlg.h index cd33167a7..7bf1cc663 100755 --- a/src/SUIT/SUIT_FileDlg.h +++ b/src/SUIT/SUIT_FileDlg.h @@ -10,6 +10,9 @@ class QComboBox; class QPushButton; class SUIT_FileValidator; +/*! \class QFileDialog + * For more information see QT documentation. +*/ class SUIT_EXPORT SUIT_FileDlg : public QFileDialog { Q_OBJECT @@ -48,14 +51,22 @@ protected slots: void addQuickDir(); protected: - 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 */ - - 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 + + /*! \var myAccepted + * \brief flag is used to warkaround the Qt 2.2.2 + * \bug accept() method is called twice if user presses 'Enter' key + * in file name editor while file name is not acceptable by acceptData() + * (e.g. permission denied) + */ + bool myAccepted; + + static QString myLastVisitedPath; //!< last visited path }; #endif