umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <ownedhierarchicalcodeblock.h>
Public Slots | |
void | syncToParent () |
![]() | |
virtual void | syncToParent () |
Public Member Functions | |
OwnedHierarchicalCodeBlock (UMLObject *parent, CodeDocument *parentDoc, const QString &start=QString(), const QString &end=QString(), const QString &comment=QString()) | |
virtual | ~OwnedHierarchicalCodeBlock () |
CodeDocument * | getParentDocument () |
virtual void | updateContent ()=0 |
virtual void | saveToXMI (QXmlStreamWriter &writer)=0 |
virtual void | loadFromXMI (QDomElement &root)=0 |
![]() | |
OwnedCodeBlock (UMLObject *parent) | |
virtual | ~OwnedCodeBlock () |
UMLObject * | getParentObject () |
![]() | |
HierarchicalCodeBlock (CodeDocument *doc, const QString &startString=QString(), const QString &endString=QString(), const QString &comment=QString()) | |
virtual | ~HierarchicalCodeBlock () |
void | setEndText (const QString &new_var) |
QString | getEndText () const |
bool | addTextBlock (TextBlock *add_object) |
bool | insertTextBlock (TextBlock *newBlock, TextBlock *existingBlock, bool after=true) |
bool | removeTextBlock (TextBlock *remove_object) |
void | setStartText (const QString &text) |
QString | getStartText () const |
virtual QString | toString () const |
QString | getUniqueTag () |
QString | getUniqueTag (const QString &prefix) |
void | addCodeClassFieldMethods (CodeClassFieldList &list) |
virtual CodeBlock * | newCodeBlock () |
virtual CodeBlockWithComments * | newCodeBlockWithComments () |
virtual HierarchicalCodeBlock * | newHierarchicalCodeBlock () |
![]() | |
CodeBlockWithComments (CodeDocument *parent, const QString &body=QString(), const QString &comment=QString()) | |
virtual | ~CodeBlockWithComments () |
void | setComment (CodeComment *object) |
CodeComment * | getComment () 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 () |
![]() | |
CodeGenObjectWithTextBlocks (CodeDocument *parent) | |
virtual | ~CodeGenObjectWithTextBlocks () |
TextBlockList * | getTextBlockList () const |
virtual HierarchicalCodeBlock * | getHierarchicalCodeBlock (const QString &tag, const QString &comment, int indentLevel) |
virtual CodeBlockWithComments * | getCodeBlockWithComments (const QString &tag, const QString &comment, int indentLevel) |
CodeComment * | addOrUpdateTaggedCodeComment (const QString &tag=QString(), const QString &text=QString(), int indentationLevel=0) |
CodeBlockWithComments * | addOrUpdateTaggedCodeBlockWithComments (const QString &tag, const QString &text, const QString &ctext, int indentLevel, bool forceUserBlockUpdate) |
TextBlock * | findTextBlockByTag (const QString &tag) |
CodeGenObjectWithTextBlocks * | findParentObjectForTaggedTextBlock (const QString &tag) |
Protected Member Functions | |
virtual void | release () |
virtual void | setAttributesOnNode (QXmlStreamWriter &writer) |
virtual void | setAttributesFromNode (QDomElement &element) |
virtual void | setAttributesFromObject (TextBlock *obj) |
![]() | |
TextBlock * | findCodeClassFieldTextBlockByTag (const QString &tag) |
![]() | |
void | setCanDelete (bool canDelete) |
![]() | |
void | setAttributesFromObject (CodeGenObjectWithTextBlocks *obj) |
virtual void | loadChildTextBlocksFromNode (QDomElement &root) |
virtual void | resetTextBlocks () |
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) |
![]() | |
QMap< QString, TextBlock * > | m_textBlockTagMap |
TextBlockList | m_textblockVector |
class OwnedHierarchicalCodeBlock A "chunk" of code within the code document that is "owned" by some umlobject. This is an abstract class that should be inherited. Note: keep the inheritance sequence: QObject needs to be first in inheritance list.
OwnedHierarchicalCodeBlock::OwnedHierarchicalCodeBlock | ( | UMLObject * | parent, |
CodeDocument * | parentDoc, | ||
const QString & | start = QString() , |
||
const QString & | end = QString() , |
||
const QString & | comment = QString() |
||
) |
Constructor with QString so we can create & populate it in one step.
|
virtual |
Empty Destructor
CodeDocument * OwnedHierarchicalCodeBlock::getParentDocument | ( | ) |
Return the parent code document
|
pure virtual |
load params from the appropriate XMI element node.
Reimplemented from HierarchicalCodeBlock.
Implemented in CPPHeaderClassDeclarationBlock, DClassDeclarationBlock, JavaClassDeclarationBlock, and RubyClassDeclarationBlock.
|
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 HierarchicalCodeBlock.
|
pure virtual |
Save the XMI representation of this object
Reimplemented from HierarchicalCodeBlock.
Implemented in CPPHeaderClassDeclarationBlock, DClassDeclarationBlock, JavaClassDeclarationBlock, and RubyClassDeclarationBlock.
|
protectedvirtual |
set the class attributes of this object from the passed element node.
Reimplemented from HierarchicalCodeBlock.
|
protectedvirtual |
set the class attributes from a passed object
Reimplemented from HierarchicalCodeBlock.
Reimplemented in CPPHeaderClassDeclarationBlock, and DClassDeclarationBlock.
|
protectedvirtual |
set attributes of the node that represents this class in the XMI document.
Reimplemented from HierarchicalCodeBlock.
|
slot |
|
pure virtual |
Implements OwnedCodeBlock.
Implemented in CPPHeaderClassDeclarationBlock, DClassDeclarationBlock, JavaClassDeclarationBlock, and RubyClassDeclarationBlock.