#ifndef PYTHONQTWRAPPER_QKEYEVENT_H #define PYTHONQTWRAPPER_QKEYEVENT_H #include #include #include #include #include class PythonQtShell_QKeyEvent : public QKeyEvent { public: PythonQtShell_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text = QString(), bool autorep = false, ushort count = 1):QKeyEvent(type, key, modifiers, text, autorep, count),_wrapper(NULL) {}; PythonQtInstanceWrapper* _wrapper; }; class PythonQtWrapper_QKeyEvent : public QObject { Q_OBJECT public: public slots: QKeyEvent* new_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text = QString(), bool autorep = false, ushort count = 1); void delete_QKeyEvent(QKeyEvent* obj) { delete obj; } QString text(QKeyEvent* theWrappedObject) const; unsigned int nativeVirtualKey(QKeyEvent* theWrappedObject) const; unsigned int nativeModifiers(QKeyEvent* theWrappedObject) const; bool hasExtendedInfo(QKeyEvent* theWrappedObject) const; int key(QKeyEvent* theWrappedObject) const; QKeyEvent* static_QKeyEvent_createExtendedKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers, const QString& text = QString(), bool autorep = false, ushort count = 1); bool isAutoRepeat(QKeyEvent* theWrappedObject) const; Qt::KeyboardModifiers modifiers(QKeyEvent* theWrappedObject) const; unsigned int nativeScanCode(QKeyEvent* theWrappedObject) const; int count(QKeyEvent* theWrappedObject) const; bool matches(QKeyEvent* theWrappedObject, QKeySequence::StandardKey key) const; }; #endif // PYTHONQTWRAPPER_QKEYEVENT_H