From 59908477ae304136d1adff769e88e2db36c944b3 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 2 Dec 2008 14:34:18 +0000 Subject: [PATCH] Fix some bugs. --- src/GUI/NETGENPluginGUI_SimpleCreator.cxx | 12 +++++++++--- src/GUI/NETGENPluginGUI_SimpleCreator.h | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) 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: -- 2.39.2