const std::string& theParentId);
virtual ~ModuleBase_WidgetFileSelector();
- virtual bool restoreValue();
-
virtual QList<QWidget*> getControls() const;
/// Returns true if a file on the current path in the line edit
/// \return True in success
virtual bool storeValueCustom() const;
+ virtual bool restoreValueCustom();
+
protected:
/// Converts format to filter string
static QString formatToFilter(const QString & theFormat);
/// 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: