|
|
#ifndef PYTHONQTWRAPPER_QSYNTAXHIGHLIGHTER_H
|
|
|
#define PYTHONQTWRAPPER_QSYNTAXHIGHLIGHTER_H
|
|
|
|
|
|
#include <qsyntaxhighlighter.h>
|
|
|
#include <QObject>
|
|
|
|
|
|
#include <PythonQt.h>
|
|
|
|
|
|
#include <QVariant>
|
|
|
#include <qbytearray.h>
|
|
|
#include <qcolor.h>
|
|
|
#include <qcoreevent.h>
|
|
|
#include <qfont.h>
|
|
|
#include <qlist.h>
|
|
|
#include <qobject.h>
|
|
|
#include <qsyntaxhighlighter.h>
|
|
|
#include <qtextdocument.h>
|
|
|
#include <qtextedit.h>
|
|
|
#include <qtextformat.h>
|
|
|
#include <qtextobject.h>
|
|
|
|
|
|
class PythonQtShell_QSyntaxHighlighter : public QSyntaxHighlighter
|
|
|
{
|
|
|
public:
|
|
|
PythonQtShell_QSyntaxHighlighter(QObject* parent):QSyntaxHighlighter(parent),_wrapper(NULL) {};
|
|
|
PythonQtShell_QSyntaxHighlighter(QTextDocument* parent):QSyntaxHighlighter(parent),_wrapper(NULL) {};
|
|
|
PythonQtShell_QSyntaxHighlighter(QTextEdit* parent):QSyntaxHighlighter(parent),_wrapper(NULL) {};
|
|
|
|
|
|
virtual void childEvent(QChildEvent* arg__1);
|
|
|
virtual void customEvent(QEvent* arg__1);
|
|
|
virtual bool event(QEvent* arg__1);
|
|
|
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
|
|
|
virtual void highlightBlock(const QString& text);
|
|
|
virtual void timerEvent(QTimerEvent* arg__1);
|
|
|
|
|
|
PythonQtInstanceWrapper* _wrapper;
|
|
|
};
|
|
|
|
|
|
class PythonQtWrapper_QSyntaxHighlighter : public QObject
|
|
|
{ Q_OBJECT
|
|
|
public:
|
|
|
public slots:
|
|
|
QSyntaxHighlighter* new_QSyntaxHighlighter(QObject* parent);
|
|
|
QSyntaxHighlighter* new_QSyntaxHighlighter(QTextDocument* parent);
|
|
|
QSyntaxHighlighter* new_QSyntaxHighlighter(QTextEdit* parent);
|
|
|
void delete_QSyntaxHighlighter(QSyntaxHighlighter* obj) { delete obj; }
|
|
|
void setDocument(QSyntaxHighlighter* theWrappedObject, QTextDocument* doc);
|
|
|
QTextDocument* document(QSyntaxHighlighter* theWrappedObject) const;
|
|
|
};
|
|
|
|
|
|
#endif // PYTHONQTWRAPPER_QSYNTAXHIGHLIGHTER_H
|
|
|
|