umbrello/umbrello
#include <dclassdeclarationblock.h>
Public Member Functions | |
DClassDeclarationBlock (DClassifierCodeDocument *parentDoc, const QString &start="", const QString &endText="}", const QString &comment="") | |
virtual | ~DClassDeclarationBlock () |
virtual void | loadFromXMI (QDomElement &root) |
virtual void | saveToXMI (QDomDocument &doc, QDomElement &root) |
void | updateContent () |
Public Member Functions inherited from OwnedHierarchicalCodeBlock | |
OwnedHierarchicalCodeBlock (UMLObject *parent, CodeDocument *parentDoc, const QString &start="", const QString &end="", const QString &comment="") | |
virtual | ~OwnedHierarchicalCodeBlock () |
CodeDocument * | getParentDocument () |
Public Member Functions inherited from OwnedCodeBlock | |
OwnedCodeBlock (UMLObject *parent) | |
virtual | ~OwnedCodeBlock () |
UMLObject * | getParentObject () |
Public Member Functions inherited from HierarchicalCodeBlock | |
HierarchicalCodeBlock (CodeDocument *doc, const QString &startString="", const QString &endString="", const QString &comment="") | |
virtual | ~HierarchicalCodeBlock () |
void | addCodeClassFieldMethods (CodeClassFieldList &list) |
bool | addTextBlock (TextBlock *add_object) |
QString | getEndText () const |
QString | getStartText () const |
QString | getUniqueTag () |
QString | getUniqueTag (const QString &prefix) |
bool | insertTextBlock (TextBlock *newBlock, TextBlock *existingBlock, bool after=true) |
virtual CodeBlock * | newCodeBlock () |
virtual CodeBlockWithComments * | newCodeBlockWithComments () |
virtual HierarchicalCodeBlock * | newHierarchicalCodeBlock () |
bool | removeTextBlock (TextBlock *remove_object) |
void | setEndText (const QString &new_var) |
void | setStartText (const QString &text) |
virtual QString | toString () const |
Public Member Functions inherited from CodeBlockWithComments | |
CodeBlockWithComments (CodeDocument *parent, const QString &body="", const QString &comment="") | |
virtual | ~CodeBlockWithComments () |
CodeComment * | getComment () const |
void | setComment (CodeComment *object) |
void | setOverallIndentationLevel (int level) |
Public Member Functions inherited from CodeBlock | |
CodeBlock (CodeDocument *parent, const QString &body="") | |
virtual | ~CodeBlock () |
ContentType | contentType () const |
void | setContentType (ContentType new_var) |
Public Member Functions inherited from TextBlock | |
TextBlock (CodeDocument *parent, const QString &text="") | |
virtual | ~TextBlock () |
void | appendText (const QString &text) |
bool | canDelete () const |
virtual int | firstEditableLine () |
int | getIndentationLevel () const |
QString | getIndentationString (int level=0) const |
virtual QString | getNewEditorLine (int amount=0) |
CodeDocument * | getParentDocument () const |
QString | getTag () const |
QString | getText () const |
bool | getWriteOutText () const |
virtual int | lastEditableLine () |
void | setIndentationLevel (int level) |
void | setTag (const QString &value) |
void | setText (const QString &text) |
void | setWriteOutText (bool write) |
virtual QString | unformatText (const QString &text, const QString &indent="") |
Public Member Functions inherited from CodeGenObjectWithTextBlocks | |
CodeGenObjectWithTextBlocks (CodeDocument *parent) | |
virtual | ~CodeGenObjectWithTextBlocks () |
CodeBlockWithComments * | addOrUpdateTaggedCodeBlockWithComments (const QString &tag, const QString &text, const QString &ctext, int indentLevel, bool forceUserBlockUpdate) |
CodeComment * | addOrUpdateTaggedCodeComment (const QString &tag="", const QString &text="", int indentationLevel=0) |
CodeGenObjectWithTextBlocks * | findParentObjectForTaggedTextBlock (const QString &tag) |
TextBlock * | findTextBlockByTag (const QString &tag) |
virtual CodeBlockWithComments * | getCodeBlockWithComments (const QString &tag, const QString &comment, int indentLevel) |
virtual HierarchicalCodeBlock * | getHierarchicalCodeBlock (const QString &tag, const QString &comment, int indentLevel) |
TextBlockList * | getTextBlockList () const |
Protected Member Functions | |
virtual void | setAttributesFromObject (TextBlock *obj) |
Protected Member Functions inherited from OwnedHierarchicalCodeBlock | |
virtual void | release () |
virtual void | setAttributesFromNode (QDomElement &element) |
virtual void | setAttributesOnNode (QDomDocument &doc, QDomElement &blockElement) |
Protected Member Functions inherited from HierarchicalCodeBlock | |
TextBlock * | findCodeClassFieldTextBlockByTag (const QString &tag) |
Protected Member Functions inherited from TextBlock | |
void | setCanDelete (bool canDelete) |
Protected Member Functions inherited from CodeGenObjectWithTextBlocks | |
virtual void | loadChildTextBlocksFromNode (QDomElement &root) |
virtual void | resetTextBlocks () |
void | setAttributesFromObject (CodeGenObjectWithTextBlocks *obj) |
Additional Inherited Members | |
Public Types inherited from CodeBlock | |
enum | ContentType { AutoGenerated =0, UserGenerated } |
Public Slots inherited from OwnedHierarchicalCodeBlock | |
void | syncToParent () |
Public Slots inherited from OwnedCodeBlock | |
virtual void | syncToParent () |
Static Public Member Functions inherited from CodeBlock | |
static QString | enumToString (const ContentType &val) |
Static Public Member Functions inherited from TextBlock | |
static QString | decodeText (const QString &text, const QString &endLine) |
static QString | encodeText (const QString &text, const QString &endLine) |
static QString | formatMultiLineText (const QString &work, const QString &linePrefix, const QString &breakStr, bool addBreak=true, bool lastLineHasBreak=true) |
static QString | getIndentation () |
static QString | getNewLineEndingChars () |
Protected Attributes inherited from CodeGenObjectWithTextBlocks | |
QMap< QString, TextBlock * > | m_textBlockTagMap |
TextBlockList | m_textblockVector |
Detailed Description
Definition at line 20 of file dclassdeclarationblock.h.
Constructor & Destructor Documentation
|
explicit |
Empty Constructor.
Definition at line 21 of file dclassdeclarationblock.cpp.
|
virtual |
Empty Destructor.
Definition at line 27 of file dclassdeclarationblock.cpp.
Member Function Documentation
|
virtual |
Load params from the appropriate XMI element node.
Implements OwnedHierarchicalCodeBlock.
Definition at line 31 of file dclassdeclarationblock.cpp.
|
virtual |
Save the XMI representation of this object.
Implements OwnedHierarchicalCodeBlock.
Definition at line 41 of file dclassdeclarationblock.cpp.
|
protectedvirtual |
Set the class attributes from a passed object.
Reimplemented from OwnedHierarchicalCodeBlock.
Definition at line 36 of file dclassdeclarationblock.cpp.
|
virtual |
Update the start and end text for this hierarchical codeblock.
Implements OwnedHierarchicalCodeBlock.
Definition at line 50 of file dclassdeclarationblock.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.