/** * Set the class attributes of this object from * the passed element node. */ void CodeClassFieldDeclarationBlock::setAttributesFromNode(QDomElement & root) { // set attributes from the XMI CodeBlockWithComments::setAttributesFromNode(root); // superclass load OwnedCodeBlock::setAttributesFromNode(root); // superclass load syncToParent(); }
void CodeParameter::initFields ( ClassifierCodeDocument * doc, UMLObject * obj) { m_parentObject = obj; m_parentDocument = doc; m_initialValue.clear(); m_comment = CodeGenFactory::newCodeComment(m_parentDocument); m_comment->setText(getParentObject()->doc()); connect(m_parentObject,SIGNAL(modified()),this,SLOT(syncToParent())); }
/** * Set the class attributes from a passed object. */ void CodeClassFieldDeclarationBlock::setAttributesFromObject (TextBlock * obj) { CodeBlockWithComments::setAttributesFromObject(obj); CodeClassFieldDeclarationBlock * ccb = dynamic_cast<CodeClassFieldDeclarationBlock*>(obj); if (ccb) { m_parentclassfield->disconnect(this); init(ccb->getParentClassField()); syncToParent(); } }
void CodeClassFieldDeclarationBlock::init (CodeClassField * parentCF) { m_parentclassfield = parentCF; setCanDelete(false); connect(m_parentclassfield, SIGNAL(modified()), this, SLOT(syncToParent())); }