X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFileSelector.h;h=2ddc684acc015d75b8320b8f51d3b2a5f7d84157;hb=ec091ee8278311fb7a69c54a68670b66edd8db2d;hp=d9b3337fdd3689c583f95c291f52a921f5cdd147;hpb=b25922145a97fccf8d2613d0ef52a283d3ce0987;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFileSelector.h b/src/ModuleBase/ModuleBase_WidgetFileSelector.h index d9b3337fd..2ddc684ac 100644 --- a/src/ModuleBase/ModuleBase_WidgetFileSelector.h +++ b/src/ModuleBase/ModuleBase_WidgetFileSelector.h @@ -27,6 +27,7 @@ class QLineEdit; * \code * * @@ -64,22 +65,31 @@ class MODULEBASE_EXPORT ModuleBase_WidgetFileSelector : public ModuleBase_ModelW protected: /// Saves the internal parameters to the given feature /// \return True in success - virtual bool storeValue() const; + 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; };