[Uml-devel] branches/work/soc-umbrello

Gopala Krishna A krishna.ggk at gmail.com
Mon Mar 23 09:20:09 UTC 2009


SVN commit 943051 by gopala:

Merged revisions 917351 via svnmerge from 
svn+ssh://svn.kde.org/home/kde/trunk/KDE/kdesdk/umbrello

........
  r917351 | fischer | 2009-01-27 23:57:02 +0530 (Tue, 27 Jan 2009) | 1 line
  
  Fixing some comments.
........


 _M            . (directory)  
 M  +11 -9     umbrello/codegenerators/codedocument.cpp  
 M  +0 -15     umbrello/codegenerators/codedocument.h  


** branches/work/soc-umbrello #property svnmerge-integrated
   - /trunk/KDE/kdesdk/umbrello:1-854015,854687,854787,855207-866962,866965-870129,871091,872169-887978,889968-889981,890075-890805,896752-896872,901256-910119,911086,911706-911805,912902,913652,916104,916343,916990-917128
   + /trunk/KDE/kdesdk/umbrello:1-854015,854687,854787,855207-866962,866965-870129,871091,872169-887978,889968-889981,890075-890805,896752-896872,901256-910119,911086,911706-911805,912902,913652,916104,916343,916990-917128,917351
--- branches/work/soc-umbrello/umbrello/codegenerators/codedocument.cpp #943050:943051
@@ -23,6 +23,9 @@
 #include "umldoc.h"
 #include "uml.h"
 
+/**
+ * Constructor.
+ */
 CodeDocument::CodeDocument () : CodeGenObjectWithTextBlocks(this),
     m_lastTagIndex(0), m_filename(QString()), m_fileExtension(QString()),
     m_ID(QString()), m_pathName(QString()), m_package(NULL), m_writeOutCode(true)  
@@ -31,6 +34,9 @@
     //  m_dialog = new CodeDocumentDialog( );
 }
 
+/**
+ * Destructor.
+ */
 CodeDocument::~CodeDocument ( )
 {
     // delete all the text blocks we have
@@ -265,10 +271,9 @@
     return CodeGenerator::cleanName(name);
 }
 
-// update the text and status of the head comment
-
 /**
- * Update the header text of this codedocument.
+ * Update the header text of this codedocument
+ * (text and status of the head comment).
  */
 void CodeDocument::updateHeader ()
 {
@@ -325,10 +330,9 @@
     updateContent();
 }
 
-// need to overload method to be able to clear the childTextBlockMap
-
 /**
  * Reset/clear our inventory of textblocks in this document.
+ * Need to overload method to be able to clear the childTextBlockMap.
  */
 void CodeDocument::resetTextBlocks()
 {
@@ -433,14 +437,12 @@
     root.appendChild( docElement );
 }
 
-// vanilla code documents don't have much
-// to do.. override this with a different
-// version for your own documents
-
 /**
  * Update the content of this code document.
  * This is where you should lay out your code document structure of textblocks
  * in the inheriting class, should it have any text in it.
+ * Vanilla code documents don't have much to do.. override this with a different
+ * version for your own documents.
  */
 void CodeDocument::updateContent()
 {
--- branches/work/soc-umbrello/umbrello/codegenerators/codedocument.h #943050:943051
@@ -36,32 +36,21 @@
     Q_OBJECT
 public:
 
-    /**
-     * Empty Constructor
-     */
     CodeDocument ( );
-
-    /**
-     * Empty Destructor
-     */
     virtual ~CodeDocument ( );
 
     void setFileExtension ( const QString &new_var );
-
     QString getFileExtension ( ) const;
 
     void setFileName ( const QString &new_var );
-
     QString getFileName ( ) const;
 
     void setPackage ( UMLPackage *new_var );
-
     QString getPackage ( ) const;
 
     virtual QString getPath ( );
 
     void setID ( const QString &new_id);
-
     QString getID ( ) const;
 
     void setWriteOutCode ( bool new_var );
@@ -69,7 +58,6 @@
     bool getWriteOutCode ( );
 
     void setHeader ( CodeComment * comment );
-
     CodeComment * getHeader ( );
 
     bool insertTextBlock (TextBlock * newBlock, TextBlock * existingBlock, bool after = true);
@@ -79,13 +67,10 @@
     virtual QString toString ( );
 
     virtual void saveToXMI ( QDomDocument & doc, QDomElement & root );
-
     virtual void loadFromXMI ( QDomElement & root );
 
     virtual CodeBlock * newCodeBlock ( );
-
     virtual HierarchicalCodeBlock * newHierarchicalCodeBlock ( );
-
     virtual CodeBlockWithComments * newCodeBlockWithComments ( );
 
     virtual QString getUniqueTag( const QString& prefix = QString("") );




More information about the umbrello-devel mailing list