X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFileSelector.h;h=b6f029fb088b9eda8c124d32a8c4617e4283b874;hb=450d1bd65c11870d3942a30164518037b9a7503e;hp=e1f402b03b862dae284cc433c4f6bf486d50c812;hpb=9a7ff0679f4cd8c203f53a2187d47a008bbd11c6;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFileSelector.h b/src/ModuleBase/ModuleBase_WidgetFileSelector.h index e1f402b03..b6f029fb0 100644 --- a/src/ModuleBase/ModuleBase_WidgetFileSelector.h +++ b/src/ModuleBase/ModuleBase_WidgetFileSelector.h @@ -86,6 +86,10 @@ protected: /// Returns string containing formats QString filterString() const; + /// Add an extension to file name if the extension is not defined + /// \param theFileName a file name + /// \param theFilter a file filter + /// \return the file name with extension static QString applyExtension(const QString& theFileName, const QString& theFilter); protected: @@ -99,7 +103,10 @@ protected: QString mySelectedFilter; /// A title of open file dialog box - enum { WFS_OPEN, WFS_SAVE } myType; + enum { + WFS_OPEN, ///< open file + WFS_SAVE ///< save file + } myType; ///< type of dialog /// Default path QString myDefaultPath;