X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFileSelector.h;h=2ddc684acc015d75b8320b8f51d3b2a5f7d84157;hb=ec091ee8278311fb7a69c54a68670b66edd8db2d;hp=b89531cde6d414665d4aa0b58a6ce3b9efea863c;hpb=eaa34d7803a364b8da51b6dde8b0ee3c469ae27a;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFileSelector.h b/src/ModuleBase/ModuleBase_WidgetFileSelector.h index b89531cde..2ddc684ac 100644 --- a/src/ModuleBase/ModuleBase_WidgetFileSelector.h +++ b/src/ModuleBase/ModuleBase_WidgetFileSelector.h @@ -67,23 +67,26 @@ protected: /// \return True in success virtual bool storeValueCustom() const; - protected: - /// Returns string containing formats - QString filterString() const; +protected: + /// Converts format to filter string + static QString formatToFilter( const QString & theFormat ); /// Returns list of validator formats QStringList getValidatorFormats() const; - /// Returns a format received from theArgument - QString getFormat( const std::string& theArgument ) const; + /// Returns string containing formats + QString filterString() const; - private: +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;