|
|
#ifndef PYTHONQTWRAPPER_QPLAINTEXTEDIT_H
|
|
|
#define PYTHONQTWRAPPER_QPLAINTEXTEDIT_H
|
|
|
|
|
|
#include <qplaintextedit.h>
|
|
|
#include <QObject>
|
|
|
|
|
|
#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>
|
|
|
|
|
|
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<QTextEdit::ExtraSelection > 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<QTextEdit::ExtraSelection >& 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
|
|
|
|