summaryrefslogtreecommitdiffstats
path: root/src/tools/list/compile_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/list/compile_manager.cpp')
-rw-r--r--src/tools/list/compile_manager.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/tools/list/compile_manager.cpp b/src/tools/list/compile_manager.cpp
index 00a4182..92f33a5 100644
--- a/src/tools/list/compile_manager.cpp
+++ b/src/tools/list/compile_manager.cpp
@@ -9,14 +9,14 @@
***************************************************************************/
#include "compile_manager.h"
-#include <qtimer.h>
+#include <tqtimer.h>
#include "libgui/project.h"
#include "common/gui/misc_gui.h"
#include "compile_config.h"
-Compile::Manager::Manager(QObject *parent)
- : QObject(parent, "compile_manager"), _base(0)
+Compile::Manager::Manager(TQObject *tqparent)
+ : TQObject(tqparent, "compile_manager"), _base(0)
{}
void Compile::Manager::cleanFile(const PURL::Url &url)
@@ -39,7 +39,7 @@ bool Compile::Manager::setupFile(Operations op, const TodoItem &item)
_todo.append(item);
_action = Compiling;
_wholeProject = false;
- QTimer::singleShot(0, this, SLOT(start()));
+ TQTimer::singleShot(0, this, TQT_SLOT(start()));
return true;
}
@@ -74,7 +74,7 @@ bool Compile::Manager::setupProject(Operations op, LinkType type)
}
_action = Compiling;
_wholeProject = true;
- QTimer::singleShot(0, this, SLOT(start()));
+ TQTimer::singleShot(0, this, TQT_SLOT(start()));
return true;
}
@@ -106,9 +106,9 @@ bool Compile::Manager::setupCompile()
for (uint i=0; i<_items.count(); i++) {
if ( _items[i].url.fileType()!=type ) {
if ( _operations!=Clean ) {
- QString e = PURL::extensions(type);
+ TQString e = PURL::extensions(type);
MessageBox::detailedSorry(i18n("The selected toolchain (%1) cannot compile file. It only supports files with extensions: %2")
- .arg(Main::toolGroup().label()).arg(e), i18n("File: %1").arg(_items[i].url.pretty()), Log::Show);
+ .tqarg(Main::toolGroup().label()).tqarg(e), i18n("File: %1").tqarg(_items[i].url.pretty()), Log::Show);
Log::Base::log(Log::LineType::Error, i18n("*** Aborted ***"), Log::Delayed);
processFailed();
}
@@ -131,9 +131,9 @@ bool Compile::Manager::setupAssemble()
if ( _items[i].url.fileType()!=type ) {
if ( _operations!=Clean ) {
if ( type==PURL::Nb_FileTypes ) type = Main::toolGroup().implementationType(PURL::ToolType::Compiler);
- QString e = PURL::extensions(type);
+ TQString e = PURL::extensions(type);
MessageBox::detailedSorry(i18n("The selected toolchain (%1) cannot assemble file. It only supports files with extensions: %2")
- .arg(Main::toolGroup().label()).arg(e), i18n("File: %1").arg(_items[i].url.pretty()), Log::Show);
+ .tqarg(Main::toolGroup().label()).tqarg(e), i18n("File: %1").tqarg(_items[i].url.pretty()), Log::Show);
Log::Base::log(Log::LineType::Error, i18n("*** Aborted ***"), Log::Delayed);
processFailed();
}
@@ -216,7 +216,7 @@ void Compile::Manager::start()
}
if ( _operations & Clean ) {
_base->files(0).onlyExistingFiles().cleanGenerated();
- QTimer::singleShot(0, this, SLOT(start()));
+ TQTimer::singleShot(0, this, TQT_SLOT(start()));
return;
}
if ( !_base->start() ) {
@@ -225,13 +225,13 @@ void Compile::Manager::start()
}
}
-void Compile::Manager::log(Log::LineType type, const QString &message, const QString &filepath, uint line)
+void Compile::Manager::log(Log::LineType type, const TQString &message, const TQString &filepath, uint line)
{
if ( type==Log::LineType::Error ) setError(message);
static_cast<LogWidget *>(view())->appendLine(type, message, filepath, line);
}
-void Compile::Manager::log(Log::DebugLevel level, const QString &message, const QString &filepath, uint line)
+void Compile::Manager::log(Log::DebugLevel level, const TQString &message, const TQString &filepath, uint line)
{
static_cast<LogWidget *>(view())->appendLine(level, message, filepath, line);
}
@@ -249,7 +249,7 @@ void Compile::Manager::processDone()
FileData::List list = _base->files(0).onlyExistingFiles();
FileData::List::iterator it;
for (it=list.begin(); it!=list.end(); ++it) emit updateFile(*it);
- QTimer::singleShot(0, this, SLOT(start()));
+ TQTimer::singleShot(0, this, TQT_SLOT(start()));
}
}
@@ -263,18 +263,18 @@ void Compile::Manager::startCustomCommand()
{
delete _base;
_base = 0;
- QStringList commands = Compile::Config::customCommands(Main::project());
+ TQStringList commands = Compile::Config::customCommands(Main::project());
if ( _customCommandIndex==commands.count() ) {
Log::Base::log(Log::LineType::Information, i18n("*** Success ***"), Log::Delayed);
emit success();
return;
}
- QString command = commands[_customCommandIndex];
+ TQString command = commands[_customCommandIndex];
_base = new CustomProcess(command);
Compile::Data data(Tool::Category::Nb_Types, _todo, Main::device(), Main::project(), _type);
_base->init(data, this);
if ( !_base->start() ) {
- Log::Base::log(Log::LineType::Error, i18n("Failed to execute custom command #%1.").arg(_customCommandIndex+1), Log::Delayed);
+ Log::Base::log(Log::LineType::Error, i18n("Failed to execute custom command #%1.").tqarg(_customCommandIndex+1), Log::Delayed);
processFailed();
}
}