bool BehaviorBase::linkParent( FieldContainer * const pParent, UInt16 const childFieldId, UInt16 const parentFieldId ) { if(parentFieldId == SceneObjectFieldId) { FieldContainer * pTypedParent = dynamic_cast< FieldContainer * >(pParent); if(pTypedParent != NULL) { FieldContainer *pOldParent = _sfSceneObject.getValue (); UInt16 oldChildFieldId = _sfSceneObject.getParentFieldPos(); if(pOldParent != NULL) { pOldParent->unlinkChild(this, oldChildFieldId); } editSField(SceneObjectFieldMask); _sfSceneObject.setValue(static_cast<FieldContainer *>(pParent), childFieldId); return true; } return false; } return Inherited::linkParent(pParent, childFieldId, parentFieldId); }
bool TransformationElementBase::linkParent( FieldContainer * const pParent, UInt16 const childFieldId, UInt16 const parentFieldId ) { if(parentFieldId == ParentStackFieldId) { FieldContainer * pTypedParent = dynamic_cast< FieldContainer * >(pParent); if(pTypedParent != NULL) { FieldContainer *pOldParent = _sfParentStack.getValue (); UInt16 oldChildFieldId = _sfParentStack.getParentFieldPos(); if(pOldParent != NULL) { pOldParent->unlinkChild(this, oldChildFieldId); } editSField(ParentStackFieldMask); _sfParentStack.setValue(static_cast<FieldContainer *>(pParent), childFieldId); return true; } return false; } return Inherited::linkParent(pParent, childFieldId, parentFieldId); }
bool AnimChannelBase::linkParent( FieldContainer * const pParent, UInt16 const childFieldId, UInt16 const parentFieldId ) { if(parentFieldId == AnimationFieldId) { Animation * pTypedParent = dynamic_cast< Animation * >(pParent); if(pTypedParent != NULL) { FieldContainer *pOldParent = _sfAnimation.getValue (); UInt16 oldChildFieldId = _sfAnimation.getParentFieldPos(); if(pOldParent != NULL) { pOldParent->unlinkChild(this, oldChildFieldId); } editSField(AnimationFieldMask); _sfAnimation.setValue(static_cast<Animation *>(pParent), childFieldId); return true; } return false; } return Inherited::linkParent(pParent, childFieldId, parentFieldId); }
bool TableDomLayoutManagerBase::linkParent( FieldContainer * const pParent, UInt16 const childFieldId, UInt16 const parentFieldId ) { if(parentFieldId == ParentTableDomAreaFieldId) { FieldContainer * pTypedParent = dynamic_cast< FieldContainer * >(pParent); if(pTypedParent != NULL) { FieldContainer *pOldParent = _sfParentTableDomArea.getValue (); UInt16 oldChildFieldId = _sfParentTableDomArea.getParentFieldPos(); if(pOldParent != NULL) { pOldParent->unlinkChild(this, oldChildFieldId); } editSField(ParentTableDomAreaFieldMask); _sfParentTableDomArea.setValue(static_cast<FieldContainer *>(pParent), childFieldId); return true; } return false; } return Inherited::linkParent(pParent, childFieldId, parentFieldId); }
bool CSMClusterWinOptionsBase::linkParent( FieldContainer * const pParent, UInt16 const childFieldId, UInt16 const parentFieldId ) { if(parentFieldId == ParentFieldId) { CSMClusterWindow * pTypedParent = dynamic_cast< CSMClusterWindow * >(pParent); if(pTypedParent != NULL) { FieldContainer *pOldParent = _sfParent.getValue (); UInt16 oldChildFieldId = _sfParent.getParentFieldPos(); if(pOldParent != NULL) { pOldParent->unlinkChild(this, oldChildFieldId); } editSField(ParentFieldMask); _sfParent.setValue(static_cast<CSMClusterWindow *>(pParent), childFieldId); return true; } return false; } return Inherited::linkParent(pParent, childFieldId, parentFieldId); }