diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-30 12:33:18 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-30 12:33:18 -0600 |
commit | 03bc485016127d419bbbbc3cfb09e21e8754b383 (patch) | |
tree | cad8234bcf26063239ac7a565298b897ffdeef57 /qt/qextscintillalexerperl.cpp | |
parent | 664e37abfe5c796c1279b8295fb030f126b0a7d8 (diff) | |
download | tqscintilla-03bc485016127d419bbbbc3cfb09e21e8754b383.tar.gz tqscintilla-03bc485016127d419bbbbc3cfb09e21e8754b383.zip |
Initial automated TQt conversion
Diffstat (limited to 'qt/qextscintillalexerperl.cpp')
-rw-r--r-- | qt/qextscintillalexerperl.cpp | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/qt/qextscintillalexerperl.cpp b/qt/qextscintillalexerperl.cpp index 1d5c15b..380b9a9 100644 --- a/qt/qextscintillalexerperl.cpp +++ b/qt/qextscintillalexerperl.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 "qextscintillalexerperl.h" +#include "tqextscintillalexerperl.h" // The ctor. -QextScintillaLexerPerl::QextScintillaLexerPerl(QObject *parent, +QextScintillaLexerPerl::QextScintillaLexerPerl(TQObject *parent, const char *name) : QextScintillaLexer(parent,name), fold_comments(FALSE), fold_compact(TRUE) @@ -66,35 +66,35 @@ int QextScintillaLexerPerl::braceStyle() const // Return the string of characters that comprise a word. const char *QextScintillaLexerPerl::wordCharacters() const { - return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$@%&"; + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPTQRSTUVWXYZ0123456789_$@%&"; } // Returns the foreground colour of the text for a style. -QColor QextScintillaLexerPerl::color(int style) const +TQColor QextScintillaLexerPerl::color(int style) const { switch (style) { case Default: - return QColor(0x80,0x80,0x80); + return TQColor(0x80,0x80,0x80); case Error: case Backticks: case QuotedStringQX: - return QColor(0xff,0xff,0x00); + return TQColor(0xff,0xff,0x00); case Comment: - return QColor(0x00,0x7f,0x00); + return TQColor(0x00,0x7f,0x00); case POD: case PODVerbatim: - return QColor(0x00,0x40,0x00); + return TQColor(0x00,0x40,0x00); 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: @@ -103,7 +103,7 @@ QColor QextScintillaLexerPerl::color(int style) const case BacktickHereDocument: case QuotedStringQ: case QuotedStringQQ: - return QColor(0x7f,0x00,0x7f); + return TQColor(0x7f,0x00,0x7f); case Operator: case Identifier: @@ -116,10 +116,10 @@ QColor QextScintillaLexerPerl::color(int style) const case HereDocumentDelimiter: case QuotedStringQR: case QuotedStringQW: - return QColor(0x00,0x00,0x00); + return TQColor(0x00,0x00,0x00); case DataSection: - return QColor(0x60,0x00,0x00); + return TQColor(0x60,0x00,0x00); } return QextScintillaLexer::color(style); @@ -145,25 +145,25 @@ bool QextScintillaLexerPerl::eolFill(int style) const // Returns the font of the text for a style. -QFont QextScintillaLexerPerl::font(int style) const +TQFont QextScintillaLexerPerl::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; case POD: #if defined(Q_OS_WIN) - f = QFont("Times New Roman",11); + f = TQFont("Times New Roman",11); #else - f = QFont("Bitstream Charter",10); + f = TQFont("Bitstream Charter",10); #endif break; @@ -179,9 +179,9 @@ QFont QextScintillaLexerPerl::font(int style) const case QuotedStringQQ: case PODVerbatim: #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; @@ -243,7 +243,7 @@ const char *QextScintillaLexerPerl::keywords(int set) const // Returns the user name of a style. -QString QextScintillaLexerPerl::description(int style) const +TQString QextScintillaLexerPerl::description(int style) const { switch (style) { @@ -332,53 +332,53 @@ QString QextScintillaLexerPerl::description(int style) const return tr("POD verbatim"); } - return QString::null; + return TQString(); } // Returns the background colour of the text for a style. -QColor QextScintillaLexerPerl::paper(int style) const +TQColor QextScintillaLexerPerl::paper(int style) const { switch (style) { case Error: - return QColor(0xff,0x00,0x00); + return TQColor(0xff,0x00,0x00); case POD: - return QColor(0xe0,0xff,0xe0); + return TQColor(0xe0,0xff,0xe0); case Scalar: - return QColor(0xff,0xe0,0xe0); + return TQColor(0xff,0xe0,0xe0); case Array: - return QColor(0xff,0xff,0xe0); + return TQColor(0xff,0xff,0xe0); case Hash: - return QColor(0xff,0xe0,0xff); + return TQColor(0xff,0xe0,0xff); case SymbolTable: - return QColor(0xe0,0xe0,0xe0); + return TQColor(0xe0,0xe0,0xe0); case Regex: - return QColor(0xa0,0xff,0xa0); + return TQColor(0xa0,0xff,0xa0); case Substitution: - return QColor(0xf0,0xe0,0x80); + return TQColor(0xf0,0xe0,0x80); case Backticks: - 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 SingleQuotedHereDocument: case DoubleQuotedHereDocument: case BacktickHereDocument: - return QColor(0xdd,0xd0,0xdd); + return TQColor(0xdd,0xd0,0xdd); case PODVerbatim: - return QColor(0xc0,0xff,0xc0); + return TQColor(0xc0,0xff,0xc0); } return QextScintillaLexer::paper(style); @@ -394,7 +394,7 @@ void QextScintillaLexerPerl::refreshProperties() // Read properties from the settings. -bool QextScintillaLexerPerl::readProperties(QSettings &qs,const QString &prefix) +bool QextScintillaLexerPerl::readProperties(TQSettings &qs,const TQString &prefix) { int rc = TRUE; bool ok, flag; @@ -420,7 +420,7 @@ bool QextScintillaLexerPerl::readProperties(QSettings &qs,const QString &prefix) // Write properties to the settings. -bool QextScintillaLexerPerl::writeProperties(QSettings &qs,const QString &prefix) const +bool QextScintillaLexerPerl::writeProperties(TQSettings &qs,const TQString &prefix) const { int rc = TRUE; |