|
|
#ifndef PYTHONQTWRAPPER_QTEXTEDIT_H
|
|
|
#define PYTHONQTWRAPPER_QTEXTEDIT_H
|
|
|
|
|
|
#include <qtextedit.h>
|
|
|
#include <QObject>
|
|
|
|
|
|
#include <QTextCursor>
|
|
|
#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 <qstyle.h>
|
|
|
#include <qtextcursor.h>
|
|
|
#include <qtextdocument.h>
|
|
|
#include <qtextedit.h>
|
|
|
#include <qtextformat.h>
|
|
|
#include <qurl.h>
|
|
|
#include <qwidget.h>
|
|
|
|
|
|
class PythonQtWrapper_QTextEdit : public QObject
|
|
|
{ Q_OBJECT
|
|
|
public:
|
|
|
Q_ENUMS(AutoFormattingFlag )
|
|
|
enum AutoFormattingFlag{
|
|
|
AutoNone = QTextEdit::AutoNone, AutoBulletList = QTextEdit::AutoBulletList, AutoAll = QTextEdit::AutoAll};
|
|
|
public slots:
|
|
|
QTextEdit* new_QTextEdit(QWidget* parent = 0);
|
|
|
QTextEdit* new_QTextEdit(const QString& text, QWidget* parent = 0);
|
|
|
void delete_QTextEdit(QTextEdit* obj) { delete obj; }
|
|
|
bool acceptRichText(QTextEdit* theWrappedObject) const;
|
|
|
Qt::Alignment alignment(QTextEdit* theWrappedObject) const;
|
|
|
QString anchorAt(QTextEdit* theWrappedObject, const QPoint& pos) const;
|
|
|
QTextEdit::AutoFormatting autoFormatting(QTextEdit* theWrappedObject) const;
|
|
|
bool canPaste(QTextEdit* theWrappedObject) const;
|
|
|
QMenu* createStandardContextMenu(QTextEdit* theWrappedObject);
|
|
|
QMenu* createStandardContextMenu(QTextEdit* theWrappedObject, const QPoint& position);
|
|
|
QTextCharFormat currentCharFormat(QTextEdit* theWrappedObject) const;
|
|
|
QFont currentFont(QTextEdit* theWrappedObject) const;
|
|
|
QTextCursor cursorForPosition(QTextEdit* theWrappedObject, const QPoint& pos) const;
|
|
|
QRect cursorRect(QTextEdit* theWrappedObject) const;
|
|
|
QRect cursorRect(QTextEdit* theWrappedObject, const QTextCursor& cursor) const;
|
|
|
int cursorWidth(QTextEdit* theWrappedObject) const;
|
|
|
QTextDocument* document(QTextEdit* theWrappedObject) const;
|
|
|
QString documentTitle(QTextEdit* theWrappedObject) const;
|
|
|
void ensureCursorVisible(QTextEdit* theWrappedObject);
|
|
|
QList<QTextEdit::ExtraSelection > extraSelections(QTextEdit* theWrappedObject) const;
|
|
|
bool find(QTextEdit* theWrappedObject, const QString& exp, QTextDocument::FindFlags options = 0);
|
|
|
QString fontFamily(QTextEdit* theWrappedObject) const;
|
|
|
bool fontItalic(QTextEdit* theWrappedObject) const;
|
|
|
qreal fontPointSize(QTextEdit* theWrappedObject) const;
|
|
|
bool fontUnderline(QTextEdit* theWrappedObject) const;
|
|
|
int fontWeight(QTextEdit* theWrappedObject) const;
|
|
|
bool isReadOnly(QTextEdit* theWrappedObject) const;
|
|
|
bool isUndoRedoEnabled(QTextEdit* theWrappedObject) const;
|
|
|
int lineWrapColumnOrWidth(QTextEdit* theWrappedObject) const;
|
|
|
QTextEdit::LineWrapMode lineWrapMode(QTextEdit* theWrappedObject) const;
|
|
|
QVariant loadResource(QTextEdit* theWrappedObject, int type, const QUrl& name);
|
|
|
void mergeCurrentCharFormat(QTextEdit* theWrappedObject, const QTextCharFormat& modifier);
|
|
|
void moveCursor(QTextEdit* theWrappedObject, QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor);
|
|
|
bool overwriteMode(QTextEdit* theWrappedObject) const;
|
|
|
void print(QTextEdit* theWrappedObject, QPrinter* printer) const;
|
|
|
void setAcceptRichText(QTextEdit* theWrappedObject, bool accept);
|
|
|
void setAutoFormatting(QTextEdit* theWrappedObject, QTextEdit::AutoFormatting features);
|
|
|
void setCurrentCharFormat(QTextEdit* theWrappedObject, const QTextCharFormat& format);
|
|
|
void setCursorWidth(QTextEdit* theWrappedObject, int width);
|
|
|
void setDocument(QTextEdit* theWrappedObject, QTextDocument* document);
|
|
|
void setDocumentTitle(QTextEdit* theWrappedObject, const QString& title);
|
|
|
void setExtraSelections(QTextEdit* theWrappedObject, const QList<QTextEdit::ExtraSelection >& selections);
|
|
|
void setLineWrapColumnOrWidth(QTextEdit* theWrappedObject, int w);
|
|
|
void setLineWrapMode(QTextEdit* theWrappedObject, QTextEdit::LineWrapMode mode);
|
|
|
void setOverwriteMode(QTextEdit* theWrappedObject, bool overwrite);
|
|
|
void setReadOnly(QTextEdit* theWrappedObject, bool ro);
|
|
|
void setTabChangesFocus(QTextEdit* theWrappedObject, bool b);
|
|
|
void setTabStopWidth(QTextEdit* theWrappedObject, int width);
|
|
|
void setTextCursor(QTextEdit* theWrappedObject, const QTextCursor& cursor);
|
|
|
void setTextInteractionFlags(QTextEdit* theWrappedObject, Qt::TextInteractionFlags flags);
|
|
|
void setUndoRedoEnabled(QTextEdit* theWrappedObject, bool enable);
|
|
|
void setWordWrapMode(QTextEdit* theWrappedObject, QTextOption::WrapMode policy);
|
|
|
bool tabChangesFocus(QTextEdit* theWrappedObject) const;
|
|
|
int tabStopWidth(QTextEdit* theWrappedObject) const;
|
|
|
QColor textBackgroundColor(QTextEdit* theWrappedObject) const;
|
|
|
QColor textColor(QTextEdit* theWrappedObject) const;
|
|
|
QTextCursor textCursor(QTextEdit* theWrappedObject) const;
|
|
|
Qt::TextInteractionFlags textInteractionFlags(QTextEdit* theWrappedObject) const;
|
|
|
QString toHtml(QTextEdit* theWrappedObject) const;
|
|
|
QString toPlainText(QTextEdit* theWrappedObject) const;
|
|
|
QTextOption::WrapMode wordWrapMode(QTextEdit* theWrappedObject) const;
|
|
|
};
|
|
|
|
|
|
#endif // PYTHONQTWRAPPER_QTEXTEDIT_H
|
|
|
|