// it is not obligatory to be ignored when property panel tries to activate next active widget
// but if focus is moved to this control, it can accept it.
myIsObligatory = false;
- if (defaultValues.contains(myFeatureId))
- myDefValue = defaultValues[myFeatureId];
+ if (defaultValues.contains(myFeatureId + attributeID()))
+ myDefValue = defaultValues[myFeatureId + attributeID()];
}
ModuleBase_PagedContainer::~ModuleBase_PagedContainer()
void ModuleBase_PagedContainer::onFeatureAccepted()
{
- defaultValues[myFeatureId] = myDefValue;
+ defaultValues[myFeatureId + attributeID()] = myDefValue;
}
const Config_WidgetAPI* theData)
: ModuleBase_ModelWidget(theParent, theData), myIsFirst(true)
{
- myHasValue = defaultValues.contains(myFeatureId);
+ myHasValue = defaultValues.contains(myFeatureId + attributeID());
if (myHasValue)
- myDefValue = defaultValues[myFeatureId];
+ myDefValue = defaultValues[myFeatureId + attributeID()];
else
myDefValue = 0;
void ModuleBase_WidgetChoice::onFeatureAccepted()
{
- defaultValues[myFeatureId] = myDefValue;
+ defaultValues[myFeatureId + attributeID()] = myDefValue;
}
myIsNeutralPointClear = theData->getBooleanAttribute("clear_in_neutral_point", true);
if (myShapeTypes.size() > 1 || myIsUseChoice) {
- if (defaultValues.contains(myFeatureId)) {
- myDefMode = defaultValues[myFeatureId];
+ if (defaultValues.contains(myFeatureId + attributeID())) {
+ myDefMode = defaultValues[myFeatureId + attributeID()];
myTypeCtrl->setValue(myDefMode.c_str());
}
}
void ModuleBase_WidgetMultiSelector::onFeatureAccepted()
{
- defaultValues[myFeatureId] = myDefMode;
+ defaultValues[myFeatureId + attributeID()] = myDefMode;
}