summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/codedocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/codedocument.cpp')
-rw-r--r--umbrello/umbrello/codedocument.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/umbrello/umbrello/codedocument.cpp b/umbrello/umbrello/codedocument.cpp
index f6092f09..0a183a93 100644
--- a/umbrello/umbrello/codedocument.cpp
+++ b/umbrello/umbrello/codedocument.cpp
@@ -112,11 +112,11 @@ TQString CodeDocument::getPath ( ) {
path = path.simplifyWhiteSpace();
// Replace all blanks with underscore
- path.replace(TQRegExp(" "), "_");
+ path.tqreplace(TQRegExp(" "), "_");
// this allows multiple directory paths (ala Java, some other languages)
// in from the package specification
- path.replace(TQRegExp("\\."),"/"); // Simple hack!.. but this is more or less language
+ path.tqreplace(TQRegExp("\\."),"/"); // Simple hack!.. but this is more or less language
// dependant and should probably be commented out.
// Still, as a general default it may be useful -b.t.
return path;
@@ -215,7 +215,7 @@ bool CodeDocument::insertTextBlock(TextBlock * newBlock, TextBlock * existingBlo
if(!findTextBlockByTag(tag, true))
return false;
- int index = m_textblockVector.findRef(existingBlock);
+ int index = m_textblockVector.tqfindRef(existingBlock);
if(index < 0)
{
// may be hiding in child hierarchical codeblock
@@ -242,7 +242,7 @@ bool CodeDocument::insertTextBlock(TextBlock * newBlock, TextBlock * existingBlo
newBlock->setTag(new_tag);
}
- if(m_textBlockTagMap.contains(new_tag))
+ if(m_textBlockTagMap.tqcontains(new_tag))
return false; // return false, we already have some object with this tag in the list
else
m_textBlockTagMap.insert(new_tag, newBlock);
@@ -278,10 +278,10 @@ void CodeDocument::updateHeader () {
//try to find a heading file (license, coments, etc) then extract its text
TQString headingText = UMLApp::app()->getCommonPolicy()->getHeadingFile(getFileExtension());
- headingText.replace(TQRegExp("%filename%"),getFileName()+getFileExtension());
- headingText.replace(TQRegExp("%filepath%"),getPath());
- headingText.replace( TQRegExp("%time%"), TQTime::currentTime().toString());
- headingText.replace( TQRegExp("%date%"), TQDate::currentDate().toString());
+ headingText.tqreplace(TQRegExp("%filename%"),getFileName()+getFileExtension());
+ headingText.tqreplace(TQRegExp("%filepath%"),getPath());
+ headingText.tqreplace( TQRegExp("%time%"), TQTime::currentTime().toString());
+ headingText.tqreplace( TQRegExp("%date%"), TQDate::tqcurrentDate().toString());
getHeader()->setText(headingText);
@@ -295,7 +295,7 @@ void CodeDocument::updateHeader () {
/**
* create the string representation of this object.
- * @return QString
+ * @return TQString
*/
TQString CodeDocument::toString ( ) {
@@ -364,7 +364,7 @@ void CodeDocument::setAttributesOnNode ( TQDomDocument & doc, TQDomElement & doc
docElement.appendChild( commElement);
// doc codePolicy?
- // FIX: store ONLY if different from the parent generator
+ // FIX: store ONLY if different from the tqparent generator
// policy.. something which is not possible right now. -b.t.
}
@@ -380,7 +380,7 @@ void CodeDocument::setAttributesFromNode ( TQDomElement & root) {
TQString pkgStr = root.attribute("package","");
if (!pkgStr.isEmpty() && pkgStr != "-1") {
UMLDoc *umldoc = UMLApp::app()->getDocument();
- if (pkgStr.contains( TQRegExp("\\D") )) {
+ if (pkgStr.tqcontains( TQRegExp("\\D") )) {
// suspecting pre-1.5.3 file format where the package name was
// saved instead of the package ID.
UMLObject *o = umldoc->findUMLObject(pkgStr);
@@ -467,11 +467,11 @@ void CodeDocument::addChildTagToMap ( const TQString &tag, TextBlock * tb)
TextBlock * CodeDocument::findTextBlockByTag( const TQString &tag , bool descendIntoChildren)
{
//if we already know to which file this class was written/should be written, just return it.
- if(m_textBlockTagMap.contains(tag))
+ if(m_textBlockTagMap.tqcontains(tag))
return m_textBlockTagMap[tag];
if (descendIntoChildren)
- if(m_childTextBlockTagMap.contains(tag))
+ if(m_childTextBlockTagMap.tqcontains(tag))
return m_childTextBlockTagMap[tag];
return (TextBlock*) NULL;