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/qextscintillalexerhtml.cpp | |
parent | 664e37abfe5c796c1279b8295fb030f126b0a7d8 (diff) | |
download | tqscintilla-03bc485016127d419bbbbc3cfb09e21e8754b383.tar.gz tqscintilla-03bc485016127d419bbbbc3cfb09e21e8754b383.zip |
Initial automated TQt conversion
Diffstat (limited to 'qt/qextscintillalexerhtml.cpp')
-rw-r--r-- | qt/qextscintillalexerhtml.cpp | 166 |
1 files changed, 83 insertions, 83 deletions
diff --git a/qt/qextscintillalexerhtml.cpp b/qt/qextscintillalexerhtml.cpp index 100d47c..cc76a9f 100644 --- a/qt/qextscintillalexerhtml.cpp +++ b/qt/qextscintillalexerhtml.cpp @@ -3,34 +3,34 @@ // 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 "qextscintillalexerhtml.h" -#include "qextscintillalexerjavascript.h" -#include "qextscintillalexerpython.h" +#include "tqextscintillalexerhtml.h" +#include "tqextscintillalexerjavascript.h" +#include "tqextscintillalexerpython.h" // The ctor. -QextScintillaLexerHTML::QextScintillaLexerHTML(QObject *parent, +QextScintillaLexerHTML::QextScintillaLexerHTML(TQObject *parent, const char *name) : QextScintillaLexer(parent,name), fold_compact(TRUE), fold_preproc(TRUE), case_sens_tags(FALSE) @@ -61,12 +61,12 @@ const char *QextScintillaLexerHTML::lexer() const // Return the string of characters that comprise a word. const char *QextScintillaLexerHTML::wordCharacters() const { - return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-"; + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPTQRSTUVWXYZ0123456789_-"; } // Returns the foreground colour of the text for a style. -QColor QextScintillaLexerHTML::color(int style) const +TQColor QextScintillaLexerHTML::color(int style) const { switch (style) { @@ -80,7 +80,7 @@ QColor QextScintillaLexerHTML::color(int style) const case VBScriptDefault: case ASPVBScriptDefault: case PHPOperator: - return QColor(0x00,0x00,0x00); + return TQColor(0x00,0x00,0x00); case Tag: case XMLTagEnd: @@ -93,16 +93,16 @@ QColor QextScintillaLexerHTML::color(int style) const case ASPVBScriptKeyword: case ASPVBScriptIdentifier: case ASPVBScriptUnclosedString: - return QColor(0x00,0x00,0x80); + return TQColor(0x00,0x00,0x80); case UnknownTag: case UnknownAttribute: - return QColor(0xff,0x00,0x00); + return TQColor(0xff,0x00,0x00); case Attribute: case VBScriptNumber: case ASPVBScriptNumber: - return QColor(0x00,0x80,0x80); + return TQColor(0x00,0x80,0x80); case HTMLNumber: case JavaScriptNumber: @@ -111,7 +111,7 @@ QColor QextScintillaLexerHTML::color(int style) const case PythonFunctionMethodName: case ASPPythonNumber: case ASPPythonFunctionMethodName: - return QColor(0x00,0x7f,0x7f); + return TQColor(0x00,0x7f,0x7f); case HTMLDoubleQuotedString: case HTMLSingleQuotedString: @@ -124,50 +124,50 @@ QColor QextScintillaLexerHTML::color(int style) const case ASPPythonDoubleQuotedString: case ASPPythonSingleQuotedString: case PHPKeyword: - return QColor(0x7f,0x00,0x7f); + return TQColor(0x7f,0x00,0x7f); case OtherInTag: case Entity: case VBScriptString: case ASPVBScriptString: - return QColor(0x80,0x00,0x80); + return TQColor(0x80,0x00,0x80); case HTMLComment: case SGMLComment: - return QColor(0x80,0x80,0x00); + return TQColor(0x80,0x80,0x00); case XMLStart: case XMLEnd: case PHPStart: case PythonClassName: case ASPPythonClassName: - return QColor(0x00,0x00,0xff); + return TQColor(0x00,0x00,0xff); case HTMLValue: - return QColor(0xff,0x00,0xff); + return TQColor(0xff,0x00,0xff); case SGMLParameter: - return QColor(0x00,0x66,0x00); + return TQColor(0x00,0x66,0x00); case SGMLDoubleQuotedString: case SGMLError: - return QColor(0x80,0x00,0x00); + return TQColor(0x80,0x00,0x00); case SGMLSingleQuotedString: - return QColor(0x99,0x33,0x00); + return TQColor(0x99,0x33,0x00); case SGMLSpecial: - return QColor(0x33,0x66,0xff); + return TQColor(0x33,0x66,0xff); case SGMLEntity: - return QColor(0x33,0x33,0x33); + return TQColor(0x33,0x33,0x33); case SGMLBlockDefault: - return QColor(0x00,0x00,0x66); + return TQColor(0x00,0x00,0x66); case JavaScriptStart: case ASPJavaScriptStart: - return QColor(0x7f,0x7f,0x00); + return TQColor(0x7f,0x7f,0x00); case JavaScriptComment: case JavaScriptCommentLine: @@ -176,10 +176,10 @@ QColor QextScintillaLexerHTML::color(int style) const case PythonComment: case ASPPythonComment: case PHPDoubleQuotedString: - return QColor(0x00,0x7f,0x00); + return TQColor(0x00,0x7f,0x00); case JavaScriptCommentDoc: - return QColor(0x3f,0x70,0x3f); + return TQColor(0x3f,0x70,0x3f); case JavaScriptKeyword: case ASPJavaScriptKeyword: @@ -187,41 +187,41 @@ QColor QextScintillaLexerHTML::color(int style) const case ASPPythonKeyword: case PHPVariable: case PHPDoubleQuotedVariable: - return QColor(0x00,0x00,0x7f); + return TQColor(0x00,0x00,0x7f); case ASPJavaScriptCommentDoc: - return QColor(0x7f,0x7f,0x7f); + return TQColor(0x7f,0x7f,0x7f); case VBScriptComment: case ASPVBScriptComment: - return QColor(0x00,0x80,0x00); + return TQColor(0x00,0x80,0x00); case PythonStart: case PythonDefault: case ASPPythonStart: case ASPPythonDefault: - return QColor(0x80,0x80,0x80); + return TQColor(0x80,0x80,0x80); case PythonTripleSingleQuotedString: case PythonTripleDoubleQuotedString: case ASPPythonTripleSingleQuotedString: case ASPPythonTripleDoubleQuotedString: - return QColor(0x7f,0x00,0x00); + return TQColor(0x7f,0x00,0x00); case PHPDefault: - return QColor(0x00,0x00,0x33); + return TQColor(0x00,0x00,0x33); case PHPSingleQuotedString: - return QColor(0x00,0x9f,0x00); + return TQColor(0x00,0x9f,0x00); case PHPNumber: - return QColor(0xcc,0x99,0x00); + return TQColor(0xcc,0x99,0x00); case PHPComment: - return QColor(0x99,0x99,0x99); + return TQColor(0x99,0x99,0x99); case PHPCommentLine: - return QColor(0x66,0x66,0x66); + return TQColor(0x66,0x66,0x66); } return QextScintillaLexer::color(style); @@ -288,26 +288,26 @@ bool QextScintillaLexerHTML::eolFill(int style) const // Returns the font of the text for a style. -QFont QextScintillaLexerHTML::font(int style) const +TQFont QextScintillaLexerHTML::font(int style) const { - QFont f; + TQFont f; switch (style) { case Default: case Entity: #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; case HTMLComment: #if defined(Q_OS_WIN) - f = QFont("Verdana",9); + f = TQFont("Verdana",9); #else - f = QFont("Bitstream Vera Sans",8); + f = TQFont("Bitstream Vera Sans",8); #endif break; @@ -333,9 +333,9 @@ QFont QextScintillaLexerHTML::font(int style) const case ASPJavaScriptKeyword: case ASPJavaScriptSymbol: #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.setBold(TRUE); break; @@ -358,9 +358,9 @@ QFont QextScintillaLexerHTML::font(int style) const case ASPPythonComment: case PHPComment: #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; @@ -375,18 +375,18 @@ QFont QextScintillaLexerHTML::font(int style) const case ASPVBScriptIdentifier: case ASPVBScriptUnclosedString: #if defined(Q_OS_WIN) - f = QFont("Lucida Sans Unicode",9); + f = TQFont("Lucida Sans Unicode",9); #else - f = QFont("Bitstream Vera Serif",9); + f = TQFont("Bitstream Vera Serif",9); #endif break; case VBScriptKeyword: case ASPVBScriptKeyword: #if defined(Q_OS_WIN) - f = QFont("Lucida Sans Unicode",9); + f = TQFont("Lucida Sans Unicode",9); #else - f = QFont("Bitstream Vera Serif",9); + f = TQFont("Bitstream Vera Serif",9); #endif f.setBold(TRUE); break; @@ -396,9 +396,9 @@ QFont QextScintillaLexerHTML::font(int style) const case ASPPythonDoubleQuotedString: case ASPPythonSingleQuotedString: #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; @@ -411,9 +411,9 @@ QFont QextScintillaLexerHTML::font(int style) const case PHPCommentLine: #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; @@ -474,7 +474,7 @@ const char *QextScintillaLexerHTML::keywords(int set) const "onselect onsubmit onunload " "profile prompt " "readonly rel rev rows rowspan rules " - "scheme scope selected shape size span src standby " + "scheme scope selected tqshape size span src standby " "start style summary " "tabindex target text title topmargin type " "usemap " @@ -532,7 +532,7 @@ const char *QextScintillaLexerHTML::keywords(int set) const // Returns the user name of a style. -QString QextScintillaLexerHTML::description(int style) const +TQString QextScintillaLexerHTML::description(int style) const { switch (style) { @@ -864,27 +864,27 @@ QString QextScintillaLexerHTML::description(int style) const return tr("PHP operator"); } - return QString::null; + return TQString(); } // Returns the background colour of the text for a style. -QColor QextScintillaLexerHTML::paper(int style) const +TQColor QextScintillaLexerHTML::paper(int style) const { switch (style) { case ASPAtStart: - return QColor(0xff,0xff,0x00); + return TQColor(0xff,0xff,0x00); case ASPStart: case CDATA: - return QColor(0xff,0xdf,0x00); + return TQColor(0xff,0xdf,0x00); case PHPStart: - return QColor(0xff,0xef,0xbf); + return TQColor(0xff,0xef,0xbf); case HTMLValue: - return QColor(0xff,0xef,0xff); + return TQColor(0xff,0xef,0xff); case SGMLDefault: case SGMLCommand: @@ -894,13 +894,13 @@ QColor QextScintillaLexerHTML::paper(int style) const case SGMLSpecial: case SGMLEntity: case SGMLComment: - return QColor(0xef,0xef,0xff); + return TQColor(0xef,0xef,0xff); case SGMLError: - return QColor(0xff,0x66,0x66); + return TQColor(0xff,0x66,0x66); case SGMLBlockDefault: - return QColor(0xcc,0xcc,0xe0); + return TQColor(0xcc,0xcc,0xe0); case JavaScriptDefault: case JavaScriptComment: @@ -912,15 +912,15 @@ QColor QextScintillaLexerHTML::paper(int style) const case JavaScriptDoubleQuotedString: case JavaScriptSingleQuotedString: case JavaScriptSymbol: - return QColor(0xf0,0xf0,0xff); + return TQColor(0xf0,0xf0,0xff); case JavaScriptUnclosedString: case ASPJavaScriptUnclosedString: - return QColor(0xbf,0xbb,0xb0); + return TQColor(0xbf,0xbb,0xb0); case JavaScriptRegex: case ASPJavaScriptRegex: - return QColor(0xff,0xbb,0xb0); + return TQColor(0xff,0xbb,0xb0); case ASPJavaScriptDefault: case ASPJavaScriptComment: @@ -932,7 +932,7 @@ QColor QextScintillaLexerHTML::paper(int style) const case ASPJavaScriptDoubleQuotedString: case ASPJavaScriptSingleQuotedString: case ASPJavaScriptSymbol: - return QColor(0xdf,0xdf,0x7f); + return TQColor(0xdf,0xdf,0x7f); case VBScriptDefault: case VBScriptComment: @@ -940,11 +940,11 @@ QColor QextScintillaLexerHTML::paper(int style) const case VBScriptKeyword: case VBScriptString: case VBScriptIdentifier: - return QColor(0xef,0xef,0xff); + return TQColor(0xef,0xef,0xff); case VBScriptUnclosedString: case ASPVBScriptUnclosedString: - return QColor(0x7f,0x7f,0xff); + return TQColor(0x7f,0x7f,0xff); case ASPVBScriptDefault: case ASPVBScriptComment: @@ -952,7 +952,7 @@ QColor QextScintillaLexerHTML::paper(int style) const case ASPVBScriptKeyword: case ASPVBScriptString: case ASPVBScriptIdentifier: - return QColor(0xcf,0xcf,0xef); + return TQColor(0xcf,0xcf,0xef); case PythonDefault: case PythonComment: @@ -966,7 +966,7 @@ QColor QextScintillaLexerHTML::paper(int style) const case PythonFunctionMethodName: case PythonOperator: case PythonIdentifier: - return QColor(0xef,0xff,0xef); + return TQColor(0xef,0xff,0xef); case ASPPythonDefault: case ASPPythonComment: @@ -980,7 +980,7 @@ QColor QextScintillaLexerHTML::paper(int style) const case ASPPythonFunctionMethodName: case ASPPythonOperator: case ASPPythonIdentifier: - return QColor(0xcf,0xef,0xcf); + return TQColor(0xcf,0xef,0xcf); case PHPDefault: case PHPDoubleQuotedString: @@ -992,7 +992,7 @@ QColor QextScintillaLexerHTML::paper(int style) const case PHPCommentLine: case PHPDoubleQuotedVariable: case PHPOperator: - return QColor(0xff,0xf8,0xf8); + return TQColor(0xff,0xf8,0xf8); } return QextScintillaLexer::paper(style); @@ -1009,7 +1009,7 @@ void QextScintillaLexerHTML::refreshProperties() // Read properties from the settings. -bool QextScintillaLexerHTML::readProperties(QSettings &qs,const QString &prefix) +bool QextScintillaLexerHTML::readProperties(TQSettings &qs,const TQString &prefix) { int rc = TRUE; bool ok, flag; @@ -1043,7 +1043,7 @@ bool QextScintillaLexerHTML::readProperties(QSettings &qs,const QString &prefix) // Write properties to the settings. -bool QextScintillaLexerHTML::writeProperties(QSettings &qs,const QString &prefix) const +bool QextScintillaLexerHTML::writeProperties(TQSettings &qs,const TQString &prefix) const { int rc = TRUE; |