summaryrefslogtreecommitdiffstats
path: root/qt/qextscintillalexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt/qextscintillalexer.cpp')
-rw-r--r--qt/qextscintillalexer.cpp92
1 files changed, 46 insertions, 46 deletions
diff --git a/qt/qextscintillalexer.cpp b/qt/qextscintillalexer.cpp
index 9302180..6ecfee5 100644
--- a/qt/qextscintillalexer.cpp
+++ b/qt/qextscintillalexer.cpp
@@ -3,45 +3,45 @@
// 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 <qapplication.h>
-#include <qcolor.h>
-#include <qfont.h>
-#include <qsettings.h>
+#include <tqapplication.h>
+#include <tqcolor.h>
+#include <tqfont.h>
+#include <tqsettings.h>
-#include "qextscintillalexer.h"
-#include "qextscintilla.h"
-#include "qextscintillabase.h"
+#include "tqextscintillalexer.h"
+#include "tqextscintilla.h"
+#include "tqextscintillabase.h"
// The ctor.
-QextScintillaLexer::QextScintillaLexer(QObject *parent,const char *name)
- : QObject(parent,name), autoIndStyle(-1)
+QextScintillaLexer::QextScintillaLexer(TQObject *parent,const char *name)
+ : TQObject(parent,name), autoIndStyle(-1)
{
#if defined(Q_OS_WIN)
- defFont = QFont("Verdana",10);
+ defFont = TQFont("Verdana",10);
#else
- defFont = QFont("Bitstream Vera Sans",9);
+ defFont = TQFont("Bitstream Vera Sans",9);
#endif
// Set the default fore and background colours.
- QColorGroup cg = QApplication::palette().active();
+ TQColorGroup cg = TQApplication::palette().active();
defColor = cg.text();
defPaper = cg.base();
}
@@ -123,7 +123,7 @@ int QextScintillaLexer::defaultStyle() const
// Returns the foreground colour of the text for a style.
-QColor QextScintillaLexer::color(int) const
+TQColor QextScintillaLexer::color(int) const
{
return defaultColor();
}
@@ -137,7 +137,7 @@ bool QextScintillaLexer::eolFill(int) const
// Returns the font for a style.
-QFont QextScintillaLexer::font(int) const
+TQFont QextScintillaLexer::font(int) const
{
return defaultFont();
}
@@ -151,56 +151,56 @@ const char *QextScintillaLexer::keywords(int) const
// Returns the background colour of the text for a style.
-QColor QextScintillaLexer::paper(int) const
+TQColor QextScintillaLexer::paper(int) const
{
return defaultPaper();
}
// Returns the default font for all styles.
-QFont QextScintillaLexer::defaultFont() const
+TQFont QextScintillaLexer::defaultFont() const
{
return defFont;
}
// Sets the default font for all styles.
-void QextScintillaLexer::setDefaultFont(const QFont &f)
+void QextScintillaLexer::setDefaultFont(const TQFont &f)
{
defFont = f;
}
// Returns the default text colour for all styles.
-QColor QextScintillaLexer::defaultColor() const
+TQColor QextScintillaLexer::defaultColor() const
{
return defColor;
}
// Sets the default text colour for all styles.
-void QextScintillaLexer::setDefaultColor(const QColor &c)
+void QextScintillaLexer::setDefaultColor(const TQColor &c)
{
defColor = c;
}
// Returns the default paper colour for all styles.
-QColor QextScintillaLexer::defaultPaper() const
+TQColor QextScintillaLexer::defaultPaper() const
{
return defPaper;
}
// Sets the default paper colour for all styles.
-void QextScintillaLexer::setDefaultPaper(const QColor &c)
+void QextScintillaLexer::setDefaultPaper(const TQColor &c)
{
defPaper = c;
}
// Read properties from the settings.
-bool QextScintillaLexer::readProperties(QSettings &,const QString &)
+bool QextScintillaLexer::readProperties(TQSettings &,const TQString &)
{
return TRUE;
}
@@ -213,18 +213,18 @@ void QextScintillaLexer::refreshProperties()
// Write properties to the settings.
-bool QextScintillaLexer::writeProperties(QSettings &,const QString &) const
+bool QextScintillaLexer::writeProperties(TQSettings &,const TQString &) const
{
return TRUE;
}
// Restore the user settings.
-bool QextScintillaLexer::readSettings(QSettings &qs,const char *prefix)
+bool QextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
{
bool ok, flag, rc = TRUE;
int num;
- QString key;
+ TQString key;
// Read the styles.
for (int i = 0; i < 128; ++i)
@@ -239,7 +239,7 @@ bool QextScintillaLexer::readSettings(QSettings &qs,const char *prefix)
num = qs.readNumEntry(key + "color",0,&ok);
if (ok)
- emit colorChanged(QColor((num >> 16) & 0xff,(num >> 8) & 0xff,num & 0xff),i);
+ emit colorChanged(TQColor((num >> 16) & 0xff,(num >> 8) & 0xff,num & 0xff),i);
else
rc = FALSE;
@@ -252,13 +252,13 @@ bool QextScintillaLexer::readSettings(QSettings &qs,const char *prefix)
rc = FALSE;
// Read the font
- QStringList fdesc;
+ TQStringList fdesc;
fdesc = qs.readListEntry(key + "font",',',&ok);
if (ok && fdesc.count() == 5)
{
- QFont f;
+ TQFont f;
f.setFamily(fdesc[0]);
f.setPointSize(fdesc[1].toInt());
@@ -275,7 +275,7 @@ bool QextScintillaLexer::readSettings(QSettings &qs,const char *prefix)
num = qs.readNumEntry(key + "paper",0,&ok);
if (ok)
- emit paperChanged(QColor((num >> 16) & 0xff,(num >> 8) & 0xff,num & 0xff),i);
+ emit paperChanged(TQColor((num >> 16) & 0xff,(num >> 8) & 0xff,num & 0xff),i);
else
rc = FALSE;
}
@@ -303,10 +303,10 @@ bool QextScintillaLexer::readSettings(QSettings &qs,const char *prefix)
// Save the user settings.
-bool QextScintillaLexer::writeSettings(QSettings &qs,const char *prefix) const
+bool QextScintillaLexer::writeSettings(TQSettings &qs,const char *prefix) const
{
bool rc = TRUE;
- QString key;
+ TQString key;
// Write the styles.
for (int i = 0; i < 128; ++i)
@@ -316,7 +316,7 @@ bool QextScintillaLexer::writeSettings(QSettings &qs,const char *prefix) const
continue;
int num;
- QColor c;
+ TQColor c;
key.sprintf("%s/%s/style%d/",prefix,language(),i);
@@ -332,19 +332,19 @@ bool QextScintillaLexer::writeSettings(QSettings &qs,const char *prefix) const
rc = FALSE;
// Write the font
- QStringList fdesc;
- QString fmt("%1");
- QFont f;
+ TQStringList fdesc;
+ TQString fmt("%1");
+ TQFont f;
f = font(i);
fdesc += f.family();
- fdesc += fmt.arg(f.pointSize());
+ fdesc += fmt.tqarg(f.pointSize());
// The casts are for Borland.
- fdesc += fmt.arg((int)f.bold());
- fdesc += fmt.arg((int)f.italic());
- fdesc += fmt.arg((int)f.underline());
+ fdesc += fmt.tqarg((int)f.bold());
+ fdesc += fmt.tqarg((int)f.italic());
+ fdesc += fmt.tqarg((int)f.underline());
if (!qs.writeEntry(key + "font",fdesc,','))
rc = FALSE;
@@ -393,7 +393,7 @@ void QextScintillaLexer::setAutoIndentStyle(int autoindentstyle)
// Set the foreground colour for a style.
-void QextScintillaLexer::setColor(const QColor &c,int style)
+void QextScintillaLexer::setColor(const TQColor &c,int style)
{
if (style >= 0)
emit colorChanged(c,style);
@@ -417,7 +417,7 @@ void QextScintillaLexer::setEolFill(bool eolfill,int style)
// Set the font for a style.
-void QextScintillaLexer::setFont(const QFont &f,int style)
+void QextScintillaLexer::setFont(const TQFont &f,int style)
{
if (style >= 0)
emit fontChanged(f,style);
@@ -429,7 +429,7 @@ void QextScintillaLexer::setFont(const QFont &f,int style)
// Set the background colour for a style.
-void QextScintillaLexer::setPaper(const QColor &c,int style)
+void QextScintillaLexer::setPaper(const TQColor &c,int style)
{
if (style >= 0)
emit paperChanged(c,style);