double constDist = that->myDistMap[entry];
QString attEntry = that->myATTMap[entry];
CORBA::Object_var attObj = entryToObject(attEntry);
- myGeomSelWdg2->SetObject(obj);
- myAttSelWdg->SetObject(attObj);
myAttSizeSpin->setValue(phySize);
if (sizeMap.startsWith("Attractor")){
myAttDistSpin->setValue(infDist);
else{
myConstSizeCheck->setChecked(false);
}
+ myGeomSelWdg2->SetObject(obj);
+ myAttSelWdg->SetObject(attObj);
}
else { // CLASSIC MAPS
smpTab->setCurrentIndex(SMP_STD_TAB); // Change Tab
myAttDistLabel->setEnabled(true);
myAttDistSpin2->setEnabled(true);
myAttDistLabel2->setEnabled(true);
- myAttSelWdg->SetDefaultText(tr("BLS_SEL_ATTRACTOR"), "QLineEdit { color: grey }");
+ if (!myAttSelWdg->IsObjectSelected()){
+ myAttSelWdg->SetDefaultText(tr("BLS_SEL_ATTRACTOR"), "QLineEdit { color: grey }");
+ }
if(myConstSizeCheck->checkState() == Qt::Unchecked){ // Only attractor
myAttDistSpin2->setEnabled(false);
myAttDistLabel2->setEnabled(false);
myAttDistSpin->setEnabled(false);
myAttDistLabel->setEnabled(false);
myAttDistSpin->setValue(0.);
- myAttSelWdg->SetDefaultText(tr("BLS_SEL_SHAPE"), "QLineEdit { color: grey }");
+ if (!myAttSelWdg->IsObjectSelected()){
+ myAttSelWdg->SetDefaultText(tr("BLS_SEL_SHAPE"), "QLineEdit { color: grey }");
+ }
}
}
}
myAttDistSpin->setEnabled(false);
myAttDistLabel->setEnabled(false);
myAttDistSpin->setValue(0.);
- myAttSelWdg->SetDefaultText(tr("BLS_SEL_SHAPE"), "QLineEdit { color: grey }");
+ if (!myAttSelWdg->IsObjectSelected()){
+ myAttSelWdg->SetDefaultText(tr("BLS_SEL_SHAPE"), "QLineEdit { color: grey }");
+ }
}
}
if (state == Qt::Unchecked){