summaryrefslogtreecommitdiffstats
path: root/qt/qextscintillalexerpov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt/qextscintillalexerpov.cpp')
-rw-r--r--qt/qextscintillalexerpov.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/qt/qextscintillalexerpov.cpp b/qt/qextscintillalexerpov.cpp
index 1fabd0f..a9fe9a2 100644
--- a/qt/qextscintillalexerpov.cpp
+++ b/qt/qextscintillalexerpov.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 "qextscintillalexerpov.h"
+#include "tqextscintillalexerpov.h"
// The ctor.
-QextScintillaLexerPOV::QextScintillaLexerPOV(QObject *parent,const char *name)
+QextScintillaLexerPOV::QextScintillaLexerPOV(TQObject *parent,const char *name)
: QextScintillaLexer(parent,name), fold_comments(FALSE),
fold_compact(TRUE), fold_directives(FALSE)
{
@@ -65,36 +65,36 @@ int QextScintillaLexerPOV::braceStyle() const
// Return the string of characters that comprise a word.
const char *QextScintillaLexerPOV::wordCharacters() const
{
- return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_#";
+ return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPTQRSTUVWXYZ0123456789_#";
}
// Returns the foreground colour of the text for a style.
-QColor QextScintillaLexerPOV::color(int style) const
+TQColor QextScintillaLexerPOV::color(int style) const
{
switch (style)
{
case Default:
- return QColor(0xff,0x00,0x80);
+ return TQColor(0xff,0x00,0x80);
case Comment:
case CommentLine:
- return QColor(0x00,0x7f,0x00);
+ return TQColor(0x00,0x7f,0x00);
case Number:
- return QColor(0x00,0x7f,0x7f);
+ return TQColor(0x00,0x7f,0x7f);
case Operator:
- return QColor(0x00,0x00,0x00);
+ return TQColor(0x00,0x00,0x00);
case String:
- return QColor(0x7f,0x00,0x7f);
+ return TQColor(0x7f,0x00,0x7f);
case Directive:
- return QColor(0x7f,0x7f,0x00);
+ return TQColor(0x7f,0x7f,0x00);
case BadDirective:
- return QColor(0x80,0x40,0x20);
+ return TQColor(0x80,0x40,0x20);
case ObjectsCSGAppearance:
case TypesModifiersItems:
@@ -103,7 +103,7 @@ QColor QextScintillaLexerPOV::color(int style) const
case KeywordSet6:
case KeywordSet7:
case KeywordSet8:
- return QColor(0x00,0x00,0x7f);
+ return TQColor(0x00,0x00,0x7f);
}
return QextScintillaLexer::color(style);
@@ -118,18 +118,18 @@ bool QextScintillaLexerPOV::eolFill(int style) const
// Returns the font of the text for a style.
-QFont QextScintillaLexerPOV::font(int style) const
+TQFont QextScintillaLexerPOV::font(int style) const
{
- QFont f;
+ TQFont f;
switch (style)
{
case Comment:
case CommentLine:
#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;
@@ -141,9 +141,9 @@ QFont QextScintillaLexerPOV::font(int style) const
case BadDirective:
#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
f.setItalic(TRUE);
break;
@@ -264,7 +264,7 @@ const char *QextScintillaLexerPOV::keywords(int set) const
// Returns the user name of a style.
-QString QextScintillaLexerPOV::description(int style) const
+TQString QextScintillaLexerPOV::description(int style) const
{
switch (style)
{
@@ -320,35 +320,35 @@ QString QextScintillaLexerPOV::description(int style) const
return tr("User defined 3");
}
- return QString::null;
+ return TQString();
}
// Returns the background colour of the text for a style.
-QColor QextScintillaLexerPOV::paper(int style) const
+TQColor QextScintillaLexerPOV::paper(int style) const
{
switch (style)
{
case UnclosedString:
- return QColor(0xe0,0xc0,0xe0);
+ return TQColor(0xe0,0xc0,0xe0);
case ObjectsCSGAppearance:
- return QColor(0xff,0xd0,0xd0);
+ return TQColor(0xff,0xd0,0xd0);
case TypesModifiersItems:
- return QColor(0xff,0xff,0xd0);
+ return TQColor(0xff,0xff,0xd0);
case PredefinedFunctions:
- return QColor(0xd0,0xd0,0xff);
+ return TQColor(0xd0,0xd0,0xff);
case KeywordSet6:
- return QColor(0xd0,0xff,0xd0);
+ return TQColor(0xd0,0xff,0xd0);
case KeywordSet7:
- return QColor(0xd0,0xd0,0xd0);
+ return TQColor(0xd0,0xd0,0xd0);
case KeywordSet8:
- return QColor(0xe0,0xe0,0xe0);
+ return TQColor(0xe0,0xe0,0xe0);
}
return QextScintillaLexer::paper(style);
@@ -365,7 +365,7 @@ void QextScintillaLexerPOV::refreshProperties()
// Read properties from the settings.
-bool QextScintillaLexerPOV::readProperties(QSettings &qs,const QString &prefix)
+bool QextScintillaLexerPOV::readProperties(TQSettings &qs,const TQString &prefix)
{
int rc = TRUE;
bool ok, flag;
@@ -399,7 +399,7 @@ bool QextScintillaLexerPOV::readProperties(QSettings &qs,const QString &prefix)
// Write properties to the settings.
-bool QextScintillaLexerPOV::writeProperties(QSettings &qs,const QString &prefix) const
+bool QextScintillaLexerPOV::writeProperties(TQSettings &qs,const TQString &prefix) const
{
int rc = TRUE;