#ifndef PYTHONQTWRAPPER_QPLAINTEXTEDIT_H #define PYTHONQTWRAPPER_QPLAINTEXTEDIT_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include 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; } bool backgroundVisible(QPlainTextEdit* theWrappedObject) const; int blockCount(QPlainTextEdit* theWrappedObject) const; bool canPaste(QPlainTextEdit* theWrappedObject) const; bool centerOnScroll(QPlainTextEdit* theWrappedObject) const; QMenu* createStandardContextMenu(QPlainTextEdit* theWrappedObject); QTextCharFormat currentCharFormat(QPlainTextEdit* theWrappedObject) const; QTextCursor cursorForPosition(QPlainTextEdit* theWrappedObject, const QPoint& pos) const; QRect cursorRect(QPlainTextEdit* theWrappedObject) const; QRect cursorRect(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor) const; int cursorWidth(QPlainTextEdit* theWrappedObject) const; QTextDocument* document(QPlainTextEdit* theWrappedObject) const; QString documentTitle(QPlainTextEdit* theWrappedObject) const; void ensureCursorVisible(QPlainTextEdit* theWrappedObject); QList extraSelections(QPlainTextEdit* theWrappedObject) const; bool find(QPlainTextEdit* theWrappedObject, const QString& exp, QTextDocument::FindFlags options = 0); bool isReadOnly(QPlainTextEdit* theWrappedObject) const; bool isUndoRedoEnabled(QPlainTextEdit* theWrappedObject) const; QPlainTextEdit::LineWrapMode lineWrapMode(QPlainTextEdit* theWrappedObject) const; QVariant loadResource(QPlainTextEdit* theWrappedObject, int type, const QUrl& name); int maximumBlockCount(QPlainTextEdit* theWrappedObject) const; void mergeCurrentCharFormat(QPlainTextEdit* theWrappedObject, const QTextCharFormat& modifier); void moveCursor(QPlainTextEdit* theWrappedObject, QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor); bool overwriteMode(QPlainTextEdit* theWrappedObject) const; void print(QPlainTextEdit* theWrappedObject, QPrinter* printer) const; void setBackgroundVisible(QPlainTextEdit* theWrappedObject, bool visible); void setCenterOnScroll(QPlainTextEdit* theWrappedObject, bool enabled); void setCurrentCharFormat(QPlainTextEdit* theWrappedObject, const QTextCharFormat& format); void setCursorWidth(QPlainTextEdit* theWrappedObject, int width); void setDocument(QPlainTextEdit* theWrappedObject, QTextDocument* document); void setDocumentTitle(QPlainTextEdit* theWrappedObject, const QString& title); void setExtraSelections(QPlainTextEdit* theWrappedObject, const QList& selections); void setLineWrapMode(QPlainTextEdit* theWrappedObject, QPlainTextEdit::LineWrapMode mode); void setMaximumBlockCount(QPlainTextEdit* theWrappedObject, int maximum); void setOverwriteMode(QPlainTextEdit* theWrappedObject, bool overwrite); void setReadOnly(QPlainTextEdit* theWrappedObject, bool ro); void setTabChangesFocus(QPlainTextEdit* theWrappedObject, bool b); void setTabStopWidth(QPlainTextEdit* theWrappedObject, int width); void setTextCursor(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor); void setTextInteractionFlags(QPlainTextEdit* theWrappedObject, Qt::TextInteractionFlags flags); void setUndoRedoEnabled(QPlainTextEdit* theWrappedObject, bool enable); void setWordWrapMode(QPlainTextEdit* theWrappedObject, QTextOption::WrapMode policy); bool tabChangesFocus(QPlainTextEdit* theWrappedObject) const; int tabStopWidth(QPlainTextEdit* theWrappedObject) const; QTextCursor textCursor(QPlainTextEdit* theWrappedObject) const; Qt::TextInteractionFlags textInteractionFlags(QPlainTextEdit* theWrappedObject) const; QString toPlainText(QPlainTextEdit* theWrappedObject) const; QTextOption::WrapMode wordWrapMode(QPlainTextEdit* theWrappedObject) const; }; #endif // PYTHONQTWRAPPER_QPLAINTEXTEDIT_H