summaryrefslogtreecommitdiffstats
path: root/qt/qextscintillalexerbatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt/qextscintillalexerbatch.cpp')
-rw-r--r--qt/qextscintillalexerbatch.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/qt/qextscintillalexerbatch.cpp b/qt/qextscintillalexerbatch.cpp
index 57a9418..076a378 100644
--- a/qt/qextscintillalexerbatch.cpp
+++ b/qt/qextscintillalexerbatch.cpp
@@ -3,32 +3,32 @@
// Copyright (c) 2006
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
//
-// 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 <qcolor.h>
-#include <qfont.h>
-#include <qsettings.h>
+#include <tqcolor.h>
+#include <tqfont.h>
+#include <tqsettings.h>
-#include "qextscintillalexerbatch.h"
+#include "tqextscintillalexerbatch.h"
// The ctor.
-QextScintillaLexerBatch::QextScintillaLexerBatch(QObject *parent,
+QextScintillaLexerBatch::QextScintillaLexerBatch(TQObject *parent,
const char *name)
: QextScintillaLexer(parent,name)
{
@@ -58,34 +58,34 @@ const char *QextScintillaLexerBatch::lexer() const
// Return the string of characters that comprise a word.
const char *QextScintillaLexerBatch::wordCharacters() const
{
- return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-";
+ return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPTQRSTUVWXYZ-";
}
// Returns the foreground colour of the text for a style.
-QColor QextScintillaLexerBatch::color(int style) const
+TQColor QextScintillaLexerBatch::color(int style) const
{
switch (style)
{
case Default:
case Operator:
- return QColor(0x00,0x00,0x00);
+ return TQColor(0x00,0x00,0x00);
case Comment:
- return QColor(0x00,0x7f,0x00);
+ return TQColor(0x00,0x7f,0x00);
case Keyword:
case ExternalCommand:
- return QColor(0x00,0x00,0x7f);
+ return TQColor(0x00,0x00,0x7f);
case Label:
- return QColor(0x7f,0x00,0x7f);
+ return TQColor(0x7f,0x00,0x7f);
case HideCommandChar:
- return QColor(0x7f,0x7f,0x00);
+ return TQColor(0x7f,0x7f,0x00);
case Variable:
- return QColor(0x80,0x00,0x80);
+ return TQColor(0x80,0x00,0x80);
}
return QextScintillaLexer::color(style);
@@ -100,17 +100,17 @@ bool QextScintillaLexerBatch::eolFill(int style) const
// Returns the font of the text for a style.
-QFont QextScintillaLexerBatch::font(int style) const
+TQFont QextScintillaLexerBatch::font(int style) const
{
- QFont f;
+ TQFont f;
switch (style)
{
case Comment:
#if defined(Q_OS_WIN)
- f = QFont("Comic Sans MS",9);
+ f = TQFont("Comic Sans MS",9);
#else
- f = QFont("Bitstream Vera Serif",9);
+ f = TQFont("Bitstream Vera Serif",9);
#endif
break;
@@ -121,9 +121,9 @@ QFont QextScintillaLexerBatch::font(int style) const
case ExternalCommand:
#if defined(Q_OS_WIN)
- f = QFont("Courier New",10);
+ f = TQFont("Courier New",10);
#else
- f = QFont("Bitstream Vera Sans Mono",9);
+ f = TQFont("Bitstream Vera Sans Mono",9);
#endif
f.setBold(TRUE);
break;
@@ -152,7 +152,7 @@ const char *QextScintillaLexerBatch::keywords(int set) const
// Returns the user name of a style.
-QString QextScintillaLexerBatch::description(int style) const
+TQString QextScintillaLexerBatch::description(int style) const
{
switch (style)
{
@@ -181,17 +181,17 @@ QString QextScintillaLexerBatch::description(int style) const
return tr("Operator");
}
- return QString::null;
+ return TQString();
}
// Returns the background colour of the text for a style.
-QColor QextScintillaLexerBatch::paper(int style) const
+TQColor QextScintillaLexerBatch::paper(int style) const
{
switch (style)
{
case Label:
- return QColor(0x60,0x60,0x60);
+ return TQColor(0x60,0x60,0x60);
}
return QextScintillaLexer::paper(style);