PythonQtWrapper_QObject.h
72 lines
| 3.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QOBJECT_H | ||
#define PYTHONQTWRAPPER_QOBJECT_H | ||||
#include <qobject.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVarLengthArray> | ||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
florianlink
|
r24 | class PythonQtShell_QObject : public QObject | ||
{ | ||||
public: | ||||
PythonQtShell_QObject(QObject* parent = 0):QObject(parent),_wrapper(NULL) {}; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QObject : public QObject | ||||
{ public: | ||||
florianlink
|
r28 | inline void promoted_customEvent(QEvent* arg__1) { QObject::customEvent(arg__1); } | ||
inline void promoted_childEvent(QChildEvent* arg__1) { QObject::childEvent(arg__1); } | ||||
inline void promoted_timerEvent(QTimerEvent* arg__1) { QObject::timerEvent(arg__1); } | ||||
inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QObject::eventFilter(arg__1, arg__2); } | ||||
inline bool promoted_event(QEvent* arg__1) { return QObject::event(arg__1); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QObject : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QObject* new_QObject(QObject* parent = 0); | ||||
void delete_QObject(QObject* obj) { delete obj; } | ||||
florianlink
|
r28 | void customEvent(QObject* theWrappedObject, QEvent* arg__1); | ||
void childEvent(QObject* theWrappedObject, QChildEvent* arg__1); | ||||
bool isWidgetType(QObject* theWrappedObject) const; | ||||
QThread* thread(QObject* theWrappedObject) const; | ||||
const QList<QObject* >& children(QObject* theWrappedObject) const; | ||||
florianlink
|
r24 | bool signalsBlocked(QObject* theWrappedObject) const; | ||
bool setProperty(QObject* theWrappedObject, const char* name, const QVariant& value); | ||||
void killTimer(QObject* theWrappedObject, int id); | ||||
florianlink
|
r13 | void dumpObjectTree(QObject* theWrappedObject); | ||
florianlink
|
r24 | QVariant property(QObject* theWrappedObject, const char* name) const; | ||
void timerEvent(QObject* theWrappedObject, QTimerEvent* arg__1); | ||||
florianlink
|
r28 | void moveToThread(QObject* theWrappedObject, QThread* thread); | ||
florianlink
|
r13 | QObject* parent(QObject* theWrappedObject) const; | ||
void setParent(QObject* theWrappedObject, QObject* arg__1); | ||||
florianlink
|
r28 | void dumpObjectInfo(QObject* theWrappedObject); | ||
florianlink
|
r24 | bool blockSignals(QObject* theWrappedObject, bool b); | ||
florianlink
|
r13 | int startTimer(QObject* theWrappedObject, int interval); | ||
florianlink
|
r28 | bool eventFilter(QObject* theWrappedObject, QObject* arg__1, QEvent* arg__2); | ||
florianlink
|
r24 | bool event(QObject* theWrappedObject, QEvent* arg__1); | ||
florianlink
|
r28 | void installEventFilter(QObject* theWrappedObject, QObject* arg__1); | ||
florianlink
|
r24 | void removeEventFilter(QObject* theWrappedObject, QObject* arg__1); | ||
florianlink
|
r28 | QString objectName(QObject* theWrappedObject) const; | ||
QList<QByteArray > dynamicPropertyNames(QObject* theWrappedObject) const; | ||||
florianlink
|
r24 | void setObjectName(QObject* theWrappedObject, const QString& name); | ||
bool inherits(QObject* theWrappedObject, const char* classname) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QOBJECT_H | ||||