summaryrefslogtreecommitdiffstats
path: root/qt/qextscintillalexerbash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt/qextscintillalexerbash.cpp')
-rw-r--r--qt/qextscintillalexerbash.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/qt/qextscintillalexerbash.cpp b/qt/qextscintillalexerbash.cpp
index b5d172b..8edb55f 100644
--- a/qt/qextscintillalexerbash.cpp
+++ b/qt/qextscintillalexerbash.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 "qextscintillalexerbash.h"
+#include "tqextscintillalexerbash.h"
// The ctor.
-QextScintillaLexerBash::QextScintillaLexerBash(QObject *parent,
+QextScintillaLexerBash::QextScintillaLexerBash(TQObject *parent,
const char *name)
: QextScintillaLexer(parent,name), fold_comments(FALSE),
fold_compact(TRUE)
@@ -66,42 +66,42 @@ int QextScintillaLexerBash::braceStyle() const
// Return the string of characters that comprise a word.
const char *QextScintillaLexerBash::wordCharacters() const
{
- return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$@%&";
+ return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPTQRSTUVWXYZ0123456789_$@%&";
}
// Returns the foreground colour of the text for a style.
-QColor QextScintillaLexerBash::color(int style) const
+TQColor QextScintillaLexerBash::color(int style) const
{
switch (style)
{
case Default:
- return QColor(0x80,0x80,0x80);
+ return TQColor(0x80,0x80,0x80);
case Error:
case Backticks:
- return QColor(0xff,0xff,0x00);
+ return TQColor(0xff,0xff,0x00);
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 Keyword:
- return QColor(0x00,0x00,0x7f);
+ return TQColor(0x00,0x00,0x7f);
case DoubleQuotedString:
case SingleQuotedString:
case SingleQuotedHereDocument:
- return QColor(0x7f,0x00,0x7f);
+ return TQColor(0x7f,0x00,0x7f);
case Operator:
case Identifier:
case Scalar:
case ParameterExpansion:
case HereDocumentDelimiter:
- return QColor(0x00,0x00,0x00);
+ return TQColor(0x00,0x00,0x00);
}
return QextScintillaLexer::color(style);
@@ -122,17 +122,17 @@ bool QextScintillaLexerBash::eolFill(int style) const
// Returns the font of the text for a style.
-QFont QextScintillaLexerBash::font(int style) const
+TQFont QextScintillaLexerBash::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;
@@ -145,9 +145,9 @@ QFont QextScintillaLexerBash::font(int style) const
case DoubleQuotedString:
case SingleQuotedString:
#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;
@@ -195,7 +195,7 @@ const char *QextScintillaLexerBash::keywords(int set) const
// Returns the user name of a style.
-QString QextScintillaLexerBash::description(int style) const
+TQString QextScintillaLexerBash::description(int style) const
{
switch (style)
{
@@ -242,30 +242,30 @@ QString QextScintillaLexerBash::description(int style) const
return tr("Single-quoted here document");
}
- return QString::null;
+ return TQString();
}
// Returns the background colour of the text for a style.
-QColor QextScintillaLexerBash::paper(int style) const
+TQColor QextScintillaLexerBash::paper(int style) const
{
switch (style)
{
case Error:
- return QColor(0xff,0x00,0x00);
+ return TQColor(0xff,0x00,0x00);
case Scalar:
- return QColor(0xff,0xe0,0xe0);
+ return TQColor(0xff,0xe0,0xe0);
case ParameterExpansion:
- return QColor(0xff,0xff,0xe0);
+ return TQColor(0xff,0xff,0xe0);
case Backticks:
- return QColor(0xa0,0x80,0x80);
+ return TQColor(0xa0,0x80,0x80);
case HereDocumentDelimiter:
case SingleQuotedHereDocument:
- return QColor(0xdd,0xd0,0xdd);
+ return TQColor(0xdd,0xd0,0xdd);
}
return QextScintillaLexer::paper(style);
@@ -281,7 +281,7 @@ void QextScintillaLexerBash::refreshProperties()
// Read properties from the settings.
-bool QextScintillaLexerBash::readProperties(QSettings &qs,const QString &prefix)
+bool QextScintillaLexerBash::readProperties(TQSettings &qs,const TQString &prefix)
{
int rc = TRUE;
bool ok, flag;
@@ -307,7 +307,7 @@ bool QextScintillaLexerBash::readProperties(QSettings &qs,const QString &prefix)
// Write properties to the settings.
-bool QextScintillaLexerBash::writeProperties(QSettings &qs,const QString &prefix) const
+bool QextScintillaLexerBash::writeProperties(TQSettings &qs,const TQString &prefix) const
{
int rc = TRUE;