umbrello/umbrello
#include <ownedhierarchicalcodeblock.h>
Public Slots | |
void | syncToParent () |
Public Slots inherited from OwnedCodeBlock | |
virtual void | syncToParent () |
Public Member Functions | |
OwnedHierarchicalCodeBlock (UMLObject *parent, CodeDocument *parentDoc, const QString &start="", const QString &end="", const QString &comment="") | |
virtual | ~OwnedHierarchicalCodeBlock () |
CodeDocument * | getParentDocument () |
virtual void | loadFromXMI (QDomElement &root)=0 |
virtual void | saveToXMI (QDomDocument &doc, QDomElement &root)=0 |
virtual void | updateContent ()=0 |
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 | release () |
virtual void | setAttributesFromNode (QDomElement &element) |
virtual void | setAttributesFromObject (TextBlock *obj) |
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 } |
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
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.
Definition at line 26 of file ownedhierarchicalcodeblock.h.
Constructor & Destructor Documentation
OwnedHierarchicalCodeBlock::OwnedHierarchicalCodeBlock | ( | UMLObject * | parent, |
CodeDocument * | parentDoc, | ||
const QString & | start = "" , |
||
const QString & | end = "" , |
||
const QString & | comment = "" |
||
) |
Constructor with QString so we can create & populate it in one step.
Definition at line 23 of file ownedhierarchicalcodeblock.cpp.
|
virtual |
Empty Destructor.
Definition at line 29 of file ownedhierarchicalcodeblock.cpp.
Member Function Documentation
CodeDocument * OwnedHierarchicalCodeBlock::getParentDocument | ( | ) |
Return the parent code document.
Definition at line 93 of file ownedhierarchicalcodeblock.cpp.
|
pure virtual |
load params from the appropriate XMI element node.
Reimplemented from HierarchicalCodeBlock.
Implemented in RubyClassDeclarationBlock, CPPHeaderClassDeclarationBlock, DClassDeclarationBlock, and JavaClassDeclarationBlock.
|
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.
Definition at line 38 of file ownedhierarchicalcodeblock.cpp.
|
pure virtual |
Save the XMI representation of this object.
Reimplemented from HierarchicalCodeBlock.
Implemented in RubyClassDeclarationBlock, CPPHeaderClassDeclarationBlock, DClassDeclarationBlock, and JavaClassDeclarationBlock.
|
protectedvirtual |
set the class attributes of this object from the passed element node.
Reimplemented from HierarchicalCodeBlock.
Definition at line 83 of file ownedhierarchicalcodeblock.cpp.
|
protectedvirtual |
set the class attributes from a passed object
Reimplemented from HierarchicalCodeBlock.
Reimplemented in DClassDeclarationBlock, and CPPHeaderClassDeclarationBlock.
Definition at line 47 of file ownedhierarchicalcodeblock.cpp.
|
protectedvirtual |
set attributes of the node that represents this class in the XMI document.
Reimplemented from HierarchicalCodeBlock.
Definition at line 57 of file ownedhierarchicalcodeblock.cpp.
|
slot |
Definition at line 98 of file ownedhierarchicalcodeblock.cpp.
|
pure virtual |
Implements OwnedCodeBlock.
Implemented in DClassDeclarationBlock, JavaClassDeclarationBlock, RubyClassDeclarationBlock, and CPPHeaderClassDeclarationBlock.
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.