Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #529 : 4.07. Import IGES, export to BREP, STEP, IGES - Export IGES
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetFileSelector.h
diff --git
a/src/ModuleBase/ModuleBase_WidgetFileSelector.h
b/src/ModuleBase/ModuleBase_WidgetFileSelector.h
index 5a628286dde694aa8bc4a3dc1aefa176b95b366b..b89531cde6d414665d4aa0b58a6ce3b9efea863c 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetFileSelector.h
+++ b/
src/ModuleBase/ModuleBase_WidgetFileSelector.h
@@
-27,6
+27,7
@@
class QLineEdit;
* \code
* <file_selector
* id="import_file_selector"
* \code
* <file_selector
* id="import_file_selector"
+* type="open"
* title="Import file"
* path="">
* <validator id="ExchangePlugin_ImportFormat" parameters="BREP:BREPImport,STEP:STEPImport" />
* title="Import file"
* path="">
* <validator id="ExchangePlugin_ImportFormat" parameters="BREP:BREPImport,STEP:STEPImport" />
@@
-48,8
+49,6
@@
class MODULEBASE_EXPORT ModuleBase_WidgetFileSelector : public ModuleBase_ModelW
virtual bool restoreValue();
virtual bool restoreValue();
- QWidget* getControl() const;
-
virtual QList<QWidget*> getControls() const;
/// Returns true if a file on the current path in the line edit
virtual QList<QWidget*> getControls() const;
/// Returns true if a file on the current path in the line edit
@@
-66,25
+65,28
@@
class MODULEBASE_EXPORT ModuleBase_WidgetFileSelector : public ModuleBase_ModelW
protected:
/// Saves the internal parameters to the given feature
/// \return True in success
protected:
/// Saves the internal parameters to the given feature
/// \return True in success
- virtual bool storeValue() const;
+ virtual bool storeValue
Custom
() const;
protected:
/// Returns string containing formats
protected:
/// Returns string containing formats
- QString f
ormats
String() const;
+ QString f
ilter
String() const;
- /// Return list of validator formats
+ /// Return
s
list of validator formats
QStringList getValidatorFormats() const;
QStringList getValidatorFormats() const;
+ /// Returns a format received from theArgument
+ QString getFormat( const std::string& theArgument ) const;
+
private:
/// A control for path input
QLineEdit* myPathField;
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
QString myTitle;
+ /// A title of open file dialog box
+ enum { WFS_OPEN, WFS_SAVE } myType;
+
/// Default path
QString myDefaultPath;
};
/// Default path
QString myDefaultPath;
};