X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshersGUI%2FStdMeshersGUI_StdHypothesisCreator.h;h=29ed2e2accf0f2de419a19e7b0fdd089f2b9d163;hp=c5c2c8db0c67871644154e79f3c85b6e4e7fc783;hb=79b1ac2b6df9117f16f11d444b1f165d477a1813;hpb=984c4ffdd7df62aeaedc544cd0b8e64ff8f53f1a diff --git a/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.h b/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.h index c5c2c8db0..29ed2e2ac 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.h +++ b/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.h @@ -28,12 +28,14 @@ #ifndef STDMESHERSGUI_StdHypothesisCreator_HeaderFile #define STDMESHERSGUI_StdHypothesisCreator_HeaderFile +#include "SMESH_StdMeshersGUI.hxx" + #include /*! - * \brief Class for creation of simple hypotheses (only set of parameters without dependencies) + * \brief Class for creation of standard hypotheses */ -class StdMeshersGUI_StdHypothesisCreator : public SMESHGUI_GenericHypothesisCreator +class STDMESHERSGUI_EXPORT StdMeshersGUI_StdHypothesisCreator : public SMESHGUI_GenericHypothesisCreator { Q_OBJECT @@ -52,10 +54,20 @@ protected: virtual QString caption() const; virtual QPixmap icon() const; virtual QString type() const; - virtual QWidget* getCustomWidget( const StdParam&, QWidget* ) const; + virtual QWidget* getCustomWidget( const StdParam&, QWidget*, const int ) const; virtual bool getParamFromCustomWidget( StdParam& , QWidget* ) const; - virtual QString hypTypeName( const QString& ) const; + virtual QString hypTypeName( const QString& ) const; + virtual QWidget* getWidgetForParam( int paramIndex ) const; + virtual ListOfWidgets* customWidgets() const; + virtual void onReject(); + + template + T* widget(int i) const { + return dynamic_cast< T* >( getWidgetForParam( i )); + } + + ListOfWidgets myCustomWidgets; }; #endif