summaryrefslogtreecommitdiffstats
path: root/qt/qextscintillalexer.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-30 12:33:18 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-30 12:33:18 -0600
commit03bc485016127d419bbbbc3cfb09e21e8754b383 (patch)
treecad8234bcf26063239ac7a565298b897ffdeef57 /qt/qextscintillalexer.h
parent664e37abfe5c796c1279b8295fb030f126b0a7d8 (diff)
downloadtqscintilla-03bc485016127d419bbbbc3cfb09e21e8754b383.tar.gz
tqscintilla-03bc485016127d419bbbbc3cfb09e21e8754b383.zip
Initial automated TQt conversion
Diffstat (limited to 'qt/qextscintillalexer.h')
-rw-r--r--qt/qextscintillalexer.h79
1 files changed, 40 insertions, 39 deletions
diff --git a/qt/qextscintillalexer.h b/qt/qextscintillalexer.h
index 2c4aad6..9e46fdb 100644
--- a/qt/qextscintillalexer.h
+++ b/qt/qextscintillalexer.h
@@ -3,36 +3,36 @@
// 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.
-#ifndef QEXTSCINTILLALEXER_H
-#define QEXTSCINTILLALEXER_H
+#ifndef TQEXTSCINTILLALEXER_H
+#define TQEXTSCINTILLALEXER_H
-#include <qobject.h>
-#include <qstring.h>
-#include <qcolor.h>
-#include <qfont.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqcolor.h>
+#include <tqfont.h>
-#include <qextscintillaglobal.h>
+#include <tqextscintillaglobal.h>
-class QSettings;
+class TQSettings;
//! \brief The QextScintillaLexer class is an abstract class used as a base for
@@ -52,14 +52,15 @@ class QSettings;
//!
//! QextScintillaLexer provides convenience methods for saving and restoring
//! user preferences for fonts and colours.
-class QEXTSCINTILLA_EXPORT QextScintillaLexer : public QObject
+class TQEXTSCINTILLA_EXPORT QextScintillaLexer : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
//! Construct a QextScintillaLexer with parent \a parent and name
//! \a name. \a parent is typically the QextScintilla instance.
- QextScintillaLexer(QObject *parent = 0,const char *name = 0);
+ QextScintillaLexer(TQObject *parent = 0,const char *name = 0);
//! Destroys the QextScintillaLexer instance.
virtual ~QextScintillaLexer();
@@ -118,7 +119,7 @@ public:
//! \a style. The default colour is black.
//!
//! \sa paper()
- virtual QColor color(int style) const;
+ virtual TQColor color(int style) const;
//! Returns the end-of-line for style number \a style. The default is
//! FALSE.
@@ -128,7 +129,7 @@ public:
//! that returned by defaultFont().
//!
//! \sa defaultFont()
- virtual QFont font(int style) const;
+ virtual TQFont font(int style) const;
//! Returns the set of keywords for the keyword set \a set recognised
//! by the lexer as a space separated string. 0 is returned if there
@@ -141,30 +142,30 @@ public:
virtual int defaultStyle() const;
//! Returns the descriptive name for style number \a style. If the
- //! style is invalid for this language then QString::null is returned.
+ //! style is invalid for this language then TQString() is returned.
//! This is intended to be used in user preference dialogs.
- virtual QString description(int style) const = 0;
+ virtual TQString description(int style) const = 0;
//! Returns the background colour of the text for style number
//! \a style.
//!
//! \sa defaultPaper(), color()
- virtual QColor paper(int style) const;
+ virtual TQColor paper(int style) const;
//! Returns the default font for all styles.
//!
//! \sa setDefaultFont()
- virtual QFont defaultFont() const;
+ virtual TQFont defaultFont() const;
//! Returns the default text colour for all styles.
//!
//! \sa setDefaultColor()
- virtual QColor defaultColor() const;
+ virtual TQColor defaultColor() const;
//! Returns the default paper colour for all styles.
//!
//! \sa setDefaultPaper()
- virtual QColor defaultPaper() const;
+ virtual TQColor defaultPaper() const;
//! Causes all properties to be refreshed by emitting the
//! propertyChanged() signal as required.
@@ -176,7 +177,7 @@ public:
//! if there was no error.
//!
//! \sa writeSettings(), QextScintilla::setLexer()
- bool readSettings(QSettings &qs,const char *prefix = "/Scintilla");
+ bool readSettings(TQSettings &qs,const char *prefix = "/Scintilla");
//! The colour, paper, font and end-of-line for each style number, and
//! all lexer specific properties are written to the settings \a qs.
@@ -184,7 +185,7 @@ public:
//! if there was no error.
//!
//! \sa readSettings()
- bool writeSettings(QSettings &qs,
+ bool writeSettings(TQSettings &qs,
const char *prefix = "/Scintilla") const;
public slots:
@@ -196,22 +197,22 @@ public slots:
//! The foreground colour for style number \a style is set to \a c. If
//! \a style is -1 then the colour is set for all styles.
- virtual void setColor(const QColor &c,int style = -1);
+ virtual void setColor(const TQColor &c,int style = -1);
//! The default font for all styles is set to \a f.
//!
//! \sa defaultFont()
- virtual void setDefaultFont(const QFont &f);
+ virtual void setDefaultFont(const TQFont &f);
//! The default text colour for all styles is set to \a c.
//!
//! \sa defaultColor(), color()
- virtual void setDefaultColor(const QColor &c);
+ virtual void setDefaultColor(const TQColor &c);
//! The default paper colour for all styles is set to \a c.
//!
//! \sa defaultPaper(), paper()
- virtual void setDefaultPaper(const QColor &c);
+ virtual void setDefaultPaper(const TQColor &c);
//! The end-of-line fill for style number \a style is set to
//! \a eoffill. If \a style is -1 then the fill is set for all styles.
@@ -219,16 +220,16 @@ public slots:
//! The font for style number \a style is set to \a f. If \a style is
//! -1 then the font is set for all styles.
- virtual void setFont(const QFont &f,int style = -1);
+ virtual void setFont(const TQFont &f,int style = -1);
//! The background colour for style number \a style is set to \a c. If
//! \a style is -1 then the colour is set for all styles.
- virtual void setPaper(const QColor &c,int style = -1);
+ virtual void setPaper(const TQColor &c,int style = -1);
signals:
//! This signal is emitted when the foreground colour of style number
//! \a style has changed. The new colour is \a c.
- void colorChanged(const QColor &c,int style);
+ void colorChanged(const TQColor &c,int style);
//! This signal is emitted when the end-of-file fill of style number
//! \a style has changed. The new fill is \a eoffilled.
@@ -236,11 +237,11 @@ signals:
//! This signal is emitted when the font of style number \a style has
//! changed. The new font is \a f.
- void fontChanged(const QFont &f,int style);
+ void fontChanged(const TQFont &f,int style);
//! This signal is emitted when the background colour of style number
//! \a style has changed. The new colour is \a c.
- void paperChanged(const QColor &c,int style);
+ void paperChanged(const TQColor &c,int style);
//! This signal is emitted when the value of the lexer property \a prop
//! needs to be changed. The new value is \a val.
@@ -251,21 +252,21 @@ protected:
//! (which has a trailing '/') should be used as a prefix to the key of
//! each setting. TRUE is returned if there is no error.
//!
- virtual bool readProperties(QSettings &qs,const QString &prefix);
+ virtual bool readProperties(TQSettings &qs,const TQString &prefix);
//! The lexer's properties are written to the settings \a qs.
//! \a prefix (which has a trailing '/') should be used as a prefix to
//! the key of each setting. TRUE is returned if there is no error.
//!
- virtual bool writeProperties(QSettings &qs,const QString &prefix) const;
+ virtual bool writeProperties(TQSettings &qs,const TQString &prefix) const;
private:
int autoIndStyle;
- QFont defFont;
- QColor defColor;
- QColor defPaper;
+ TQFont defFont;
+ TQColor defColor;
+ TQColor defPaper;
-#if defined(Q_DISABLE_COPY)
+#if defined(TQ_DISABLE_COPY)
QextScintillaLexer(const QextScintillaLexer &);
QextScintillaLexer &operator=(const QextScintillaLexer &);
#endif