diff options
Diffstat (limited to 'qt/qextscintillalexersql.cpp')
-rw-r--r-- | qt/qextscintillalexersql.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/qt/qextscintillalexersql.cpp b/qt/qextscintillalexersql.cpp index 8b7092e..4ee26ab 100644 --- a/qt/qextscintillalexersql.cpp +++ b/qt/qextscintillalexersql.cpp @@ -3,32 +3,32 @@ // Copyright (c) 2006 // Riverbank Computing Limited <[email protected]> // -// 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 "qextscintillalexersql.h" +#include "tqextscintillalexersql.h" // The ctor. -QextScintillaLexerSQL::QextScintillaLexerSQL(QObject *parent,const char *name) +QextScintillaLexerSQL::QextScintillaLexerSQL(TQObject *parent,const char *name) : QextScintillaLexer(parent,name), fold_comments(FALSE), fold_compact(TRUE), backslash_escapes(FALSE) { @@ -63,57 +63,57 @@ int QextScintillaLexerSQL::braceStyle() const // Returns the foreground colour of the text for a style. -QColor QextScintillaLexerSQL::color(int style) const +TQColor QextScintillaLexerSQL::color(int style) const { switch (style) { case Default: - return QColor(0x80,0x80,0x80); + return TQColor(0x80,0x80,0x80); case Comment: case CommentLine: case PlusPrompt: case PlusComment: case CommentLineHash: - return QColor(0x00,0x7f,0x00); + return TQColor(0x00,0x7f,0x00); case CommentDoc: - return QColor(0x7f,0x7f,0x7f); + return TQColor(0x7f,0x7f,0x7f); 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 PlusKeyword: - return QColor(0x7f,0x7f,0x00); + return TQColor(0x7f,0x7f,0x00); case Operator: case Identifier: break; case CommentDocKeyword: - return QColor(0x30,0x60,0xa0); + return TQColor(0x30,0x60,0xa0); case CommentDocKeywordError: - return QColor(0x80,0x40,0x20); + return TQColor(0x80,0x40,0x20); case KeywordSet5: - return QColor(0x4b,0x00,0x82); + return TQColor(0x4b,0x00,0x82); case KeywordSet6: - return QColor(0xb0,0x00,0x40); + return TQColor(0xb0,0x00,0x40); case KeywordSet7: - return QColor(0x8b,0x00,0x00); + return TQColor(0x8b,0x00,0x00); case KeywordSet8: - return QColor(0x80,0x00,0x80); + return TQColor(0x80,0x00,0x80); } return QextScintillaLexer::color(style); @@ -128,9 +128,9 @@ bool QextScintillaLexerSQL::eolFill(int style) const // Returns the font of the text for a style. -QFont QextScintillaLexerSQL::font(int style) const +TQFont QextScintillaLexerSQL::font(int style) const { - QFont f; + TQFont f; switch (style) { @@ -141,9 +141,9 @@ QFont QextScintillaLexerSQL::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; @@ -157,9 +157,9 @@ QFont QextScintillaLexerSQL::font(int style) const case SingleQuotedString: case PlusPrompt: #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 *QextScintillaLexerSQL::keywords(int set) const // Returns the user name of a style. -QString QextScintillaLexerSQL::description(int style) const +TQString QextScintillaLexerSQL::description(int style) const { switch (style) { @@ -305,15 +305,15 @@ QString QextScintillaLexerSQL::description(int style) const return tr("User defined 4"); } - return QString::null; + return TQString(); } // Returns the background colour of the text for a style. -QColor QextScintillaLexerSQL::paper(int style) const +TQColor QextScintillaLexerSQL::paper(int style) const { if (style == PlusPrompt) - return QColor(0xe0,0xff,0xe0); + return TQColor(0xe0,0xff,0xe0); return QextScintillaLexer::paper(style); } @@ -329,7 +329,7 @@ void QextScintillaLexerSQL::refreshProperties() // Read properties from the settings. -bool QextScintillaLexerSQL::readProperties(QSettings &qs,const QString &prefix) +bool QextScintillaLexerSQL::readProperties(TQSettings &qs,const TQString &prefix) { int rc = TRUE; bool ok, flag; @@ -363,7 +363,7 @@ bool QextScintillaLexerSQL::readProperties(QSettings &qs,const QString &prefix) // Write properties to the settings. -bool QextScintillaLexerSQL::writeProperties(QSettings &qs,const QString &prefix) const +bool QextScintillaLexerSQL::writeProperties(TQSettings &qs,const TQString &prefix) const { int rc = TRUE; |