umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <codeclassfielddeclarationblock.h>
Public Slots | |
virtual void | syncToParent () |
![]() | |
virtual void | syncToParent () |
Public Member Functions | |
CodeClassFieldDeclarationBlock (CodeClassField *parent) | |
virtual | ~CodeClassFieldDeclarationBlock () |
CodeClassField * | getParentClassField () |
UMLObject * | getParentObject () |
virtual void | setAttributesFromObject (TextBlock *obj) |
virtual void | updateContent ()=0 |
virtual void | saveToXMI (QXmlStreamWriter &writer) |
virtual void | loadFromXMI (QDomElement &root) |
![]() | |
OwnedCodeBlock (UMLObject *parent) | |
virtual | ~OwnedCodeBlock () |
UMLObject * | getParentObject () |
![]() | |
CodeBlockWithComments (CodeDocument *parent, const QString &body=QString(), const QString &comment=QString()) | |
virtual | ~CodeBlockWithComments () |
void | setComment (CodeComment *object) |
CodeComment * | getComment () const |
virtual QString | toString () const |
void | setOverallIndentationLevel (int level) |
![]() | |
CodeBlock (CodeDocument *parent, const QString &body=QString()) | |
virtual | ~CodeBlock () |
void | setContentType (ContentType new_var) |
ContentType | contentType () const |
![]() | |
TextBlock (CodeDocument *parent, const QString &text=QString()) | |
virtual | ~TextBlock () |
void | setText (const QString &text) |
QString | getText () const |
void | appendText (const QString &text) |
void | setTag (const QString &value) |
QString | getTag () const |
CodeDocument * | getParentDocument () const |
void | setWriteOutText (bool write) |
bool | getWriteOutText () const |
void | setIndentationLevel (int level) |
int | getIndentationLevel () const |
QString | getIndentationString (int level=0) const |
virtual QString | unformatText (const QString &text, const QString &indent=QString()) |
bool | canDelete () const |
virtual QString | getNewEditorLine (int amount=0) |
virtual int | firstEditableLine () |
virtual int | lastEditableLine () |
Protected Member Functions | |
virtual void | release () |
virtual void | setAttributesOnNode (QXmlStreamWriter &writer) |
virtual void | setAttributesFromNode (QDomElement &element) |
void | forceRelease () |
![]() | |
void | setCanDelete (bool canDelete) |
Private Member Functions | |
void | init (CodeClassField *parent) |
Private Attributes | |
CodeClassField * | m_parentclassfield |
Friends | |
class | CodeClassField |
Additional Inherited Members | |
![]() | |
enum | ContentType { AutoGenerated =0 , UserGenerated } |
![]() | |
static QString | enumToString (const ContentType &val) |
![]() | |
static QString | getIndentation () |
static QString | getNewLineEndingChars () |
static QString | formatMultiLineText (const QString &work, const QString &linePrefix, const QString &breakStr, bool addBreak=true, bool lastLineHasBreak=true) |
static QString | encodeText (const QString &text, const QString &endLine) |
static QString | decodeText (const QString &text, const QString &endLine) |
Used to declare classifier fields (e.g. either class attributes or classifier associations) in the code document for any given code classfield. This is a special CodeBlockWithComments which is "sync'd" to the parent CodeClassField. Note: keep the inheritance sequence: QObject needs to be first in inheritance list. Basically a class to allow for synchronization of the contents based on the values of the parentClassField's parentObject.
|
explicit |
Constructor.
|
virtual |
Empty Destructor
|
protected |
So parent can actually release this block.
CodeClassField * CodeClassFieldDeclarationBlock::getParentClassField | ( | ) |
Get the value of m_parentclassfield.
UMLObject * CodeClassFieldDeclarationBlock::getParentObject | ( | ) |
A utility method to get the parent object of the parentCodeClassfield.
|
private |
|
virtual |
Load params from the appropriate XMI element node.
Reimplemented from CodeBlockWithComments.
|
protectedvirtual |
Causes the text block to release all of its connections and any other text blocks that it 'owns'. Needed to be called prior to deletion of the textblock.
Reimplemented from OwnedCodeBlock.
|
virtual |
Save the XMI representation of this object.
Reimplemented from CodeBlockWithComments.
|
protectedvirtual |
Set the class attributes of this object from the passed element node.
Reimplemented from CodeBlockWithComments.
|
virtual |
Set the class attributes from a passed object.
Reimplemented from CodeBlockWithComments.
|
protectedvirtual |
Set attributes of the node that represents this class in the XMI document.
Reimplemented from CodeBlockWithComments.
|
virtualslot |
|
pure virtual |
|
friend |
|
private |