summaryrefslogtreecommitdiffstats
path: root/qt/qextscintillalexercpp.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-30 12:33:18 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-30 12:33:18 -0600
commit03bc485016127d419bbbbc3cfb09e21e8754b383 (patch)
treecad8234bcf26063239ac7a565298b897ffdeef57 /qt/qextscintillalexercpp.cpp
parent664e37abfe5c796c1279b8295fb030f126b0a7d8 (diff)
downloadtqscintilla-03bc485016127d419bbbbc3cfb09e21e8754b383.tar.gz
tqscintilla-03bc485016127d419bbbbc3cfb09e21e8754b383.zip
Initial automated TQt conversion
Diffstat (limited to 'qt/qextscintillalexercpp.cpp')
-rw-r--r--qt/qextscintillalexercpp.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/qt/qextscintillalexercpp.cpp b/qt/qextscintillalexercpp.cpp
index 706d86b..2f94bc1 100644
--- a/qt/qextscintillalexercpp.cpp
+++ b/qt/qextscintillalexercpp.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 "qextscintillalexercpp.h"
+#include "tqextscintillalexercpp.h"
// The ctor.
-QextScintillaLexerCPP::QextScintillaLexerCPP(QObject *parent,const char *name,
+QextScintillaLexerCPP::QextScintillaLexerCPP(TQObject *parent,const char *name,
bool caseInsensitiveKeywords)
: QextScintillaLexer(parent,name), fold_atelse(FALSE),
fold_comments(FALSE), fold_compact(TRUE), fold_preproc(TRUE),
@@ -98,54 +98,54 @@ int QextScintillaLexerCPP::braceStyle() const
// Return the string of characters that comprise a word.
const char *QextScintillaLexerCPP::wordCharacters() const
{
- return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_#";
+ return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPTQRSTUVWXYZ0123456789_#";
}
// Returns the foreground colour of the text for a style.
-QColor QextScintillaLexerCPP::color(int style) const
+TQColor QextScintillaLexerCPP::color(int style) const
{
switch (style)
{
case Default:
- return QColor(0x80,0x80,0x80);
+ return TQColor(0x80,0x80,0x80);
case Comment:
case CommentLine:
- return QColor(0x00,0x7f,0x00);
+ return TQColor(0x00,0x7f,0x00);
case CommentDoc:
case CommentLineDoc:
- return QColor(0x3f,0x70,0x3f);
+ return TQColor(0x3f,0x70,0x3f);
case Number:
- return QColor(0x00,0x7f,0x7f);
+ return TQColor(0x00,0x7f,0x7f);
case Keyword:
- return QColor(0x00,0x00,0x7f);
+ return TQColor(0x00,0x00,0x7f);
case DoubleQuotedString:
case SingleQuotedString:
- 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 UnclosedString:
- return QColor(0x00,0x00,0x00);
+ return TQColor(0x00,0x00,0x00);
case Identifier:
break;
case Regex:
- return QColor(0x3f,0x7f,0x3f);
+ return TQColor(0x3f,0x7f,0x3f);
case CommentDocKeyword:
- return QColor(0x30,0x60,0xa0);
+ return TQColor(0x30,0x60,0xa0);
case CommentDocKeywordError:
- return QColor(0x80,0x40,0x20);
+ return TQColor(0x80,0x40,0x20);
}
return QextScintillaLexer::color(style);
@@ -160,9 +160,9 @@ bool QextScintillaLexerCPP::eolFill(int style) const
// Returns the font of the text for a style.
-QFont QextScintillaLexerCPP::font(int style) const
+TQFont QextScintillaLexerCPP::font(int style) const
{
- QFont f;
+ TQFont f;
switch (style)
{
@@ -173,9 +173,9 @@ QFont QextScintillaLexerCPP::font(int style) const
case CommentDocKeyword:
case CommentDocKeywordError:
#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;
@@ -189,9 +189,9 @@ QFont QextScintillaLexerCPP::font(int style) const
case SingleQuotedString:
case UnclosedString:
#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
break;
@@ -240,7 +240,7 @@ const char *QextScintillaLexerCPP::keywords(int set) const
// Returns the user name of a style.
-QString QextScintillaLexerCPP::description(int style) const
+TQString QextScintillaLexerCPP::description(int style) const
{
switch (style)
{
@@ -296,15 +296,15 @@ QString QextScintillaLexerCPP::description(int style) const
return tr("Global classes and typedefs");
}
- return QString::null;
+ return TQString();
}
// Returns the background colour of the text for a style.
-QColor QextScintillaLexerCPP::paper(int style) const
+TQColor QextScintillaLexerCPP::paper(int style) const
{
if (style == UnclosedString)
- return QColor(0xe0,0xc0,0xe0);
+ return TQColor(0xe0,0xc0,0xe0);
return QextScintillaLexer::paper(style);
}
@@ -322,7 +322,7 @@ void QextScintillaLexerCPP::refreshProperties()
// Read properties from the settings.
-bool QextScintillaLexerCPP::readProperties(QSettings &qs,const QString &prefix)
+bool QextScintillaLexerCPP::readProperties(TQSettings &qs,const TQString &prefix)
{
int rc = TRUE;
bool ok, flag;
@@ -372,7 +372,7 @@ bool QextScintillaLexerCPP::readProperties(QSettings &qs,const QString &prefix)
// Write properties to the settings.
-bool QextScintillaLexerCPP::writeProperties(QSettings &qs,const QString &prefix) const
+bool QextScintillaLexerCPP::writeProperties(TQSettings &qs,const TQString &prefix) const
{
int rc = TRUE;