##// END OF EJS Templates
added alphabetic sorting...
added alphabetic sorting git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@132 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r96:3170eb771a99
Show More
PythonQtWrapper_QPlainTextEdit.h
217 lines | 12.2 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QPLAINTEXTEDIT_H
#define PYTHONQTWRAPPER_QPLAINTEXTEDIT_H
#include <qplaintextedit.h>
#include <QObject>
#include <PythonQt.h>
#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 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:
inline QMimeData* promoted_createMimeDataFromSelection() const { return QPlainTextEdit::createMimeDataFromSelection(); }
inline bool promoted_focusNextPrevChild(bool next) { return QPlainTextEdit::focusNextPrevChild(next); }
inline void promoted_focusOutEvent(QFocusEvent* e) { QPlainTextEdit::focusOutEvent(e); }
inline void promoted_timerEvent(QTimerEvent* e) { QPlainTextEdit::timerEvent(e); }
inline void promoted_mouseMoveEvent(QMouseEvent* e) { QPlainTextEdit::mouseMoveEvent(e); }
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); }
inline void promoted_scrollContentsBy(int dx, int dy) { QPlainTextEdit::scrollContentsBy(dx, dy); }
inline void promoted_resizeEvent(QResizeEvent* e) { QPlainTextEdit::resizeEvent(e); }
inline void promoted_insertFromMimeData(const QMimeData* source) { QPlainTextEdit::insertFromMimeData(source); }
inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QPlainTextEdit::mouseReleaseEvent(e); }
inline void promoted_mouseDoubleClickEvent(QMouseEvent* e) { QPlainTextEdit::mouseDoubleClickEvent(e); }
inline void promoted_mousePressEvent(QMouseEvent* e) { QPlainTextEdit::mousePressEvent(e); }
inline void promoted_keyPressEvent(QKeyEvent* e) { QPlainTextEdit::keyPressEvent(e); }
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); }
inline bool promoted_canInsertFromMimeData(const QMimeData* source) const { return QPlainTextEdit::canInsertFromMimeData(source); }
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); }
inline void promoted_paintEvent(QPaintEvent* e) { QPlainTextEdit::paintEvent(e); }
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); }
};
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; }
int blockCount(QPlainTextEdit* theWrappedObject) const;
QTextCursor cursorForPosition(QPlainTextEdit* theWrappedObject, const QPoint& pos) const;
QTextCharFormat currentCharFormat(QPlainTextEdit* theWrappedObject) const;
QMimeData* createMimeDataFromSelection(QPlainTextEdit* theWrappedObject) const;
QList<QTextEdit::ExtraSelection > extraSelections(QPlainTextEdit* theWrappedObject) const;
bool overwriteMode(QPlainTextEdit* theWrappedObject) const;
void setMaximumBlockCount(QPlainTextEdit* theWrappedObject, int maximum);
int tabStopWidth(QPlainTextEdit* theWrappedObject) const;
bool focusNextPrevChild(QPlainTextEdit* theWrappedObject, bool next);
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;
void wheelEvent(QPlainTextEdit* theWrappedObject, QWheelEvent* e);
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);
QPlainTextEdit::LineWrapMode lineWrapMode(QPlainTextEdit* theWrappedObject) const;
void setDocumentTitle(QPlainTextEdit* theWrappedObject, const QString& title);
bool backgroundVisible(QPlainTextEdit* theWrappedObject) const;
void setUndoRedoEnabled(QPlainTextEdit* theWrappedObject, bool enable);
void setDocument(QPlainTextEdit* theWrappedObject, QTextDocument* document);
int cursorWidth(QPlainTextEdit* theWrappedObject) const;
void setCurrentCharFormat(QPlainTextEdit* theWrappedObject, const QTextCharFormat& format);
void setOverwriteMode(QPlainTextEdit* theWrappedObject, bool overwrite);
QString documentTitle(QPlainTextEdit* theWrappedObject) const;
int maximumBlockCount(QPlainTextEdit* theWrappedObject) const;
void insertFromMimeData(QPlainTextEdit* theWrappedObject, const QMimeData* source);
void setTextCursor(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor);
void mouseReleaseEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e);
void mouseDoubleClickEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e);
void setTextInteractionFlags(QPlainTextEdit* theWrappedObject, Qt::TextInteractionFlags flags);
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);
void setCenterOnScroll(QPlainTextEdit* theWrappedObject, bool enabled);
QString toPlainText(QPlainTextEdit* theWrappedObject) const;
void inputMethodEvent(QPlainTextEdit* theWrappedObject, QInputMethodEvent* arg__1);
QRect cursorRect(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor) const;
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);
bool canInsertFromMimeData(QPlainTextEdit* theWrappedObject, const QMimeData* source) const;
void dragEnterEvent(QPlainTextEdit* theWrappedObject, QDragEnterEvent* e);
bool find(QPlainTextEdit* theWrappedObject, const QString& exp, QTextDocument::FindFlags options = 0);
QTextOption::WrapMode wordWrapMode(QPlainTextEdit* theWrappedObject) const;
void showEvent(QPlainTextEdit* theWrappedObject, QShowEvent* arg__1);
QVariant loadResource(QPlainTextEdit* theWrappedObject, int type, const QUrl& name);
void paintEvent(QPlainTextEdit* theWrappedObject, QPaintEvent* e);
void setLineWrapMode(QPlainTextEdit* theWrappedObject, QPlainTextEdit::LineWrapMode mode);
void setReadOnly(QPlainTextEdit* theWrappedObject, bool ro);
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;
};
#endif // PYTHONQTWRAPPER_QPLAINTEXTEDIT_H