umbrello/umbrello
#include <hierarchicalcodeblock.h>
Protected Member Functions | |
TextBlock * | findCodeClassFieldTextBlockByTag (const QString &tag) |
virtual void | release () |
virtual void | setAttributesFromNode (QDomElement &element) |
virtual void | setAttributesFromObject (TextBlock *obj) |
virtual void | setAttributesOnNode (QDomDocument &doc, QDomElement &elem) |
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 } |
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 22 of file hierarchicalcodeblock.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 27 of file hierarchicalcodeblock.cpp.
|
virtual |
Empty Destructor.
Definition at line 35 of file hierarchicalcodeblock.cpp.
Member Function Documentation
void HierarchicalCodeBlock::addCodeClassFieldMethods | ( | CodeClassFieldList & | list | ) |
Utility method to add accessormethods in this object.
Definition at line 215 of file hierarchicalcodeblock.cpp.
|
virtual |
Add a TextBlock object to the m_textblockVector List.
Reimplemented from CodeGenObjectWithTextBlocks.
Definition at line 93 of file hierarchicalcodeblock.cpp.
|
protectedvirtual |
look for specific text blocks which belong to code classfields
Implements CodeGenObjectWithTextBlocks.
Definition at line 362 of file hierarchicalcodeblock.cpp.
QString HierarchicalCodeBlock::getEndText | ( | ) | const |
Get the value of m_endText.
- Returns
- the value of m_endText
Definition at line 52 of file hierarchicalcodeblock.cpp.
QString HierarchicalCodeBlock::getStartText | ( | ) | const |
- Returns
- QString
Definition at line 207 of file hierarchicalcodeblock.cpp.
QString HierarchicalCodeBlock::getUniqueTag | ( | ) |
return a unique, and currently unallocated, text block tag for this hblock
Definition at line 60 of file hierarchicalcodeblock.cpp.
return a unique, and currently unallocated, text block tag for this hblock
Implements CodeGenObjectWithTextBlocks.
Definition at line 68 of file hierarchicalcodeblock.cpp.
|
virtual |
Insert a new text block before/after the existing text block.
Returns false if it cannot insert the textblock.
Implements CodeGenObjectWithTextBlocks.
Definition at line 107 of file hierarchicalcodeblock.cpp.
|
virtual |
load params from the appropriate XMI element node.
Reimplemented from CodeBlockWithComments.
Reimplemented in OwnedHierarchicalCodeBlock, RubyClassDeclarationBlock, CPPHeaderClassDeclarationBlock, XMLElementCodeBlock, DClassDeclarationBlock, and JavaClassDeclarationBlock.
Definition at line 269 of file hierarchicalcodeblock.cpp.
|
virtual |
Virtual methods that return a new code document objects.
Implements CodeGenObjectWithTextBlocks.
Definition at line 73 of file hierarchicalcodeblock.cpp.
|
virtual |
Implements CodeGenObjectWithTextBlocks.
Definition at line 78 of file hierarchicalcodeblock.cpp.
|
virtual |
Implements CodeGenObjectWithTextBlocks.
Definition at line 83 of file hierarchicalcodeblock.cpp.
|
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 TextBlock.
Reimplemented in OwnedHierarchicalCodeBlock.
Definition at line 386 of file hierarchicalcodeblock.cpp.
|
virtual |
Remove a TextBlock object from m_textblockVector List returns boolean - true if successful.
Reimplemented from CodeGenObjectWithTextBlocks.
Definition at line 169 of file hierarchicalcodeblock.cpp.
|
virtual |
Save the XMI representation of this object.
Reimplemented from CodeBlockWithComments.
Reimplemented in OwnedHierarchicalCodeBlock, RubyClassDeclarationBlock, CPPHeaderClassDeclarationBlock, XMLElementCodeBlock, DClassDeclarationBlock, and JavaClassDeclarationBlock.
Definition at line 240 of file hierarchicalcodeblock.cpp.
|
protectedvirtual |
set the class attributes of this object from the passed element node.
Reimplemented from CodeBlockWithComments.
Reimplemented in XMLElementCodeBlock, and OwnedHierarchicalCodeBlock.
Definition at line 278 of file hierarchicalcodeblock.cpp.
|
protectedvirtual |
set the class attributes from a passed object
Reimplemented from CodeBlockWithComments.
Reimplemented in OwnedHierarchicalCodeBlock, DClassDeclarationBlock, and CPPHeaderClassDeclarationBlock.
Definition at line 297 of file hierarchicalcodeblock.cpp.
|
protectedvirtual |
set attributes of the node that represents this class in the XMI document.
Reimplemented from CodeBlockWithComments.
Reimplemented in XMLElementCodeBlock, and OwnedHierarchicalCodeBlock.
Definition at line 251 of file hierarchicalcodeblock.cpp.
void HierarchicalCodeBlock::setEndText | ( | const QString & | new_var | ) |
Set the value of m_endText.
- Parameters
-
new_var the new value of m_endText
Definition at line 43 of file hierarchicalcodeblock.cpp.
void HierarchicalCodeBlock::setStartText | ( | const QString & | text | ) |
- Parameters
-
text
Definition at line 199 of file hierarchicalcodeblock.cpp.
|
virtual |
- Returns
- QString
Reimplemented from CodeBlockWithComments.
Definition at line 313 of file hierarchicalcodeblock.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.