summaryrefslogtreecommitdiffstats
path: root/src/languages/processchain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/languages/processchain.cpp')
-rw-r--r--src/languages/processchain.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/languages/processchain.cpp b/src/languages/processchain.cpp
index e17c6ae..129c74e 100644
--- a/src/languages/processchain.cpp
+++ b/src/languages/processchain.cpp
@@ -31,13 +31,13 @@
#include <kdebug.h>
#include <klocale.h>
#include <ktempfile.h>
-#include <qfile.h>
-#include <qtimer.h>
+#include <tqfile.h>
+#include <tqtimer.h>
//BEGIN class ProcessChain
ProcessChain::ProcessChain( ProcessOptions options, KTechlab * ktechlab, const char *name )
- : QObject( (QObject*)ktechlab, name)
+ : TQObject( (TQObject*)ktechlab, name)
{
m_pKTechlab = ktechlab;
m_pFlowCode = 0l;
@@ -50,14 +50,14 @@ ProcessChain::ProcessChain( ProcessOptions options, KTechlab * ktechlab, const c
m_pSDCC = 0l;
m_processOptions = options;
- QString target;
+ TQString target;
if ( ProcessOptions::ProcessPath::to( options.processPath() ) == ProcessOptions::ProcessPath::Pic )
target = options.m_picID;
else
target = options.targetFile();
- LanguageManager::self()->logView()->addOutput( i18n("Building: %1").arg( target ), LogView::ot_important );
- QTimer::singleShot( 0, this, SLOT(compile()) );
+ LanguageManager::self()->logView()->addOutput( i18n("Building: %1").tqarg( target ), LogView::ot_important );
+ TQTimer::singleShot( 0, this, TQT_SLOT(compile()) );
}
@@ -100,7 +100,7 @@ void ProcessChain::compile()
switch ( m_processOptions.processPath() )
{
#define DIRECT_PROCESS( path, processor ) case ProcessOptions::ProcessPath::path: { processor()->processInput(m_processOptions); break; }
-#define INDIRECT_PROCESS( path, processor, extension ) case ProcessOptions::ProcessPath::path: { KTempFile f( QString::null, extension ); f.close(); m_processOptions.setIntermediaryOutput( f.name() ); processor()->processInput(m_processOptions); break; }
+#define INDIRECT_PROCESS( path, processor, extension ) case ProcessOptions::ProcessPath::path: { KTempFile f( TQString(), extension ); f.close(); m_processOptions.setIntermediaryOutput( f.name() ); processor()->processInput(m_processOptions); break; }
INDIRECT_PROCESS( AssemblyAbsolute_PIC, gpasm, ".hex" )
DIRECT_PROCESS( AssemblyAbsolute_Program, gpasm )
@@ -178,8 +178,8 @@ void ProcessChain::slotFinishedCompile(Language *language)
if ( !editor )
break;
- QString text;
- QFile f( options.targetFile() );
+ TQString text;
+ TQFile f( options.targetFile() );
if ( !f.open( IO_ReadOnly ) )
{
editor->deleteLater();
@@ -187,7 +187,7 @@ void ProcessChain::slotFinishedCompile(Language *language)
break;
}
- QTextStream stream(&f);
+ TQTextStream stream(&f);
while ( !stream.atEnd() )
text += stream.readLine()+'\n';
@@ -267,8 +267,8 @@ a * ProcessChain::b( ) \
if ( !c ) \
{ \
c = new a( this, m_pKTechlab ); \
- connect( c, SIGNAL(processSucceeded(Language* )), this, SLOT(slotFinishedCompile(Language* )) ); \
- connect( c, SIGNAL(processFailed(Language* )), this, SIGNAL(failed()) ); \
+ connect( c, TQT_SIGNAL(processSucceeded(Language* )), this, TQT_SLOT(slotFinishedCompile(Language* )) ); \
+ connect( c, TQT_SIGNAL(processFailed(Language* )), this, TQT_SIGNAL(failed()) ); \
} \
return c; \
}
@@ -286,11 +286,11 @@ LanguageFunction( SDCC, sdcc, m_pSDCC )
//BEGIN class ProcessListChain
-ProcessListChain::ProcessListChain( ProcessOptionsList pol, KTechlab * parent, const char * name )
- : QObject( (QObject*)parent, name )
+ProcessListChain::ProcessListChain( ProcessOptionsList pol, KTechlab * tqparent, const char * name )
+ : TQObject( (TQObject*)tqparent, name )
{
m_processOptionsList = pol;
- m_pKTechlab = parent;
+ m_pKTechlab = tqparent;
// Start us off...
slotProcessChainSuccessful();
@@ -311,8 +311,8 @@ void ProcessListChain::slotProcessChainSuccessful()
ProcessChain * pc = LanguageManager::self()->compile(po);
- connect( pc, SIGNAL(successful()), this, SLOT(slotProcessChainSuccessful()) );
- connect( pc, SIGNAL(failed()), this, SLOT(slotProcessChainFailed()) );
+ connect( pc, TQT_SIGNAL(successful()), this, TQT_SLOT(slotProcessChainSuccessful()) );
+ connect( pc, TQT_SIGNAL(failed()), this, TQT_SLOT(slotProcessChainFailed()) );
}