// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
#ifndef STDMESHERSGUI_StdHypothesisCreator_HeaderFile
#define STDMESHERSGUI_StdHypothesisCreator_HeaderFile
+#include "SMESH_StdMeshersGUI.hxx"
+
#include <SMESHGUI_Hypotheses.h>
/*!
- * \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
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<class T>
+ T* widget(int i) const {
+ return dynamic_cast< T* >( getWidgetForParam( i ));
+ }
+
+ ListOfWidgets myCustomWidgets;
};
#endif