diff options
Diffstat (limited to 'qt/qextscintillalexercss.cpp')
-rw-r--r-- | qt/qextscintillalexercss.cpp | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/qt/qextscintillalexercss.cpp b/qt/qextscintillalexercss.cpp index f2e57d9..c32371d 100644 --- a/qt/qextscintillalexercss.cpp +++ b/qt/qextscintillalexercss.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 "qextscintillalexercss.h" +#include "tqextscintillalexercss.h" // The ctor. -QextScintillaLexerCSS::QextScintillaLexerCSS(QObject *parent,const char *name) +QextScintillaLexerCSS::QextScintillaLexerCSS(TQObject *parent,const char *name) : QextScintillaLexer(parent,name), fold_comments(FALSE), fold_compact(TRUE) { @@ -78,54 +78,54 @@ const char *QextScintillaLexerCSS::blockEnd(int *style) const // Return the string of characters that comprise a word. const char *QextScintillaLexerCSS::wordCharacters() const { - return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-"; + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPTQRSTUVWXYZ0123456789-"; } // Returns the foreground colour of the text for a style. -QColor QextScintillaLexerCSS::color(int style) const +TQColor QextScintillaLexerCSS::color(int style) const { switch (style) { case Default: - return QColor(0xff,0x00,0x80); + return TQColor(0xff,0x00,0x80); case Tag: - return QColor(0x00,0x00,0x7f); + return TQColor(0x00,0x00,0x7f); case PseudoClass: case Attribute: - return QColor(0x80,0x00,0x00); + return TQColor(0x80,0x00,0x00); case UnknownPseudoClass: case UnknownProperty: - return QColor(0xff,0x00,0x00); + return TQColor(0xff,0x00,0x00); case Operator: - return QColor(0x00,0x00,0x00); + return TQColor(0x00,0x00,0x00); case CSS1Property: - return QColor(0x00,0x40,0xe0); + return TQColor(0x00,0x40,0xe0); case Value: case DoubleQuotedString: case SingleQuotedString: - return QColor(0x7f,0x00,0x7f); + return TQColor(0x7f,0x00,0x7f); case Comment: - return QColor(0x00,0x7f,0x00); + return TQColor(0x00,0x7f,0x00); case IDSelector: - return QColor(0x00,0x7f,0x7f); + return TQColor(0x00,0x7f,0x7f); case Important: - return QColor(0xff,0x80,0x00); + return TQColor(0xff,0x80,0x00); case AtRule: - return QColor(0x7f,0x7f,0x00); + return TQColor(0x7f,0x7f,0x00); case CSS2Property: - return QColor(0x00,0xa0,0xe0); + return TQColor(0x00,0xa0,0xe0); } return QextScintillaLexer::color(style); @@ -133,15 +133,15 @@ QColor QextScintillaLexerCSS::color(int style) const // Returns the font of the text for a style. -QFont QextScintillaLexerCSS::font(int style) const +TQFont QextScintillaLexerCSS::font(int style) const { - QFont f; + TQFont f; if (style == 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 else { @@ -199,16 +199,16 @@ const char *QextScintillaLexerCSS::keywords(int set) const "border-top-style border-right-style " "border-bottom-style border-left-style border-style " "top right bottom left position z-index direction " - "unicode-bidi min-width max-width min-height " + "tqunicode-bidi min-width max-width min-height " "max-height overflow clip visibility content quotes " "counter-reset counter-increment marker-offset size " "marks page-break-before page-break-after " "page-break-inside page orphans widows font-stretch " - "font-size-adjust unicode-range units-per-em src " + "font-size-adjust tqunicode-range units-per-em src " "panose-1 stemv stemh slope cap-height x-height " "ascent descent widths bbox definition-src baseline " "centerline mathline topline text-shadow " - "caption-side table-layout border-collapse " + "caption-side table-tqlayout border-collapse " "border-spacing empty-cells speak-header cursor " "outline outline-width outline-style outline-color " "volume speak pause-before pause-after pause " @@ -222,7 +222,7 @@ const char *QextScintillaLexerCSS::keywords(int set) const // Returns the user name of a style. -QString QextScintillaLexerCSS::description(int style) const +TQString QextScintillaLexerCSS::description(int style) const { switch (style) { @@ -275,7 +275,7 @@ QString QextScintillaLexerCSS::description(int style) const return tr("Attribute"); } - return QString::null; + return TQString(); } @@ -288,7 +288,7 @@ void QextScintillaLexerCSS::refreshProperties() // Read properties from the settings. -bool QextScintillaLexerCSS::readProperties(QSettings &qs,const QString &prefix) +bool QextScintillaLexerCSS::readProperties(TQSettings &qs,const TQString &prefix) { int rc = TRUE; bool ok, flag; @@ -314,7 +314,7 @@ bool QextScintillaLexerCSS::readProperties(QSettings &qs,const QString &prefix) // Write properties to the settings. -bool QextScintillaLexerCSS::writeProperties(QSettings &qs,const QString &prefix) const +bool QextScintillaLexerCSS::writeProperties(TQSettings &qs,const TQString &prefix) const { int rc = TRUE; |