summaryrefslogtreecommitdiffstats
path: root/buildtools/lib
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/lib')
-rw-r--r--buildtools/lib/base/kdevbuildtool.cpp2
-rw-r--r--buildtools/lib/base/kdevbuildtool.h2
-rw-r--r--buildtools/lib/parsers/autotools/autotools_yacc.cpp10
-rw-r--r--buildtools/lib/parsers/autotools/autotoolsast.cpp24
-rw-r--r--buildtools/lib/parsers/autotools/autotoolsast.h44
-rw-r--r--buildtools/lib/parsers/autotools/autotoolsdriver.cpp8
-rw-r--r--buildtools/lib/parsers/autotools/autotoolsdriver.h6
-rw-r--r--buildtools/lib/parsers/autotools/tests/viewer.cpp74
-rw-r--r--buildtools/lib/parsers/autotools/tests/viewer.h12
-rw-r--r--buildtools/lib/parsers/autotools/tests/viewer_main.cpp4
-rw-r--r--buildtools/lib/parsers/qmake/qmake_lex.cpp34
-rw-r--r--buildtools/lib/parsers/qmake/qmake_lex.h2
-rw-r--r--buildtools/lib/parsers/qmake/qmake_yacc.cpp8
-rw-r--r--buildtools/lib/parsers/qmake/qmake_yacc.hpp16
-rw-r--r--buildtools/lib/parsers/qmake/qmakeast.cpp22
-rw-r--r--buildtools/lib/parsers/qmake/qmakeast.h40
-rw-r--r--buildtools/lib/parsers/qmake/qmakeastvisitor.cpp2
-rw-r--r--buildtools/lib/parsers/qmake/qmakedriver.cpp10
-rw-r--r--buildtools/lib/parsers/qmake/qmakedriver.h2
-rw-r--r--buildtools/lib/parsers/qmake/tests/runner.cpp10
-rw-r--r--buildtools/lib/parsers/qmake/tests/viewer.cpp70
-rw-r--r--buildtools/lib/parsers/qmake/tests/viewer.h10
-rw-r--r--buildtools/lib/parsers/qmake/tests/viewer_main.cpp4
-rw-r--r--buildtools/lib/widgets/addenvvardlg.cpp34
-rw-r--r--buildtools/lib/widgets/addenvvardlg.h14
-rw-r--r--buildtools/lib/widgets/addfilesdialog.cpp16
-rw-r--r--buildtools/lib/widgets/addfilesdialog.h10
-rw-r--r--buildtools/lib/widgets/environmentdisplaydialog.cpp12
-rw-r--r--buildtools/lib/widgets/environmentdisplaydialog.h2
-rw-r--r--buildtools/lib/widgets/environmentvariableswidget.cpp30
-rw-r--r--buildtools/lib/widgets/environmentvariableswidget.h14
-rw-r--r--buildtools/lib/widgets/envvartools.cpp8
-rw-r--r--buildtools/lib/widgets/envvartools.h4
-rw-r--r--buildtools/lib/widgets/makeoptionswidget.cpp12
-rw-r--r--buildtools/lib/widgets/makeoptionswidget.h10
-rw-r--r--buildtools/lib/widgets/removesubprojectdialog.cpp10
-rw-r--r--buildtools/lib/widgets/removesubprojectdialog.h2
-rw-r--r--buildtools/lib/widgets/runoptionswidget.cpp40
-rw-r--r--buildtools/lib/widgets/runoptionswidget.h14
-rw-r--r--buildtools/lib/widgets/subclassesdlg.cpp12
-rw-r--r--buildtools/lib/widgets/subclassesdlg.h10
41 files changed, 335 insertions, 335 deletions
diff --git a/buildtools/lib/base/kdevbuildtool.cpp b/buildtools/lib/base/kdevbuildtool.cpp
index 27ddf692..2dfc3d84 100644
--- a/buildtools/lib/base/kdevbuildtool.cpp
+++ b/buildtools/lib/base/kdevbuildtool.cpp
@@ -21,7 +21,7 @@
#include <kdevmakefrontend.h>
#include <kdevappfrontend.h>
-KDevBuildTool::KDevBuildTool(const KDevPluginInfo* info, QObject* parent, const char* name)
+KDevBuildTool::KDevBuildTool(const KDevPluginInfo* info, TQObject* parent, const char* name)
:KDevProject(info, parent, name)
{
}
diff --git a/buildtools/lib/base/kdevbuildtool.h b/buildtools/lib/base/kdevbuildtool.h
index 79db5f6e..ff1abcc0 100644
--- a/buildtools/lib/base/kdevbuildtool.h
+++ b/buildtools/lib/base/kdevbuildtool.h
@@ -29,7 +29,7 @@ class KDevAppFrontend;
class KDevBuildTool: public KDevProject
{
public:
- KDevBuildTool(const KDevPluginInfo* info, QObject* parent, const char* name);
+ KDevBuildTool(const KDevPluginInfo* info, TQObject* parent, const char* name);
/**@return The make frontend.*/
KDevMakeFrontend *makeFrontend();
diff --git a/buildtools/lib/parsers/autotools/autotools_yacc.cpp b/buildtools/lib/parsers/autotools/autotools_yacc.cpp
index 827cf4bc..93cdb733 100644
--- a/buildtools/lib/parsers/autotools/autotools_yacc.cpp
+++ b/buildtools/lib/parsers/autotools/autotools_yacc.cpp
@@ -150,7 +150,7 @@ noinst_HEADERS = foo.h #regognize me
@fixme 1 shift/reduce conflict in "line_body" rule
*/
-#include <qvaluestack.h>
+#include <tqvaluestack.h>
#include "autotoolsast.h"
#define YYSTYPE_IS_DECLARED
@@ -164,7 +164,7 @@ struct Result {
Result(): node(0) {}
/**Type of semantic value for simple grammar rules.*/
- QString value;
+ TQString value;
/**Type of semantic value for grammar rules which are parts of AST.*/
AST *node;
/**Type of semantic value for "multiline_values" grammar rule.
@@ -183,7 +183,7 @@ struct Result {
foo3.cpp foo4.cpp
</pre>
*/
- QStringList values;
+ TQStringList values;
};
typedef Result YYSTYPE;
@@ -206,7 +206,7 @@ When a scope or function scope statement is parsed, the child ProjectAST is crea
and pushed onto the stack. Therefore all statements which belong to the scope
or function scope are added as childs to their direct parent (scope or function scope).
*/
-QValueStack<ProjectAST*> projects;
+TQValueStack<ProjectAST*> projects;
/**
The current depth of AST node is stored here.
@@ -1381,7 +1381,7 @@ yyreduce:
{
AssignmentAST *node = new AssignmentAST();
node->scopedID = yyvsp[-1].value;
- node->values = QStringList(yyvsp[0].value);
+ node->values = TQStringList(yyvsp[0].value);
yyval.node = node;
;}
break;
diff --git a/buildtools/lib/parsers/autotools/autotoolsast.cpp b/buildtools/lib/parsers/autotools/autotoolsast.cpp
index 757f4699..ddcbddc3 100644
--- a/buildtools/lib/parsers/autotools/autotoolsast.cpp
+++ b/buildtools/lib/parsers/autotools/autotoolsast.cpp
@@ -28,7 +28,7 @@ namespace AutoTools {
AST::~AST()
{
- for (QValueList<AST*>::iterator it = m_children.begin(); it != m_children.end(); ++it)
+ for (TQValueList<AST*>::iterator it = m_children.begin(); it != m_children.end(); ++it)
{
AST *node = *it;
delete node;
@@ -40,9 +40,9 @@ void AST::addChildAST(AST *node)
m_children.append(node);
}
-void AST::writeBack(QString &buffer)
+void AST::writeBack(TQString &buffer)
{
- for (QValueList<AST*>::const_iterator it = m_children.constBegin();
+ for (TQValueList<AST*>::const_iterator it = m_children.constBegin();
it != m_children.constEnd(); ++it)
{
if (*it)
@@ -50,9 +50,9 @@ void AST::writeBack(QString &buffer)
}
}
-QString AST::indentation()
+TQString AST::indentation()
{
- QString result;
+ TQString result;
for (int i = 0; i < depth(); i++)
result += '\t';
return result;
@@ -63,14 +63,14 @@ bool AST::hasChildren() const
return !m_children.isEmpty();
}
-QValueList<AST*> AST::children() const
+TQValueList<AST*> AST::children() const
{
return m_children;
}
//ProjectAST
-void ProjectAST::writeBack(QString &buffer)
+void ProjectAST::writeBack(TQString &buffer)
{
if ( isRule() )
buffer += scopedID;
@@ -87,27 +87,27 @@ void ProjectAST::addChildAST(AST *node)
AST::addChildAST(node);
}
-void AssignmentAST::writeBack(QString &buffer)
+void AssignmentAST::writeBack(TQString &buffer)
{
buffer += indentation() + scopedID + " " + op + values.join("");
}
-void AutomakeTargetAST::writeBack( QString& buffer )
+void AutomakeTargetAST::writeBack( TQString& buffer )
{
buffer += target + ":" + deps.join("");
}
-void ConditionAST::writeBack( QString& buffer )
+void ConditionAST::writeBack( TQString& buffer )
{
buffer += indentation() + type + " " + conditionName;
}
-void NewLineAST::writeBack(QString &buffer)
+void NewLineAST::writeBack(TQString &buffer)
{
buffer += "\n";
}
-void CommentAST::writeBack(QString &buffer)
+void CommentAST::writeBack(TQString &buffer)
{
buffer += indentation() + comment;
}
diff --git a/buildtools/lib/parsers/autotools/autotoolsast.h b/buildtools/lib/parsers/autotools/autotoolsast.h
index 9c7ae66a..768e3e07 100644
--- a/buildtools/lib/parsers/autotools/autotoolsast.h
+++ b/buildtools/lib/parsers/autotools/autotoolsast.h
@@ -23,7 +23,7 @@
#ifndef AUTOTOOLSAST_H
#define AUTOTOOLSAST_H
-#include <qstringlist.h>
+#include <tqstringlist.h>
/**
@file autotools.h
@@ -71,7 +71,7 @@ public:
* This is a default implementation which iterates over child nodes
* and calls writeBack for each child node.
*/
- virtual void writeBack(QString &buffer);
+ virtual void writeBack(TQString &buffer);
/** @return The type of the node.*/
virtual NodeType nodeType() const { return m_nodeType; }
@@ -83,7 +83,7 @@ public:
int depth() const { return m_depth; }
/** @return The indentation string based on node depth.*/
- virtual QString indentation();
+ virtual TQString indentation();
//! \return true if this AST has children
bool hasChildren() const;
@@ -92,13 +92,13 @@ public:
* Get the children of this ast
* \return the list of this ast's childre
*/
- QValueList<AST*> children() const;
+ TQValueList<AST*> children() const;
protected:
NodeType m_nodeType;
- QValueList<AST*> m_children;
+ TQValueList<AST*> m_children;
private:
int m_depth;
@@ -135,7 +135,7 @@ public:
/** Constructs a project node of given @p kind. */
ProjectAST(Kind kind = Project): AST(AST::ProjectAST), m_kind(kind) {}
- virtual void writeBack(QString &buffer);
+ virtual void writeBack(TQString &buffer);
virtual void addChildAST(AST *node);
/** @return true if this node is a project.*/
@@ -150,16 +150,16 @@ public:
bool isEmpty() const { return m_kind == Empty; }
/**Scoped identifier (scope name or rule).*/
- QString scopedID;
+ TQString scopedID;
/**Function arguments. Empty for other kinds of projects.*/
- QString args;
+ TQString args;
/** The automake conditional has an else attached */
bool hasElse;
/**List of statements.*/
- QValueList<AutoTools::AST*> statements;
+ TQValueList<AutoTools::AST*> statements;
private:
Kind m_kind;
@@ -192,16 +192,16 @@ class AssignmentAST: public AST
public:
AssignmentAST(): AST(AST::AssignmentAST) {}
- virtual void writeBack(QString &buffer);
+ virtual void writeBack(TQString &buffer);
/**Scoped name of the variable.*/
- QString scopedID;
+ TQString scopedID;
/**Operator.*/
- QString op;
+ TQString op;
/**List of values.*/
- QStringList values;
+ TQStringList values;
};
class AutomakeTargetAST : public AST
@@ -209,13 +209,13 @@ class AutomakeTargetAST : public AST
public:
AutomakeTargetAST() : AST(AST::TargetAST) {}
- virtual void writeBack( QString& buffer );
+ virtual void writeBack( TQString& buffer );
/// The name of the target
- QString target;
+ TQString target;
/// The dependencies for the target, if any
- QStringList deps;
+ TQStringList deps;
};
class ConditionAST : public AST
@@ -223,13 +223,13 @@ class ConditionAST : public AST
public:
ConditionAST() : AST( AST::MakefileConditionalAST ) {}
- virtual void writeBack( QString& buffer );
+ virtual void writeBack( TQString& buffer );
/// The keyword for the condition (if, else, endif)
- QString type;
+ TQString type;
/// The name of the condition
- QString conditionName;
+ TQString conditionName;
};
/**
@@ -241,7 +241,7 @@ class NewLineAST: public AST
public:
NewLineAST(): AST(AST::NewLineAST) {}
- virtual void writeBack(QString &buffer);
+ virtual void writeBack(TQString &buffer);
};
@@ -255,10 +255,10 @@ class CommentAST: public AST
public:
CommentAST(): AST(AST::CommentAST) {}
- virtual void writeBack(QString &buffer);
+ virtual void writeBack(TQString &buffer);
/**Comment text.*/
- QString comment;
+ TQString comment;
};
diff --git a/buildtools/lib/parsers/autotools/autotoolsdriver.cpp b/buildtools/lib/parsers/autotools/autotoolsdriver.cpp
index a3d53151..05734c3f 100644
--- a/buildtools/lib/parsers/autotools/autotoolsdriver.cpp
+++ b/buildtools/lib/parsers/autotools/autotoolsdriver.cpp
@@ -24,13 +24,13 @@
#include "autotoolsast.h"
#include <stdio.h>
-#include <qvaluestack.h>
+#include <tqvaluestack.h>
#include <kio/netaccess.h>
extern FILE *yyin, *yyout;
extern int yyparse();
//extern int yydebug;
-extern QValueStack<AutoTools::ProjectAST *> projects;
+extern TQValueStack<AutoTools::ProjectAST *> projects;
namespace AutoTools {
@@ -49,14 +49,14 @@ int Driver::parseFile(const char *fileName, ProjectAST **ast)
return ret;
}
-int Driver::parseFile(QString fileName, ProjectAST **ast)
+int Driver::parseFile(TQString fileName, ProjectAST **ast)
{
return parseFile(fileName.ascii(), ast);
}
int Driver::parseFile(KURL fileName, ProjectAST **ast)
{
- QString tmpFile;
+ TQString tmpFile;
int ret = 0;
if (KIO::NetAccess::download(fileName, tmpFile, 0))
ret = parseFile(tmpFile, ast);
diff --git a/buildtools/lib/parsers/autotools/autotoolsdriver.h b/buildtools/lib/parsers/autotools/autotoolsdriver.h
index 4e52c6ec..5f6ac7e7 100644
--- a/buildtools/lib/parsers/autotools/autotoolsdriver.h
+++ b/buildtools/lib/parsers/autotools/autotoolsdriver.h
@@ -23,7 +23,7 @@
#ifndef QMAKEQMAKEDRIVER_H
#define QMAKEQMAKEDRIVER_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <kurl.h>
namespace AutoTools {
@@ -49,14 +49,14 @@ public:
* @return The result of parsing. Result is 0 on success and <> 0 on failure.
*/
static int parseFile(const char *fileName, ProjectAST **ast);
- static int parseFile(QString fileName, ProjectAST **ast);
+ static int parseFile(TQString fileName, ProjectAST **ast);
static int parseFile(KURL fileName, ProjectAST **ast);
/* template<class Op>
static void walkAST(Op &op, const ProjectAST *ast)
{
// op(ast);
- for (QValueList<QMake::AST*>::const_iterator it = ast->statements.constBegin();
+ for (TQValueList<QMake::AST*>::const_iterator it = ast->statements.constBegin();
it != ast->statements.constEnd(); ++it)
{
const AST *child = *it;
diff --git a/buildtools/lib/parsers/autotools/tests/viewer.cpp b/buildtools/lib/parsers/autotools/tests/viewer.cpp
index 24d6aea4..0dc8e733 100644
--- a/buildtools/lib/parsers/autotools/tests/viewer.cpp
+++ b/buildtools/lib/parsers/autotools/tests/viewer.cpp
@@ -19,61 +19,61 @@
***************************************************************************/
#include "viewer.h"
-#include <qdir.h>
-#include <qlineedit.h>
-#include <qlistbox.h>
-#include <qfiledialog.h>
-#include <qtextedit.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qlistview.h>
-#include <qtabwidget.h>
+#include <tqdir.h>
+#include <tqlineedit.h>
+#include <tqlistbox.h>
+#include <tqfiledialog.h>
+#include <tqtextedit.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqlistview.h>
+#include <tqtabwidget.h>
#include <autotoolsast.h>
#include <autotoolsdriver.h>
using namespace AutoTools;
-Viewer::Viewer(QWidget *parent, const char *name)
+Viewer::Viewer(TQWidget *parent, const char *name)
:ViewerBase(parent, name)
{
- if (QFile::exists(QDir::currentDirPath() + "/" + "qtlist"))
+ if (TQFile::exists(TQDir::currentDirPath() + "/" + "qtlist"))
{
- QFile f(QDir::currentDirPath() + "/" + "qtlist");
+ TQFile f(TQDir::currentDirPath() + "/" + "qtlist");
f.open(IO_ReadOnly);
- QTextStream str(&f);
+ TQTextStream str(&f);
while (!str.eof())
files->insertItem(str.readLine());
}
ast->setSorting(-1);
- parentProject.push((QListViewItem*)0);
+ parentProject.push((TQListViewItem*)0);
}
void Viewer::addAll_clicked()
{
if (allLocation->text().isEmpty())
return;
- QDir d(allLocation->text());
- QStringList l = d.entryList("*.am");
- for (QStringList::iterator it = l.begin(); it != l.end(); ++it)
- (*it) = QDir::cleanDirPath(allLocation->text() + "/" + (*it));
+ TQDir d(allLocation->text());
+ TQStringList l = d.entryList("*.am");
+ for (TQStringList::iterator it = l.begin(); it != l.end(); ++it)
+ (*it) = TQDir::cleanDirPath(allLocation->text() + "/" + (*it));
files->insertStringList(l);
}
void Viewer::choose_clicked()
{
- QString fileName = QFileDialog::getOpenFileName(QDir::currentDirPath(), "*.am", this);
+ TQString fileName = TQFileDialog::getOpenFileName(TQDir::currentDirPath(), "*.am", this);
if (!fileName.isEmpty())
files->insertItem(fileName);
}
-void Viewer::files_currentChanged(QListBoxItem* item)
+void Viewer::files_currentChanged(TQListBoxItem* item)
{
ast->clear();
- QFile f(item->text());
+ TQFile f(item->text());
f.open(IO_ReadOnly);
- QTextStream str(&f);
+ TQTextStream str(&f);
source->setText(str.read());
f.close();
@@ -86,30 +86,30 @@ void Viewer::files_currentChanged(QListBoxItem* item)
tabWidget2_selected("Source to be written back");
}
-void Viewer::tabWidget2_selected(const QString& text)
+void Viewer::tabWidget2_selected(const TQString& text)
{
if ((text == "Source to be written back") && projectAST)
{
- QString buffer;
+ TQString buffer;
projectAST->writeBack(buffer);
writeBack->setText(buffer);
}
}
-void Viewer::processAST(ProjectAST *projectAST, QListViewItem *globAfter)
+void Viewer::processAST(ProjectAST *projectAST, TQListViewItem *globAfter)
{
- QListViewItem *projectIt;
+ TQListViewItem *projectIt;
if (!parentProject.top())
- projectIt = new QListViewItem(ast, "Project");
+ projectIt = new TQListViewItem(ast, "Project");
else
{
if ( projectAST->isConditionalScope() || projectAST->isRule() )
- projectIt = new QListViewItem(parentProject.top(), globAfter, projectAST->scopedID);
+ projectIt = new TQListViewItem(parentProject.top(), globAfter, projectAST->scopedID);
}
projectIt->setOpen(true);
- QListViewItem *after = 0;
- for (QValueList<AST*>::const_iterator it = projectAST->statements.constBegin();
+ TQListViewItem *after = 0;
+ for (TQValueList<AST*>::const_iterator it = projectAST->statements.constBegin();
it != projectAST->statements.constEnd(); ++it)
{
AST *ast = *it;
@@ -118,7 +118,7 @@ void Viewer::processAST(ProjectAST *projectAST, QListViewItem *globAfter)
switch (ast->nodeType()) {
case AST::AssignmentAST: {
AssignmentAST *assignmentAST = static_cast<AssignmentAST*>(ast);
- QListViewItem *item = new QListViewItem(projectIt, after,
+ TQListViewItem *item = new TQListViewItem(projectIt, after,
assignmentAST->scopedID, assignmentAST->op, assignmentAST->values.join(""));
item->setMultiLinesEnabled(true);
after = item; }
@@ -127,25 +127,25 @@ void Viewer::processAST(ProjectAST *projectAST, QListViewItem *globAfter)
case AST::TargetAST:
{
AutomakeTargetAST* ata = static_cast<AutomakeTargetAST*>(ast);
- QListViewItem* item = new QListViewItem(projectIt, after,
- ata->target, QString::null, ata->deps.join(""));
+ TQListViewItem* item = new TQListViewItem(projectIt, after,
+ ata->target, TQString::null, ata->deps.join(""));
after = item;
}
break;
case AST::NewLineAST:
-// after = new QListViewItem(projectIt, after, "<newline>");
+// after = new TQListViewItem(projectIt, after, "<newline>");
break;
case AST::CommentAST:
-// after = new QListViewItem(projectIt, after, "<comment>");
+// after = new TQListViewItem(projectIt, after, "<comment>");
break;
case AST::MakefileConditionalAST:
{
ConditionAST* ata = static_cast<ConditionAST*>(ast);
- QListViewItem* item = new QListViewItem(projectIt, after,
- ata->type, ata->conditionName, QString::null );
+ TQListViewItem* item = new TQListViewItem(projectIt, after,
+ ata->type, ata->conditionName, TQString::null );
after = item;
}
case AST::ProjectAST: {
diff --git a/buildtools/lib/parsers/autotools/tests/viewer.h b/buildtools/lib/parsers/autotools/tests/viewer.h
index f46cec46..3b0443f7 100644
--- a/buildtools/lib/parsers/autotools/tests/viewer.h
+++ b/buildtools/lib/parsers/autotools/tests/viewer.h
@@ -20,7 +20,7 @@
#ifndef VIEWER_H
#define VIEWER_H
-#include <qvaluestack.h>
+#include <tqvaluestack.h>
#include "viewerbase.h"
@@ -31,16 +31,16 @@ class QListViewItem;
class Viewer: public ViewerBase {
Q_OBJECT
public:
- Viewer(QWidget *parent = 0, const char *name = 0);
- void processAST(AutoTools::ProjectAST *projectAST, QListViewItem *globAfter = 0);
+ Viewer(TQWidget *parent = 0, const char *name = 0);
+ void processAST(AutoTools::ProjectAST *projectAST, TQListViewItem *globAfter = 0);
public slots:
- virtual void tabWidget2_selected(const QString&);
- virtual void files_currentChanged(QListBoxItem*);
+ virtual void tabWidget2_selected(const TQString&);
+ virtual void files_currentChanged(TQListBoxItem*);
virtual void choose_clicked();
virtual void addAll_clicked();
private:
AutoTools::ProjectAST *projectAST;
- QValueStack<QListViewItem *> parentProject;
+ TQValueStack<TQListViewItem *> parentProject;
};
#endif
diff --git a/buildtools/lib/parsers/autotools/tests/viewer_main.cpp b/buildtools/lib/parsers/autotools/tests/viewer_main.cpp
index 707a1364..380767a9 100644
--- a/buildtools/lib/parsers/autotools/tests/viewer_main.cpp
+++ b/buildtools/lib/parsers/autotools/tests/viewer_main.cpp
@@ -17,12 +17,12 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qapplication.h>
+#include <tqapplication.h>
#include "viewer.h"
int main(int argc, char **argv)
{
- QApplication app(argc, argv);
+ TQApplication app(argc, argv);
Viewer viewer;
app.setMainWidget(&viewer);
diff --git a/buildtools/lib/parsers/qmake/qmake_lex.cpp b/buildtools/lib/parsers/qmake/qmake_lex.cpp
index a428b163..9fe37664 100644
--- a/buildtools/lib/parsers/qmake/qmake_lex.cpp
+++ b/buildtools/lib/parsers/qmake/qmake_lex.cpp
@@ -953,7 +953,7 @@ case 2:
YY_RULE_SETUP
#line 83 "qmake.ll"
{
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::LIST_WS;
}
YY_BREAK
@@ -963,7 +963,7 @@ YY_RULE_SETUP
#line 88 "qmake.ll"
{
BEGIN(vallist);
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::CONT;
}
YY_BREAK
@@ -973,7 +973,7 @@ YY_RULE_SETUP
#line 94 "qmake.ll"
{
BEGIN(vallist);
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::COMMENT_CONT;
}
YY_BREAK
@@ -981,7 +981,7 @@ case 5:
YY_RULE_SETUP
#line 100 "qmake.ll"
{
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return (Parser::token::token::ID_SIMPLE);
}
YY_BREAK
@@ -989,7 +989,7 @@ case 6:
YY_RULE_SETUP
#line 105 "qmake.ll"
{
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = mylval->value.mid(0, mylval->value.length()-1);
unput(')');
BEGIN(INITIAL);
@@ -1001,7 +1001,7 @@ YY_RULE_SETUP
#line 113 "qmake.ll"
{
BEGIN(vallist);
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::VARIABLE_VALUE;
}
YY_BREAK
@@ -1010,7 +1010,7 @@ YY_RULE_SETUP
#line 119 "qmake.ll"
{
BEGIN(vallist);
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::QUOTED_VARIABLE_VALUE;
}
YY_BREAK
@@ -1019,7 +1019,7 @@ YY_RULE_SETUP
#line 125 "qmake.ll"
{
BEGIN(vallist);
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::EQ;
}
YY_BREAK
@@ -1028,7 +1028,7 @@ YY_RULE_SETUP
#line 131 "qmake.ll"
{
BEGIN(vallist);
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::PLUSEQ;
}
YY_BREAK
@@ -1037,7 +1037,7 @@ YY_RULE_SETUP
#line 137 "qmake.ll"
{
BEGIN(vallist);
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::MINUSEQ;
}
YY_BREAK
@@ -1046,7 +1046,7 @@ YY_RULE_SETUP
#line 143 "qmake.ll"
{
BEGIN(vallist);
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::STAREQ;
}
YY_BREAK
@@ -1055,7 +1055,7 @@ YY_RULE_SETUP
#line 149 "qmake.ll"
{
BEGIN(vallist);
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::TILDEEQ;
}
YY_BREAK
@@ -1100,7 +1100,7 @@ case 19:
YY_RULE_SETUP
#line 177 "qmake.ll"
{
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::COLON;
}
YY_BREAK
@@ -1110,7 +1110,7 @@ YY_RULE_SETUP
#line 183 "qmake.ll"
{
BEGIN(INITIAL);
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
setLineEndingFromString( mylval->value );
return Parser::token::token::NEWLINE;
}
@@ -1121,7 +1121,7 @@ YY_RULE_SETUP
#line 190 "qmake.ll"
{
BEGIN(INITIAL);
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
setLineEndingFromString( mylval->value );
return Parser::token::token::NEWLINE;
}
@@ -1132,7 +1132,7 @@ YY_RULE_SETUP
#line 197 "qmake.ll"
{
BEGIN(INITIAL);
- mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
+ mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return (Parser::token::token::COMMENT);
}
YY_BREAK
@@ -2215,7 +2215,7 @@ namespace QMake
return yylex();
}
- void Lexer::setLineEndingFromString( const QString& str )
+ void Lexer::setLineEndingFromString( const TQString& str )
{
if( str.endsWith("\r\n") && m_lineEnding == None )
m_lineEnding = Windows;
diff --git a/buildtools/lib/parsers/qmake/qmake_lex.h b/buildtools/lib/parsers/qmake/qmake_lex.h
index 1b91e747..242cec2a 100644
--- a/buildtools/lib/parsers/qmake/qmake_lex.h
+++ b/buildtools/lib/parsers/qmake/qmake_lex.h
@@ -36,7 +36,7 @@ namespace QMake
Lexer( std::istream* argin = 0, std::ostream* argout = 0 );
int yylex( QMake::Parser::semantic_type* yylval );
int yylex();
- void setLineEndingFromString( const QString& );
+ void setLineEndingFromString( const TQString& );
LineEnding lineending();
private:
QMake::Parser::semantic_type* mylval;
diff --git a/buildtools/lib/parsers/qmake/qmake_yacc.cpp b/buildtools/lib/parsers/qmake/qmake_yacc.cpp
index 9cd09ebe..32722979 100644
--- a/buildtools/lib/parsers/qmake/qmake_yacc.cpp
+++ b/buildtools/lib/parsers/qmake/qmake_yacc.cpp
@@ -144,7 +144,7 @@ namespace QMake
#endif
/// Build a parser object.
- Parser::Parser (QMake::Lexer* lexer_yyarg, QValueStack<ProjectAST*>& projects_yyarg, int depth_yyarg)
+ Parser::Parser (QMake::Lexer* lexer_yyarg, TQValueStack<ProjectAST*>& projects_yyarg, int depth_yyarg)
: yydebug_ (false),
yycdebug_ (&std::cerr),
lexer (lexer_yyarg),
@@ -584,7 +584,7 @@ namespace QMake
case 26:
#line 293 "qmake.yy"
{
- (yyval.values) = QStringList();
+ (yyval.values) = TQStringList();
(yyval.values).append( (yysemantic_stack_[(2) - (1)].value) );
(yyval.values).append( (yysemantic_stack_[(2) - (2)].value) );
;}
@@ -611,8 +611,8 @@ namespace QMake
case 30:
#line 312 "qmake.yy"
{
- (yyval.value) = QString();
- (yyval.indent) = QString();
+ (yyval.value) = TQString();
+ (yyval.indent) = TQString();
;}
break;
diff --git a/buildtools/lib/parsers/qmake/qmake_yacc.hpp b/buildtools/lib/parsers/qmake/qmake_yacc.hpp
index 60030b3c..91583cd3 100644
--- a/buildtools/lib/parsers/qmake/qmake_yacc.hpp
+++ b/buildtools/lib/parsers/qmake/qmake_yacc.hpp
@@ -85,9 +85,9 @@ SOURCES = foo #regognize me
@fixme 1 shift/reduce conflict in "line_body" rule
*/
-#include <qvaluestack.h>
+#include <tqvaluestack.h>
#include "qmakeast.h"
-#include <qregexp.h>
+#include <tqregexp.h>
#define YYSTYPE_IS_DECLARED
@@ -102,7 +102,7 @@ struct Result {
Result(): node(0) {}
/**Type of semantic value for simple grammar rules.*/
- QString value;
+ TQString value;
/**Type of semantic value for grammar rules which are parts of AST.*/
AST *node;
/**Type of semantic value for "multiline_values" grammar rule.
@@ -121,8 +121,8 @@ struct Result {
foo3.cpp foo4.cpp
</pre>
*/
- QStringList values;
- QString indent;
+ TQStringList values;
+ TQString indent;
};
#define YYSTYPE Result
@@ -143,7 +143,7 @@ When a scope or function scope statement is parsed, the child ProjectAST is crea
and pushed onto the stack. Therefore all statements which belong to the scope
or function scope are added as childs to their direct parent (scope or function scope).
*/
-//QValueStack<ProjectAST*> projects;
+//TQValueStack<ProjectAST*> projects;
/**
The current depth of AST node is stored here.
@@ -249,7 +249,7 @@ namespace QMake
typedef token::yytokentype token_type;
/// Build a parser object.
- Parser (QMake::Lexer* lexer_yyarg, QValueStack<ProjectAST*>& projects_yyarg, int depth_yyarg);
+ Parser (QMake::Lexer* lexer_yyarg, TQValueStack<ProjectAST*>& projects_yyarg, int depth_yyarg);
virtual ~Parser ();
/// Parse.
@@ -409,7 +409,7 @@ namespace QMake
/* User arguments. */
QMake::Lexer* lexer;
- QValueStack<ProjectAST*>& projects;
+ TQValueStack<ProjectAST*>& projects;
int depth;
};
}
diff --git a/buildtools/lib/parsers/qmake/qmakeast.cpp b/buildtools/lib/parsers/qmake/qmakeast.cpp
index a60e9a53..91e48d2d 100644
--- a/buildtools/lib/parsers/qmake/qmakeast.cpp
+++ b/buildtools/lib/parsers/qmake/qmakeast.cpp
@@ -27,7 +27,7 @@ namespace QMake {
AST::~AST()
{
- for (QValueList<AST*>::iterator it = m_children.begin(); it != m_children.end(); ++it)
+ for (TQValueList<AST*>::iterator it = m_children.begin(); it != m_children.end(); ++it)
{
AST *node = *it;
delete node;
@@ -45,9 +45,9 @@ void AST::removeChildAST(AST *node)
m_children.remove(node);
}
-void AST::writeBack(QString &buffer)
+void AST::writeBack(TQString &buffer)
{
- for (QValueList<AST*>::const_iterator it = m_children.constBegin();
+ for (TQValueList<AST*>::const_iterator it = m_children.constBegin();
it != m_children.constEnd(); ++it)
{
if (*it)
@@ -57,9 +57,9 @@ void AST::writeBack(QString &buffer)
}
}
-QString AST::indentation()
+TQString AST::indentation()
{
- QString result;
+ TQString result;
for (int i = 0; i < depth(); i++)
result += " ";
return result;
@@ -67,10 +67,10 @@ QString AST::indentation()
//ProjectAST
-void ProjectAST::writeBack(QString &buffer)
+void ProjectAST::writeBack(TQString &buffer)
{
bool hasActualStatements = false;
- for (QValueList<QMake::AST*>::const_iterator it = m_children.begin(); it != m_children.end(); ++it)
+ for (TQValueList<QMake::AST*>::const_iterator it = m_children.begin(); it != m_children.end(); ++it)
{
if ((*it)->nodeType() != AST::IncludeAST)
{
@@ -128,7 +128,7 @@ AssignmentAST::~AssignmentAST()
{
}
-void AssignmentAST::writeBack(QString &buffer)
+void AssignmentAST::writeBack(TQString &buffer)
{
if( !buffer.endsWith(": ") )
buffer += indentation();
@@ -141,7 +141,7 @@ void AssignmentAST::writeBack(QString &buffer)
//NewLineAST
-void NewLineAST::writeBack(QString &buffer)
+void NewLineAST::writeBack(TQString &buffer)
{
buffer += "\n";
}
@@ -149,7 +149,7 @@ void NewLineAST::writeBack(QString &buffer)
//CommentAST
-void CommentAST::writeBack(QString &buffer)
+void CommentAST::writeBack(TQString &buffer)
{
if( !buffer.endsWith(": ") )
buffer += indentation();
@@ -159,7 +159,7 @@ void CommentAST::writeBack(QString &buffer)
//IncludeAST
-void IncludeAST::writeBack(QString &/*buffer*/)
+void IncludeAST::writeBack(TQString &/*buffer*/)
{
}
diff --git a/buildtools/lib/parsers/qmake/qmakeast.h b/buildtools/lib/parsers/qmake/qmakeast.h
index 35612fc1..45aedb2e 100644
--- a/buildtools/lib/parsers/qmake/qmakeast.h
+++ b/buildtools/lib/parsers/qmake/qmakeast.h
@@ -20,7 +20,7 @@
#ifndef QMAKEQMAKEAST_H
#define QMAKEQMAKEAST_H
-#include <qstringlist.h>
+#include <tqstringlist.h>
/**
@file qmakeast.h
@@ -66,7 +66,7 @@ public:
/**Writes information stored in the AST into the @p buffer.
This is a default implementation which iterates over child nodes
and calls writeBack for each child node.*/
- virtual void writeBack(QString &buffer);
+ virtual void writeBack(TQString &buffer);
/**@return The type of the node.*/
virtual NodeType nodeType() const { return m_nodeType; }
@@ -76,10 +76,10 @@ public:
/**@return The depth of the node in AST.*/
int depth() const { return m_depth; }
/**@return The indentation string based on node depth.*/
- virtual QString indentation();
+ virtual TQString indentation();
/**The list of child AST nodes.*/
- QValueList<AST*> m_children;
+ TQValueList<AST*> m_children;
protected:
NodeType m_nodeType;
@@ -122,7 +122,7 @@ public:
/**Constructs a project node of given @p kind.*/
ProjectAST(Kind kind = Project): AST(AST::ProjectAST), m_kind(kind) {}
- virtual void writeBack(QString &buffer);
+ virtual void writeBack(TQString &buffer);
/**@return true if this node is a project.*/
bool isProject() const { return m_kind == Project; }
@@ -133,20 +133,20 @@ public:
/**@return true if this node is empty.*/
bool isEmpty() const { return m_kind == Empty; }
- void setFileName(const QString& fileName) { m_fileName = fileName; }
- QString fileName() const { return m_fileName; }
+ void setFileName(const TQString& fileName) { m_fileName = fileName; }
+ TQString fileName() const { return m_fileName; }
void setLineEnding( LineEnding );
LineEnding lineEnding();
/**Scoped identifier (scope name or function name).*/
- QString scopedID;
+ TQString scopedID;
/**Function arguments. Empty for other kinds of projects.*/
- QString args;
+ TQString args;
private:
Kind m_kind;
- QString m_fileName;
+ TQString m_fileName;
LineEnding m_lineEnding;
};
@@ -176,16 +176,16 @@ public:
AssignmentAST(): AST(AST::AssignmentAST){}
~AssignmentAST();
- virtual void writeBack(QString &buffer);
+ virtual void writeBack(TQString &buffer);
/**Scoped name of the variable.*/
- QString scopedID;
+ TQString scopedID;
/**Operator.*/
- QString op;
+ TQString op;
/**List of values.*/
- QStringList values;
+ TQStringList values;
/**Indentation of multiline values*/
- QString indent;
+ TQString indent;
};
@@ -197,7 +197,7 @@ class NewLineAST: public AST {
public:
NewLineAST(): AST(AST::NewLineAST) {}
- virtual void writeBack(QString &buffer);
+ virtual void writeBack(TQString &buffer);
};
@@ -210,10 +210,10 @@ class CommentAST: public AST {
public:
CommentAST(): AST(AST::CommentAST) {}
- virtual void writeBack(QString &buffer);
+ virtual void writeBack(TQString &buffer);
/**Comment text.*/
- QString comment;
+ TQString comment;
};
@@ -226,9 +226,9 @@ class IncludeAST: public AST {
public:
IncludeAST(): AST(AST::IncludeAST) {}
- virtual void writeBack(QString &buffer);
+ virtual void writeBack(TQString &buffer);
- QString projectName;
+ TQString projectName;
};
}
diff --git a/buildtools/lib/parsers/qmake/qmakeastvisitor.cpp b/buildtools/lib/parsers/qmake/qmakeastvisitor.cpp
index 052f5f00..1f7e6cb6 100644
--- a/buildtools/lib/parsers/qmake/qmakeastvisitor.cpp
+++ b/buildtools/lib/parsers/qmake/qmakeastvisitor.cpp
@@ -29,7 +29,7 @@ void ASTVisitor::processProject(ProjectAST *project)
enterScope(project);
else if (project->isFunctionScope())
enterFunctionScope(project);
- for (QValueList<QMake::AST*>::const_iterator it = project->m_children.constBegin();
+ for (TQValueList<QMake::AST*>::const_iterator it = project->m_children.constBegin();
it != project->m_children.constEnd(); ++it)
{
AST *ast = *it;
diff --git a/buildtools/lib/parsers/qmake/qmakedriver.cpp b/buildtools/lib/parsers/qmake/qmakedriver.cpp
index 1b7aece6..e2d93ef8 100644
--- a/buildtools/lib/parsers/qmake/qmakedriver.cpp
+++ b/buildtools/lib/parsers/qmake/qmakedriver.cpp
@@ -20,7 +20,7 @@
#include "qmakedriver.h"
#include "qmakeast.h"
-#include <qvaluestack.h>
+#include <tqvaluestack.h>
#include <kio/netaccess.h>
#include <iostream>
@@ -44,7 +44,7 @@ int Driver::parseFile(const char *fileName, ProjectAST **ast, int debug)
Lexer l(&inf);
l.set_debug(debug);
int depth = 0;
- QValueStack<ProjectAST*> stack;
+ TQValueStack<ProjectAST*> stack;
Parser p(&l, stack, depth);
p.set_debug_level(debug);
int ret = p.parse();
@@ -66,14 +66,14 @@ int Driver::parseFile(const char *fileName, ProjectAST **ast, int debug)
return ret;
}
-int Driver::parseFile(QString fileName, ProjectAST **ast, int debug)
+int Driver::parseFile(TQString fileName, ProjectAST **ast, int debug)
{
return parseFile(fileName.ascii(), ast, debug);
}
int Driver::parseFile(KURL fileName, ProjectAST **ast, int debug)
{
- QString tmpFile;
+ TQString tmpFile;
int ret = 0;
if (KIO::NetAccess::download(fileName, tmpFile, 0))
ret = parseFile(tmpFile, ast, debug);
@@ -88,7 +88,7 @@ int Driver::parseString( const char* string, ProjectAST **ast, int debug )
Lexer l(&ins);
l.set_debug(debug);
int depth = 0;
- QValueStack<ProjectAST*> stack;
+ TQValueStack<ProjectAST*> stack;
Parser p(&l, stack, depth);
p.set_debug_level(debug);
int ret = p.parse();
diff --git a/buildtools/lib/parsers/qmake/qmakedriver.h b/buildtools/lib/parsers/qmake/qmakedriver.h
index 37441bf8..daa06057 100644
--- a/buildtools/lib/parsers/qmake/qmakedriver.h
+++ b/buildtools/lib/parsers/qmake/qmakedriver.h
@@ -44,7 +44,7 @@ public:
@return The result of parsing. Result is 0 on success and <> 0 on failure.
*/
static int parseFile(const char *fileName, ProjectAST **ast, int debug);
- static int parseFile(QString fileName, ProjectAST **ast, int debug);
+ static int parseFile(TQString fileName, ProjectAST **ast, int debug);
static int parseFile(KURL fileName, ProjectAST **ast, int debug);
static int parseString(const char* string, ProjectAST **ast, int debug);
diff --git a/buildtools/lib/parsers/qmake/tests/runner.cpp b/buildtools/lib/parsers/qmake/tests/runner.cpp
index 140b39f4..6f1d5956 100644
--- a/buildtools/lib/parsers/qmake/tests/runner.cpp
+++ b/buildtools/lib/parsers/qmake/tests/runner.cpp
@@ -24,7 +24,7 @@
#include "qmakedriver.h"
#include "qmakeastvisitor.h"
-#include <qstring.h>
+#include <tqstring.h>
#include <kdebug.h>
#include <kcmdlineargs.h>
@@ -93,7 +93,7 @@ private:
QMake::ASTVisitor::leaveFunctionScope(p);
}
- QString replaceWs(QString s)
+ TQString replaceWs(TQString s)
{
return s.replace("\n", "%nl").replace("\t", "%tab").replace(" ", "%spc");
}
@@ -122,9 +122,9 @@ private:
QMake::ASTVisitor::processInclude(a);
}
- QString getIndent()
+ TQString getIndent()
{
- QString ind;
+ TQString ind;
for( int i = 0 ; i < indent ; i++)
ind += " ";
return ind;
@@ -159,7 +159,7 @@ int main(int argc, char *argv[])
if ( !silent )
{
pa.processProject(projectAST);
- QString profile;
+ TQString profile;
projectAST->writeBack(profile);
kdDebug(9024) << "QMake file written back:\n" << profile << endl;
}
diff --git a/buildtools/lib/parsers/qmake/tests/viewer.cpp b/buildtools/lib/parsers/qmake/tests/viewer.cpp
index a550a426..4583ab11 100644
--- a/buildtools/lib/parsers/qmake/tests/viewer.cpp
+++ b/buildtools/lib/parsers/qmake/tests/viewer.cpp
@@ -19,15 +19,15 @@
***************************************************************************/
#include "viewer.h"
-#include <qdir.h>
-#include <qlineedit.h>
-#include <qlistbox.h>
-#include <qfiledialog.h>
-#include <qtextedit.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qlistview.h>
-#include <qtabwidget.h>
+#include <tqdir.h>
+#include <tqlineedit.h>
+#include <tqlistbox.h>
+#include <tqfiledialog.h>
+#include <tqtextedit.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqlistview.h>
+#include <tqtabwidget.h>
#include <qmakeast.h>
#include <qmakedriver.h>
@@ -35,46 +35,46 @@
using namespace QMake;
-Viewer::Viewer(QWidget *parent, const char *name)
+Viewer::Viewer(TQWidget *parent, const char *name)
:ViewerBase(parent, name), projectAST(0)
{
- if (QFile::exists(QDir::currentDirPath() + "/" + "qtlist"))
+ if (TQFile::exists(TQDir::currentDirPath() + "/" + "qtlist"))
{
- QFile f(QDir::currentDirPath() + "/" + "qtlist");
+ TQFile f(TQDir::currentDirPath() + "/" + "qtlist");
f.open(IO_ReadOnly);
- QTextStream str(&f);
+ TQTextStream str(&f);
while (!str.eof())
files->insertItem(str.readLine());
}
ast->setSorting(-1);
-// parentProject.push((QListViewItem*)0);
+// parentProject.push((TQListViewItem*)0);
}
void Viewer::addAll_clicked()
{
if (allLocation->text().isEmpty())
return;
- QDir d(allLocation->text());
- QStringList l = d.entryList("*.pro *.pri");
- for (QStringList::iterator it = l.begin(); it != l.end(); ++it)
- (*it) = QDir::cleanDirPath(allLocation->text() + "/" + (*it));
+ TQDir d(allLocation->text());
+ TQStringList l = d.entryList("*.pro *.pri");
+ for (TQStringList::iterator it = l.begin(); it != l.end(); ++it)
+ (*it) = TQDir::cleanDirPath(allLocation->text() + "/" + (*it));
files->insertStringList(l);
}
void Viewer::choose_clicked()
{
- QString fileName = QFileDialog::getOpenFileName(QDir::currentDirPath(), "*.pro *.pri", this);
+ TQString fileName = TQFileDialog::getOpenFileName(TQDir::currentDirPath(), "*.pro *.pri", this);
if (!fileName.isEmpty())
files->insertItem(fileName);
}
-void Viewer::files_currentChanged(QListBoxItem* item)
+void Viewer::files_currentChanged(TQListBoxItem* item)
{
ast->clear();
- QFile f(item->text());
+ TQFile f(item->text());
f.open(IO_ReadOnly);
- QTextStream str(&f);
+ TQTextStream str(&f);
source->setText(str.read());
f.close();
@@ -87,11 +87,11 @@ void Viewer::files_currentChanged(QListBoxItem* item)
tabWidget2_selected("Source to be written back");
}
-void Viewer::tabWidget2_selected(const QString& text)
+void Viewer::tabWidget2_selected(const TQString& text)
{
if ((text == "Source to Be Written Back") && projectAST)
{
- QString buffer;
+ TQString buffer;
projectAST->writeBack(buffer);
writeBack->setText(buffer);
}
@@ -102,7 +102,7 @@ public:
ViewerVisitor(Viewer *v): ASTVisitor()
{
this->v = v;
- parentProject.push((QListViewItem*)0);
+ parentProject.push((TQListViewItem*)0);
}
virtual void processProject(ProjectAST *project)
@@ -112,10 +112,10 @@ public:
virtual void enterRealProject(ProjectAST *project)
{
- QListViewItem *projectIt;
+ TQListViewItem *projectIt;
if (!parentProject.top())
{
- projectIt = new QListViewItem(v->ast, "Project");
+ projectIt = new TQListViewItem(v->ast, "Project");
projectIt->setOpen(true);
parentProject.push(projectIt);
}
@@ -124,7 +124,7 @@ public:
}
virtual void enterScope(ProjectAST *scope)
{
- QListViewItem *projectIt = new QListViewItem(parentProject.top(), scope->scopedID, "scope");
+ TQListViewItem *projectIt = new TQListViewItem(parentProject.top(), scope->scopedID, "scope");
parentProject.push(projectIt);
ASTVisitor::enterScope(scope);
}
@@ -134,7 +134,7 @@ public:
}
virtual void enterFunctionScope(ProjectAST *fscope)
{
- QListViewItem *projectIt = new QListViewItem(parentProject.top(),
+ TQListViewItem *projectIt = new TQListViewItem(parentProject.top(),
fscope->scopedID + "(" + fscope->args + ")", "function scope");
parentProject.push(projectIt);
ASTVisitor::enterFunctionScope(fscope);
@@ -145,7 +145,7 @@ public:
}
virtual void processAssignment(AssignmentAST *assignment)
{
- QListViewItem *item = new QListViewItem(parentProject.top(),
+ TQListViewItem *item = new TQListViewItem(parentProject.top(),
assignment->scopedID, assignment->op, assignment->values.join("|"),
"assignment");
item->setMultiLinesEnabled(true);
@@ -154,26 +154,26 @@ public:
}
virtual void processNewLine(NewLineAST *newline)
{
- new QListViewItem(parentProject.top(), "<newline>");
+ new TQListViewItem(parentProject.top(), "<newline>");
ASTVisitor::processNewLine(newline);
}
virtual void processComment(CommentAST *comment)
{
- new QListViewItem(parentProject.top(), "<comment>");
+ new TQListViewItem(parentProject.top(), "<comment>");
ASTVisitor::processComment(comment);
}
virtual void processInclude(IncludeAST *include)
{
- new QListViewItem(parentProject.top(), "<include>", include->projectName);
+ new TQListViewItem(parentProject.top(), "<include>", include->projectName);
QMake::ASTVisitor::processInclude(include);
}
Viewer *v;
- QValueStack<QListViewItem *> parentProject;
+ TQValueStack<TQListViewItem *> parentProject;
};
-void Viewer::processAST(QMake::ProjectAST *projectAST, QListViewItem *globAfter)
+void Viewer::processAST(QMake::ProjectAST *projectAST, TQListViewItem *globAfter)
{
ViewerVisitor visitor(this);
visitor.processProject(projectAST);
diff --git a/buildtools/lib/parsers/qmake/tests/viewer.h b/buildtools/lib/parsers/qmake/tests/viewer.h
index b22632a1..07e91da1 100644
--- a/buildtools/lib/parsers/qmake/tests/viewer.h
+++ b/buildtools/lib/parsers/qmake/tests/viewer.h
@@ -20,7 +20,7 @@
#ifndef VIEWER_H
#define VIEWER_H
-#include <qvaluestack.h>
+#include <tqvaluestack.h>
#include "viewerbase.h"
@@ -33,11 +33,11 @@ class QListViewItem;
class Viewer: public ViewerBase {
Q_OBJECT
public:
- Viewer(QWidget *parent = 0, const char *name = 0);
- void processAST(QMake::ProjectAST *projectAST, QListViewItem *globAfter = 0);
+ Viewer(TQWidget *parent = 0, const char *name = 0);
+ void processAST(QMake::ProjectAST *projectAST, TQListViewItem *globAfter = 0);
public slots:
- virtual void tabWidget2_selected(const QString&);
- virtual void files_currentChanged(QListBoxItem*);
+ virtual void tabWidget2_selected(const TQString&);
+ virtual void files_currentChanged(TQListBoxItem*);
virtual void choose_clicked();
virtual void addAll_clicked();
private:
diff --git a/buildtools/lib/parsers/qmake/tests/viewer_main.cpp b/buildtools/lib/parsers/qmake/tests/viewer_main.cpp
index d2a8a1ad..c31ea02c 100644
--- a/buildtools/lib/parsers/qmake/tests/viewer_main.cpp
+++ b/buildtools/lib/parsers/qmake/tests/viewer_main.cpp
@@ -17,12 +17,12 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qapplication.h>
+#include <tqapplication.h>
#include "viewer.h"
int main(int argc, char **argv)
{
- QApplication app(argc, argv);
+ TQApplication app(argc, argv);
Viewer viewer;
app.setMainWidget(&viewer);
diff --git a/buildtools/lib/widgets/addenvvardlg.cpp b/buildtools/lib/widgets/addenvvardlg.cpp
index 2264d5f2..89d7f655 100644
--- a/buildtools/lib/widgets/addenvvardlg.cpp
+++ b/buildtools/lib/widgets/addenvvardlg.cpp
@@ -17,9 +17,9 @@
Boston, MA 02110-1301, USA.
*/
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
#include <kbuttonbox.h>
#include <klocale.h>
#include <kstdguiitem.h>
@@ -28,45 +28,45 @@
#include "addenvvardlg.h"
-AddEnvvarDialog::AddEnvvarDialog(QWidget *parent, const char *name)
- : QDialog(parent, name, true)
+AddEnvvarDialog::AddEnvvarDialog(TQWidget *parent, const char *name)
+ : TQDialog(parent, name, true)
{
setCaption(i18n("Add Environment Variable"));
- QLabel *varname_label = new QLabel(i18n("&Name:"), this);
+ TQLabel *varname_label = new TQLabel(i18n("&Name:"), this);
varname_edit = new KLineEdit(this);
varname_edit->setFocus();
varname_label->setBuddy(varname_edit);
- connect( varname_edit, SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotTextChanged() ) );
- QLabel *value_label = new QLabel(i18n("&Value:"), this);
+ connect( varname_edit, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotTextChanged() ) );
+ TQLabel *value_label = new TQLabel(i18n("&Value:"), this);
value_edit = new KLineEdit(this);
value_label->setBuddy(value_edit);
- QFontMetrics fm(value_edit->fontMetrics());
+ TQFontMetrics fm(value_edit->fontMetrics());
value_edit->setMinimumWidth(fm.width('X')*35);
- connect( value_edit, SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotTextChanged() ) );
+ connect( value_edit, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotTextChanged() ) );
- QVBoxLayout *layout = new QVBoxLayout(this, 10);
+ TQVBoxLayout *layout = new TQVBoxLayout(this, 10);
- QGridLayout *grid = new QGridLayout(2, 2);
+ TQGridLayout *grid = new TQGridLayout(2, 2);
layout->addLayout(grid);
grid->addWidget(varname_label, 0, 0);
grid->addWidget(varname_edit, 0, 1);
grid->addWidget(value_label, 1, 0);
grid->addWidget(value_edit, 1, 1);
- QFrame *frame = new QFrame(this);
- frame->setFrameStyle(QFrame::HLine | QFrame::Sunken);
+ TQFrame *frame = new TQFrame(this);
+ frame->setFrameStyle(TQFrame::HLine | TQFrame::Sunken);
layout->addWidget(frame, 0);
KButtonBox *buttonbox = new KButtonBox(this);
buttonbox->addStretch();
m_pOk = buttonbox->addButton( KStdGuiItem::ok());
- QPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
+ TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
m_pOk->setDefault(true);
- connect( m_pOk, SIGNAL(clicked()), this, SLOT(accept()) );
- connect( cancel, SIGNAL(clicked()), this, SLOT(reject()) );
+ connect( m_pOk, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()) );
+ connect( cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()) );
buttonbox->layout();
layout->addWidget(buttonbox, 0);
slotTextChanged();
diff --git a/buildtools/lib/widgets/addenvvardlg.h b/buildtools/lib/widgets/addenvvardlg.h
index 06daa33b..5f2a5ea6 100644
--- a/buildtools/lib/widgets/addenvvardlg.h
+++ b/buildtools/lib/widgets/addenvvardlg.h
@@ -20,7 +20,7 @@
#ifndef _ADDENVVARDLG_H_
#define _ADDENVVARDLG_H_
-#include <qdialog.h>
+#include <tqdialog.h>
#include <klineedit.h>
class QPushButton;
@@ -32,23 +32,23 @@ class AddEnvvarDialog : public QDialog
Q_OBJECT
public:
- AddEnvvarDialog( QWidget *parent=0, const char *name=0 );
+ AddEnvvarDialog( TQWidget *parent=0, const char *name=0 );
~AddEnvvarDialog();
- QString varname() const
+ TQString varname() const
{ return varname_edit->text(); }
- QString value() const
+ TQString value() const
{ return value_edit->text(); }
- void setvarname(const QString name) const
+ void setvarname(const TQString name) const
{ varname_edit->setText(name); }
- void setvalue(const QString value) const
+ void setvalue(const TQString value) const
{ value_edit->setText(value); }
private slots:
void slotTextChanged();
private:
KLineEdit *varname_edit;
KLineEdit *value_edit;
- QPushButton *m_pOk;
+ TQPushButton *m_pOk;
};
#endif
diff --git a/buildtools/lib/widgets/addfilesdialog.cpp b/buildtools/lib/widgets/addfilesdialog.cpp
index 569b822f..f5a1fa92 100644
--- a/buildtools/lib/widgets/addfilesdialog.cpp
+++ b/buildtools/lib/widgets/addfilesdialog.cpp
@@ -19,24 +19,24 @@
#include <klocale.h>
#include <kapplication.h>
-#include <qcombobox.h>
+#include <tqcombobox.h>
#include "addfilesdialog.h"
#include "addfilesdialog.moc"
-AddFilesDialog::AddFilesDialog(const QString& startDir, const QString& filter,
- QWidget *parent, const char *name, bool modal):
+AddFilesDialog::AddFilesDialog(const TQString& startDir, const TQString& filter,
+ TQWidget *parent, const char *name, bool modal):
KFileDialog(startDir, filter, parent, name, modal)
{
KConfig *config = kapp->config();
config->setGroup("Add Files Dialog");
- m_extraWidget = new QComboBox(false, this);
+ m_extraWidget = new TQComboBox(false, this);
m_extraWidget->insertItem(i18n("Copy File(s)"), 0);
m_extraWidget->insertItem(i18n("Create Symbolic Link(s)"), 1);
m_extraWidget->insertItem(i18n("Add Relative Path(s)"), 2);
m_extraWidget->setCurrentItem(config->readNumEntry("Mode"));
- connect(m_extraWidget, SIGNAL(activated(int)), this, SLOT(storePreferred(int)));
+ connect(m_extraWidget, TQT_SIGNAL(activated(int)), this, TQT_SLOT(storePreferred(int)));
setPreviewWidget(m_extraWidget);
@@ -44,8 +44,8 @@ AddFilesDialog::AddFilesDialog(const QString& startDir, const QString& filter,
}
-AddFilesDialog::AddFilesDialog(const QString& startDir, const QString& filter,
- QWidget *parent, const char *name, bool modal, QComboBox *extraWidget):
+AddFilesDialog::AddFilesDialog(const TQString& startDir, const TQString& filter,
+ TQWidget *parent, const char *name, bool modal, TQComboBox *extraWidget):
KFileDialog(startDir, filter, parent, name, modal, extraWidget), m_extraWidget(extraWidget)
{
KConfig *config = kapp->config();
@@ -55,7 +55,7 @@ AddFilesDialog::AddFilesDialog(const QString& startDir, const QString& filter,
m_extraWidget->insertItem(i18n("Create Symbolic Link(s)"), 1);
m_extraWidget->insertItem(i18n("Add Relative Path(s)"), 2);
m_extraWidget->setCurrentItem(config->readNumEntry("Mode"));
- connect(m_extraWidget, SIGNAL(activated(int)), this, SLOT(storePreferred(int)));
+ connect(m_extraWidget, TQT_SIGNAL(activated(int)), this, TQT_SLOT(storePreferred(int)));
setOperationMode(Opening);
}
diff --git a/buildtools/lib/widgets/addfilesdialog.h b/buildtools/lib/widgets/addfilesdialog.h
index ddc6dd60..51415cc6 100644
--- a/buildtools/lib/widgets/addfilesdialog.h
+++ b/buildtools/lib/widgets/addfilesdialog.h
@@ -37,18 +37,18 @@ class AddFilesDialog : public KFileDialog
public:
enum Mode { Copy, Link, Relative };
- AddFilesDialog(const QString& startDir, const QString& filter,
- QWidget *parent, const char *name, bool modal);
+ AddFilesDialog(const TQString& startDir, const TQString& filter,
+ TQWidget *parent, const char *name, bool modal);
- AddFilesDialog(const QString& startDir, const QString& filter,
- QWidget *parent, const char *name, bool modal, QComboBox *extraWidget);
+ AddFilesDialog(const TQString& startDir, const TQString& filter,
+ TQWidget *parent, const char *name, bool modal, TQComboBox *extraWidget);
virtual ~AddFilesDialog();
virtual AddFilesDialog::Mode mode();
private:
- QComboBox * m_extraWidget;
+ TQComboBox * m_extraWidget;
private slots:
void storePreferred(int index);
diff --git a/buildtools/lib/widgets/environmentdisplaydialog.cpp b/buildtools/lib/widgets/environmentdisplaydialog.cpp
index dcec00d7..1a809459 100644
--- a/buildtools/lib/widgets/environmentdisplaydialog.cpp
+++ b/buildtools/lib/widgets/environmentdisplaydialog.cpp
@@ -19,16 +19,16 @@
#include <unistd.h>
#include <klistview.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include "environmentdisplaydialog.h"
extern char **environ;
-EnvironmentDisplayDialog::EnvironmentDisplayDialog(QWidget* parent, const char* name, bool modal, WFlags fl)
+EnvironmentDisplayDialog::EnvironmentDisplayDialog(TQWidget* parent, const char* name, bool modal, WFlags fl)
: EnvironmentDisplayDialogBase(parent,name, modal,fl)
{
- QStringList environment;
+ TQStringList environment;
char ** e = ::environ;
while ( *e )
@@ -37,13 +37,13 @@ EnvironmentDisplayDialog::EnvironmentDisplayDialog(QWidget* parent, const char*
e++;
}
- QStringList::ConstIterator it = environment.begin();
+ TQStringList::ConstIterator it = environment.begin();
while( it !=environment.end() )
{
- QStringList pair = QStringList::split( QChar('='), *it );
+ TQStringList pair = TQStringList::split( TQChar('='), *it );
if ( pair.count() == 2 )
{
- new QListViewItem( environmentListView, pair.first(), pair.last() );
+ new TQListViewItem( environmentListView, pair.first(), pair.last() );
}
++it;
}
diff --git a/buildtools/lib/widgets/environmentdisplaydialog.h b/buildtools/lib/widgets/environmentdisplaydialog.h
index 277919c2..3458ba78 100644
--- a/buildtools/lib/widgets/environmentdisplaydialog.h
+++ b/buildtools/lib/widgets/environmentdisplaydialog.h
@@ -28,7 +28,7 @@ class EnvironmentDisplayDialog : public EnvironmentDisplayDialogBase
Q_OBJECT
public:
- EnvironmentDisplayDialog(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ EnvironmentDisplayDialog(TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
};
#endif
diff --git a/buildtools/lib/widgets/environmentvariableswidget.cpp b/buildtools/lib/widgets/environmentvariableswidget.cpp
index e47142f5..3c3e448f 100644
--- a/buildtools/lib/widgets/environmentvariableswidget.cpp
+++ b/buildtools/lib/widgets/environmentvariableswidget.cpp
@@ -21,10 +21,10 @@
#include "environmentvariableswidget.h"
#include "environmentdisplaydialog.h"
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qspinbox.h>
-#include <qlistview.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
+#include <tqspinbox.h>
+#include <tqlistview.h>
#include "domutil.h"
#include "addenvvardlg.h"
@@ -32,7 +32,7 @@
void EnvironmentVariablesWidget::addVarClicked()
{
AddEnvvarDialog dlg( this, "add env dialog" ) ;
- if (QListViewItem *Item = listview->selectedItem())
+ if (TQListViewItem *Item = listview->selectedItem())
{
dlg.setvarname(Item->text(0));
dlg.setvalue(Item->text(1));
@@ -40,14 +40,14 @@ void EnvironmentVariablesWidget::addVarClicked()
if (!dlg.exec())
return;
- (void) new QListViewItem(listview, dlg.varname(), dlg.value());
+ (void) new TQListViewItem(listview, dlg.varname(), dlg.value());
}
void EnvironmentVariablesWidget::editVarClicked()
{
AddEnvvarDialog dlg( this, "edit env dialog" );
- QListViewItem *item = listview->selectedItem();
+ TQListViewItem *item = listview->selectedItem();
if ( !item )
return;
dlg.setvarname(item->text(0));
@@ -66,20 +66,20 @@ void EnvironmentVariablesWidget::removeVarClicked()
}
-EnvironmentVariablesWidget::EnvironmentVariablesWidget(QDomDocument &dom, const QString &configGroup,
- QWidget *parent, const char *name)
+EnvironmentVariablesWidget::EnvironmentVariablesWidget(TQDomDocument &dom, const TQString &configGroup,
+ TQWidget *parent, const char *name)
: EnvironmentVariablesWidgetBase(parent, name),
m_dom(dom), m_configGroup(configGroup)
{
readEnvironment(dom, configGroup);
- connect( listview, SIGNAL( doubleClicked ( QListViewItem *, const QPoint &, int ) ), this, SLOT( editVarClicked() ) );
+ connect( listview, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ), this, TQT_SLOT( editVarClicked() ) );
}
EnvironmentVariablesWidget::~EnvironmentVariablesWidget()
{}
-void EnvironmentVariablesWidget::readEnvironment(QDomDocument &dom, const QString &configGroup)
+void EnvironmentVariablesWidget::readEnvironment(TQDomDocument &dom, const TQString &configGroup)
{
m_dom = dom;
m_configGroup = configGroup;
@@ -89,18 +89,18 @@ void EnvironmentVariablesWidget::readEnvironment(QDomDocument &dom, const QStrin
DomUtil::PairList list =
DomUtil::readPairListEntry(dom, m_configGroup, "envvar", "name", "value");
- QListViewItem *lastItem = 0;
+ TQListViewItem *lastItem = 0;
DomUtil::PairList::ConstIterator it;
for (it = list.begin(); it != list.end(); ++it) {
- QListViewItem *newItem = new QListViewItem(listview, (*it).first, (*it).second);
+ TQListViewItem *newItem = new TQListViewItem(listview, (*it).first, (*it).second);
if (lastItem)
newItem->moveItem(lastItem);
lastItem = newItem;
}
}
-void EnvironmentVariablesWidget::changeConfigGroup( const QString &configGroup)
+void EnvironmentVariablesWidget::changeConfigGroup( const TQString &configGroup)
{
m_configGroup = configGroup;
}
@@ -108,7 +108,7 @@ void EnvironmentVariablesWidget::changeConfigGroup( const QString &configGroup)
void EnvironmentVariablesWidget::accept()
{
DomUtil::PairList list;
- QListViewItem *item = listview->firstChild();
+ TQListViewItem *item = listview->firstChild();
while (item) {
list << DomUtil::Pair(item->text(0), item->text(1));
item = item->nextSibling();
diff --git a/buildtools/lib/widgets/environmentvariableswidget.h b/buildtools/lib/widgets/environmentvariableswidget.h
index c42076a8..f2c00b52 100644
--- a/buildtools/lib/widgets/environmentvariableswidget.h
+++ b/buildtools/lib/widgets/environmentvariableswidget.h
@@ -23,7 +23,7 @@
#include "environmentvariableswidgetbase.h"
-#include <qdom.h>
+#include <tqdom.h>
/**
Environment variables widget.
@@ -33,15 +33,15 @@ class EnvironmentVariablesWidget : public EnvironmentVariablesWidgetBase
Q_OBJECT
public:
- EnvironmentVariablesWidget( QDomDocument &dom, const QString &configGroup,
- QWidget *parent=0, const char *name=0 );
+ EnvironmentVariablesWidget( TQDomDocument &dom, const TQString &configGroup,
+ TQWidget *parent=0, const char *name=0 );
~EnvironmentVariablesWidget();
/// read in a set of environment variables from the DOM document
- void readEnvironment(QDomDocument &dom, const QString &configGroup);
+ void readEnvironment(TQDomDocument &dom, const TQString &configGroup);
/// changes the path in the DOM structure where the environment variables are stored
- void changeConfigGroup( const QString &configGroup);
+ void changeConfigGroup( const TQString &configGroup);
public slots:
void accept();
@@ -52,8 +52,8 @@ private:
virtual void editVarClicked();
virtual void environmentClicked();
- QDomDocument &m_dom;
- QString m_configGroup;
+ TQDomDocument &m_dom;
+ TQString m_configGroup;
};
#endif
diff --git a/buildtools/lib/widgets/envvartools.cpp b/buildtools/lib/widgets/envvartools.cpp
index 8f69e93c..71c44377 100644
--- a/buildtools/lib/widgets/envvartools.cpp
+++ b/buildtools/lib/widgets/envvartools.cpp
@@ -18,12 +18,12 @@
*/
#include "envvartools.h"
-#include <qregexp.h>
+#include <tqregexp.h>
-QString EnvVarTools::quote( const QString & arg )
+TQString EnvVarTools::quote( const TQString & arg )
{
- QString res = arg;
- res.replace(QRegExp(QString::fromLatin1("'")), QString::fromLatin1("'\\''"));
+ TQString res = arg;
+ res.replace(TQRegExp(TQString::fromLatin1("'")), TQString::fromLatin1("'\\''"));
res.prepend("\"");
res.append("\"");
return res;
diff --git a/buildtools/lib/widgets/envvartools.h b/buildtools/lib/widgets/envvartools.h
index 042fe326..3a4802c6 100644
--- a/buildtools/lib/widgets/envvartools.h
+++ b/buildtools/lib/widgets/envvartools.h
@@ -16,13 +16,13 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
-#include <qstring.h>
+#include <tqstring.h>
/**Environment support functions.*/
namespace EnvVarTools{
/**Quotes the argument using double quotes ("). Created as a replacement
for KShellProcess::quote.*/
- QString quote(const QString &arg);
+ TQString quote(const TQString &arg);
}
diff --git a/buildtools/lib/widgets/makeoptionswidget.cpp b/buildtools/lib/widgets/makeoptionswidget.cpp
index 834e275c..ef901cc8 100644
--- a/buildtools/lib/widgets/makeoptionswidget.cpp
+++ b/buildtools/lib/widgets/makeoptionswidget.cpp
@@ -19,17 +19,17 @@
#include "makeoptionswidget.h"
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include <klineedit.h>
-#include <qspinbox.h>
-#include <qlistview.h>
-#include <qgroupbox.h>
+#include <tqspinbox.h>
+#include <tqlistview.h>
+#include <tqgroupbox.h>
#include "domutil.h"
#include "environmentvariableswidget.h"
-MakeOptionsWidget::MakeOptionsWidget(QDomDocument &dom, const QString &configGroup,
- QWidget *parent, const char *name)
+MakeOptionsWidget::MakeOptionsWidget(TQDomDocument &dom, const TQString &configGroup,
+ TQWidget *parent, const char *name)
: MakeOptionsWidgetBase(parent, name),
m_dom(dom), m_configGroup(configGroup)
{
diff --git a/buildtools/lib/widgets/makeoptionswidget.h b/buildtools/lib/widgets/makeoptionswidget.h
index 1754cd91..0cd962c3 100644
--- a/buildtools/lib/widgets/makeoptionswidget.h
+++ b/buildtools/lib/widgets/makeoptionswidget.h
@@ -22,7 +22,7 @@
#include "makeoptionswidgetbase.h"
-#include <qdom.h>
+#include <tqdom.h>
class EnvironmentVariablesWidget;
@@ -34,16 +34,16 @@ class MakeOptionsWidget : public MakeOptionsWidgetBase
Q_OBJECT
public:
- MakeOptionsWidget( QDomDocument &dom, const QString &configGroup,
- QWidget *parent=0, const char *name=0 );
+ MakeOptionsWidget( TQDomDocument &dom, const TQString &configGroup,
+ TQWidget *parent=0, const char *name=0 );
~MakeOptionsWidget();
public slots:
void accept();
private:
- QDomDocument &m_dom;
- QString m_configGroup;
+ TQDomDocument &m_dom;
+ TQString m_configGroup;
EnvironmentVariablesWidget* m_environmentVariablesWidget;
};
diff --git a/buildtools/lib/widgets/removesubprojectdialog.cpp b/buildtools/lib/widgets/removesubprojectdialog.cpp
index aef16a0c..4a41ff88 100644
--- a/buildtools/lib/widgets/removesubprojectdialog.cpp
+++ b/buildtools/lib/widgets/removesubprojectdialog.cpp
@@ -16,11 +16,11 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
-#include <qcheckbox.h>
-#include <qlabel.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
#include "removesubprojectdialog.h"
-RemoveSubprojectDialog::RemoveSubprojectDialog(QString caption, QString question, QWidget* parent, const char* name, bool modal, WFlags fl)
+RemoveSubprojectDialog::RemoveSubprojectDialog(TQString caption, TQString question, TQWidget* parent, const char* name, bool modal, WFlags fl)
: RemoveSubprojectDlgBase(parent,name, modal,fl)
{
setCaption(caption);
@@ -34,12 +34,12 @@ RemoveSubprojectDialog::~RemoveSubprojectDialog()
/*$SPECIALIZATION$*/
void RemoveSubprojectDialog::reject()
{
- QDialog::reject();
+ TQDialog::reject();
}
void RemoveSubprojectDialog::accept()
{
- QDialog::accept();
+ TQDialog::accept();
}
bool RemoveSubprojectDialog::removeFromDisk( )
diff --git a/buildtools/lib/widgets/removesubprojectdialog.h b/buildtools/lib/widgets/removesubprojectdialog.h
index 0a20b4ad..593309fe 100644
--- a/buildtools/lib/widgets/removesubprojectdialog.h
+++ b/buildtools/lib/widgets/removesubprojectdialog.h
@@ -30,7 +30,7 @@ class RemoveSubprojectDialog : public RemoveSubprojectDlgBase
Q_OBJECT
public:
- RemoveSubprojectDialog(QString caption, QString question, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ RemoveSubprojectDialog(TQString caption, TQString question, TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~RemoveSubprojectDialog();
/*$PUBLIC_FUNCTIONS$*/
bool removeFromDisk();
diff --git a/buildtools/lib/widgets/runoptionswidget.cpp b/buildtools/lib/widgets/runoptionswidget.cpp
index f0cb94b4..9aecbe17 100644
--- a/buildtools/lib/widgets/runoptionswidget.cpp
+++ b/buildtools/lib/widgets/runoptionswidget.cpp
@@ -26,20 +26,20 @@
#include <klineedit.h>
#include <urlutil.h>
-#include <qlistview.h>
-#include <qgroupbox.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qpushbutton.h>
-#include <qbuttongroup.h>
-#include <qlabel.h>
+#include <tqlistview.h>
+#include <tqgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqpushbutton.h>
+#include <tqbuttongroup.h>
+#include <tqlabel.h>
#include "domutil.h"
#include "environmentvariableswidget.h"
-RunOptionsWidget::RunOptionsWidget(QDomDocument &dom, const QString &configGroup,
- const QString &buildDirectory, QWidget *parent, const char *name)
+RunOptionsWidget::RunOptionsWidget(TQDomDocument &dom, const TQString &configGroup,
+ const TQString &buildDirectory, TQWidget *parent, const char *name)
: RunOptionsWidgetBase(parent, name),
m_dom(dom), m_configGroup(configGroup)
{
@@ -49,37 +49,37 @@ RunOptionsWidget::RunOptionsWidget(QDomDocument &dom, const QString &configGroup
mainprogram_edit->completionObject()->setMode(KURLCompletion::FileCompletion);
mainprogram_edit->setMode( KFile::File | KFile::ExistingOnly | KFile::LocalOnly );
- if( DomUtil::readEntry(dom, configGroup + "/run/mainprogram").isEmpty() && QFileInfo( buildDirectory ).exists() )
+ if( DomUtil::readEntry(dom, configGroup + "/run/mainprogram").isEmpty() && TQFileInfo( buildDirectory ).exists() )
{
mainprogram_edit->setURL( buildDirectory );
mainprogram_edit->fileDialog()->setURL( KURL::fromPathOrURL(buildDirectory) );
- }else if ( QFileInfo( DomUtil::readEntry(dom, configGroup + "/run/mainprogram") ).exists() )
+ }else if ( TQFileInfo( DomUtil::readEntry(dom, configGroup + "/run/mainprogram") ).exists() )
{
- QString program = DomUtil::readEntry(dom, configGroup + "/run/mainprogram");
- if( QDir::isRelativePath(program) )
+ TQString program = DomUtil::readEntry(dom, configGroup + "/run/mainprogram");
+ if( TQDir::isRelativePath(program) )
program = buildDirectory + "/" + program;
mainprogram_edit->setURL(program);
mainprogram_edit->fileDialog()->setURL( program );
}else
{
- mainprogram_edit->setURL(QString());
- mainprogram_edit->fileDialog()->setURL(QString());
+ mainprogram_edit->setURL(TQString());
+ mainprogram_edit->fileDialog()->setURL(TQString());
}
cwd_edit->completionObject()->setMode(KURLCompletion::DirCompletion);
cwd_edit->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
- if( DomUtil::readEntry(dom, configGroup + "/run/globalcwd").isEmpty() && QFileInfo( buildDirectory ).exists() )
+ if( DomUtil::readEntry(dom, configGroup + "/run/globalcwd").isEmpty() && TQFileInfo( buildDirectory ).exists() )
{
cwd_edit->setURL( buildDirectory );
cwd_edit->fileDialog()->setURL( KURL::fromPathOrURL(buildDirectory) );
- }else if( QFileInfo( DomUtil::readEntry(dom, configGroup + "/run/globalcwd") ).exists() )
+ }else if( TQFileInfo( DomUtil::readEntry(dom, configGroup + "/run/globalcwd") ).exists() )
{
cwd_edit->setURL(DomUtil::readEntry(dom, configGroup + "/run/globalcwd"));
cwd_edit->fileDialog()->setURL( KURL::fromPathOrURL( DomUtil::readEntry(dom, configGroup + "/run/globalcwd") ) );
}else
{
- cwd_edit->setURL(QString());
- cwd_edit->fileDialog()->setURL(QString());
+ cwd_edit->setURL(TQString());
+ cwd_edit->fileDialog()->setURL(TQString());
}
if( configGroup == "/kdevautoproject" || configGroup == "/kdevtrollproject" )
@@ -127,7 +127,7 @@ void RunOptionsWidget::mainProgramChanged( )
if( mainProgramGroupBox->isChecked() && mainprogram_edit->url().isEmpty() )
{
- mainprogram_label->setPaletteForegroundColor(QColor("#ff0000"));
+ mainprogram_label->setPaletteForegroundColor(TQColor("#ff0000"));
}
else
{
diff --git a/buildtools/lib/widgets/runoptionswidget.h b/buildtools/lib/widgets/runoptionswidget.h
index df27079d..02c38f35 100644
--- a/buildtools/lib/widgets/runoptionswidget.h
+++ b/buildtools/lib/widgets/runoptionswidget.h
@@ -22,7 +22,7 @@
#include "runoptionswidgetbase.h"
-#include <qdom.h>
+#include <tqdom.h>
#include <kurl.h>
class EnvironmentVariablesWidget;
@@ -35,10 +35,10 @@ class RunOptionsWidget : public RunOptionsWidgetBase
Q_OBJECT
public:
- RunOptionsWidget( QDomDocument &dom, //!< document DOM
- const QString &configGroup, //!< configuration group
- const QString &buildDirectory, //!< project build directory
- QWidget *parent=0, //!< parent widget
+ RunOptionsWidget( TQDomDocument &dom, //!< document DOM
+ const TQString &configGroup, //!< configuration group
+ const TQString &buildDirectory, //!< project build directory
+ TQWidget *parent=0, //!< parent widget
const char *name=0 //!< widget's name
);
~RunOptionsWidget();
@@ -49,8 +49,8 @@ public slots:
private:
virtual void mainProgramChanged( );
- QDomDocument &m_dom;
- QString m_configGroup;
+ TQDomDocument &m_dom;
+ TQString m_configGroup;
EnvironmentVariablesWidget* m_environmentVariablesWidget;
};
diff --git a/buildtools/lib/widgets/subclassesdlg.cpp b/buildtools/lib/widgets/subclassesdlg.cpp
index 2ec12f48..4dde898b 100644
--- a/buildtools/lib/widgets/subclassesdlg.cpp
+++ b/buildtools/lib/widgets/subclassesdlg.cpp
@@ -16,12 +16,12 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
-#include <qlistbox.h>
+#include <tqlistbox.h>
#include <kurlrequester.h>
#include "subclassesdlg.h"
#include "subclassesdlg.moc"
-SubclassesDlg::SubclassesDlg(QString form, DomUtil::PairList &config, QString projectDir, QWidget* parent, const char* name, bool modal, WFlags fl)
+SubclassesDlg::SubclassesDlg(TQString form, DomUtil::PairList &config, TQString projectDir, TQWidget* parent, const char* name, bool modal, WFlags fl)
: SubclassesDlgBase(parent,name, modal,fl), m_form(form), m_config(config), m_projectDir(projectDir)
{
subclass_url->setEnabled(false);
@@ -41,7 +41,7 @@ SubclassesDlg::~SubclassesDlg()
/*$SPECIALIZATION$*/
void SubclassesDlg::accept()
{
- QPtrList<DomUtil::Pair> pairsToRemove;
+ TQPtrList<DomUtil::Pair> pairsToRemove;
DomUtil::PairList::iterator it;
for ( it = m_config.begin(); it != m_config.end(); ++it )
@@ -81,7 +81,7 @@ void SubclassesDlg::removeRelation()
{
if (subclasses_box->currentItem() > -1)
{
- QListBoxItem *item = subclasses_box->item(subclasses_box->currentItem());
+ TQListBoxItem *item = subclasses_box->item(subclasses_box->currentItem());
int itemIdx = subclasses_box->currentItem();
if (item->prev())
@@ -103,7 +103,7 @@ void SubclassesDlg::removeRelation()
}
}
-void SubclassesDlg::changeCurrentURL(const QString &str)
+void SubclassesDlg::changeCurrentURL(const TQString &str)
{
if ( subclasses_box->currentItem() > -1 )
{
@@ -111,7 +111,7 @@ void SubclassesDlg::changeCurrentURL(const QString &str)
}
}
-void SubclassesDlg::currentRelationChanged( QListBoxItem * item )
+void SubclassesDlg::currentRelationChanged( TQListBoxItem * item )
{
if (item)
{
diff --git a/buildtools/lib/widgets/subclassesdlg.h b/buildtools/lib/widgets/subclassesdlg.h
index ed799b85..adfdc7d4 100644
--- a/buildtools/lib/widgets/subclassesdlg.h
+++ b/buildtools/lib/widgets/subclassesdlg.h
@@ -30,7 +30,7 @@ class SubclassesDlg : public SubclassesDlgBase
Q_OBJECT
public:
- SubclassesDlg(QString form, DomUtil::PairList &config, QString projectDir, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ SubclassesDlg(TQString form, DomUtil::PairList &config, TQString projectDir, TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~SubclassesDlg();
/*$PUBLIC_FUNCTIONS$*/
@@ -45,13 +45,13 @@ protected slots:
/*$PROTECTED_SLOTS$*/
virtual void newRelation();
virtual void removeRelation();
- virtual void changeCurrentURL(const QString &str);
- virtual void currentRelationChanged(QListBoxItem *item);
+ virtual void changeCurrentURL(const TQString &str);
+ virtual void currentRelationChanged(TQListBoxItem *item);
private:
- QString m_form;
+ TQString m_form;
DomUtil::PairList &m_config;
- QString m_projectDir;
+ TQString m_projectDir;
};
#endif