SMESHGUI_aParameter(const QString& label):_label(label) {}
virtual ~SMESHGUI_aParameter();
- enum Type { INT, DOUBLE };
+ enum Type { INT, DOUBLE, TEXT };
virtual Type GetType() const = 0;
virtual bool GetNewInt( int & Value ) const = 0;
virtual bool GetNewDouble( double & Value ) const = 0;
+ virtual bool GetNewText( QString & Value ) const = 0;
virtual void InitializeWidget( QWidget* ) const = 0;
virtual void TakeValue( QWidget* ) = 0;
virtual Type GetType() const;
virtual bool GetNewInt( int & Value ) const;
virtual bool GetNewDouble( double & Value ) const;
+ virtual bool GetNewText( QString & Value ) const;
virtual void InitializeWidget( QWidget* ) const;
virtual void TakeValue( QWidget* );
virtual Type GetType() const;
virtual bool GetNewInt( int & Value ) const;
virtual bool GetNewDouble( double & Value ) const;
+ virtual bool GetNewText( QString & Value ) const;
virtual void InitializeWidget( QWidget* ) const;
virtual void TakeValue( QWidget* );
int _decimals;
};
+
+//=================================================================================
+// class : SMESHGUI_strParameter
+// purpose :
+//=================================================================================
+class SMESHGUI_strParameter: public SMESHGUI_aParameter
+{
+public:
+ SMESHGUI_strParameter(const QString& initValue = "",
+ const QString& label = QString::null);
+ QString InitValue() { return _initValue; }
+ virtual Type GetType() const;
+ virtual bool GetNewInt( int & Value ) const;
+ virtual bool GetNewDouble( double & Value ) const;
+ virtual bool GetNewText( QString & Value ) const;
+ virtual void InitializeWidget( QWidget* ) const;
+ virtual void TakeValue( QWidget* );
+
+ private:
+ QString _initValue, _newValue;
+};
+
#endif // SMESHGUI_aParameter.h