summaryrefslogtreecommitdiffstats
path: root/qt/qextscintillamacro.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt/qextscintillamacro.cpp')
-rw-r--r--qt/qextscintillamacro.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/qt/qextscintillamacro.cpp b/qt/qextscintillamacro.cpp
index 7d2d358..25555f7 100644
--- a/qt/qextscintillamacro.cpp
+++ b/qt/qextscintillamacro.cpp
@@ -3,46 +3,46 @@
// Copyright (c) 2006
// Riverbank Computing Limited <[email protected]>
//
-// This file is part of QScintilla.
+// This file is part of TQScintilla.
//
-// This copy of QScintilla is free software; you can redistribute it and/or
+// This copy of TQScintilla is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2, or (at your option) any
// later version.
//
-// QScintilla is supplied in the hope that it will be useful, but WITHOUT ANY
+// TQScintilla is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
-// QScintilla; see the file LICENSE. If not, write to the Free Software
+// TQScintilla; see the file LICENSE. If not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <string.h>
-#include <qstring.h>
+#include <tqstring.h>
-#include "qextscintillamacro.h"
-#include "qextscintilla.h"
+#include "tqextscintillamacro.h"
+#include "tqextscintilla.h"
-static QCString extract(const QCString &asc,int &start);
+static TQCString extract(const TQCString &asc,int &start);
static int fromHex(unsigned char ch);
// The ctor.
QextScintillaMacro::QextScintillaMacro(QextScintilla *parent,const char *name)
- : QObject(parent,name), qsci(parent)
+ : TQObject(parent,name), qsci(parent)
{
}
// The ctor that initialises the macro.
-QextScintillaMacro::QextScintillaMacro(const QCString &asc,
+QextScintillaMacro::QextScintillaMacro(const TQCString &asc,
QextScintilla *parent,const char *name)
- : QObject(parent,name), qsci(parent)
+ : TQObject(parent,name), qsci(parent)
{
load(asc);
}
@@ -62,7 +62,7 @@ void QextScintillaMacro::clear()
// Read a macro from a string.
-bool QextScintillaMacro::load(const QCString &asc)
+bool QextScintillaMacro::load(const TQCString &asc)
{
bool rc = TRUE;
@@ -72,7 +72,7 @@ bool QextScintillaMacro::load(const QCString &asc)
while (pos < asc.length())
{
- QCString fld;
+ TQCString fld;
Macro cmd;
unsigned len;
@@ -154,17 +154,17 @@ bool QextScintillaMacro::load(const QCString &asc)
// Write a macro to a string.
-QCString QextScintillaMacro::save() const
+TQCString QextScintillaMacro::save() const
{
- QCString ms;
+ TQCString ms;
- for (QValueList<Macro>::const_iterator it = macro.begin(); it != macro.end(); ++it)
+ for (TQValueList<Macro>::const_iterator it = macro.begin(); it != macro.end(); ++it)
{
if (!ms.isEmpty())
ms += ' ';
unsigned len = (*it).text.size();
- QCString m;
+ TQCString m;
m.sprintf("%u %lu %u",(*it).msg,(*it).wParam,len);
@@ -203,7 +203,7 @@ void QextScintillaMacro::play()
if (!qsci)
return;
- for (QValueList<Macro>::const_iterator it = macro.begin(); it != macro.end(); ++it)
+ for (TQValueList<Macro>::const_iterator it = macro.begin(); it != macro.end(); ++it)
qsci -> SendScintilla((*it).msg,(*it).wParam,(*it).text.data());
}
@@ -217,8 +217,8 @@ void QextScintillaMacro::startRecording()
macro.clear();
connect(qsci,
- SIGNAL(SCN_MACRORECORD(unsigned int,unsigned long,long)),
- SLOT(record(unsigned int,unsigned long,long)));
+ TQT_SIGNAL(SCN_MACRORECORD(unsigned int,unsigned long,long)),
+ TQT_SLOT(record(unsigned int,unsigned long,long)));
qsci -> SendScintilla(QextScintillaBase::SCI_STARTRECORD);
}
@@ -260,7 +260,7 @@ void QextScintillaMacro::record(unsigned int msg,unsigned long wParam,
// it's a signifacant space reduction to append it to
// the previous command.
- QByteArray &ba = macro.last().text;
+ TQByteArray &ba = macro.last().text;
unsigned pos = ba.size() - 1;
@@ -292,9 +292,9 @@ void QextScintillaMacro::record(unsigned int msg,unsigned long wParam,
// Extract a macro field starting at the given position.
-static QCString extract(const QCString &asc,int &fstart)
+static TQCString extract(const TQCString &asc,int &fstart)
{
- QCString f;
+ TQCString f;
if (fstart < asc.length())
{