summaryrefslogtreecommitdiffstats
path: root/src/editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/editor.h')
-rw-r--r--src/editor.h50
1 files changed, 26 insertions, 24 deletions
diff --git a/src/editor.h b/src/editor.h
index bb81f97..30fd43e 100644
--- a/src/editor.h
+++ b/src/editor.h
@@ -23,20 +23,21 @@
#ifndef ABAKUS_EDITOR_H
#define ABAKUS_EDITOR_H
-#include <qobject.h>
-#include <qstringlist.h>
-#include <qtextedit.h>
+#include <tqobject.h>
+#include <tqstringlist.h>
+#include <tqtextedit.h>
#include "hmath.h"
-class QEvent;
-class QKeyEvent;
-class QWidget;
+class TQEvent;
+class TQKeyEvent;
+class TQWidget;
class Evaluator;
-class Editor : public QTextEdit
+class Editor : public TQTextEdit
{
Q_OBJECT
+ TQ_OBJECT
public:
@@ -45,14 +46,14 @@ class Editor : public QTextEdit
Number, FunctionName, Variable, MatchedPar
} ColorType;
- Editor( QWidget* parent = 0, const char* name = 0 );
+ Editor( TQWidget* tqparent = 0, const char* name = 0 );
~Editor();
- QSize sizeHint() const;
- QSize xminimumSizeHint() const;
+ TQSize tqsizeHint() const;
+ TQSize xtqminimumSizeHint() const;
- QStringList history() const;
- void setHistory( const QStringList& history );
+ TQStringList history() const;
+ void setHistory( const TQStringList& history );
bool autoCompleteEnabled() const;
void setAutoCompleteEnabled( bool enable );
@@ -64,22 +65,22 @@ class Editor : public QTextEdit
void setSyntaxHighlight( bool enable );
bool isSyntaxHighlightEnabled() const;
- void setHighlightColor( ColorType type, QColor color );
- QColor highlightColor( ColorType type );
+ void setHighlightColor( ColorType type, TQColor color );
+ TQColor highlightColor( ColorType type );
public slots:
- void appendHistory( const QString& text );
+ void appendHistory( const TQString& text );
void clearHistory();
// Stop the timer from going off.
void squelchNextAutoCalc();
- void setText(const QString &txt);
+ void setText(const TQString &txt);
protected slots:
void checkAutoComplete();
void triggerAutoComplete();
- void autoComplete( const QString& item );
+ void autoComplete( const TQString& item );
void checkAutoCalc();
void autoCalc();
void checkMatching();
@@ -89,9 +90,9 @@ class Editor : public QTextEdit
void historyForward();
protected:
- void keyPressEvent( QKeyEvent* );
- void wheelEvent( QWheelEvent* );
- QString formatNumber( const Abakus::number_t &value ) const;
+ void keyPressEvent( TQKeyEvent* );
+ void wheelEvent( TQWheelEvent* );
+ TQString formatNumber( const Abakus::number_t &value ) const;
private:
class Private;
@@ -101,23 +102,24 @@ class Editor : public QTextEdit
};
-class EditorCompletion : public QObject
+class EditorCompletion : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
EditorCompletion( Editor* editor );
~EditorCompletion();
- bool eventFilter( QObject *o, QEvent *e );
+ bool eventFilter( TQObject *o, TQEvent *e );
void doneCompletion();
- void showCompletion( const QStringList &choices );
+ void showCompletion( const TQStringList &choices );
protected slots:
void moveCompletionPopup();
signals:
- void selectedCompletion( const QString& item );
+ void selectedCompletion( const TQString& item );
private:
class Private;