* \code
* <file_selector
* id="import_file_selector"
+* type="open"
* title="Import file"
* path="">
* <validator id="ExchangePlugin_ImportFormat" parameters="BREP:BREPImport,STEP:STEPImport" />
virtual bool restoreValue();
- QWidget* getControl() const;
-
virtual QList<QWidget*> getControls() const;
/// Returns true if a file on the current path in the line edit
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;
+ QString filterString() const;
- /// Return list of validator formats
+ /// Returns list of validator formats
QStringList getValidatorFormats() const;
+ /// Returns a format received from theArgument
+ QString getFormat( const std::string& theArgument ) const;
+
private:
/// A control for path input
QLineEdit* myPathField;
- /// Container
- QWidget* myMainWidget;
-
/// A title of open file dialog box
QString myTitle;
+ /// A title of open file dialog box
+ enum { WFS_OPEN, WFS_SAVE } myType;
+
/// Default path
QString myDefaultPath;
};