#include <PythonQt.h>
Public Member Functions | |
| PythonQtPrivate () | |
| ~PythonQtPrivate () | |
| bool | isPythonQtObjectPtrMetaId (int id) |
| returns if the id is the id for PythonQtObjectPtr | |
| void | removeWrapperPointer (void *obj) |
| remove the wrapper ptr again | |
| void | removeSignalEmitter (QObject *obj) |
| called when a signal emitting QObject is destroyed to remove the signal handler from the hash map | |
| PyObject * | wrapQObject (QObject *obj) |
| wrap the given QObject into a Python object (or return existing wrapper!) | |
| PyObject * | wrapPtr (void *ptr, const QByteArray &name) |
| wrap the given ptr into a Python object (or return existing wrapper!) if there is a known QObject of that name or a known wrapper in the factory | |
| void | registerClass (const QMetaObject *metaobject) |
| registers a QObject derived class to PythonQt (this is implicitly called by addObject as well) | |
| void | registerQObjectClassNames (const QStringList &names) |
| void | addDecorators (QObject *o, bool instanceDeco, bool classDeco) |
| add a decorator object | |
| void | addVariantWrapper (const char *typeName, QObject *wrapper) |
| add a wrapper object for the given qvariant, also does an addConstructors() to add constructors for variants | |
| QList< PythonQtSlotInfo * > | getDecoratorSlots (const QByteArray &className) |
| get list of all slots that are available as decorator slots | |
| bool | isEnumType (const QMetaObject *meta, const QByteArray &name) |
| PythonQtMetaObjectWrapper * | createNewPythonQtMetaObjectWrapper (PythonQtClassInfo *info) |
| helper method that creates a PythonQtMetaObjectWrapper object | |
| PythonQtWrapper * | createNewPythonQtWrapper (QObject *obj, PythonQtClassInfo *info, void *wrappedPtr=NULL) |
| helper method that creates a PythonQtWrapper object and registers it in the object map | |
| PythonQtVariantWrapper * | createNewPythonQtVariantWrapper (const QVariant &variant) |
| helper method that creates a PythonQtVariantWrapper object | |
| PythonQtClassInfo * | getClassInfo (const QMetaObject *meta) |
| get the class info for a meta object (if available) | |
| PythonQtSlotInfo * | getConstructorSlot (const QByteArray &className) |
| get the constructor slot for the given classname | |
| PythonQtSlotInfo * | getDestructorSlot (const QByteArray &className) |
| get the destructor slot for the given classname | |
| PythonQtObjectPtr | createModule (const QString &name, PyObject *pycode) |
| creates the new module from the given pycode | |
Friends | |
| class | PythonQt |
Definition at line 365 of file PythonQt.h.
| PythonQtPrivate::PythonQtPrivate | ( | ) |
| PythonQtPrivate::~PythonQtPrivate | ( | ) |
| void PythonQtPrivate::addDecorators | ( | QObject * | o, | |
| bool | instanceDeco, | |||
| bool | classDeco | |||
| ) |
add a decorator object
| void PythonQtPrivate::addVariantWrapper | ( | const char * | typeName, | |
| QObject * | wrapper | |||
| ) |
add a wrapper object for the given qvariant, also does an addConstructors() to add constructors for variants
| PythonQtObjectPtr PythonQtPrivate::createModule | ( | const QString & | name, | |
| PyObject * | pycode | |||
| ) |
creates the new module from the given pycode
| PythonQtMetaObjectWrapper* PythonQtPrivate::createNewPythonQtMetaObjectWrapper | ( | PythonQtClassInfo * | info | ) |
helper method that creates a PythonQtMetaObjectWrapper object
| PythonQtVariantWrapper* PythonQtPrivate::createNewPythonQtVariantWrapper | ( | const QVariant & | variant | ) |
helper method that creates a PythonQtVariantWrapper object
| PythonQtWrapper* PythonQtPrivate::createNewPythonQtWrapper | ( | QObject * | obj, | |
| PythonQtClassInfo * | info, | |||
| void * | wrappedPtr = NULL | |||
| ) |
helper method that creates a PythonQtWrapper object and registers it in the object map
| PythonQtClassInfo* PythonQtPrivate::getClassInfo | ( | const QMetaObject * | meta | ) | [inline] |
| PythonQtSlotInfo* PythonQtPrivate::getConstructorSlot | ( | const QByteArray & | className | ) | [inline] |
| QList<PythonQtSlotInfo*> PythonQtPrivate::getDecoratorSlots | ( | const QByteArray & | className | ) |
get list of all slots that are available as decorator slots
| PythonQtSlotInfo* PythonQtPrivate::getDestructorSlot | ( | const QByteArray & | className | ) | [inline] |
| bool PythonQtPrivate::isEnumType | ( | const QMetaObject * | meta, | |
| const QByteArray & | name | |||
| ) |
check if the enum is either part of the meta class or contains a scope and is an enum of another known metaobject (and as last resort, of the Qt namespace)
| bool PythonQtPrivate::isPythonQtObjectPtrMetaId | ( | int | id | ) | [inline] |
| void PythonQtPrivate::registerClass | ( | const QMetaObject * | metaobject | ) |
registers a QObject derived class to PythonQt (this is implicitly called by addObject as well)
| void PythonQtPrivate::registerQObjectClassNames | ( | const QStringList & | names | ) |
as an alternative to registerClass, you can tell PythonQt the names of QObject derived classes and it will register the classes when it first sees a pointer to such a derived class
| void PythonQtPrivate::removeSignalEmitter | ( | QObject * | obj | ) |
called when a signal emitting QObject is destroyed to remove the signal handler from the hash map
| void PythonQtPrivate::removeWrapperPointer | ( | void * | obj | ) |
remove the wrapper ptr again
| PyObject* PythonQtPrivate::wrapPtr | ( | void * | ptr, | |
| const QByteArray & | name | |||
| ) |
wrap the given ptr into a Python object (or return existing wrapper!) if there is a known QObject of that name or a known wrapper in the factory
| PyObject* PythonQtPrivate::wrapQObject | ( | QObject * | obj | ) |
wrap the given QObject into a Python object (or return existing wrapper!)
friend class PythonQt [friend] |
Definition at line 484 of file PythonQt.h.
1.5.8