#include <hierarchicalcodeblock.h>
|
| 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 void | saveToXMI (QXmlStreamWriter &writer) |
|
virtual void | loadFromXMI (QDomElement &root) |
|
virtual QString | toString () const |
|
QString | getUniqueTag () |
|
QString | getUniqueTag (const QString &prefix) |
|
void | addCodeClassFieldMethods (CodeClassFieldList &list) |
|
virtual CodeBlock * | newCodeBlock () |
|
virtual CodeBlockWithComments * | newCodeBlockWithComments () |
|
virtual HierarchicalCodeBlock * | newHierarchicalCodeBlock () |
|
| 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) |
|
◆ HierarchicalCodeBlock()
◆ ~HierarchicalCodeBlock()
HierarchicalCodeBlock::~HierarchicalCodeBlock |
( |
| ) |
|
|
virtual |
◆ addCodeClassFieldMethods()
Utility method to add accessormethods in this object
◆ addTextBlock()
bool HierarchicalCodeBlock::addTextBlock |
( |
TextBlock * | add_object | ) |
|
|
virtual |
◆ childTextBlocksToString()
QString HierarchicalCodeBlock::childTextBlocksToString |
( |
| ) |
const |
|
private |
◆ findCodeClassFieldTextBlockByTag()
◆ getEndText()
QString HierarchicalCodeBlock::getEndText |
( |
| ) |
const |
Get the value of m_endText
- Returns
- the value of m_endText
◆ getStartText()
QString HierarchicalCodeBlock::getStartText |
( |
| ) |
const |
◆ getUniqueTag() [1/2]
QString HierarchicalCodeBlock::getUniqueTag |
( |
| ) |
|
return a unique, and currently unallocated, text block tag for this hblock
◆ getUniqueTag() [2/2]
◆ initAttributes()
void HierarchicalCodeBlock::initAttributes |
( |
| ) |
|
|
private |
◆ insertTextBlock()
Insert a new text block before/after the existing text block. Returns false if it cannot insert the textblock.
Implements CodeGenObjectWithTextBlocks.
◆ loadFromXMI()
◆ newCodeBlock()
CodeBlock * HierarchicalCodeBlock::newCodeBlock |
( |
| ) |
|
|
virtual |
◆ newCodeBlockWithComments()
◆ newHierarchicalCodeBlock()
◆ release()
void HierarchicalCodeBlock::release |
( |
| ) |
|
|
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.
◆ removeTextBlock()
bool HierarchicalCodeBlock::removeTextBlock |
( |
TextBlock * | remove_object | ) |
|
|
virtual |
◆ saveToXMI()
◆ setAttributesFromNode()
◆ setAttributesFromObject()
void HierarchicalCodeBlock::setAttributesFromObject |
( |
TextBlock * | obj | ) |
|
|
protectedvirtual |
◆ setAttributesOnNode()
◆ setEndText()
Set the value of m_endText
- Parameters
-
new_var | the new value of m_endText |
◆ setStartText()
◆ toString()
QString HierarchicalCodeBlock::toString |
( |
| ) |
const |
|
virtual |
◆ CodeGenObjectWithTextBlocks
◆ m_endText
QString HierarchicalCodeBlock::m_endText |
|
private |
◆ m_startText
QString HierarchicalCodeBlock::m_startText |
|
private |
The documentation for this class was generated from the following files: