umbrello
2.34.3
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
Go to the documentation of this file.
8 #ifndef HIERARCHICALCODEBLOCK_H
9 #define HIERARCHICALCODEBLOCK_H
18 class QXmlStreamWriter;
25 explicit HierarchicalCodeBlock (
CodeDocument * doc,
const QString &startString = QString(),
const QString &endString = QString(),
const QString &comment = QString());
46 virtual void saveToXMI(QXmlStreamWriter& writer);
83 #endif // HIERARCHICALCODEBLOCK_H
virtual void resetTextBlocks()
Definition: codegenobjectwithtextblocks.cpp:322
void setEndText(const QString &new_var)
Definition: hierarchicalcodeblock.cpp:42
bool getWriteOutText() const
Definition: textblock.cpp:137
void initAttributes()
Definition: hierarchicalcodeblock.cpp:372
virtual QString toString() const
Definition: textblock.cpp:400
HierarchicalCodeBlock(CodeDocument *doc, const QString &startString=QString(), const QString &endString=QString(), const QString &comment=QString())
Definition: hierarchicalcodeblock.cpp:26
void addChildTagToMap(const QString &tag, TextBlock *tb)
Definition: codedocument.cpp:486
QString m_endText
Definition: hierarchicalcodeblock.h:76
void setStartText(const QString &text)
Definition: hierarchicalcodeblock.cpp:197
virtual void setAttributesOnNode(QXmlStreamWriter &writer)
Definition: hierarchicalcodeblock.cpp:249
QMap< QString, TextBlock * > m_textBlockTagMap
Definition: codegenobjectwithtextblocks.h:92
TextBlock * findTextBlockByTag(const QString &tag)
Definition: codegenobjectwithtextblocks.cpp:121
static QString encodeText(const QString &text, const QString &endLine)
Definition: textblock.cpp:374
TextBlock * findCodeClassFieldTextBlockByTag(const QString &tag)
Definition: hierarchicalcodeblock.cpp:360
virtual CodeBlockWithComments * newCodeBlockWithComments()
Definition: hierarchicalcodeblock.cpp:77
#define logError0(s)
Definition: uml.h:537
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2383
virtual bool addTextBlock(TextBlock *add_object)
Definition: codegenobjectwithtextblocks.cpp:56
QString getIndentationString(int level=0) const
Definition: textblock.cpp:189
Definition: codeaccessormethod.h:17
void setTag(const QString &value)
Definition: textblock.cpp:117
Definition: codeclassfield.h:25
Definition: codedocument.h:29
void removeChildTagFromMap(const QString &tag)
Definition: codedocument.cpp:481
static QString decodeText(const QString &text, const QString &endLine)
Definition: textblock.cpp:388
virtual CodeBlock * newCodeBlock()
Definition: hierarchicalcodeblock.cpp:72
TextBlockList * getTextBlockList() const
Definition: codegenobjectwithtextblocks.cpp:45
Definition: codeblock.h:16
Definition: classifiercodedocument.h:28
virtual void release()
Definition: hierarchicalcodeblock.cpp:384
void addCodeClassFieldMethods(CodeClassFieldList &list)
Definition: hierarchicalcodeblock.cpp:213
virtual ~HierarchicalCodeBlock()
Definition: hierarchicalcodeblock.cpp:34
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of it
Definition: GPL-2.0-only.txt:64
Definition: codegenobjectwithtextblocks.h:28
TextBlockList m_textblockVector
Definition: codegenobjectwithtextblocks.h:93
TextBlock * findCodeClassFieldTextBlockByTag(const QString &tag)
Definition: classifiercodedocument.cpp:773
QString childTextBlocksToString() const
Definition: hierarchicalcodeblock.cpp:344
QString getStartText() const
Definition: hierarchicalcodeblock.cpp:205
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: hierarchicalcodeblock.cpp:238
virtual void loadFromXMI(QDomElement &root)
Definition: hierarchicalcodeblock.cpp:267
QList< CodeAccessorMethod * > CodeAccessorMethodList
Definition: codeaccessormethodlist.h:12
bool addTextBlock(TextBlock *add_object)
Definition: hierarchicalcodeblock.cpp:92
static UMLApp * app()
Definition: uml.cpp:276
virtual void setAttributesFromNode(QDomElement &element)
Definition: codegenobjectwithtextblocks.cpp:372
virtual CodeBlock * newCodeBlock()
Definition: codedocument.cpp:456
ContentType contentType() const
Definition: codeblock.cpp:50
virtual void release()
Definition: textblock.cpp:271
@ AutoGenerated
the content was generated by code generation itself
Definition: codeblock.h:24
static QString formatMultiLineText(const QString &work, const QString &linePrefix, const QString &breakStr, bool addBreak=true, bool lastLineHasBreak=true)
Definition: textblock.cpp:284
bool insertTextBlock(TextBlock *newBlock, TextBlock *existingBlock, bool after=true)
Definition: hierarchicalcodeblock.cpp:106
void setCanDelete(bool canDelete)
Definition: textblock.cpp:46
Definition: hierarchicalcodeblock.h:20
QString getEndText() const
Definition: hierarchicalcodeblock.cpp:51
void setAttributesFromObject(CodeGenObjectWithTextBlocks *obj)
Definition: codegenobjectwithtextblocks.cpp:338
QString getNewLineEndingChars() const
Definition: codegenerationpolicy.cpp:249
virtual CodeBlockWithComments * newCodeBlockWithComments()
Definition: codedocument.cpp:465
QList< TextBlock * > TextBlockList
Definition: textblocklist.h:12
QString m_startText
Definition: hierarchicalcodeblock.h:75
QString getUniqueTag()
Definition: hierarchicalcodeblock.cpp:59
CodeDocument * getParentDocument() const
Definition: textblock.cpp:66
virtual HierarchicalCodeBlock * newHierarchicalCodeBlock()
Definition: hierarchicalcodeblock.cpp:82
virtual void setAttributesFromNode(QDomElement &element)
Definition: hierarchicalcodeblock.cpp:276
virtual void setAttributesOnNode(QXmlStreamWriter &writer)
Definition: codegenobjectwithtextblocks.cpp:354
CodeAccessorMethodList getMethodList() const
Definition: codeclassfield.cpp:188
QList< CodeClassField * > CodeClassFieldList
Definition: codeclassfieldlist.h:12
Definition: textblock.h:22
#define logWarn2(s, a, b)
Definition: uml.h:548
virtual void setAttributesFromObject(TextBlock *obj)
Definition: hierarchicalcodeblock.cpp:295
QString getTag() const
Definition: textblock.cpp:106
bool removeTextBlock(TextBlock *remove_object)
Definition: hierarchicalcodeblock.cpp:167
virtual QString getUniqueTag(const QString &prefix=QString())
Definition: codedocument.cpp:190
virtual QString toString() const
Definition: hierarchicalcodeblock.cpp:311