diff options
Diffstat (limited to 'qt/qextscintillalexerpython.cpp')
-rw-r--r-- | qt/qextscintillalexerpython.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/qt/qextscintillalexerpython.cpp b/qt/qextscintillalexerpython.cpp index b6252ae..92b8d2e 100644 --- a/qt/qextscintillalexerpython.cpp +++ b/qt/qextscintillalexerpython.cpp @@ -3,28 +3,28 @@ // 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 "qextscintillalexerpython.h" +#include "tqextscintillalexerpython.h" // The list of Python keywords that can be used by other friendly lexers. @@ -35,7 +35,7 @@ const char *QextScintillaLexerPython::keywordClass = // The ctor. -QextScintillaLexerPython::QextScintillaLexerPython(QObject *parent, +QextScintillaLexerPython::QextScintillaLexerPython(TQObject *parent, const char *name) : QextScintillaLexer(parent,name), fold_comments(FALSE), fold_quotes(FALSE), indent_warn(NoWarning) @@ -97,51 +97,51 @@ int QextScintillaLexerPython::braceStyle() const // Returns the foreground colour of the text for a style. -QColor QextScintillaLexerPython::color(int style) const +TQColor QextScintillaLexerPython::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 Number: - return QColor(0x00,0x7f,0x7f); + return TQColor(0x00,0x7f,0x7f); case DoubleQuotedString: case SingleQuotedString: - return QColor(0x7f,0x00,0x7f); + return TQColor(0x7f,0x00,0x7f); case Keyword: - return QColor(0x00,0x00,0x7f); + return TQColor(0x00,0x00,0x7f); case TripleSingleQuotedString: case TripleDoubleQuotedString: - return QColor(0x7f,0x00,0x00); + return TQColor(0x7f,0x00,0x00); case ClassName: - return QColor(0x00,0x00,0xff); + return TQColor(0x00,0x00,0xff); case FunctionMethodName: - return QColor(0x00,0x7f,0x7f); + return TQColor(0x00,0x7f,0x7f); case Operator: case Identifier: break; case CommentBlock: - return QColor(0x7f,0x7f,0x7f); + return TQColor(0x7f,0x7f,0x7f); case UnclosedString: - return QColor(0x00,0x00,0x00); + return TQColor(0x00,0x00,0x00); case HighlightedIdentifier: - return QColor(0x40,0x70,0x90); + return TQColor(0x40,0x70,0x90); case Decorator: - return QColor(0x80,0x50,0x00); + return TQColor(0x80,0x50,0x00); } return QextScintillaLexer::color(style); @@ -156,17 +156,17 @@ bool QextScintillaLexerPython::eolFill(int style) const // Returns the font of the text for a style. -QFont QextScintillaLexerPython::font(int style) const +TQFont QextScintillaLexerPython::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; @@ -174,9 +174,9 @@ QFont QextScintillaLexerPython::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; @@ -207,7 +207,7 @@ const char *QextScintillaLexerPython::keywords(int set) const // Returns the user name of a style. -QString QextScintillaLexerPython::description(int style) const +TQString QextScintillaLexerPython::description(int style) const { switch (style) { @@ -260,15 +260,15 @@ QString QextScintillaLexerPython::description(int style) const return tr("Decorator"); } - return QString::null; + return TQString(); } // Returns the background colour of the text for a style. -QColor QextScintillaLexerPython::paper(int style) const +TQColor QextScintillaLexerPython::paper(int style) const { if (style == UnclosedString) - return QColor(0xe0,0xc0,0xe0); + return TQColor(0xe0,0xc0,0xe0); return QextScintillaLexer::paper(style); } @@ -284,7 +284,7 @@ void QextScintillaLexerPython::refreshProperties() // Read properties from the settings. -bool QextScintillaLexerPython::readProperties(QSettings &qs,const QString &prefix) +bool QextScintillaLexerPython::readProperties(TQSettings &qs,const TQString &prefix) { int rc = TRUE, num; bool ok, flag; @@ -318,7 +318,7 @@ bool QextScintillaLexerPython::readProperties(QSettings &qs,const QString &prefi // Write properties to the settings. -bool QextScintillaLexerPython::writeProperties(QSettings &qs,const QString &prefix) const +bool QextScintillaLexerPython::writeProperties(TQSettings &qs,const TQString &prefix) const { int rc = TRUE; @@ -403,5 +403,5 @@ void QextScintillaLexerPython::setIndentationWarning(IndentationWarning warn) // Set the "tab.timmy.whinge.level" property. void QextScintillaLexerPython::setTabWhingeProp() { - emit propertyChanged("tab.timmy.whinge.level",QString::number(indent_warn)); + emit propertyChanged("tab.timmy.whinge.level",TQString::number(indent_warn)); } |