umbrello/umbrello
#include <cppsourcecodedocument.h>
Protected Member Functions | |
void | resetTextBlocks () |
Protected Member Functions inherited from ClassifierCodeDocument | |
void | declareClassFields (CodeClassFieldList &list, CodeGenObjectWithTextBlocks *parent) |
TextBlock * | findCodeClassFieldTextBlockByTag (const QString &tag) |
void | loadClassFieldsFromXMI (QDomElement &childElem) |
virtual void | setAttributesFromNode (QDomElement &element) |
virtual void | setAttributesOnNode (QDomDocument &doc, QDomElement &blockElement) |
void | syncClassFields () |
void | syncNamesToParent () |
Protected Member Functions inherited from CodeDocument | |
void | addChildTagToMap (const QString &tag, TextBlock *tb) |
void | removeChildTagFromMap (const QString &tag) |
void | updateHeader () |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Member Functions inherited from CodeGenObjectWithTextBlocks | |
virtual void | loadChildTextBlocksFromNode (QDomElement &root) |
void | setAttributesFromObject (CodeGenObjectWithTextBlocks *obj) |
Additional Inherited Members | |
Public Slots inherited from ClassifierCodeDocument | |
void | addAssociationClassField (UMLAssociation *assoc, bool syncToParentIfAdded=true) |
void | addAttributeClassField (UMLClassifierListItem *at, bool syncToParentIfAdded=true) |
void | addOperation (UMLClassifierListItem *obj) |
void | removeAssociationClassField (UMLAssociation *assoc) |
void | removeAttributeClassField (UMLClassifierListItem *at) |
void | removeOperation (UMLClassifierListItem *obj) |
void | syncToParent () |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Protected Attributes inherited from CodeGenObjectWithTextBlocks | |
QMap< QString, TextBlock * > | m_textBlockTagMap |
TextBlockList | m_textblockVector |
Properties inherited from QObject | |
objectName | |
Detailed Description
A CPP UMLClassifier Source Code Document.
Definition at line 22 of file cppsourcecodedocument.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
We carve the CPP document up into 2 documents, "source" and "header".
The sections of each are as follows:
- header
- includes
- constructor methods
- all other methods
Definition at line 36 of file cppsourcecodedocument.cpp.
|
virtual |
Empty Destructor.
Definition at line 51 of file cppsourcecodedocument.cpp.
Member Function Documentation
|
virtual |
Add a code operation to this cpp classifier code document.
In the vannilla version, we just tack all operations on the end of the document.
- Parameters
-
op the code operation
- Returns
- bool which is true IF the code operation was added successfully
Implements ClassifierCodeDocument.
Definition at line 55 of file cppsourcecodedocument.cpp.
|
protectedvirtual |
Reset/clear our inventory of textblocks in this document.
Reimplemented from CodeDocument.
Definition at line 72 of file cppsourcecodedocument.cpp.
|
virtual |
This method will cause the class to rebuild its text representation.
based on the parent classifier object. For any situation in which this is called, we are either building the code document up, or replacing/regenerating the existing auto-generated parts. As such, we will want to insert everything we reasonably will want during creation. We can set various parts of the document (esp. the comments) to appear or not, as needed.
Implements ClassifierCodeDocument.
Definition at line 82 of file cppsourcecodedocument.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.