From: rnv Date: Tue, 2 Dec 2008 14:34:18 +0000 (+0000) Subject: Fix some bugs. X-Git-Tag: TG_BEFORE_MERGE_WITH_V5_DEV X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=59908477ae304136d1adff769e88e2db36c944b3;p=plugins%2Fnetgenplugin.git Fix some bugs. --- diff --git a/src/GUI/NETGENPluginGUI_SimpleCreator.cxx b/src/GUI/NETGENPluginGUI_SimpleCreator.cxx index 786b149..1bf52c0 100644 --- a/src/GUI/NETGENPluginGUI_SimpleCreator.cxx +++ b/src/GUI/NETGENPluginGUI_SimpleCreator.cxx @@ -80,9 +80,16 @@ NETGENPluginGUI_SimpleCreator::~NETGENPluginGUI_SimpleCreator() { } -bool NETGENPluginGUI_SimpleCreator::checkParams() const +bool NETGENPluginGUI_SimpleCreator::checkParams(QString& msg) const { - return true; + bool result = true; + result = myNbSeg->isValid(msg,true) && result; + result = myLength->isValid(msg,true) && result; + result = myArea->isValid(msg,true) && result; + if (myVolume) + result = myVolume->isValid(msg,true) && result; + + return result; } QFrame* NETGENPluginGUI_SimpleCreator::buildFrame() @@ -329,7 +336,6 @@ QString NETGENPluginGUI_SimpleCreator::storeParams() const h->SetMaxElementVolume( myVolume->value() ); valStr += "; vol=" + myVolume->text(); aVariablesList.append( myVolume->text()); - h->SetParameters(SMESHGUI::JoinObjectParameters(aVariablesList)); } else { h->LengthFromFaces(); diff --git a/src/GUI/NETGENPluginGUI_SimpleCreator.h b/src/GUI/NETGENPluginGUI_SimpleCreator.h index f971b65..c8cfcc4 100644 --- a/src/GUI/NETGENPluginGUI_SimpleCreator.h +++ b/src/GUI/NETGENPluginGUI_SimpleCreator.h @@ -42,7 +42,7 @@ public: NETGENPluginGUI_SimpleCreator(const QString& theHypType); virtual ~NETGENPluginGUI_SimpleCreator(); - virtual bool checkParams() const; + virtual bool checkParams(QString& msg) const; virtual QString helpPage() const; protected: