umbrello/umbrello
codeblock.cpp
Go to the documentation of this file.
106 setContentType(((ContentType) elem.attribute(QLatin1String("contentType"), QLatin1String("0")).toInt()));
virtual void loadFromXMI(QDomElement &root)
Load params from the appropriate XMI element node.
Definition: codeblock.cpp:91
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Set attributes of the node that represents this class in the XMI document.
Definition: codeblock.cpp:78
QDomNode appendChild(const QDomNode &newChild)
QString attribute(const QString &name, const QString &defValue) const
the content was generated by code generation itself
Definition: codeblock.h:28
QDebug & nospace()
ContentType contentType() const
Get the value of m_contentType specifies whether the content (text) of this object was generated by t...
Definition: codeblock.cpp:54
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Set attributes of the node that represents this class in the XMI document.
Definition: textblock.cpp:322
static QString enumToString(const ContentType &val)
Return a string representation of ContentType.
Definition: codeblock.cpp:127
void setAttribute(const QString &name, const QString &value)
int toInt(bool *ok, int base) const
virtual void setAttributesFromNode(QDomElement &root)
Set the class attributes of this object from the passed element node.
Definition: textblock.cpp:361
QDebug & space()
virtual void saveToXMI(QDomDocument &doc, QDomElement &root)
Save the XMI representation of this object.
Definition: codeblock.cpp:64
The fundemental unit of text within an output file containing code.
Definition: textblock.h:24
void setContentType(ContentType new_var)
Set the value of m_contentType specifies whether the content (text) of this object was generated by t...
Definition: codeblock.cpp:43
QDomElement createElement(const QString &tagName)
CodeBlock(CodeDocument *parent, const QString &body=QString())
Constructor.
Definition: codeblock.cpp:24
virtual void setAttributesFromObject(TextBlock *obj)
Set the class attributes from a passed object.
Definition: textblock.cpp:347
virtual void setAttributesFromObject(TextBlock *obj)
Set the class attributes from a passed object.
Definition: codeblock.cpp:113
virtual void setAttributesFromNode(QDomElement &element)
Set the class attributes of this object from the passed element node.
Definition: codeblock.cpp:101
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.