diff options
Diffstat (limited to 'umbrello/umbrello/codeblockwithcomments.cpp')
-rw-r--r-- | umbrello/umbrello/codeblockwithcomments.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/umbrello/umbrello/codeblockwithcomments.cpp b/umbrello/umbrello/codeblockwithcomments.cpp index 0e94001f..3538f2c2 100644 --- a/umbrello/umbrello/codeblockwithcomments.cpp +++ b/umbrello/umbrello/codeblockwithcomments.cpp @@ -28,13 +28,13 @@ // Constructors/Destructors // -CodeBlockWithComments::CodeBlockWithComments ( HierarchicalCodeBlock * hb, const QString & body, const QString & comment) +CodeBlockWithComments::CodeBlockWithComments ( HierarchicalCodeBlock * hb, const TQString & body, const TQString & comment) : CodeBlock (hb, body) { initFields(hb->getParentDocument(), comment); } -CodeBlockWithComments::CodeBlockWithComments ( CodeDocument * parent , const QString & body, const QString & comment) +CodeBlockWithComments::CodeBlockWithComments ( CodeDocument * parent , const TQString & body, const TQString & comment) : CodeBlock (parent, body) { initFields(parent, comment); @@ -71,8 +71,8 @@ CodeComment * CodeBlockWithComments::getComment ( ) { /** * Save the XMI representation of this object */ -void CodeBlockWithComments::saveToXMI ( QDomDocument & doc, QDomElement & root ) { - QDomElement blockElement = doc.createElement( "codeblockwithcomments" ); +void CodeBlockWithComments::saveToXMI ( TQDomDocument & doc, TQDomElement & root ) { + TQDomElement blockElement = doc.createElement( "codeblockwithcomments" ); // set attributes setAttributesOnNode(doc, blockElement); @@ -80,7 +80,7 @@ void CodeBlockWithComments::saveToXMI ( QDomDocument & doc, QDomElement & root ) root.appendChild( blockElement ); } -void CodeBlockWithComments::setAttributesOnNode ( QDomDocument & doc, QDomElement & blockElement) +void CodeBlockWithComments::setAttributesOnNode ( TQDomDocument & doc, TQDomElement & blockElement) { // set super-class attributes @@ -88,7 +88,7 @@ void CodeBlockWithComments::setAttributesOnNode ( QDomDocument & doc, QDomElemen // set local attributes now..e.g. a comment // which we will store in its own separate child node block - QDomElement commElement = doc.createElement( "header" ); + TQDomElement commElement = doc.createElement( "header" ); getComment()->saveToXMI(doc, commElement); // comment blockElement.appendChild( commElement); @@ -108,12 +108,12 @@ void CodeBlockWithComments::setAttributesFromObject(TextBlock * obj) /** * load params from the appropriate XMI element node. */ -void CodeBlockWithComments::loadFromXMI ( QDomElement & root ) +void CodeBlockWithComments::loadFromXMI ( TQDomElement & root ) { setAttributesFromNode(root); } -void CodeBlockWithComments::setAttributesFromNode( QDomElement & root) +void CodeBlockWithComments::setAttributesFromNode( TQDomElement & root) { // set attributes from superclass method the XMI @@ -121,14 +121,14 @@ void CodeBlockWithComments::setAttributesFromNode( QDomElement & root) // load comment now // by looking for our particular child element - QDomNode node = root.firstChild(); - QDomElement element = node.toElement(); + TQDomNode node = root.firstChild(); + TQDomElement element = node.toElement(); bool gotComment = false; while( !element.isNull() ) { - QString tag = element.tagName(); + TQString tag = element.tagName(); if( tag == "header" ) { - QDomNode cnode = element.firstChild(); - QDomElement celem = cnode.toElement(); + TQDomNode cnode = element.firstChild(); + TQDomElement celem = cnode.toElement(); getComment()->loadFromXMI(celem); gotComment = true; break; @@ -145,15 +145,15 @@ void CodeBlockWithComments::setAttributesFromNode( QDomElement & root) /** * @return QString */ -QString CodeBlockWithComments::toString ( ) { +TQString CodeBlockWithComments::toString ( ) { - QString string = QString(); + TQString string = TQString(); if(getWriteOutText()) { - QString indent = getIndentationString(); - QString endLine = getNewLineEndingChars(); - QString body = formatMultiLineText (getText(), indent, endLine); - QString comment = getComment()->toString(); + TQString indent = getIndentationString(); + TQString endLine = getNewLineEndingChars(); + TQString body = formatMultiLineText (getText(), indent, endLine); + TQString comment = getComment()->toString(); if(!comment.isEmpty() && getComment()->getWriteOutText()) string.append(comment); @@ -171,7 +171,7 @@ void CodeBlockWithComments::setOverallIndentationLevel ( int level ) m_comment->setIndentationLevel(level); } -void CodeBlockWithComments::initFields(CodeDocument *parent, const QString& comment) +void CodeBlockWithComments::initFields(CodeDocument *parent, const TQString& comment) { CodeComment * codecomment = CodeGenFactory::newCodeComment(parent); codecomment->setText(comment); |