X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFileSelector.h;h=2ddc684acc015d75b8320b8f51d3b2a5f7d84157;hb=5352bbb1915f98d1f02b1cb953a2de19b286a28c;hp=744770c61d9087afa07cfcb70cc5dd938a767939;hpb=a24b7e6f4d112d5e7889fd76f030298fc428cd01;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFileSelector.h b/src/ModuleBase/ModuleBase_WidgetFileSelector.h index 744770c61..2ddc684ac 100644 --- a/src/ModuleBase/ModuleBase_WidgetFileSelector.h +++ b/src/ModuleBase/ModuleBase_WidgetFileSelector.h @@ -27,6 +27,7 @@ class QLineEdit; * \code * * @@ -66,20 +67,29 @@ protected: /// \return True in success virtual bool storeValueCustom() const; - protected: - /// Returns string containing formats - QString formatsString() const; +protected: + /// Converts format to filter string + static QString formatToFilter( const QString & theFormat ); - /// Return list of validator formats + /// Returns list of validator formats QStringList getValidatorFormats() const; - private: + /// Returns string containing formats + QString filterString() const; + +protected: /// A control for path input QLineEdit* myPathField; /// A title of open file dialog box QString myTitle; + /// A current format + QString mySelectedFilter; + + /// A title of open file dialog box + enum { WFS_OPEN, WFS_SAVE } myType; + /// Default path QString myDefaultPath; };