Fix some bugs.

This commit is contained in:
rnv 2008-12-02 14:34:18 +00:00
parent f58f52a559
commit 59908477ae
2 changed files with 10 additions and 4 deletions

View File

@ -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();

View File

@ -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: