summaryrefslogtreecommitdiffstats
path: root/qt/qextscintillalexerlua.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt/qextscintillalexerlua.cpp')
-rw-r--r--qt/qextscintillalexerlua.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/qt/qextscintillalexerlua.cpp b/qt/qextscintillalexerlua.cpp
index 05090bf..2025068 100644
--- a/qt/qextscintillalexerlua.cpp
+++ b/qt/qextscintillalexerlua.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 "qextscintillalexerlua.h"
+#include "tqextscintillalexerlua.h"
// The ctor.
-QextScintillaLexerLua::QextScintillaLexerLua(QObject *parent, const char *name)
+QextScintillaLexerLua::QextScintillaLexerLua(TQObject *parent, const char *name)
: QextScintillaLexer(parent,name), fold_compact(TRUE)
{
}
@@ -72,33 +72,33 @@ int QextScintillaLexerLua::braceStyle() const
// Returns the foreground colour of the text for a style.
-QColor QextScintillaLexerLua::color(int style) const
+TQColor QextScintillaLexerLua::color(int style) const
{
switch (style)
{
case Default:
- return QColor(0x00,0x00,0x00);
+ return TQColor(0x00,0x00,0x00);
case Comment:
case LineComment:
- return QColor(0x00,0x7f,0x00);
+ return TQColor(0x00,0x7f,0x00);
case Number:
- return QColor(0x00,0x7f,0x7f);
+ return TQColor(0x00,0x7f,0x7f);
case Keyword:
case BasicFunctions:
case StringTableMathsFunctions:
case CoroutinesIOSystemFacilities:
- return QColor(0x00,0x00,0x7f);
+ return TQColor(0x00,0x00,0x7f);
case String:
case Character:
case LiteralString:
- return QColor(0x7f,0x00,0x7f);
+ return TQColor(0x7f,0x00,0x7f);
case Preprocessor:
- return QColor(0x7f,0x7f,0x00);
+ return TQColor(0x7f,0x7f,0x00);
case Operator:
case Identifier:
@@ -117,9 +117,9 @@ bool QextScintillaLexerLua::eolFill(int style) const
// Returns the font of the text for a style.
-QFont QextScintillaLexerLua::font(int style) const
+TQFont QextScintillaLexerLua::font(int style) const
{
- QFont f;
+ TQFont f;
switch (style)
{
@@ -127,9 +127,9 @@ QFont QextScintillaLexerLua::font(int style) const
case LineComment:
case LiteralString:
#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;
@@ -203,7 +203,7 @@ const char *QextScintillaLexerLua::keywords(int set) const
// Returns the user name of a style.
-QString QextScintillaLexerLua::description(int style) const
+TQString QextScintillaLexerLua::description(int style) const
{
switch (style)
{
@@ -253,32 +253,32 @@ QString QextScintillaLexerLua::description(int style) const
return tr("Coroutines, i/o and system facilities");
}
- return QString::null;
+ return TQString();
}
// Returns the background colour of the text for a style.
-QColor QextScintillaLexerLua::paper(int style) const
+TQColor QextScintillaLexerLua::paper(int style) const
{
switch (style)
{
case Comment:
- return QColor(0xd0,0xf0,0xf0);
+ return TQColor(0xd0,0xf0,0xf0);
case LiteralString:
- return QColor(0xe0,0xff,0xff);
+ return TQColor(0xe0,0xff,0xff);
case UnclosedString:
- return QColor(0xe0,0xc0,0xe0);
+ return TQColor(0xe0,0xc0,0xe0);
case BasicFunctions:
- return QColor(0xd0,0xff,0xd0);
+ return TQColor(0xd0,0xff,0xd0);
case StringTableMathsFunctions:
- return QColor(0xd0,0xd0,0xff);
+ return TQColor(0xd0,0xd0,0xff);
case CoroutinesIOSystemFacilities:
- return QColor(0xff,0xd0,0xd0);
+ return TQColor(0xff,0xd0,0xd0);
}
return QextScintillaLexer::paper(style);
@@ -293,7 +293,7 @@ void QextScintillaLexerLua::refreshProperties()
// Read properties from the settings.
-bool QextScintillaLexerLua::readProperties(QSettings &qs,const QString &prefix)
+bool QextScintillaLexerLua::readProperties(TQSettings &qs,const TQString &prefix)
{
int rc = TRUE;
bool ok, flag;
@@ -311,7 +311,7 @@ bool QextScintillaLexerLua::readProperties(QSettings &qs,const QString &prefix)
// Write properties to the settings.
-bool QextScintillaLexerLua::writeProperties(QSettings &qs,const QString &prefix) const
+bool QextScintillaLexerLua::writeProperties(TQSettings &qs,const TQString &prefix) const
{
int rc = TRUE;