summaryrefslogtreecommitdiffstats
path: root/src/arkollon
diff options
context:
space:
mode:
Diffstat (limited to 'src/arkollon')
-rw-r--r--src/arkollon/data.cpp16
-rw-r--r--src/arkollon/data.h14
-rw-r--r--src/arkollon/headerlistitem.cpp36
-rw-r--r--src/arkollon/headerlistitem.h14
-rw-r--r--src/arkollon/logdialog.ui8
-rw-r--r--src/arkollon/rcparser.cpp44
-rw-r--r--src/arkollon/rcparser.h28
-rw-r--r--src/arkollon/torkarkollon.cpp16
-rw-r--r--src/arkollon/uninstallwizard.cpp68
-rw-r--r--src/arkollon/uninstallwizard.h22
-rw-r--r--src/arkollon/wizard.cpp260
-rw-r--r--src/arkollon/wizard.h104
-rw-r--r--src/arkollon/wizardbase.ui104
-rw-r--r--src/arkollon/wizardbase.ui.h6
14 files changed, 370 insertions, 370 deletions
diff --git a/src/arkollon/data.cpp b/src/arkollon/data.cpp
index 89b57d6..d99c295 100644
--- a/src/arkollon/data.cpp
+++ b/src/arkollon/data.cpp
@@ -4,7 +4,7 @@ static struct EmbedImage {
int width, height, depth;
const unsigned char *data;
int numColors;
- const QRgb *colorTable;
+ const TQRgb *colorTable;
bool alpha;
const char *name;
} embed_image_vec[] = {
@@ -14,20 +14,20 @@ static struct EmbedImage {
{ 0, 0, 0, 0, 0, 0, 0, 0 }
};
-const QImage& qembed_findImage( const QString& name )
+const TQImage& qembed_findImage( const TQString& name )
{
- static QDict<QImage> dict;
- QImage* img = dict.find( name );
+ static TQDict<TQImage> dict;
+ TQImage* img = dict.find( name );
if ( !img ) {
for ( int i = 0; embed_image_vec[i].data; i++ ) {
if ( strcmp(embed_image_vec[i].name, name.latin1()) == 0 ) {
- img = new QImage((uchar*)embed_image_vec[i].data,
+ img = new TQImage((uchar*)embed_image_vec[i].data,
embed_image_vec[i].width,
embed_image_vec[i].height,
embed_image_vec[i].depth,
- (QRgb*)embed_image_vec[i].colorTable,
+ (TQRgb*)embed_image_vec[i].colorTable,
embed_image_vec[i].numColors,
- QImage::BigEndian );
+ TQImage::BigEndian );
if ( embed_image_vec[i].alpha )
img->setAlphaBuffer( TRUE );
dict.insert( name, img );
@@ -35,7 +35,7 @@ const QImage& qembed_findImage( const QString& name )
}
}
if ( !img ) {
- static QImage dummy;
+ static TQImage dummy;
return dummy;
}
}
diff --git a/src/arkollon/data.h b/src/arkollon/data.h
index df9aa43..1526c1b 100644
--- a/src/arkollon/data.h
+++ b/src/arkollon/data.h
@@ -169,9 +169,9 @@ static const unsigned char uninstaller_sh_data[] = {
0x74,0x0a,0x64,0x6f,0x6e,0x65,0x0a,0x09,0x09,0x0a
};
-#include <qimage.h>
-#include <qdict.h>
-static const QRgb misc_data[] = {
+#include <ntqimage.h>
+#include <ntqdict.h>
+static const TQRgb misc_data[] = {
0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,
0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfffefefe,0xfffcfcfc,0xfffbfbfb,0xfff9f9f9,
0xfff7f7f7,0xfff6f6f6,0xffffffff,0xff8f8f8f,0xff8f8f8f,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfffefefe,0xfffbfbfb,0xfffafafa,0xfff8f8f8,
@@ -193,7 +193,7 @@ static const QRgb misc_data[] = {
0x0,0x0,0x0,0x0
};
-static const QRgb splash_data[] = {
+static const TQRgb splash_data[] = {
0xff40bdff,0xff60cbff,0xff50c5ff,0xff61ccff,0xff51c5ff,0xff62ccff,0xff62ccff,0xff63ccff,0xff63ccff,0xff43c1ff,0xff64cdff,0xff54c8ff,0xff65ceff,0xff65ceff,
0xff55c8ff,0xff46c3ff,0xff67cfff,0xff47c3ff,0xff57cbff,0xff78d5ff,0xff68cfff,0xff57cbff,0xff46c3ff,0xff46c3ff,0xff66cfff,0xff45c2ff,0xff54c8ff,0xff75d3ff,
0xff43c1ff,0xff44c0ff,0xff43c1ff,0xff42c0ff,0xff63ccff,0xff41c0ff,0xff41bfff,0xff61ccff,0xff60ccff,0xff60ccff,0xff5fcbff,0xff3fbcff,0xff4fc2ff,0xff5fc9ff,
@@ -2982,7 +2982,7 @@ static const QRgb splash_data[] = {
0xff26b0ff,0xff51bfff,0xff26afff,0xff26b0ff,0xff26b0ff,0xff52c1ff,0xff27b1ff,0xff28b2ff,0xff54c1ff,0xff29b2ff
};
-static const QRgb packageIcon_data[] = {
+static const TQRgb packageIcon_data[] = {
0xffffff,0xd06e6e6e,0xf68e8f8f,0xf2898a8b,0xf288898b,0xf288898b,0xf288898a,0xf288888a,0xf287888a,0xf288898a,0xf288898a,0xf288888a,0xf288888a,0xf287888a,
0xf2878889,0xf2878889,0xf2878889,0xf2868789,0xf2868789,0xf2868788,0xf2868788,0xf2868688,0xf2858688,0xf2858688,0xf2858687,0xf2858687,0xf2848687,0xf2848587,
0xf3858688,0xf2838384,0xc56b6b6b,0xffffff,0xffffff,0xd76f6f6f,0xfff7faff,0xfff0f5ff,0xffedf3ff,0xffeef4ff,0xffebf2fe,0xffeaf1fe,0xffebf2fe,0xffdce8fb,
@@ -3058,8 +3058,8 @@ static const QRgb packageIcon_data[] = {
0x44000000,0x44000000,0x44000000,0x44000000,0x44000000,0x44030303,0x1d000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0xffffff
};
-#include <qcstring.h>
+#include <ntqcstring.h>
-const QImage& qembed_findImage( const QString& name );
+const TQImage& qembed_findImage( const TQString& name );
#endif
diff --git a/src/arkollon/headerlistitem.cpp b/src/arkollon/headerlistitem.cpp
index 2d850ac..731435c 100644
--- a/src/arkollon/headerlistitem.cpp
+++ b/src/arkollon/headerlistitem.cpp
@@ -19,19 +19,19 @@
***************************************************************************/
#include "headerlistitem.h"
-#include <qfontmetrics.h>
-#include <qpainter.h>
-#include <qapplication.h>
+#include <ntqfontmetrics.h>
+#include <ntqpainter.h>
+#include <ntqapplication.h>
#include "uninstallwizard.h"
#include "wizard.h"
-HeaderListItem::HeaderListItem(QListView* parent)
- : QListViewItem(parent)
+HeaderListItem::HeaderListItem(TQListView* parent)
+ : TQListViewItem(parent)
{
}
-int HeaderListItem::compare(QListViewItem* i, int , bool ) const
+int HeaderListItem::compare(TQListViewItem* i, int , bool ) const
{
switch (i->rtti())
{
@@ -64,20 +64,20 @@ int HeaderListItem::compare(QListViewItem* i, int , bool ) const
return 0;
}
-void HeaderListItem::paintCell(QPainter* p, const QColorGroup& cg, int , int width, int )
+void HeaderListItem::paintCell(TQPainter* p, const TQColorGroup& cg, int , int width, int )
{
p->fillRect(0, 0, width, height(), cg.base());
- QFont boldFont = p->font();
+ TQFont boldFont = p->font();
boldFont.setBold(true);
p->setFont(boldFont);
- p->drawText(listView()->itemMargin(), listView()->itemMargin(), width, QFontMetrics(boldFont).height(), Qt::AlignLeft, text(0));
+ p->drawText(listView()->itemMargin(), listView()->itemMargin(), width, TQFontMetrics(boldFont).height(), TQt::AlignLeft, text(0));
- int textWidth = QFontMetrics(boldFont).width(text(0));
+ int textWidth = TQFontMetrics(boldFont).width(text(0));
p->fillRect(0, height() - 4 - listView()->itemMargin(), textWidth-10, 4, cg.highlight());
- QColor ca = cg.highlight();
- QColor cb = cg.base();
+ TQColor ca = cg.highlight();
+ TQColor cb = cg.base();
// Taken from KPixmapEffect::gradient
int rDiff, gDiff, bDiff;
int rca, gca, bca /*, rcb, gcb, bcb*/;
@@ -101,26 +101,26 @@ void HeaderListItem::paintCell(QPainter* p, const QColorGroup& cg, int , int wid
gl += gcdelta;
bl += bcdelta;
- p->setPen(QColor(rl>>16, gl>>16, bl>>16));
+ p->setPen(TQColor(rl>>16, gl>>16, bl>>16));
p->drawLine(x, height() - 4 - listView()->itemMargin(), x, height() - listView()->itemMargin() - 1);
}
}
-void HeaderListItem::paintFocus(QPainter* , const QColorGroup& , const QRect& )
+void HeaderListItem::paintFocus(TQPainter* , const TQColorGroup& , const TQRect& )
{
}
-int HeaderListItem::width(const QFontMetrics& , const QListView* lv, int ) const
+int HeaderListItem::width(const TQFontMetrics& , const TQListView* lv, int ) const
{
- QFont boldFont = qApp->font();
+ TQFont boldFont = tqApp->font();
boldFont.setBold(true);
- QFontMetrics metrics(boldFont);
+ TQFontMetrics metrics(boldFont);
return metrics.width(text(0)) + lv->itemMargin() + 10;
}
void HeaderListItem::setup()
{
- setHeight(qApp->fontMetrics().height() + listView()->itemMargin()*3 + 4);
+ setHeight(tqApp->fontMetrics().height() + listView()->itemMargin()*3 + 4);
}
diff --git a/src/arkollon/headerlistitem.h b/src/arkollon/headerlistitem.h
index 5872220..3be07e5 100644
--- a/src/arkollon/headerlistitem.h
+++ b/src/arkollon/headerlistitem.h
@@ -20,17 +20,17 @@
#ifndef HEADERLISTITEM_H
#define HEADERLISTITEM_H
-#include <qlistview.h>
+#include <ntqlistview.h>
-class HeaderListItem : public QListViewItem
+class HeaderListItem : public TQListViewItem
{
public:
- HeaderListItem(QListView* parent);
- int compare(QListViewItem* i, int col, bool ascending) const;
- void paintCell(QPainter* p, const QColorGroup& cg, int column, int width, int align);
- void paintFocus(QPainter* p, const QColorGroup& cg, const QRect& r);
+ HeaderListItem(TQListView* parent);
+ int compare(TQListViewItem* i, int col, bool ascending) const;
+ void paintCell(TQPainter* p, const TQColorGroup& cg, int column, int width, int align);
+ void paintFocus(TQPainter* p, const TQColorGroup& cg, const TQRect& r);
void setup();
- int width(const QFontMetrics& fm, const QListView* lv, int c) const;
+ int width(const TQFontMetrics& fm, const TQListView* lv, int c) const;
int rtti() const { return 1002; }
int section;
diff --git a/src/arkollon/logdialog.ui b/src/arkollon/logdialog.ui
index 9e2b24e..5b3bfc9 100644
--- a/src/arkollon/logdialog.ui
+++ b/src/arkollon/logdialog.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>LogDialog</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>LogDialog</cstring>
</property>
@@ -22,7 +22,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QTextEdit">
+ <widget class="TQTextEdit">
<property name="name">
<cstring>logBox</cstring>
</property>
@@ -33,7 +33,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout8</cstring>
</property>
@@ -58,7 +58,7 @@
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonOk</cstring>
</property>
diff --git a/src/arkollon/rcparser.cpp b/src/arkollon/rcparser.cpp
index dc9442f..82123dc 100644
--- a/src/arkollon/rcparser.cpp
+++ b/src/arkollon/rcparser.cpp
@@ -19,9 +19,9 @@
***************************************************************************/
#include "rcparser.h"
-#include <qregexp.h>
-#include <qfile.h>
-#include <qtextstream.h>
+#include <ntqregexp.h>
+#include <ntqfile.h>
+#include <ntqtextstream.h>
RcParser::RcParser()
{
@@ -32,18 +32,18 @@ RcParser::~RcParser()
{
}
-void RcParser::addSearchDir(QString dir)
+void RcParser::addSearchDir(TQString dir)
{
dirs.append(dir);
}
-bool RcParser::openFile(QString name)
+bool RcParser::openFile(TQString name)
{
// Check if it exists
fileName = "";
- for ( QStringList::Iterator it = dirs.begin(); it != dirs.end(); ++it )
+ for ( TQStringList::Iterator it = dirs.begin(); it != dirs.end(); ++it )
{
- if (QFile::exists((*it) + "/" + name))
+ if (TQFile::exists((*it) + "/" + name))
{
fileName = (*it) + "/" + name;
break;
@@ -57,17 +57,17 @@ bool RcParser::openFile(QString name)
sections.clear();
// Read the file's contents
- QFile file(fileName);
+ TQFile file(fileName);
file.open(IO_ReadOnly);
- QTextStream stream(&file);
+ TQTextStream stream(&file);
- QRegExp sectionRegExp("^\\[([^\\]]*)\\]$");
- QRegExp pairRegExp("^([^=\\s]*)([=\\s]*)(.*)$");
+ TQRegExp sectionRegExp("^\\[([^\\]]*)\\]$");
+ TQRegExp pairRegExp("^([^=\\s]*)([=\\s]*)(.*)$");
currentSection = "RcParserDefaultSection";
while (!stream.atEnd())
{
- QString line = stream.readLine();
+ TQString line = stream.readLine();
if (line.left(1) == "#") // Comment
continue;
@@ -81,8 +81,8 @@ bool RcParser::openFile(QString name)
}
if (pairRegExp.search(line) != -1)
{
- QString key = pairRegExp.cap(1);
- QString value = pairRegExp.cap(3);
+ TQString key = pairRegExp.cap(1);
+ TQString value = pairRegExp.cap(3);
sections[currentSection][key] = value;
//printf("Found pair \"%s\" = \"%s\"\n", key.latin1(), value.latin1());
continue;
@@ -95,25 +95,25 @@ bool RcParser::openFile(QString name)
return true;
}
-void RcParser::setSection(QString section)
+void RcParser::setSection(TQString section)
{
currentSection = section;
}
-QStringList RcParser::sectionList()
+TQStringList RcParser::sectionList()
{
return sections.keys();
}
-QString RcParser::readString(QString key, QString def)
+TQString RcParser::readString(TQString key, TQString def)
{
- QString ret = sections[currentSection][key];
+ TQString ret = sections[currentSection][key];
if (ret.isEmpty())
return def;
return ret;
}
-int RcParser::readInt(QString key, int def)
+int RcParser::readInt(TQString key, int def)
{
bool ok;
int ret = sections[currentSection][key].toInt(&ok);
@@ -122,7 +122,7 @@ int RcParser::readInt(QString key, int def)
return ret;
}
-bool RcParser::readBool(QString key, bool def)
+bool RcParser::readBool(TQString key, bool def)
{
bool ret = def;
if (sections[currentSection][key].lower() == "true")
@@ -136,9 +136,9 @@ bool RcParser::readBool(QString key, bool def)
return ret;
}
-QStringList RcParser::readList(QString key)
+TQStringList RcParser::readList(TQString key)
{
- return QStringList::split(",", sections[currentSection][key]);
+ return TQStringList::split(",", sections[currentSection][key]);
}
diff --git a/src/arkollon/rcparser.h b/src/arkollon/rcparser.h
index 8739b0e..71842fa 100644
--- a/src/arkollon/rcparser.h
+++ b/src/arkollon/rcparser.h
@@ -20,8 +20,8 @@
#ifndef RCPARSER_H
#define RCPARSER_H
-#include <qstringlist.h>
-#include <qmap.h>
+#include <ntqstringlist.h>
+#include <ntqmap.h>
class RcParser
{
@@ -29,22 +29,22 @@ public:
RcParser();
~RcParser();
- void addSearchDir(QString dir);
- bool openFile(QString name);
+ void addSearchDir(TQString dir);
+ bool openFile(TQString name);
- QStringList sectionList();
- void setSection(QString section);
+ TQStringList sectionList();
+ void setSection(TQString section);
- QString readString(QString key, QString def=QString::null);
- int readInt(QString key, int def=0);
- bool readBool(QString key, bool def=false);
- QStringList readList(QString key);
+ TQString readString(TQString key, TQString def=TQString::null);
+ int readInt(TQString key, int def=0);
+ bool readBool(TQString key, bool def=false);
+ TQStringList readList(TQString key);
private:
- QStringList dirs;
- QString fileName;
- QString currentSection;
- QMap< QString, QMap< QString, QString> > sections;
+ TQStringList dirs;
+ TQString fileName;
+ TQString currentSection;
+ TQMap< TQString, TQMap< TQString, TQString> > sections;
};
#endif
diff --git a/src/arkollon/torkarkollon.cpp b/src/arkollon/torkarkollon.cpp
index 8d24bd5..fa4a3d4 100644
--- a/src/arkollon/torkarkollon.cpp
+++ b/src/arkollon/torkarkollon.cpp
@@ -27,25 +27,25 @@
#include <unistd.h>
#include <sys/types.h>
-#include <qapplication.h>
+#include <ntqapplication.h>
#include "wizard.h"
#include "uninstallwizard.h"
int main(int argc, char *argv[])
{
- QApplication app(argc, argv);
+ TQApplication app(argc, argv);
// Check if we're root
if (getuid() != 0)
{
- QString command = "kdesu -t -i tork -n -c \"";
+ TQString command = "kdesu -t -i tork -n -c \"";
for (int i=0 ; i<app.argc() ; i++)
{
- if (QString(app.argv()[i]).contains(" "))
- command += "\\\"" + QString(app.argv()[i]) + "\\\" ";
+ if (TQString(app.argv()[i]).contains(" "))
+ command += "\\\"" + TQString(app.argv()[i]) + "\\\" ";
else
- command += QString(app.argv()[i]) + " ";
+ command += TQString(app.argv()[i]) + " ";
}
command += "\"";
return system(command.latin1());
@@ -55,14 +55,14 @@ int main(int argc, char *argv[])
for ( int i = 1; i < app.argc(); i++ )
{
- if (QString(app.argv()[i]) == "--help")
+ if (TQString(app.argv()[i]) == "--help")
{
printf("Arkollon is a utility to aid installation and removal of packages from source.\n");
printf("Usage: arkollon DIRECTORY Installs a source package from DIRECTORY\n");
printf(" arkollon --uninstall Starts the uninstaller\n");
return 0;
}
- if (QString(app.argv()[i]) == "--uninstall")
+ if (TQString(app.argv()[i]) == "--uninstall")
wizard = new UninstallWizard(NULL);
}
diff --git a/src/arkollon/uninstallwizard.cpp b/src/arkollon/uninstallwizard.cpp
index ac8f2f8..58bd6b4 100644
--- a/src/arkollon/uninstallwizard.cpp
+++ b/src/arkollon/uninstallwizard.cpp
@@ -23,20 +23,20 @@
#include "headerlistitem.h"
#include "data.h"
-#include <qregexp.h>
-#include <qwidgetstack.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qheader.h>
-#include <qlistbox.h>
-#include <qmessagebox.h>
-#include <qpushbutton.h>
-#include <qlineedit.h>
-#include <qtextedit.h>
-#include <qlabel.h>
+#include <ntqregexp.h>
+#include <ntqwidgetstack.h>
+#include <ntqfile.h>
+#include <ntqtextstream.h>
+#include <ntqheader.h>
+#include <ntqlistbox.h>
+#include <ntqmessagebox.h>
+#include <ntqpushbutton.h>
+#include <ntqlineedit.h>
+#include <ntqtextedit.h>
+#include <ntqlabel.h>
-AppListItem::AppListItem(QString nN, QString n, QListView* parent)
- : QCheckListItem(parent, "", QCheckListItem::CheckBox)
+AppListItem::AppListItem(TQString nN, TQString n, TQListView* parent)
+ : TQCheckListItem(parent, "", TQCheckListItem::CheckBox)
{
niceName = nN;
name = n;
@@ -45,7 +45,7 @@ AppListItem::AppListItem(QString nN, QString n, QListView* parent)
setText(0, niceName);
}
-int AppListItem::compare(QListViewItem* i, int col, bool ascending) const
+int AppListItem::compare(TQListViewItem* i, int col, bool ascending) const
{
switch (i->rtti())
{
@@ -56,7 +56,7 @@ int AppListItem::compare(QListViewItem* i, int col, bool ascending) const
return -1;
if (section > item->section)
return 1;
- return QListViewItem::compare(i, col, ascending);
+ return TQListViewItem::compare(i, col, ascending);
}
break;
@@ -73,7 +73,7 @@ int AppListItem::compare(QListViewItem* i, int col, bool ascending) const
}
-UninstallWizard::UninstallWizard(QWidget* parent, const char* name, bool modal, WFlags fl)
+UninstallWizard::UninstallWizard(TQWidget* parent, const char* name, bool modal, WFlags fl)
: WizardBase(parent,name, modal,fl)
{
mainStack->raiseWidget(1);
@@ -89,16 +89,16 @@ UninstallWizard::UninstallWizard(QWidget* parent, const char* name, bool modal,
icon.convertFromImage(qembed_findImage("misc"));
- externalProcess = new QProcess(this);
+ externalProcess = new TQProcess(this);
connect(externalProcess, SIGNAL(processExited()), SLOT(processExited()));
connect(externalProcess, SIGNAL(readyReadStdout()), SLOT(readyReadStdout()));
connect(externalProcess, SIGNAL(readyReadStderr()), SLOT(readyReadStderr()));
- QFile uninstallScript("/tmp/arkollon-uninstall.sh");
+ TQFile uninstallScript("/tmp/arkollon-uninstall.sh");
if (uninstallScript.exists())
uninstallScript.remove();
uninstallScript.open(IO_WriteOnly);
- QDataStream stream(&uninstallScript);
+ TQDataStream stream(&uninstallScript);
stream.writeRawBytes((const char*)uninstaller_sh_data, uninstaller_sh_len);
uninstallScript.close();
@@ -111,7 +111,7 @@ UninstallWizard::UninstallWizard(QWidget* parent, const char* name, bool modal,
UninstallWizard::~UninstallWizard()
{
- QFile uninstallScript("/tmp/arkollon-uninstall.sh");
+ TQFile uninstallScript("/tmp/arkollon-uninstall.sh");
if (uninstallScript.exists())
uninstallScript.remove();
}
@@ -151,10 +151,10 @@ void UninstallWizard::nextPressed()
if (currentId == 0)
{
bool checked = false;
- QStringList argList;
+ TQStringList argList;
argList.append("/bin/sh");
argList.append("/tmp/arkollon-uninstall.sh");
- for ( QListViewItem * myChild = appList->firstChild() ; myChild != NULL ; myChild = myChild->nextSibling())
+ for ( TQListViewItem * myChild = appList->firstChild() ; myChild != NULL ; myChild = myChild->nextSibling())
{
if (myChild->rtti() != 1003)
continue;
@@ -167,7 +167,7 @@ void UninstallWizard::nextPressed()
}
if (!checked)
{
- QMessageBox::warning(this, "Error", "You need to select at least one package to remove", QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton);
+ TQMessageBox::warning(this, "Error", "You need to select at least one package to remove", TQMessageBox::Ok, TQMessageBox::NoButton, TQMessageBox::NoButton);
return;
}
fileList->clear();
@@ -192,7 +192,7 @@ void UninstallWizard::processExited()
case ListingPackages:
if (appList->childCount() <= 0)
{
- QMessageBox::warning(NULL, "Warning", "There are no packages installed", QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton);
+ TQMessageBox::warning(NULL, "Warning", "There are no packages installed", TQMessageBox::Ok, TQMessageBox::NoButton, TQMessageBox::NoButton);
reject();
return;
}
@@ -216,14 +216,14 @@ void UninstallWizard::readyReadStdout()
{
while (externalProcess->canReadLineStdout())
{
- QString line = externalProcess->readLineStdout();
+ TQString line = externalProcess->readLineStdout();
if (line.isEmpty())
continue;
// See if it already exists
bool exists = false;
- for ( QListViewItem * myChild = appList->firstChild() ; myChild != NULL ; myChild = myChild->nextSibling())
+ for ( TQListViewItem * myChild = appList->firstChild() ; myChild != NULL ; myChild = myChild->nextSibling())
{
if (myChild->rtti() != 1003)
continue;
@@ -237,7 +237,7 @@ void UninstallWizard::readyReadStdout()
if (exists)
continue;
- QString niceName = line.left(line.findRev(':'));
+ TQString niceName = line.left(line.findRev(':'));
niceName = niceName.left(1).upper() + niceName.right(niceName.length()-1);
new AppListItem(niceName, line, appList);
@@ -254,7 +254,7 @@ void UninstallWizard::readyReadStdout()
{
while (externalProcess->canReadLineStdout())
{
- QString line = externalProcess->readLineStdout();
+ TQString line = externalProcess->readLineStdout();
if (line.isEmpty())
continue;
fileList->insertItem(icon, line.left(line.find(" ")));
@@ -264,10 +264,10 @@ void UninstallWizard::readyReadStdout()
case RemovingGlobal:
while (externalProcess->canReadLineStdout())
{
- QString line = externalProcess->readLineStdout();
+ TQString line = externalProcess->readLineStdout();
if (line.isEmpty())
continue;
- line.replace(QRegExp("\\033[^m]*m"), "");
+ line.replace(TQRegExp("\\033[^m]*m"), "");
logDialog->logBox->append(line);
}
break;
@@ -278,10 +278,10 @@ void UninstallWizard::readyReadStderr()
{
while (externalProcess->canReadLineStdout())
{
- QString line = externalProcess->readLineStdout();
+ TQString line = externalProcess->readLineStdout();
if (line.isEmpty())
continue;
- line.replace(QRegExp("\\033[^m]*m"), "");
+ line.replace(TQRegExp("\\033[^m]*m"), "");
logDialog->logBox->append(line);
}
}
@@ -292,10 +292,10 @@ void UninstallWizard::removeUserPackages()
previousButton->setEnabled(false);
// Find out which packages belong to the user, and uninstall them
- QStringList argList;
+ TQStringList argList;
argList.append("/bin/sh");
argList.append("/tmp/arkollon-uninstall.sh");
- for ( QListViewItem * myChild = appList->firstChild() ; myChild != NULL ; myChild = myChild->nextSibling())
+ for ( TQListViewItem * myChild = appList->firstChild() ; myChild != NULL ; myChild = myChild->nextSibling())
{
if (myChild->rtti() != 1003)
continue;
diff --git a/src/arkollon/uninstallwizard.h b/src/arkollon/uninstallwizard.h
index 711e04f..712dc37 100644
--- a/src/arkollon/uninstallwizard.h
+++ b/src/arkollon/uninstallwizard.h
@@ -25,20 +25,20 @@
#include "logdialog.h"
#include "headerlistitem.h"
-#include <qlistview.h>
-#include <qprocess.h>
-#include <qpixmap.h>
+#include <ntqlistview.h>
+#include <ntqprocess.h>
+#include <ntqpixmap.h>
-class AppListItem : public QCheckListItem
+class AppListItem : public TQCheckListItem
{
public:
- AppListItem(QString nN, QString n, QListView* lv);
- int compare(QListViewItem* i, int col, bool ascending) const;
+ AppListItem(TQString nN, TQString n, TQListView* lv);
+ int compare(TQListViewItem* i, int col, bool ascending) const;
int rtti() const { return 1003; }
- QString niceName;
- QString name;
+ TQString niceName;
+ TQString name;
int section;
};
@@ -49,7 +49,7 @@ class UninstallWizard : public WizardBase
Q_OBJECT
public:
- UninstallWizard(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ UninstallWizard(TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~UninstallWizard();
public slots:
@@ -77,10 +77,10 @@ private:
} currentStage;
LogDialog* logDialog;
- QProcess* externalProcess;
+ TQProcess* externalProcess;
HeaderListItem* globalHeader;
- QPixmap icon;
+ TQPixmap icon;
};
#endif
diff --git a/src/arkollon/wizard.cpp b/src/arkollon/wizard.cpp
index 8e92ebf..ae6b94b 100644
--- a/src/arkollon/wizard.cpp
+++ b/src/arkollon/wizard.cpp
@@ -19,35 +19,35 @@
***************************************************************************/
#include "wizard.h"
-#include <qfiledialog.h>
-#include <qwidgetstack.h>
-#include <qpushbutton.h>
-#include <qpainter.h>
-#include <qheader.h>
-#include <qapplication.h>
-#include <qmessagebox.h>
-#include <qprogressbar.h>
-#include <qradiobutton.h>
-#include <qtextedit.h>
-#include <qlineedit.h>
-#include <qpopupmenu.h>
-#include <qhbox.h>
-#include <qfileinfo.h>
-#include <qlabel.h>
-#include <qfontmetrics.h>
-#include <qcheckbox.h>
+#include <ntqfiledialog.h>
+#include <ntqwidgetstack.h>
+#include <ntqpushbutton.h>
+#include <ntqpainter.h>
+#include <ntqheader.h>
+#include <ntqapplication.h>
+#include <ntqmessagebox.h>
+#include <ntqprogressbar.h>
+#include <ntqradiobutton.h>
+#include <ntqtextedit.h>
+#include <ntqlineedit.h>
+#include <ntqpopupmenu.h>
+#include <ntqhbox.h>
+#include <ntqfileinfo.h>
+#include <ntqlabel.h>
+#include <ntqfontmetrics.h>
+#include <ntqcheckbox.h>
#include "data.h"
#include "rcparser.h"
#include "headerlistitem.h"
-typedef QValueVector<CompileError> CompileErrorVector;
+typedef TQValueVector<CompileError> CompileErrorVector;
CompileErrorVector errs( 5 ); // vector of 3 Employees
-ComponentListItem::ComponentListItem(struct Component c, QListView* parent)
- : QCheckListItem(parent, "", QCheckListItem::CheckBox)
+ComponentListItem::ComponentListItem(struct Component c, TQListView* parent)
+ : TQCheckListItem(parent, "", TQCheckListItem::CheckBox)
{
component = c;
setText(0, c.niceName);
@@ -65,7 +65,7 @@ ComponentListItem::ComponentListItem(struct Component c, QListView* parent)
}
-int ComponentListItem::compare(QListViewItem* i, int col, bool ascending) const
+int ComponentListItem::compare(TQListViewItem* i, int col, bool ascending) const
{
switch (i->rtti())
{
@@ -76,7 +76,7 @@ int ComponentListItem::compare(QListViewItem* i, int col, bool ascending) const
return -1;
if (section > item->section)
return 1;
- return QListViewItem::compare(i, col, ascending);
+ return TQListViewItem::compare(i, col, ascending);
}
break;
@@ -94,13 +94,13 @@ int ComponentListItem::compare(QListViewItem* i, int col, bool ascending) const
-Wizard::Wizard(QWidget *parent, const char *name)
+Wizard::Wizard(TQWidget *parent, const char *name)
: WizardBase(parent, name, false, WDestructiveClose)
{
componentInfo->setMaximumSize(32767,70);
componentList->header()->hide();
//progressLabel2->setMaximumSize(32767, progressLabel2->fontMetrics().height()*2);
- externalProcess = new QProcess(this);
+ externalProcess = new TQProcess(this);
connect(externalProcess, SIGNAL(processExited()), SLOT(processExited()));
connect(externalProcess, SIGNAL(readyReadStdout()), SLOT(readyReadStdout()));
connect(externalProcess, SIGNAL(readyReadStderr()), SLOT(readyReadStderr()));
@@ -111,7 +111,7 @@ Wizard::Wizard(QWidget *parent, const char *name)
createActionFormats();
- kdeDirProcess = new QProcess(this);
+ kdeDirProcess = new TQProcess(this);
connect(kdeDirProcess, SIGNAL(readyReadStdout()), SLOT(kdeDirReady()));
connect(kdeDirProcess, SIGNAL(processExited()), SLOT(getInstalledComponents()));
kdeDirProcess->addArgument("kde-config");
@@ -132,7 +132,7 @@ Wizard::Wizard(QWidget *parent, const char *name)
errs[3] = CompileError( "installing config files as root", "The installation reported an"
"error because I attempted to install the privoxy config files as root. <b> There is no "
"need to take any action on your part. Privoxy has been installed and you can now use it with TorK. " );
- errs[4] = CompileError( "Qt (>= ", "The installation process finished with an error because it needs a "
+ errs[4] = CompileError( "TQt (>= ", "The installation process finished with an error because it needs a "
" component missing on your system. To correct this, "
"do the following: <br> 1. Download and install any packages for your distribution with (i) 'qt' and "
" either 'devel' or 'lib' in their name. <br> 2. Retry installation. " );
@@ -168,7 +168,7 @@ void Wizard::kdeDirReady()
{
while (kdeDirProcess->canReadLineStdout())
{
- QString line = kdeDirProcess->readLineStdout();
+ TQString line = kdeDirProcess->readLineStdout();
if (!line.isEmpty())
kdeDir = line;
}
@@ -176,15 +176,15 @@ void Wizard::kdeDirReady()
void Wizard::getInstalledComponents()
{
- QFile uninstallScript("/tmp/arkollon-uninstall.sh");
+ TQFile uninstallScript("/tmp/arkollon-uninstall.sh");
if (uninstallScript.exists())
uninstallScript.remove();
uninstallScript.open(IO_WriteOnly);
- QDataStream stream(&uninstallScript);
+ TQDataStream stream(&uninstallScript);
stream.writeRawBytes((const char*)uninstaller_sh_data, uninstaller_sh_len);
uninstallScript.close();
- installedComponentsProcess = new QProcess(this);
+ installedComponentsProcess = new TQProcess(this);
connect(installedComponentsProcess, SIGNAL(readyReadStdout()), SLOT(installedComponentsReady()));
connect(installedComponentsProcess, SIGNAL(processExited()), SLOT(setup()));
installedComponentsProcess->addArgument("/bin/sh");
@@ -198,7 +198,7 @@ void Wizard::installedComponentsReady()
{
while (installedComponentsProcess->canReadLineStdout())
{
- QString line = installedComponentsProcess->readLineStdout();
+ TQString line = installedComponentsProcess->readLineStdout();
if (line.isEmpty())
continue;
@@ -213,7 +213,7 @@ void Wizard::installedComponentsReady()
void Wizard::setup()
{
- QFile uninstallScript("/tmp/arkollon-uninstall.sh");
+ TQFile uninstallScript("/tmp/arkollon-uninstall.sh");
if (uninstallScript.exists())
uninstallScript.remove();
@@ -222,14 +222,14 @@ void Wizard::setup()
// Firstly check if there's an arkollonrc file in the current directory
// If there is, use it.
- dir = QDir::currentDirPath();
- if (qApp->argc() > 1)
+ dir = TQDir::currentDirPath();
+ if (tqApp->argc() > 1)
{
// The directory specified on the command line overrides the current dir.
- QDir d(qApp->argv()[1]);
+ TQDir d(tqApp->argv()[1]);
dir = d.absPath();
}
- if (QFile::exists(dir + "/arkollonrc"))
+ if (TQFile::exists(dir + "/arkollonrc"))
{
setupFromRc();
}
@@ -237,7 +237,7 @@ void Wizard::setup()
{
if (!setupFromDir())
{
- QMessageBox::critical(NULL, "Error", "This directory does not contain any recognised buildsystem", QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton);
+ TQMessageBox::critical(NULL, "Error", "This directory does not contain any recognised buildsystem", TQMessageBox::Ok, TQMessageBox::NoButton, TQMessageBox::NoButton);
reject();
return;
}
@@ -251,37 +251,37 @@ void Wizard::setupFromRc()
parser.addSearchDir(dir);
if (!parser.openFile("arkollonrc"))
{
- QMessageBox::critical(NULL, "Error", "The \"arkollonrc\" file in this directory could not be read", QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton);
+ TQMessageBox::critical(NULL, "Error", "The \"arkollonrc\" file in this directory could not be read", TQMessageBox::Ok, TQMessageBox::NoButton, TQMessageBox::NoButton);
reject();
return;
}
parser.setSection("Arkollon");
- QString appName = parser.readString("AppName");
+ TQString appName = parser.readString("AppName");
if (appName.isEmpty())
{
- QMessageBox::critical(NULL, "Error", "The \"arkollonrc\" file in this directory contains no application name!", QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton);
+ TQMessageBox::critical(NULL, "Error", "The \"arkollonrc\" file in this directory contains no application name!", TQMessageBox::Ok, TQMessageBox::NoButton, TQMessageBox::NoButton);
reject();
return;
}
setAppName(appName);
- QString icon32Path = parser.readString("Icon32");
- QString icon16Path = parser.readString("Icon16");
- if ((!icon32Path.isEmpty()) && (QFile::exists(dir + "/" + icon32Path)))
+ TQString icon32Path = parser.readString("Icon32");
+ TQString icon16Path = parser.readString("Icon16");
+ if ((!icon32Path.isEmpty()) && (TQFile::exists(dir + "/" + icon32Path)))
{
- QPixmap icon32(dir + "/" + icon32Path);
+ TQPixmap icon32(dir + "/" + icon32Path);
appIcon->setPixmap(icon32);
}
- if ((!icon16Path.isEmpty()) && (QFile::exists(dir + "/" + icon16Path)))
+ if ((!icon16Path.isEmpty()) && (TQFile::exists(dir + "/" + icon16Path)))
{
- QPixmap icon16(dir + "/" + icon16Path);
+ TQPixmap icon16(dir + "/" + icon16Path);
setIcon(icon16);
}
buildOrder = parser.readList("BuildOrder");
- QStringList compNames = parser.readList("Components");
- QStringList::Iterator it = compNames.begin();
+ TQStringList compNames = parser.readList("Components");
+ TQStringList::Iterator it = compNames.begin();
while( it != compNames.end() )
{
parser.setSection(*it);
@@ -299,15 +299,15 @@ void Wizard::setupFromRc()
c.alreadyInstalled = false;
// Load the buildtimes data
- if (QFile::exists(dir + "/" + c.subDir + "/buildtimes"))
+ if (TQFile::exists(dir + "/" + c.subDir + "/buildtimes"))
{
- QRegExp re("([^,]*,[^,]*),(\\d*)");
- QFile file(dir + "/" + c.subDir + "/buildtimes");
+ TQRegExp re("([^,]*,[^,]*),(\\d*)");
+ TQFile file(dir + "/" + c.subDir + "/buildtimes");
file.open(IO_ReadOnly);
- QTextStream stream(&file);
+ TQTextStream stream(&file);
for (;;)
{
- QString line = stream.readLine();
+ TQString line = stream.readLine();
if (line.isNull())
break;
if (re.search(line) == -1)
@@ -333,13 +333,13 @@ void Wizard::setupFromRc()
}
// Check if it's already installed
- QStringList::Iterator it2 = installedComponents.begin();
+ TQStringList::Iterator it2 = installedComponents.begin();
while( it2 != installedComponents.end() )
{
int dashPos = c.subDir.findRev('-');
if (dashPos < 0)
dashPos = c.subDir.length();
- QString version = c.subDir.left(dashPos) + ":" + c.subDir.right(c.subDir.length() - dashPos - 1);
+ TQString version = c.subDir.left(dashPos) + ":" + c.subDir.right(c.subDir.length() - dashPos - 1);
if (*it2 == version.lower())
{
item->setOn(false);
@@ -357,18 +357,18 @@ void Wizard::setupFromRc()
bool Wizard::setupFromDir()
{
- if ((!QFile::exists(dir + "/configure")) &&
- (!QFile::exists(dir + "/autogen.sh")) &&
- (!QFile::exists(dir + "/auto-gen.sh")))
+ if ((!TQFile::exists(dir + "/configure")) &&
+ (!TQFile::exists(dir + "/autogen.sh")) &&
+ (!TQFile::exists(dir + "/auto-gen.sh")))
{
- QDir myDir(dir + "/" + selectedComponents[currentComponent].subDir);
- if (myDir.entryList("*.pro", QDir::Files).count() <= 0)
+ TQDir myDir(dir + "/" + selectedComponents[currentComponent].subDir);
+ if (myDir.entryList("*.pro", TQDir::Files).count() <= 0)
return false;
}
// Use the directory name as the appname
- QDir myDir2(dir);
- QString dirName = myDir2.dirName();
+ TQDir myDir2(dir);
+ TQString dirName = myDir2.dirName();
setAppName(makeDirNice(dirName));
buildOrder.append(dirName);
@@ -386,13 +386,13 @@ bool Wizard::setupFromDir()
header->setText(0, "Required components");
header->section = 0;
- QStringList::Iterator it2 = installedComponents.begin();
+ TQStringList::Iterator it2 = installedComponents.begin();
while( it2 != installedComponents.end() )
{
int dashPos = dirName.findRev('-');
if (dashPos < 0)
dashPos = dirName.length();
- QString version = dirName.left(dashPos) + ":" + dirName.right(dirName.length() - dashPos - 1);
+ TQString version = dirName.left(dashPos) + ":" + dirName.right(dirName.length() - dashPos - 1);
if (*it2 == version.lower())
item->component.alreadyInstalled = true;
++it2;
@@ -407,13 +407,13 @@ Wizard::~Wizard()
}
-void Wizard::componentSelected(QListViewItem* item)
+void Wizard::componentSelected(TQListViewItem* item)
{
if (item->rtti() != 1001)
return;
ComponentListItem* i = (ComponentListItem*) item;
- QString text = "<p><b>" + item->text(0) + "</b>";
+ TQString text = "<p><b>" + item->text(0) + "</b>";
if (i->component.alreadyInstalled)
text += " <i>(Already installed)</i>";
text += "</p><p>";
@@ -424,13 +424,13 @@ void Wizard::componentSelected(QListViewItem* item)
}
-QString Wizard::makeDirNice(QString name)
+TQString Wizard::makeDirNice(TQString name)
{
int dashPos = name.findRev('-');
if (dashPos < 0)
dashPos = name.length();
- QString ret = name.left(dashPos);
+ TQString ret = name.left(dashPos);
ret = ret.left(1).upper() + ret.right(ret.length()-1);
return ret;
@@ -450,32 +450,32 @@ void Wizard::nextPressed()
int currentId = installStack->id(installStack->visibleWidget());
if (currentId == 3)
{
- QDir d(kdeDir);
+ TQDir d(kdeDir);
d.mkdir("share/apps/kdesktop/Desktop");
if (shortcutBox->isChecked())
{
- QFile source(dir + "/" + desktop);
- QString destDir = kdeDir + "/share/apps/kdesktop/Desktop";
+ TQFile source(dir + "/" + desktop);
+ TQString destDir = kdeDir + "/share/apps/kdesktop/Desktop";
int slashPos = desktop.findRev('/');
if (slashPos < 0)
slashPos = 0;
- QFile dest(destDir + "/" + desktop.right(desktop.length() - slashPos));
+ TQFile dest(destDir + "/" + desktop.right(desktop.length() - slashPos));
source.open(IO_ReadOnly);
dest.open(IO_WriteOnly | IO_Truncate);
- QDataStream destStream(&dest);
- QByteArray data = source.readAll();
+ TQDataStream destStream(&dest);
+ TQByteArray data = source.readAll();
destStream.writeRawBytes(data.data(), data.size());
source.close();
dest.close();
}
if (uninstallBox->isChecked())
{
- QFile source(dir + "/Uninstall TorK.desktop");
- QFile dest(kdeDir + "/share/apps/kdesktop/Desktop/Uinstall TorK.desktop");
+ TQFile source(dir + "/Uninstall TorK.desktop");
+ TQFile dest(kdeDir + "/share/apps/kdesktop/Desktop/Uinstall TorK.desktop");
source.open(IO_ReadOnly);
dest.open(IO_WriteOnly | IO_Truncate);
- QDataStream destStream(&dest);
- QByteArray data = source.readAll();
+ TQDataStream destStream(&dest);
+ TQByteArray data = source.readAll();
destStream.writeRawBytes(data.data(), data.size());
source.close();
dest.close();
@@ -493,7 +493,7 @@ void Wizard::nextPressed()
{
bool itemsSelected = false;
- QListViewItemIterator it( componentList );
+ TQListViewItemIterator it( componentList );
while ( it.current() )
{
if (it.current()->rtti() != 1001)
@@ -508,7 +508,7 @@ void Wizard::nextPressed()
}
if (!itemsSelected)
{
- QMessageBox::warning(this, "Warning", "You need to select at least one component", QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton);
+ TQMessageBox::warning(this, "Warning", "You need to select at least one component", TQMessageBox::Ok, TQMessageBox::NoButton, TQMessageBox::NoButton);
return;
}
}
@@ -552,9 +552,9 @@ void Wizard::startProcess()
totalBTime = 0;
elapsedTime = 0;
elapsedBTime = 0;
- for ( QStringList::Iterator it = buildOrder.begin(); it != buildOrder.end(); ++it )
+ for ( TQStringList::Iterator it = buildOrder.begin(); it != buildOrder.end(); ++it )
{
- QListViewItemIterator it2( componentList );
+ TQListViewItemIterator it2( componentList );
while ( it2.current() )
{
if (it2.current()->rtti() != 1001)
@@ -568,7 +568,7 @@ void Wizard::startProcess()
if (item->isOn())
{
selectedComponents.append(item->component);
- QMap<QString, uint>::iterator it3;
+ TQMap<TQString, uint>::iterator it3;
for ( it3 = item->component.buildTimes.begin(); it3 != item->component.buildTimes.end(); ++it3 )
totalBTime += it3.data();
}
@@ -582,7 +582,7 @@ void Wizard::startProcess()
currentComponent = 0;
currentStage = None;
- currentIsQMake = false;
+ currentIsTQMake = false;
nextStep();
}
@@ -600,24 +600,24 @@ void Wizard::nextStep()
setProgress2Text("");
//progressLabel2->setCursorPosition(0);
currentStage = Autogen;
- QDir myDir(dir + "/" + selectedComponents[currentComponent].subDir);
- if (myDir.entryList("*.pro", QDir::Files).count() > 0)
+ TQDir myDir(dir + "/" + selectedComponents[currentComponent].subDir);
+ if (myDir.entryList("*.pro", TQDir::Files).count() > 0)
{
- currentIsQMake = true;
+ currentIsTQMake = true;
nextStep();
return;
}
- if (QFile::exists(dir + "/" + selectedComponents[currentComponent].subDir + "/configure"))
+ if (TQFile::exists(dir + "/" + selectedComponents[currentComponent].subDir + "/configure"))
{
nextStep();
return;
}
- QString autogenName;
- if (QFile::exists(dir + "/" + selectedComponents[currentComponent].subDir + "/autogen.sh"))
+ TQString autogenName;
+ if (TQFile::exists(dir + "/" + selectedComponents[currentComponent].subDir + "/autogen.sh"))
autogenName = "autogen.sh";
- else if (QFile::exists(dir + "/" + selectedComponents[currentComponent].subDir + "/auto-gen.sh"))
+ else if (TQFile::exists(dir + "/" + selectedComponents[currentComponent].subDir + "/auto-gen.sh"))
autogenName = "auto-gen.sh";
else
{
@@ -636,7 +636,7 @@ void Wizard::nextStep()
{
//progressBar->setProgress(progressBar->progress() + 1);
currentStage = Configure;
- if (currentIsQMake)
+ if (currentIsTQMake)
{
progressLabel1->setText("<b>Running qmake for " + selectedComponents[currentComponent].niceName + "</b>");
setProgress2Text("");
@@ -645,7 +645,7 @@ void Wizard::nextStep()
externalProcess->setWorkingDirectory(dir + "/" + selectedComponents[currentComponent].subDir);
if (!externalProcess->start())
{
- logLine("Error: qmake was not found. Try installing the Qt-devel libraries.");
+ logLine("Error: qmake was not found. Try installing the TQt-devel libraries.");
errorOccured();
return;
}
@@ -662,8 +662,8 @@ void Wizard::nextStep()
//externalProcess->addArgument("--prefix=" + prefix);
if (!selectedComponents[currentComponent].confOptions.isEmpty())
{
- QStringList extraArgs = QStringList::split(" ", sub(selectedComponents[currentComponent].confOptions));
- for ( QStringList::Iterator it = extraArgs.begin(); it != extraArgs.end(); ++it )
+ TQStringList extraArgs = TQStringList::split(" ", sub(selectedComponents[currentComponent].confOptions));
+ for ( TQStringList::Iterator it = extraArgs.begin(); it != extraArgs.end(); ++it )
externalProcess->addArgument(*it);
}
externalProcess->setWorkingDirectory(dir + "/" + selectedComponents[currentComponent].subDir);
@@ -713,25 +713,25 @@ void Wizard::nextStep()
progressLabel1->setText("<b>Writing uninstall information for " + selectedComponents[currentComponent].niceName + "</b>");
setProgress2Text("");
- QFile postInstallScript("/tmp/arkollon-postinstall.sh");
+ TQFile postInstallScript("/tmp/arkollon-postinstall.sh");
if (postInstallScript.exists())
postInstallScript.remove();
postInstallScript.open(IO_WriteOnly);
- QDataStream stream(&postInstallScript);
+ TQDataStream stream(&postInstallScript);
stream.writeRawBytes((const char*)postinstall_sh_data, postinstall_sh_len);
postInstallScript.close();
- QFile fileList("/tmp/arkollon-filelist");
+ TQFile fileList("/tmp/arkollon-filelist");
if (fileList.exists())
fileList.remove();
fileList.open(IO_WriteOnly);
- QTextStream fileStream(&fileList);
- QStringList doneFiles;
- for ( QStringList::Iterator it = installedFiles.begin(); it != installedFiles.end(); ++it )
+ TQTextStream fileStream(&fileList);
+ TQStringList doneFiles;
+ for ( TQStringList::Iterator it = installedFiles.begin(); it != installedFiles.end(); ++it )
{
if (doneFiles.find(*it) != doneFiles.end())
continue;
- QFileInfo fileInfo(*it);
+ TQFileInfo fileInfo(*it);
if (fileInfo.isDir())
continue;
fileStream << (*it) << '\n';
@@ -743,8 +743,8 @@ void Wizard::nextStep()
int dashPos = c.subDir.findRev('-');
if (dashPos < 0)
dashPos = c.subDir.length();
- QString appname = c.subDir.left(dashPos);
- QString version = c.subDir.right(c.subDir.length() - dashPos - 1);
+ TQString appname = c.subDir.left(dashPos);
+ TQString version = c.subDir.right(c.subDir.length() - dashPos - 1);
externalProcess->addArgument("/bin/sh");
externalProcess->addArgument("/tmp/arkollon-postinstall.sh");
@@ -761,7 +761,7 @@ void Wizard::nextStep()
{
currentStage = None;
currentComponent++;
- currentIsQMake = false;
+ currentIsTQMake = false;
if (currentComponent >= selectedComponents.count())
{
progressLabel1->setText("<b>Installation completed!</b>");
@@ -794,11 +794,11 @@ void Wizard::processExited()
if (currentStage == WriteUninstallInfo)
{
// Remove temp files from the last stage
- QFile postInstallScript("/tmp/arkollon-postinstall.sh");
+ TQFile postInstallScript("/tmp/arkollon-postinstall.sh");
if (postInstallScript.exists())
postInstallScript.remove();
- QFile fileList("/tmp/arkollon-filelist");
+ TQFile fileList("/tmp/arkollon-filelist");
if (fileList.exists())
fileList.remove();
}
@@ -810,7 +810,7 @@ void Wizard::processExited()
}
if (externalProcess->exitStatus() != 0)
{
- logLine("Return value " + QString::number(externalProcess->exitStatus()));
+ logLine("Return value " + TQString::number(externalProcess->exitStatus()));
errorOccured();
return;
}
@@ -823,11 +823,11 @@ void Wizard::readyReadStderr()
{
while (externalProcess->canReadLineStderr())
{
- QString line = externalProcess->readLineStderr().latin1();
+ TQString line = externalProcess->readLineStderr().latin1();
CompileErrorVector::iterator it;
for( it = errs.begin(); it != errs.end(); ++it ){
if (line.contains((*it).type()))
- QMessageBox::information( this, (*it).type(), (*it).message() );
+ TQMessageBox::information( this, (*it).type(), (*it).message() );
}
logDialog->logBox->append(" * "+line);
}
@@ -837,7 +837,7 @@ void Wizard::readyReadStdout()
{
while (externalProcess->canReadLineStdout())
{
- QString line = externalProcess->readLineStdout().latin1();
+ TQString line = externalProcess->readLineStdout().latin1();
logDialog->logBox->append(line);
if (currentStage == Configure)
@@ -849,7 +849,7 @@ void Wizard::readyReadStdout()
if (line.right(1) == "\\")
continue;
commandLine = commandLine.left(commandLine.find(';'));
- for ( QValueList<ActionFormat>::Iterator it = actionFormats.begin(); it != actionFormats.end(); ++it )
+ for ( TQValueList<ActionFormat>::Iterator it = actionFormats.begin(); it != actionFormats.end(); ++it )
{
if ((*it).regExp.search(commandLine) == -1)
continue;
@@ -864,7 +864,7 @@ void Wizard::readyReadStdout()
}
}
-void Wizard::updateTime(QString key)
+void Wizard::updateTime(TQString key)
{
if (!timer.isNull())
{
@@ -874,7 +874,7 @@ void Wizard::updateTime(QString key)
int remainingTime = (int)((float)(totalBTime - elapsedBTime) * ratio) / 60000;
if (remainingTime < 0)
remainingTime = 0;
- QString text = QString::number(remainingTime + 1) + " minutes";
+ TQString text = TQString::number(remainingTime + 1) + " minutes";
if (remainingTime == 0)
text = "1 minute";
timeRemaining->setText("Estimated time remaining: <b>" + text + "</b>");
@@ -883,11 +883,11 @@ void Wizard::updateTime(QString key)
timer.start();
}
-void Wizard::logLine(QString line)
+void Wizard::logLine(TQString line)
{
- QString tmp = line;
- QStringList lines = QStringList::split("\n", tmp);
- for ( QStringList::Iterator it = lines.begin(); it != lines.end(); ++it )
+ TQString tmp = line;
+ TQStringList lines = TQStringList::split("\n", tmp);
+ for ( TQStringList::Iterator it = lines.begin(); it != lines.end(); ++it )
{
if ((*it).isEmpty())
continue;
@@ -895,14 +895,14 @@ void Wizard::logLine(QString line)
}
}
-void Wizard::setProgress2Text(QString text)
+void Wizard::setProgress2Text(TQString text)
{
- QString croppedText = text;
+ TQString croppedText = text;
int i = croppedText.length();
- QFont boldFont = progressLabel2->font();
+ TQFont boldFont = progressLabel2->font();
boldFont.setBold(true);
- QFontMetrics boldFontMetrics(boldFont);
+ TQFontMetrics boldFontMetrics(boldFont);
while (boldFontMetrics.width(croppedText) > progressLabel2->width())
{
croppedText = croppedText.left(--i);
@@ -920,24 +920,24 @@ void Wizard::errorOccured()
previousButton->setEnabled(true);
}
-QString Wizard::sub(QString s)
+TQString Wizard::sub(TQString s)
{
- QString tmp = s;
- tmp.replace(QRegExp("\\$KDEDIR"), kdeDir);
- tmp.replace(QRegExp("\\$HOMEDIR"), QDir::homeDirPath());
- tmp.replace(QRegExp("~"), QDir::homeDirPath());
- tmp.replace(QRegExp("\\$PREFIX"), "/usr/local");
+ TQString tmp = s;
+ tmp.replace(TQRegExp("\\$KDEDIR"), kdeDir);
+ tmp.replace(TQRegExp("\\$HOMEDIR"), TQDir::homeDirPath());
+ tmp.replace(TQRegExp("~"), TQDir::homeDirPath());
+ tmp.replace(TQRegExp("\\$PREFIX"), "/usr/local");
return tmp;
}
void Wizard::runPressed()
{
- QProcess* proc = new QProcess(this);
+ TQProcess* proc = new TQProcess(this);
proc->addArgument(exec);
if (!proc->start())
{
- QMessageBox::warning(this, "Warning", "The application could not be started<br>"+exec, QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton);
+ TQMessageBox::warning(this, "Warning", "The application could not be started<br>"+exec, TQMessageBox::Ok, TQMessageBox::NoButton, TQMessageBox::NoButton);
}
}
diff --git a/src/arkollon/wizard.h b/src/arkollon/wizard.h
index cf32d9d..09e0ef9 100644
--- a/src/arkollon/wizard.h
+++ b/src/arkollon/wizard.h
@@ -21,13 +21,13 @@
#define WIZARD_H
#include <wizardbase.h>
-#include <qlistview.h>
-#include <qprocess.h>
-#include <qsettings.h>
-#include <qiconview.h>
-#include <qregexp.h>
-#include <qvaluevector.h>
-#include <qstring.h>
+#include <ntqlistview.h>
+#include <ntqprocess.h>
+#include <ntqsettings.h>
+#include <ntqiconview.h>
+#include <ntqregexp.h>
+#include <ntqvaluevector.h>
+#include <ntqstring.h>
#include <stdio.h>
#include "logdialog.h"
@@ -35,26 +35,26 @@ class HeaderListItem;
struct Component
{
- QString name;
- QString niceName;
- QString subDir;
- QString forceDir;
+ TQString name;
+ TQString niceName;
+ TQString subDir;
+ TQString forceDir;
bool optional;
bool kdeOnly;
bool gnomeOnly;
- QString description;
- QString confOptions;
+ TQString description;
+ TQString confOptions;
- QMap<QString, uint> buildTimes;
+ TQMap<TQString, uint> buildTimes;
bool alreadyInstalled;
};
-class ComponentListItem : public QCheckListItem
+class ComponentListItem : public TQCheckListItem
{
public:
- ComponentListItem(struct Component c, QListView* parent);
- int compare(QListViewItem* i, int col, bool ascending) const;
+ ComponentListItem(struct Component c, TQListView* parent);
+ int compare(TQListViewItem* i, int col, bool ascending) const;
int rtti() const { return 1001; }
struct Component component;
@@ -65,12 +65,12 @@ class ActionFormat
{
public:
ActionFormat() {}
- ActionFormat(QString a, QString t, QString r, int) { action=a; tool=t; regExp=r; }
+ ActionFormat(TQString a, TQString t, TQString r, int) { action=a; tool=t; regExp=r; }
~ActionFormat() {}
- QString action;
- QString tool;
- QRegExp regExp;
+ TQString action;
+ TQString tool;
+ TQRegExp regExp;
};
@@ -78,15 +78,15 @@ class CompileError
{
public:
CompileError() {}
- CompileError( const QString& type, const QString& message )
+ CompileError( const TQString& type, const TQString& message )
: t( type ), m( message )
{ }
- QString type() const { return t; }
- QString message() const { return m; }
+ TQString type() const { return t; }
+ TQString message() const { return m; }
private:
- QString t;
- QString m;
+ TQString t;
+ TQString m;
};
@@ -96,7 +96,7 @@ class Wizard : public WizardBase
Q_OBJECT
public:
- Wizard(QWidget *parent = 0, const char *name = 0);
+ Wizard(TQWidget *parent = 0, const char *name = 0);
~Wizard();
@@ -107,16 +107,16 @@ private:
void nextStep();
void checkPassword();
- void updateTime(QString key);
- QString lastTimeLine;
+ void updateTime(TQString key);
+ TQString lastTimeLine;
- void logLine(QString line);
+ void logLine(TQString line);
void errorOccured();
- QString makeDirNice(QString name);
+ TQString makeDirNice(TQString name);
- QString sub(QString s);
+ TQString sub(TQString s);
- QString rootPassword;
+ TQString rootPassword;
private slots:
void processExited();
@@ -131,8 +131,8 @@ private slots:
void previousPressed();
void runPressed();
void logPressed();
- void componentSelected(QListViewItem* item);
- void setProgress2Text(QString text);
+ void componentSelected(TQListViewItem* item);
+ void setProgress2Text(TQString text);
void setup();
void setupFromRc();
@@ -149,34 +149,34 @@ private:
WriteUninstallInfo
};
- QString dir;
- QStringList buildOrder;
- QValueList<struct Component> selectedComponents;
+ TQString dir;
+ TQStringList buildOrder;
+ TQValueList<struct Component> selectedComponents;
uint totalBTime;
uint elapsedBTime;
uint elapsedTime;
- QTime timer;
- QProcess* externalProcess;
- QProcess* kdeDirProcess;
- QProcess* installedComponentsProcess;
- QString commandLine;
- bool currentIsQMake;
+ TQTime timer;
+ TQProcess* externalProcess;
+ TQProcess* kdeDirProcess;
+ TQProcess* installedComponentsProcess;
+ TQString commandLine;
+ bool currentIsTQMake;
uint currentComponent;
enum Stage currentStage;
bool needRoot;
- QString prefix;
+ TQString prefix;
- QStringList installedComponents;
- QString exec;
- QString desktop;
+ TQStringList installedComponents;
+ TQString exec;
+ TQString desktop;
- QString kdeDir;
+ TQString kdeDir;
LogDialog* logDialog;
- QMap<int, HeaderListItem*> headers;
- QValueList<ActionFormat> actionFormats;
- QStringList installedFiles;
+ TQMap<int, HeaderListItem*> headers;
+ TQValueList<ActionFormat> actionFormats;
+ TQStringList installedFiles;
};
diff --git a/src/arkollon/wizardbase.ui b/src/arkollon/wizardbase.ui
index 6fc9d12..e359fb3 100644
--- a/src/arkollon/wizardbase.ui
+++ b/src/arkollon/wizardbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>WizardBase</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>WizardBase</cstring>
</property>
@@ -36,7 +36,7 @@
<property name="resizeMode">
<enum>Fixed</enum>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout8</cstring>
</property>
@@ -44,7 +44,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>splash</cstring>
</property>
@@ -66,7 +66,7 @@
<bool>false</bool>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout7</cstring>
</property>
@@ -74,7 +74,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>titleLabel</cstring>
</property>
@@ -107,11 +107,11 @@
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QWidgetStack">
+ <widget class="TQWidgetStack">
<property name="name">
<cstring>mainStack</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
@@ -128,11 +128,11 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QWidgetStack">
+ <widget class="TQWidgetStack">
<property name="name">
<cstring>installStack</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>Introduction</cstring>
</property>
@@ -143,7 +143,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -154,7 +154,7 @@
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout12</cstring>
</property>
@@ -179,7 +179,7 @@
</size>
</property>
</spacer>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>appIcon</cstring>
</property>
@@ -187,7 +187,7 @@
<bool>false</bool>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>appNameLabel</cstring>
</property>
@@ -222,7 +222,7 @@
</size>
</property>
</spacer>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel4</cstring>
</property>
@@ -249,7 +249,7 @@
</spacer>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>Components</cstring>
</property>
@@ -260,7 +260,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel5</cstring>
</property>
@@ -271,7 +271,7 @@
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
- <widget class="QListView">
+ <widget class="TQListView">
<column>
<property name="text">
<string>Component name</string>
@@ -287,7 +287,7 @@
<cstring>componentList</cstring>
</property>
</widget>
- <widget class="QTextEdit">
+ <widget class="TQTextEdit">
<property name="name">
<cstring>componentInfo</cstring>
</property>
@@ -306,7 +306,7 @@
</widget>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
@@ -317,7 +317,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>pleaseWaitLabel</cstring>
</property>
@@ -345,7 +345,7 @@
</size>
</property>
</spacer>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>progressLabel1</cstring>
</property>
@@ -353,7 +353,7 @@
<string>Progress Label 1</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>progressLabel2</cstring>
</property>
@@ -375,7 +375,7 @@
<set>WordBreak|AlignTop|AlignLeft</set>
</property>
</widget>
- <widget class="QProgressBar">
+ <widget class="TQProgressBar">
<property name="name">
<cstring>progressBar</cstring>
</property>
@@ -383,7 +383,7 @@
<number>0</number>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>timeRemaining</cstring>
</property>
@@ -411,7 +411,7 @@
</size>
</property>
</spacer>
- <widget class="QFrame">
+ <widget class="TQFrame">
<property name="name">
<cstring>logFrame</cstring>
</property>
@@ -456,7 +456,7 @@
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>logButton</cstring>
</property>
@@ -468,7 +468,7 @@
</widget>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
@@ -479,7 +479,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -507,7 +507,7 @@
</size>
</property>
</spacer>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout7</cstring>
</property>
@@ -532,7 +532,7 @@
</size>
</property>
</spacer>
- <widget class="QCheckBox" row="2" column="1">
+ <widget class="TQCheckBox" row="2" column="1">
<property name="name">
<cstring>uninstallBox</cstring>
</property>
@@ -543,7 +543,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="1">
+ <widget class="TQCheckBox" row="1" column="1">
<property name="name">
<cstring>shortcutBox</cstring>
</property>
@@ -578,7 +578,7 @@
</widget>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
@@ -595,11 +595,11 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QWidgetStack">
+ <widget class="TQWidgetStack">
<property name="name">
<cstring>uninstallStack</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
@@ -610,7 +610,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
@@ -618,7 +618,7 @@
<string>Please select from the list below the applications you wish to uninstall.</string>
</property>
</widget>
- <widget class="QListView">
+ <widget class="TQListView">
<column>
<property name="text">
<string>Application Name</string>
@@ -636,7 +636,7 @@
</widget>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
@@ -647,7 +647,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2_3</cstring>
</property>
@@ -659,14 +659,14 @@ Please check this list, and click &lt;b&gt;next&lt;/b&gt; to continue.</string>
<enum>RichText</enum>
</property>
</widget>
- <widget class="QListBox">
+ <widget class="TQListBox">
<property name="name">
<cstring>fileList</cstring>
</property>
</widget>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
@@ -694,7 +694,7 @@ Please check this list, and click &lt;b&gt;next&lt;/b&gt; to continue.</string>
</size>
</property>
</spacer>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>pleaseWaitLabel2</cstring>
</property>
@@ -719,7 +719,7 @@ Please check this list, and click &lt;b&gt;next&lt;/b&gt; to continue.</string>
</size>
</property>
</spacer>
- <widget class="QFrame">
+ <widget class="TQFrame">
<property name="name">
<cstring>logFrame_2</cstring>
</property>
@@ -764,7 +764,7 @@ Please check this list, and click &lt;b&gt;next&lt;/b&gt; to continue.</string>
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>logButton2</cstring>
</property>
@@ -798,7 +798,7 @@ Please check this list, and click &lt;b&gt;next&lt;/b&gt; to continue.</string>
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout2</cstring>
</property>
@@ -823,7 +823,7 @@ Please check this list, and click &lt;b&gt;next&lt;/b&gt; to continue.</string>
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>previousButton</cstring>
</property>
@@ -834,7 +834,7 @@ Please check this list, and click &lt;b&gt;next&lt;/b&gt; to continue.</string>
<string>&lt; Previous</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>nextButton</cstring>
</property>
@@ -845,7 +845,7 @@ Please check this list, and click &lt;b&gt;next&lt;/b&gt; to continue.</string>
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>cancelButton</cstring>
</property>
@@ -872,9 +872,9 @@ Please check this list, and click &lt;b&gt;next&lt;/b&gt; to continue.</string>
</connection>
<connection>
<sender>componentList</sender>
- <signal>selectionChanged(QListViewItem*)</signal>
+ <signal>selectionChanged(TQListViewItem*)</signal>
<receiver>WizardBase</receiver>
- <slot>componentSelected(QListViewItem*)</slot>
+ <slot>componentSelected(TQListViewItem*)</slot>
</connection>
<connection>
<sender>logButton</sender>
@@ -905,17 +905,17 @@ Please check this list, and click &lt;b&gt;next&lt;/b&gt; to continue.</string>
</tabstops>
<includes>
<include location="local" impldecl="in implementation">wizardbase.ui.h</include>
- <include location="global" impldecl="in implementation">qwidgetstack.h</include>
+ <include location="global" impldecl="in implementation">ntqwidgetstack.h</include>
</includes>
<slots>
- <slot>setAppName( QString n )</slot>
+ <slot>setAppName( TQString n )</slot>
<slot>nextPressed()</slot>
<slot>previousPressed()</slot>
<slot>cancelPressed()</slot>
<slot>browsePressed()</slot>
<slot>runPressed()</slot>
<slot>logPressed()</slot>
- <slot>componentSelected( QListViewItem * item )</slot>
+ <slot>componentSelected( TQListViewItem * item )</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/src/arkollon/wizardbase.ui.h b/src/arkollon/wizardbase.ui.h
index 2fd5bce..261dafc 100644
--- a/src/arkollon/wizardbase.ui.h
+++ b/src/arkollon/wizardbase.ui.h
@@ -1,8 +1,8 @@
#include "data.h"
-void WizardBase::setAppName( QString n )
+void WizardBase::setAppName( TQString n )
{
- QPixmap tmp;
+ TQPixmap tmp;
tmp.convertFromImage(qembed_findImage("packageIcon"));
appIcon->setPixmap(tmp);
tmp.convertFromImage(qembed_findImage("splash"));
@@ -52,7 +52,7 @@ void WizardBase::logPressed()
-void WizardBase::componentSelected( QListViewItem * )
+void WizardBase::componentSelected( TQListViewItem * )
{
}