PythonQtWrapper_QTextBrowser.h
155 lines
| 6.4 KiB
| text/x-c
|
CLexer
|
r13 | #ifndef PYTHONQTWRAPPER_QTEXTBROWSER_H | ||
#define PYTHONQTWRAPPER_QTEXTBROWSER_H | ||||
#include <qtextbrowser.h> | ||||
#include <QObject> | ||||
|
r24 | #include <PythonQt.h> | ||
|
r13 | #include <QTextEdit> | ||
#include <QVariant> | ||||
#include <qaction.h> | ||||
#include <qbitmap.h> | ||||
#include <qbytearray.h> | ||||
#include <qcolor.h> | ||||
#include <qcoreevent.h> | ||||
#include <qcursor.h> | ||||
#include <qevent.h> | ||||
#include <qfont.h> | ||||
#include <qicon.h> | ||||
#include <qinputcontext.h> | ||||
#include <qkeysequence.h> | ||||
#include <qlayout.h> | ||||
#include <qlist.h> | ||||
#include <qlocale.h> | ||||
#include <qmenu.h> | ||||
#include <qmimedata.h> | ||||
#include <qobject.h> | ||||
#include <qpaintdevice.h> | ||||
#include <qpaintengine.h> | ||||
#include <qpainter.h> | ||||
#include <qpalette.h> | ||||
#include <qpoint.h> | ||||
#include <qprinter.h> | ||||
#include <qrect.h> | ||||
#include <qregion.h> | ||||
#include <qscrollbar.h> | ||||
#include <qsize.h> | ||||
#include <qsizepolicy.h> | ||||
#include <qstringlist.h> | ||||
#include <qstyle.h> | ||||
#include <qtextbrowser.h> | ||||
#include <qtextcursor.h> | ||||
#include <qtextdocument.h> | ||||
#include <qtextformat.h> | ||||
#include <qurl.h> | ||||
#include <qwidget.h> | ||||
|
r24 | class PythonQtShell_QTextBrowser : public QTextBrowser | ||
{ | ||||
public: | ||||
PythonQtShell_QTextBrowser(QWidget* parent = 0):QTextBrowser(parent),_wrapper(NULL) {}; | ||||
virtual void actionEvent(QActionEvent* arg__1); | ||||
virtual void backward(); | ||||
virtual bool canInsertFromMimeData(const QMimeData* source) const; | ||||
virtual void changeEvent(QEvent* e); | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void closeEvent(QCloseEvent* arg__1); | ||||
virtual void contextMenuEvent(QContextMenuEvent* e); | ||||
virtual QMimeData* createMimeDataFromSelection() const; | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual int devType() const; | ||||
virtual void dragEnterEvent(QDragEnterEvent* e); | ||||
virtual void dragLeaveEvent(QDragLeaveEvent* e); | ||||
virtual void dragMoveEvent(QDragMoveEvent* e); | ||||
virtual void dropEvent(QDropEvent* e); | ||||
virtual void enterEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* e); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void focusInEvent(QFocusEvent* e); | ||||
virtual bool focusNextPrevChild(bool next); | ||||
virtual void focusOutEvent(QFocusEvent* ev); | ||||
virtual void forward(); | ||||
virtual int heightForWidth(int arg__1) const; | ||||
virtual void hideEvent(QHideEvent* arg__1); | ||||
virtual void home(); | ||||
virtual void inputMethodEvent(QInputMethodEvent* arg__1); | ||||
virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; | ||||
virtual void insertFromMimeData(const QMimeData* source); | ||||
virtual void keyPressEvent(QKeyEvent* ev); | ||||
virtual void keyReleaseEvent(QKeyEvent* e); | ||||
virtual void languageChange(); | ||||
virtual void leaveEvent(QEvent* arg__1); | ||||
virtual QVariant loadResource(int type, const QUrl& name); | ||||
virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; | ||||
virtual void mouseDoubleClickEvent(QMouseEvent* e); | ||||
virtual void mouseMoveEvent(QMouseEvent* ev); | ||||
virtual void mousePressEvent(QMouseEvent* ev); | ||||
virtual void mouseReleaseEvent(QMouseEvent* ev); | ||||
virtual void moveEvent(QMoveEvent* arg__1); | ||||
virtual QPaintEngine* paintEngine() const; | ||||
virtual void paintEvent(QPaintEvent* e); | ||||
virtual void reload(); | ||||
virtual void resizeEvent(QResizeEvent* e); | ||||
virtual void scrollContentsBy(int dx, int dy); | ||||
virtual void setSource(const QUrl& name); | ||||
virtual void showEvent(QShowEvent* arg__1); | ||||
virtual void tabletEvent(QTabletEvent* arg__1); | ||||
virtual void timerEvent(QTimerEvent* e); | ||||
virtual bool viewportEvent(QEvent* arg__1); | ||||
virtual void wheelEvent(QWheelEvent* e); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QTextBrowser : public QTextBrowser | ||||
{ public: | ||||
|
r28 | inline void promoted_forward() { QTextBrowser::forward(); } | ||
inline void promoted_mousePressEvent(QMouseEvent* ev) { QTextBrowser::mousePressEvent(ev); } | ||||
inline void promoted_paintEvent(QPaintEvent* e) { QTextBrowser::paintEvent(e); } | ||||
inline bool promoted_focusNextPrevChild(bool next) { return QTextBrowser::focusNextPrevChild(next); } | ||||
inline void promoted_setSource(const QUrl& name) { QTextBrowser::setSource(name); } | ||||
inline void promoted_mouseReleaseEvent(QMouseEvent* ev) { QTextBrowser::mouseReleaseEvent(ev); } | ||||
|
r73 | inline void promoted_home() { QTextBrowser::home(); } | ||
inline void promoted_reload() { QTextBrowser::reload(); } | ||||
|
r28 | inline void promoted_backward() { QTextBrowser::backward(); } | ||
|
r73 | inline void promoted_focusOutEvent(QFocusEvent* ev) { QTextBrowser::focusOutEvent(ev); } | ||
|
r28 | inline QVariant promoted_loadResource(int type, const QUrl& name) { return QTextBrowser::loadResource(type, name); } | ||
|
r73 | inline void promoted_mouseMoveEvent(QMouseEvent* ev) { QTextBrowser::mouseMoveEvent(ev); } | ||
|
r28 | inline bool promoted_event(QEvent* e) { return QTextBrowser::event(e); } | ||
inline void promoted_keyPressEvent(QKeyEvent* ev) { QTextBrowser::keyPressEvent(ev); } | ||||
|
r24 | }; | ||
|
r13 | class PythonQtWrapper_QTextBrowser : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QTextBrowser* new_QTextBrowser(QWidget* parent = 0); | ||||
void delete_QTextBrowser(QTextBrowser* obj) { delete obj; } | ||||
|
r73 | bool isBackwardAvailable(QTextBrowser* theWrappedObject) const; | ||
bool openLinks(QTextBrowser* theWrappedObject) const; | ||||
|
r13 | QString historyTitle(QTextBrowser* theWrappedObject, int arg__1) const; | ||
|
r73 | QUrl historyUrl(QTextBrowser* theWrappedObject, int arg__1) const; | ||
bool openExternalLinks(QTextBrowser* theWrappedObject) const; | ||||
|
r24 | void mousePressEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev); | ||
void paintEvent(QTextBrowser* theWrappedObject, QPaintEvent* e); | ||||
|
r73 | void setOpenExternalLinks(QTextBrowser* theWrappedObject, bool open); | ||
|
r24 | bool isForwardAvailable(QTextBrowser* theWrappedObject) const; | ||
bool focusNextPrevChild(QTextBrowser* theWrappedObject, bool next); | ||||
|
r13 | void setOpenLinks(QTextBrowser* theWrappedObject, bool open); | ||
|
r24 | void mouseReleaseEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev); | ||
|
r73 | int backwardHistoryCount(QTextBrowser* theWrappedObject) const; | ||
QUrl source(QTextBrowser* theWrappedObject) const; | ||||
void clearHistory(QTextBrowser* theWrappedObject); | ||||
|
r24 | void setSearchPaths(QTextBrowser* theWrappedObject, const QStringList& paths); | ||
|
r73 | void focusOutEvent(QTextBrowser* theWrappedObject, QFocusEvent* ev); | ||
|
r28 | QVariant loadResource(QTextBrowser* theWrappedObject, int type, const QUrl& name); | ||
QStringList searchPaths(QTextBrowser* theWrappedObject) const; | ||||
|
r73 | void mouseMoveEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev); | ||
int forwardHistoryCount(QTextBrowser* theWrappedObject) const; | ||||
|
r24 | bool event(QTextBrowser* theWrappedObject, QEvent* e); | ||
void keyPressEvent(QTextBrowser* theWrappedObject, QKeyEvent* ev); | ||||
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QTEXTBROWSER_H | ||||