PythonQtWrapper_QPlainTextEdit.h
217 lines
| 12.2 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QPLAINTEXTEDIT_H | ||
#define PYTHONQTWRAPPER_QPLAINTEXTEDIT_H | ||||
#include <qplaintextedit.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QAbstractTextDocumentLayout> | ||
#include <QTextEdit> | ||||
#include <QVariant> | ||||
#include <qaction.h> | ||||
#include <qbitmap.h> | ||||
#include <qbytearray.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 <qplaintextedit.h> | ||||
#include <qpoint.h> | ||||
#include <qprinter.h> | ||||
#include <qrect.h> | ||||
#include <qregion.h> | ||||
#include <qscrollbar.h> | ||||
#include <qsize.h> | ||||
#include <qsizepolicy.h> | ||||
#include <qstyle.h> | ||||
#include <qtextcursor.h> | ||||
#include <qtextdocument.h> | ||||
#include <qtextformat.h> | ||||
#include <qtextobject.h> | ||||
#include <qurl.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QPlainTextEdit : public QPlainTextEdit | ||
{ | ||||
public: | ||||
PythonQtShell_QPlainTextEdit(QWidget* parent = 0):QPlainTextEdit(parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QPlainTextEdit(const QString& text, QWidget* parent = 0):QPlainTextEdit(text, parent),_wrapper(NULL) {}; | ||||
virtual void actionEvent(QActionEvent* arg__1); | ||||
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* e); | ||||
virtual int heightForWidth(int arg__1) const; | ||||
virtual void hideEvent(QHideEvent* arg__1); | ||||
virtual void inputMethodEvent(QInputMethodEvent* arg__1); | ||||
virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; | ||||
virtual void insertFromMimeData(const QMimeData* source); | ||||
virtual void keyPressEvent(QKeyEvent* e); | ||||
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* e); | ||||
virtual void mousePressEvent(QMouseEvent* e); | ||||
virtual void mouseReleaseEvent(QMouseEvent* e); | ||||
virtual void moveEvent(QMoveEvent* arg__1); | ||||
virtual QPaintEngine* paintEngine() const; | ||||
virtual void paintEvent(QPaintEvent* e); | ||||
virtual void resizeEvent(QResizeEvent* e); | ||||
virtual void scrollContentsBy(int dx, int dy); | ||||
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_QPlainTextEdit : public QPlainTextEdit | ||||
{ public: | ||||
florianlink
|
r28 | inline QMimeData* promoted_createMimeDataFromSelection() const { return QPlainTextEdit::createMimeDataFromSelection(); } | ||
inline bool promoted_focusNextPrevChild(bool next) { return QPlainTextEdit::focusNextPrevChild(next); } | ||||
florianlink
|
r73 | inline void promoted_focusOutEvent(QFocusEvent* e) { QPlainTextEdit::focusOutEvent(e); } | ||
inline void promoted_timerEvent(QTimerEvent* e) { QPlainTextEdit::timerEvent(e); } | ||||
florianlink
|
r28 | inline void promoted_mouseMoveEvent(QMouseEvent* e) { QPlainTextEdit::mouseMoveEvent(e); } | ||
florianlink
|
r73 | inline void promoted_wheelEvent(QWheelEvent* e) { QPlainTextEdit::wheelEvent(e); } | ||
inline bool promoted_event(QEvent* e) { return QPlainTextEdit::event(e); } | ||||
inline void promoted_dragLeaveEvent(QDragLeaveEvent* e) { QPlainTextEdit::dragLeaveEvent(e); } | ||||
florianlink
|
r28 | inline void promoted_scrollContentsBy(int dx, int dy) { QPlainTextEdit::scrollContentsBy(dx, dy); } | ||
florianlink
|
r73 | inline void promoted_resizeEvent(QResizeEvent* e) { QPlainTextEdit::resizeEvent(e); } | ||
florianlink
|
r28 | inline void promoted_insertFromMimeData(const QMimeData* source) { QPlainTextEdit::insertFromMimeData(source); } | ||
inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QPlainTextEdit::mouseReleaseEvent(e); } | ||||
florianlink
|
r73 | inline void promoted_mouseDoubleClickEvent(QMouseEvent* e) { QPlainTextEdit::mouseDoubleClickEvent(e); } | ||
florianlink
|
r28 | inline void promoted_mousePressEvent(QMouseEvent* e) { QPlainTextEdit::mousePressEvent(e); } | ||
inline void promoted_keyPressEvent(QKeyEvent* e) { QPlainTextEdit::keyPressEvent(e); } | ||||
florianlink
|
r73 | inline void promoted_inputMethodEvent(QInputMethodEvent* arg__1) { QPlainTextEdit::inputMethodEvent(arg__1); } | ||
inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery property) const { return QPlainTextEdit::inputMethodQuery(property); } | ||||
inline void promoted_keyReleaseEvent(QKeyEvent* e) { QPlainTextEdit::keyReleaseEvent(e); } | ||||
inline void promoted_contextMenuEvent(QContextMenuEvent* e) { QPlainTextEdit::contextMenuEvent(e); } | ||||
inline void promoted_changeEvent(QEvent* e) { QPlainTextEdit::changeEvent(e); } | ||||
florianlink
|
r28 | inline bool promoted_canInsertFromMimeData(const QMimeData* source) const { return QPlainTextEdit::canInsertFromMimeData(source); } | ||
florianlink
|
r73 | inline void promoted_dragEnterEvent(QDragEnterEvent* e) { QPlainTextEdit::dragEnterEvent(e); } | ||
inline void promoted_showEvent(QShowEvent* arg__1) { QPlainTextEdit::showEvent(arg__1); } | ||||
inline QVariant promoted_loadResource(int type, const QUrl& name) { return QPlainTextEdit::loadResource(type, name); } | ||||
florianlink
|
r28 | inline void promoted_paintEvent(QPaintEvent* e) { QPlainTextEdit::paintEvent(e); } | ||
florianlink
|
r73 | inline void promoted_dropEvent(QDropEvent* e) { QPlainTextEdit::dropEvent(e); } | ||
inline void promoted_focusInEvent(QFocusEvent* e) { QPlainTextEdit::focusInEvent(e); } | ||||
inline void promoted_dragMoveEvent(QDragMoveEvent* e) { QPlainTextEdit::dragMoveEvent(e); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QPlainTextEdit : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QPlainTextEdit* new_QPlainTextEdit(QWidget* parent = 0); | ||||
QPlainTextEdit* new_QPlainTextEdit(const QString& text, QWidget* parent = 0); | ||||
void delete_QPlainTextEdit(QPlainTextEdit* obj) { delete obj; } | ||||
florianlink
|
r24 | int blockCount(QPlainTextEdit* theWrappedObject) const; | ||
florianlink
|
r73 | QTextCursor cursorForPosition(QPlainTextEdit* theWrappedObject, const QPoint& pos) const; | ||
QTextCharFormat currentCharFormat(QPlainTextEdit* theWrappedObject) const; | ||||
florianlink
|
r24 | QMimeData* createMimeDataFromSelection(QPlainTextEdit* theWrappedObject) const; | ||
QList<QTextEdit::ExtraSelection > extraSelections(QPlainTextEdit* theWrappedObject) const; | ||||
florianlink
|
r28 | bool overwriteMode(QPlainTextEdit* theWrappedObject) const; | ||
florianlink
|
r73 | void setMaximumBlockCount(QPlainTextEdit* theWrappedObject, int maximum); | ||
int tabStopWidth(QPlainTextEdit* theWrappedObject) const; | ||||
florianlink
|
r28 | bool focusNextPrevChild(QPlainTextEdit* theWrappedObject, bool next); | ||
florianlink
|
r73 | bool tabChangesFocus(QPlainTextEdit* theWrappedObject) const; | ||
QMenu* createStandardContextMenu(QPlainTextEdit* theWrappedObject); | ||||
void focusOutEvent(QPlainTextEdit* theWrappedObject, QFocusEvent* e); | ||||
void setCursorWidth(QPlainTextEdit* theWrappedObject, int width); | ||||
void setBackgroundVisible(QPlainTextEdit* theWrappedObject, bool visible); | ||||
void timerEvent(QPlainTextEdit* theWrappedObject, QTimerEvent* e); | ||||
void mouseMoveEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e); | ||||
bool centerOnScroll(QPlainTextEdit* theWrappedObject) const; | ||||
florianlink
|
r24 | void wheelEvent(QPlainTextEdit* theWrappedObject, QWheelEvent* e); | ||
florianlink
|
r73 | bool event(QPlainTextEdit* theWrappedObject, QEvent* e); | ||
bool canPaste(QPlainTextEdit* theWrappedObject) const; | ||||
void setTabStopWidth(QPlainTextEdit* theWrappedObject, int width); | ||||
void dragLeaveEvent(QPlainTextEdit* theWrappedObject, QDragLeaveEvent* e); | ||||
QTextDocument* document(QPlainTextEdit* theWrappedObject) const; | ||||
bool isReadOnly(QPlainTextEdit* theWrappedObject) const; | ||||
void setTabChangesFocus(QPlainTextEdit* theWrappedObject, bool b); | ||||
void scrollContentsBy(QPlainTextEdit* theWrappedObject, int dx, int dy); | ||||
void resizeEvent(QPlainTextEdit* theWrappedObject, QResizeEvent* e); | ||||
florianlink
|
r24 | QPlainTextEdit::LineWrapMode lineWrapMode(QPlainTextEdit* theWrappedObject) const; | ||
florianlink
|
r73 | void setDocumentTitle(QPlainTextEdit* theWrappedObject, const QString& title); | ||
florianlink
|
r24 | bool backgroundVisible(QPlainTextEdit* theWrappedObject) const; | ||
void setUndoRedoEnabled(QPlainTextEdit* theWrappedObject, bool enable); | ||||
florianlink
|
r13 | void setDocument(QPlainTextEdit* theWrappedObject, QTextDocument* document); | ||
florianlink
|
r24 | int cursorWidth(QPlainTextEdit* theWrappedObject) const; | ||
florianlink
|
r73 | void setCurrentCharFormat(QPlainTextEdit* theWrappedObject, const QTextCharFormat& format); | ||
florianlink
|
r13 | void setOverwriteMode(QPlainTextEdit* theWrappedObject, bool overwrite); | ||
florianlink
|
r73 | QString documentTitle(QPlainTextEdit* theWrappedObject) const; | ||
florianlink
|
r24 | int maximumBlockCount(QPlainTextEdit* theWrappedObject) const; | ||
florianlink
|
r28 | void insertFromMimeData(QPlainTextEdit* theWrappedObject, const QMimeData* source); | ||
florianlink
|
r24 | void setTextCursor(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor); | ||
void mouseReleaseEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e); | ||||
florianlink
|
r73 | void mouseDoubleClickEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e); | ||
void setTextInteractionFlags(QPlainTextEdit* theWrappedObject, Qt::TextInteractionFlags flags); | ||||
florianlink
|
r24 | void moveCursor(QPlainTextEdit* theWrappedObject, QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor); | ||
QRect cursorRect(QPlainTextEdit* theWrappedObject) const; | ||||
void mousePressEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e); | ||||
void setExtraSelections(QPlainTextEdit* theWrappedObject, const QList<QTextEdit::ExtraSelection >& selections); | ||||
void ensureCursorVisible(QPlainTextEdit* theWrappedObject); | ||||
void keyPressEvent(QPlainTextEdit* theWrappedObject, QKeyEvent* e); | ||||
florianlink
|
r73 | void setCenterOnScroll(QPlainTextEdit* theWrappedObject, bool enabled); | ||
QString toPlainText(QPlainTextEdit* theWrappedObject) const; | ||||
void inputMethodEvent(QPlainTextEdit* theWrappedObject, QInputMethodEvent* arg__1); | ||||
florianlink
|
r24 | QRect cursorRect(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor) const; | ||
florianlink
|
r73 | QVariant inputMethodQuery(QPlainTextEdit* theWrappedObject, Qt::InputMethodQuery property) const; | ||
void keyReleaseEvent(QPlainTextEdit* theWrappedObject, QKeyEvent* e); | ||||
QTextCursor textCursor(QPlainTextEdit* theWrappedObject) const; | ||||
void contextMenuEvent(QPlainTextEdit* theWrappedObject, QContextMenuEvent* e); | ||||
bool isUndoRedoEnabled(QPlainTextEdit* theWrappedObject) const; | ||||
void print(QPlainTextEdit* theWrappedObject, QPrinter* printer) const; | ||||
void changeEvent(QPlainTextEdit* theWrappedObject, QEvent* e); | ||||
florianlink
|
r24 | bool canInsertFromMimeData(QPlainTextEdit* theWrappedObject, const QMimeData* source) const; | ||
florianlink
|
r73 | void dragEnterEvent(QPlainTextEdit* theWrappedObject, QDragEnterEvent* e); | ||
bool find(QPlainTextEdit* theWrappedObject, const QString& exp, QTextDocument::FindFlags options = 0); | ||||
florianlink
|
r24 | QTextOption::WrapMode wordWrapMode(QPlainTextEdit* theWrappedObject) const; | ||
florianlink
|
r73 | void showEvent(QPlainTextEdit* theWrappedObject, QShowEvent* arg__1); | ||
QVariant loadResource(QPlainTextEdit* theWrappedObject, int type, const QUrl& name); | ||||
florianlink
|
r24 | void paintEvent(QPlainTextEdit* theWrappedObject, QPaintEvent* e); | ||
florianlink
|
r28 | void setLineWrapMode(QPlainTextEdit* theWrappedObject, QPlainTextEdit::LineWrapMode mode); | ||
florianlink
|
r24 | void setReadOnly(QPlainTextEdit* theWrappedObject, bool ro); | ||
florianlink
|
r73 | void dropEvent(QPlainTextEdit* theWrappedObject, QDropEvent* e); | ||
void setWordWrapMode(QPlainTextEdit* theWrappedObject, QTextOption::WrapMode policy); | ||||
void focusInEvent(QPlainTextEdit* theWrappedObject, QFocusEvent* e); | ||||
void mergeCurrentCharFormat(QPlainTextEdit* theWrappedObject, const QTextCharFormat& modifier); | ||||
void dragMoveEvent(QPlainTextEdit* theWrappedObject, QDragMoveEvent* e); | ||||
Qt::TextInteractionFlags textInteractionFlags(QPlainTextEdit* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QPLAINTEXTEDIT_H | ||||