summaryrefslogtreecommitdiffstats
path: root/arts/builder/execdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arts/builder/execdlg.cpp')
-rw-r--r--arts/builder/execdlg.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/arts/builder/execdlg.cpp b/arts/builder/execdlg.cpp
index 4ed8bac9..ccd1ae40 100644
--- a/arts/builder/execdlg.cpp
+++ b/arts/builder/execdlg.cpp
@@ -19,12 +19,12 @@
*/
-#include <qfile.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qlineedit.h>
+#include <tqfile.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqlineedit.h>
#include <kbuttonbox.h>
#include <kfiledialog.h>
@@ -37,44 +37,44 @@
#include "execdlg.h"
#include "dirmanager.h"
#include <arts/debug.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#ifndef KDE_USE_FINAL
-static void min_size(QWidget *w) {
+static void min_size(TQWidget *w) {
w->setMinimumSize(w->sizeHint());
}
#endif
-ExecDlg::ExecDlg(QWidget *parent, ExecutableStructure *structure)
- :QDialog(parent,"X")
+ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
+ :TQDialog(parent,"X")
/*, TRUE)*/
{
this->structure = structure;
setCaption(i18n("aRts Module Execution"));
- mainlayout = new QVBoxLayout(this);
+ mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..."
mainlayout->addSpacing(5);
- QLabel *captionlabel = new QLabel(this);
- QFont labelfont(captionlabel->font());
+ TQLabel *captionlabel = new TQLabel(this);
+ TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont);
- captionlabel->setText(QString(" ")+i18n("Synthesis running...")+QString(" "));
+ captionlabel->setText(TQString(" ")+i18n("Synthesis running...")+TQString(" "));
captionlabel->setAlignment(AlignCenter);
min_size(captionlabel);
mainlayout->addWidget(captionlabel);
- cpuusagelabel = new QLabel(this);
+ cpuusagelabel = new TQLabel(this);
cpuusagelabel->setText(i18n("CPU usage: unknown"));
- cpuusagetimer = new QTimer( this );
- connect( cpuusagetimer, SIGNAL(timeout()),
- this, SLOT(updateCpuUsage()) );
- connect( cpuusagetimer, SIGNAL(timeout()),
- this, SLOT(guiServerTick()) );
+ cpuusagetimer = new TQTimer( this );
+ connect( cpuusagetimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(updateCpuUsage()) );
+ connect( cpuusagetimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(guiServerTick()) );
cpuusagetimer->start( 2000, false );
min_size(cpuusagelabel);
@@ -107,7 +107,7 @@ ExecDlg::ExecDlg(QWidget *parent, ExecutableStructure *structure)
// buttons
- QHBoxLayout *buttonlayout = new QHBoxLayout;
+ TQHBoxLayout *buttonlayout = new QHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
@@ -115,15 +115,15 @@ ExecDlg::ExecDlg(QWidget *parent, ExecutableStructure *structure)
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), this, SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() ));
bbox->addStretch(1);
- QButton *savebutton = bbox->addButton(KStdGuiItem::saveAs());
- connect( savebutton, SIGNAL( clicked() ), SLOT(saveSession() ) );
+ TQButton *savebutton = bbox->addButton(KStdGuiItem::saveAs());
+ connect( savebutton, TQT_SIGNAL( clicked() ), TQT_SLOT(saveSession() ) );
- QButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, SIGNAL( clicked() ), SLOT(accept() ) );
+ TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
+ connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->layout();
//min_size(bbox);
@@ -178,7 +178,7 @@ void ExecDlg::updateCpuUsage()
void ExecDlg::done( int r )
{
structure->stopExecute();
- QDialog::done(r);
+ TQDialog::done(r);
emit ready();
}
@@ -186,11 +186,11 @@ void ExecDlg::saveSession()
{
chdir(DirManager::sessionDir());
- QString filename = KFileDialog::getSaveFileName(0,"*.arts-session",this);
+ TQString filename = KFileDialog::getSaveFileName(0,"*.arts-session",this);
if(!filename.isEmpty())
{
arts_debug("save... %s",filename.local8Bit().data());
- structure->saveSession(QFile::encodeName(filename));
+ structure->saveSession(TQFile::encodeName(filename));
}
}