summaryrefslogtreecommitdiffstats
path: root/src/fileexporterexternal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileexporterexternal.cpp')
-rw-r--r--src/fileexporterexternal.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/fileexporterexternal.cpp b/src/fileexporterexternal.cpp
index 6b7e449..38e8e68 100644
--- a/src/fileexporterexternal.cpp
+++ b/src/fileexporterexternal.cpp
@@ -17,10 +17,10 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#include <qprocess.h>
-#include <qwaitcondition.h>
-#include <qapplication.h>
-#include <qbuffer.h>
+#include <ntqprocess.h>
+#include <ntqwaitcondition.h>
+#include <ntqapplication.h>
+#include <ntqbuffer.h>
#include <fileexporterbibtex.h>
#include <settings.h>
@@ -32,7 +32,7 @@ namespace BibTeX
FileExporterExternal::FileExporterExternal( Exporter exporter, File::FileFormat fileformat )
: FileExporter(), writeTo( NULL ), m_exporter( exporter ), m_fileformat( fileformat )
{
- wc = new QWaitCondition();
+ wc = new TQWaitCondition();
}
FileExporterExternal::~FileExporterExternal()
@@ -40,10 +40,10 @@ namespace BibTeX
delete wc;
}
- bool FileExporterExternal::save( QIODevice* iodevice, const File* bibtexfile, QStringList *errorLog )
+ bool FileExporterExternal::save( TQIODevice* iodevice, const File* bibtexfile, TQStringList *errorLog )
{
m_mutex.lock();
- QBuffer buffer;
+ TQBuffer buffer;
buffer.open( IO_WriteOnly );
FileExporter * bibtexExporter = new FileExporterBibTeX();
bool result = bibtexExporter->save( &buffer, bibtexfile, errorLog );
@@ -57,10 +57,10 @@ namespace BibTeX
return result;
}
- bool FileExporterExternal::save( QIODevice* iodevice, const Element* element, QStringList *errorLog )
+ bool FileExporterExternal::save( TQIODevice* iodevice, const Element* element, TQStringList *errorLog )
{
m_mutex.lock();
- QBuffer buffer;
+ TQBuffer buffer;
buffer.open( IO_WriteOnly );
FileExporter * bibtexExporter = new FileExporterBibTeX();
bool result = bibtexExporter->save( &buffer, element, errorLog );
@@ -74,11 +74,11 @@ namespace BibTeX
return result;
}
- bool FileExporterExternal::generateOutput( QBuffer &input, QIODevice *output )
+ bool FileExporterExternal::generateOutput( TQBuffer &input, TQIODevice *output )
{
bool result = FALSE;
- QString commandLine;
+ TQString commandLine;
switch ( m_fileformat )
{
case File::formatHTML:
@@ -100,14 +100,14 @@ namespace BibTeX
default:
return FALSE;
}
- QStringList args = QStringList::split( ' ', commandLine );
+ TQStringList args = TQStringList::split( ' ', commandLine );
- writeTo = new QTextStream( output );
- writeTo->setEncoding( QTextStream::UnicodeUTF8 );
+ writeTo = new TQTextStream( output );
+ writeTo->setEncoding( TQTextStream::UnicodeUTF8 );
- QApplication::setOverrideCursor( Qt::waitCursor );
+ TQApplication::setOverrideCursor( TQt::waitCursor );
- process = new QProcess( args );
+ process = new TQProcess( args );
connect( process, SIGNAL( processExited() ), this, SLOT( slotProcessExited() ) );
connect( process, SIGNAL( readyReadStdout() ), this, SLOT( slotReadProcessOutput() ) );
connect( process, SIGNAL( readyReadStderr() ), this, SLOT( slotReadProcessOutput() ) );
@@ -118,19 +118,19 @@ namespace BibTeX
while ( !process->isRunning() )
{
wc->wait( 250 );
- qApp->processEvents();
+ tqApp->processEvents();
}
- qApp->processEvents();
+ tqApp->processEvents();
input.open( IO_ReadOnly );
- QByteArray buf = input.buffer();
- // qDebug( "buf.size=%i", buf.size() );
+ TQByteArray buf = input.buffer();
+ // tqDebug( "buf.size=%i", buf.size() );
process->writeToStdin( buf );
input.close();
- qApp->processEvents();
+ tqApp->processEvents();
while ( process->isRunning() )
{
wc->wait( 250 );
- qApp->processEvents();
+ tqApp->processEvents();
}
result = process->normalExit();
@@ -145,7 +145,7 @@ namespace BibTeX
delete writeTo;
writeTo = NULL;
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
return result;
}
@@ -159,14 +159,14 @@ namespace BibTeX
if ( writeTo != NULL )
while ( process->canReadLineStdout() )
{
- QString line = process->readLineStdout();
- // qDebug( "line=%s", line.latin1() );
+ TQString line = process->readLineStdout();
+ // tqDebug( "line=%s", line.latin1() );
( *writeTo ) << line.latin1() << endl;
}
// while ( process->canReadLineStderr() )
// {
- // QString line = process->readLineStderr();
- // qDebug( "stderr=%s", line.latin1() );
+ // TQString line = process->readLineStderr();
+ // tqDebug( "stderr=%s", line.latin1() );
// }
}