summaryrefslogtreecommitdiffstats
path: root/qt/qextscintillalexerruby.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/qextscintillalexerruby.cpp
parent664e37abfe5c796c1279b8295fb030f126b0a7d8 (diff)
downloadtqscintilla-03bc485016127d419bbbbc3cfb09e21e8754b383.tar.gz
tqscintilla-03bc485016127d419bbbbc3cfb09e21e8754b383.zip
Initial automated TQt conversion
Diffstat (limited to 'qt/qextscintillalexerruby.cpp')
-rw-r--r--qt/qextscintillalexerruby.cpp84
1 files changed, 42 insertions, 42 deletions
diff --git a/qt/qextscintillalexerruby.cpp b/qt/qextscintillalexerruby.cpp
index 6ecce01..ef0ac2f 100644
--- a/qt/qextscintillalexerruby.cpp
+++ b/qt/qextscintillalexerruby.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 "qextscintillalexerruby.h"
+#include "tqextscintillalexerruby.h"
// The ctor.
-QextScintillaLexerRuby::QextScintillaLexerRuby(QObject *parent,
+QextScintillaLexerRuby::QextScintillaLexerRuby(TQObject *parent,
const char *name)
: QextScintillaLexer(parent, name)
{
@@ -93,64 +93,64 @@ int QextScintillaLexerRuby::braceStyle() const
// Returns the foreground colour of the text for a style.
-QColor QextScintillaLexerRuby::color(int style) const
+TQColor QextScintillaLexerRuby::color(int style) const
{
switch (style)
{
case Default:
- return QColor(0x80,0x80,0x80);
+ return TQColor(0x80,0x80,0x80);
case Comment:
- return QColor(0x00,0x7f,0x00);
+ return TQColor(0x00,0x7f,0x00);
case POD:
- return QColor(0x00,0x40,0x00);
+ return TQColor(0x00,0x40,0x00);
case Number:
case FunctionMethodName:
- return QColor(0x00,0x7f,0x7f);
+ return TQColor(0x00,0x7f,0x7f);
case Keyword:
case DemotedKeyword:
- return QColor(0x00,0x00,0x7f);
+ return TQColor(0x00,0x00,0x7f);
case DoubleQuotedString:
case SingleQuotedString:
case HereDocument:
case PercentStringq:
case PercentStringQ:
- return QColor(0x7f,0x00,0x7f);
+ return TQColor(0x7f,0x00,0x7f);
case ClassName:
- return QColor(0x00,0x00,0xff);
+ return TQColor(0x00,0x00,0xff);
case Regex:
case HereDocumentDelimiter:
case PercentStringr:
case PercentStringw:
- return QColor(0x00,0x00,0x00);
+ return TQColor(0x00,0x00,0x00);
case Global:
- return QColor(0x80,0x00,0x80);
+ return TQColor(0x80,0x00,0x80);
case Symbol:
- return QColor(0xc0,0xa0,0x30);
+ return TQColor(0xc0,0xa0,0x30);
case ModuleName:
- return QColor(0xa0,0x00,0xa0);
+ return TQColor(0xa0,0x00,0xa0);
case InstanceVariable:
- return QColor(0xb0,0x00,0x80);
+ return TQColor(0xb0,0x00,0x80);
case ClassVariable:
- return QColor(0x80,0x00,0xb0);
+ return TQColor(0x80,0x00,0xb0);
case Backticks:
case PercentStringx:
- return QColor(0xff,0xff,0x00);
+ return TQColor(0xff,0xff,0x00);
case DataSection:
- return QColor(0x60,0x00,0x00);
+ return TQColor(0x60,0x00,0x00);
}
return QextScintillaLexer::color(style);
@@ -179,17 +179,17 @@ bool QextScintillaLexerRuby::eolFill(int style) const
// Returns the font of the text for a style.
-QFont QextScintillaLexerRuby::font(int style) const
+TQFont QextScintillaLexerRuby::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;
@@ -199,9 +199,9 @@ QFont QextScintillaLexerRuby::font(int style) const
case PercentStringq:
case PercentStringQ:
#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;
@@ -239,7 +239,7 @@ const char *QextScintillaLexerRuby::keywords(int set) const
// Returns the user name of a style.
-QString QextScintillaLexerRuby::description(int style) const
+TQString QextScintillaLexerRuby::description(int style) const
{
switch (style)
{
@@ -337,43 +337,43 @@ QString QextScintillaLexerRuby::description(int style) const
return tr("stderr");
}
- return QString::null;
+ return TQString();
}
// Returns the background colour of the text for a style.
-QColor QextScintillaLexerRuby::paper(int style) const
+TQColor QextScintillaLexerRuby::paper(int style) const
{
switch (style)
{
case Error:
- return QColor(0xff,0x00,0x00);
+ return TQColor(0xff,0x00,0x00);
case POD:
- return QColor(0xc0,0xff,0xc0);
+ return TQColor(0xc0,0xff,0xc0);
case Regex:
case PercentStringr:
- return QColor(0xa0,0xff,0xa0);
+ return TQColor(0xa0,0xff,0xa0);
case Backticks:
case PercentStringx:
- return QColor(0xa0,0x80,0x80);
+ return TQColor(0xa0,0x80,0x80);
case DataSection:
- return QColor(0xff,0xf0,0xd8);
+ return TQColor(0xff,0xf0,0xd8);
case HereDocumentDelimiter:
case HereDocument:
- return QColor(0xdd,0xd0,0xdd);
+ return TQColor(0xdd,0xd0,0xdd);
case PercentStringw:
- return QColor(0xff,0xff,0xe0);
+ return TQColor(0xff,0xff,0xe0);
case Stdin:
case Stdout:
case Stderr:
- return QColor(0xff,0x80,0x80);
+ return TQColor(0xff,0x80,0x80);
}
return QextScintillaLexer::paper(style);