diff options
Diffstat (limited to 'umbrello/umbrello/codegenerators/rubyclassifiercodedocument.cpp')
-rw-r--r-- | umbrello/umbrello/codegenerators/rubyclassifiercodedocument.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/umbrello/umbrello/codegenerators/rubyclassifiercodedocument.cpp b/umbrello/umbrello/codegenerators/rubyclassifiercodedocument.cpp index 1c136df8..ada4b0bb 100644 --- a/umbrello/umbrello/codegenerators/rubyclassifiercodedocument.cpp +++ b/umbrello/umbrello/codegenerators/rubyclassifiercodedocument.cpp @@ -29,7 +29,7 @@ #include "rubyclassifiercodedocument.h" // qt/kde includes -#include <qregexp.h> +#include <tqregexp.h> #include <kdebug.h> // local includes @@ -77,19 +77,19 @@ CodeDocumentDialog RubyClassifierCodeDocument::getDialog ( ) { */ // We overwritten by Ruby language implementation to get lowercase path -QString RubyClassifierCodeDocument::getPath ( ) +TQString RubyClassifierCodeDocument::getPath ( ) { - QString path = getPackage(); + TQString path = getPackage(); // Replace all white spaces with blanks path.simplifyWhiteSpace(); // Replace all blanks with underscore - path.replace(QRegExp(" "), "_"); + path.replace(TQRegExp(" "), "_"); - path.replace(QRegExp("\\."),"/"); - path.replace(QRegExp("::"), "/"); + path.replace(TQRegExp("\\."),"/"); + path.replace(TQRegExp("::"), "/"); path.lower(); @@ -101,7 +101,7 @@ QString RubyClassifierCodeDocument::getPath ( ) // Other methods // -QString RubyClassifierCodeDocument::getRubyClassName (const QString &name) { +TQString RubyClassifierCodeDocument::getRubyClassName (const TQString &name) { CodeGenerator *g = UMLApp::app()->getGenerator(); return Codegen_Utils::capitalizeFirstLetter(g->cleanName(name)); } @@ -173,25 +173,25 @@ bool RubyClassifierCodeDocument::addCodeOperation (CodeOperation * op ) // would be better if we could create a handler interface that each // codeblock used so all we have to do here is add the handler // for "rubyclassdeclarationblock" -void RubyClassifierCodeDocument::loadChildTextBlocksFromNode ( QDomElement & root) +void RubyClassifierCodeDocument::loadChildTextBlocksFromNode ( TQDomElement & root) { - QDomNode tnode = root.firstChild(); - QDomElement telement = tnode.toElement(); + TQDomNode tnode = root.firstChild(); + TQDomElement telement = tnode.toElement(); bool loadCheckForChildrenOK = false; while( !telement.isNull() ) { - QString nodeName = telement.tagName(); + TQString nodeName = telement.tagName(); if( nodeName == "textblocks" ) { - QDomNode node = telement.firstChild(); - QDomElement element = node.toElement(); + TQDomNode node = telement.firstChild(); + TQDomElement element = node.toElement(); // if there is nothing to begin with, then we don't worry about it loadCheckForChildrenOK = element.isNull() ? true : false; while( !element.isNull() ) { - QString name = element.tagName(); + TQString name = element.tagName(); if( name == "codecomment" ) { CodeComment * block = new RubyCodeComment(this); @@ -206,7 +206,7 @@ void RubyClassifierCodeDocument::loadChildTextBlocksFromNode ( QDomElement & roo if( name == "codeaccessormethod" || name == "ccfdeclarationcodeblock" ) { - QString acctag = element.attribute("tag",""); + TQString acctag = element.attribute("tag",""); // search for our method in the TextBlock * tb = findCodeClassFieldTextBlockByTag(acctag); if(!tb || !addTextBlock(tb)) @@ -252,7 +252,7 @@ void RubyClassifierCodeDocument::loadChildTextBlocksFromNode ( QDomElement & roo } else if( name == "codeoperation" ) { // find the code operation by id - QString id = element.attribute("parent_id","-1"); + TQString id = element.attribute("parent_id","-1"); UMLObject * obj = UMLApp::app()->getDocument()->findObjectById(STR2ID(id)); UMLOperation * op = dynamic_cast<UMLOperation*>(obj); if(op) { @@ -313,9 +313,9 @@ void RubyClassifierCodeDocument::loadChildTextBlocksFromNode ( QDomElement & roo } -QString RubyClassifierCodeDocument::scopeToRubyDecl(Uml::Visibility scope) +TQString RubyClassifierCodeDocument::scopeToRubyDecl(Uml::Visibility scope) { - QString scopeString; + TQString scopeString; switch(scope) { case Uml::Visibility::Public: @@ -402,7 +402,7 @@ void RubyClassifierCodeDocument::updateContent( ) bool isInterface = parentIsInterface(); bool hasOperationMethods = c->getOpList().last() ? true : false; CodeGenerationPolicy *pol = UMLApp::app()->getCommonPolicy(); - QString endLine = pol->getNewLineEndingChars(); // a shortcut..so we don't have to call this all the time + TQString endLine = pol->getNewLineEndingChars(); // a shortcut..so we don't have to call this all the time // // START GENERATING CODE/TEXT BLOCKS and COMMENTS FOR THE DOCUMENT |