MESSAGE("BLSURFPluginGUI_HypothesisCreator::checkParams");
bool ok = true;
+ BLSURFPlugin::BLSURFPlugin_Hypothesis_var h =
+ BLSURFPlugin::BLSURFPlugin_Hypothesis::_narrow( hypothesis() );
+
if ( ok )
{
myOptionTable->setFocus();
QApplication::instance()->processEvents();
- BLSURFPlugin::BLSURFPlugin_Hypothesis_var h =
- BLSURFPlugin::BLSURFPlugin_Hypothesis::_narrow( initParamsHypothesis() );
-
int row = 0, nbRows = myOptionTable->rowCount();
for ( ; row < nbRows; ++row )
{
}
}
}
+ }
+ if ( !ok )
+ {
h->SetOptionValues( myOptions ); // restore values
h->SetPreCADOptionValues( myPreCADOptions ); // restore values
}
mySizeMapTable->setFocus();
QApplication::instance()->processEvents();
- BLSURFPlugin::BLSURFPlugin_Hypothesis_var h = BLSURFPlugin::BLSURFPlugin_Hypothesis::_narrow( initParamsHypothesis() );
- BLSURFPluginGUI_HypothesisCreator* that = (BLSURFPluginGUI_HypothesisCreator*)this;
-
-// int row = 0, nbRows = mySizeMapTable->rowCount();
int row = 0, nbRows = mySizeMapTable->topLevelItemCount();
std::string e, s;
for ( ; row < nbRows; ++row )
myOptionTable->item( row, OPTION_NAME_COLUMN )->setFlags( 0 );
myOptionTable->setItem( row, OPTION_VALUE_COLUMN, new QTableWidgetItem( "" ) );
myOptionTable->item( row, OPTION_VALUE_COLUMN )->setFlags( Qt::ItemIsSelectable |
- Qt::ItemIsEditable |
- Qt::ItemIsEnabled );
+ Qt::ItemIsEditable |
+ Qt::ItemIsEnabled );
myOptionTable->resizeColumnToContents( OPTION_NAME_COLUMN );
}
myOptionTable->clearSelection();
QString attEntry = that->myATTMap[entry];
CORBA::Object_var attObj = entryToObject(attEntry);
myAttSizeSpin->setValue(phySize);
- if (sizeMap.startsWith("Attractor")){
+ if (sizeMap.startsWith("Attractor")){
myAttDistSpin->setValue(infDist);
myAttractorCheck->setChecked(true);
}
if (that->mySMPMap.contains(shapeEntry)) {
if (that->mySMPMap[shapeEntry] != "__TO_DELETE__") {
// MESSAGE("Size map for shape with name(entry): "<< shapeName << "(" << entry << ")");
- return;
+ return;
}
}
mySizeMapTable->addTopLevelItem(item);