|
PythonQt
|
#include "PythonQtPythonInclude.h"#include "PythonQt.h"#include "PythonQtMisc.h"#include "PythonQtClassInfo.h"#include "PythonQtMethodInfo.h"#include <QList>#include <vector>Go to the source code of this file.
Classes | |
| class | PythonQtConv |
| a static class that offers methods for type conversion More... | |
Macros | |
| #define | PythonQtRegisterListTemplateConverter(type, innertype) |
| #define | PythonQtRegisterListTemplateConverterForKnownClass(type, innertype) |
| #define | PythonQtRegisterQPairConverter(type1, type2) |
| #define | PythonQtRegisterIntegerMapConverter(type, innertype) |
| #define | PythonQtRegisterListTemplateQPairConverter(listtype, type1, type2) |
| #define | PythonQtRegisterToolClassesTemplateConverter(innertype) |
| #define | PythonQtRegisterToolClassesTemplateConverterForKnownClass(innertype) |
Typedefs | |
| typedef PyObject * | PythonQtConvertMetaTypeToPythonCB(const void *inObject, int metaTypeId) |
| typedef bool | PythonQtConvertPythonToMetaTypeCB(PyObject *inObject, void *outObject, int metaTypeId, bool strict) |
| typedef QVariant | PythonQtConvertPythonSequenceToQVariantListCB(PyObject *inObject) |
Functions | |
| template<class ListType, class T> | |
| PyObject * | PythonQtConvertListOfValueTypeToPythonList (const void *inList, int metaTypeId) |
| template<class ListType, class T> | |
| bool | PythonQtConvertPythonListToListOfValueType (PyObject *obj, void *outList, int metaTypeId, bool) |
| template<class ListType, class T> | |
| PyObject * | PythonQtConvertListOfKnownClassToPythonList (const void *inList, int metaTypeId) |
| template<class ListType, class T> | |
| bool | PythonQtConvertPythonListToListOfKnownClass (PyObject *obj, void *outList, int metaTypeId, bool) |
| template<class T1, class T2> | |
| PyObject * | PythonQtConvertPairToPython (const void *inPair, int metaTypeId) |
| template<class T1, class T2> | |
| bool | PythonQtConvertPythonToPair (PyObject *obj, void *outPair, int metaTypeId, bool) |
| template<class ListType, class T1, class T2> | |
| PyObject * | PythonQtConvertListOfPairToPythonList (const void *inList, int metaTypeId) |
| template<class ListType, class T1, class T2> | |
| bool | PythonQtConvertPythonListToListOfPair (PyObject *obj, void *outList, int metaTypeId, bool) |
| template<class MapType, class T> | |
| PyObject * | PythonQtConvertIntegerMapToPython (const void *inMap, int metaTypeId) |
| template<class MapType, class T> | |
| bool | PythonQtConvertPythonToIntegerMap (PyObject *val, void *outMap, int metaTypeId, bool) |
| #define PythonQtRegisterIntegerMapConverter | ( | type, | |
| innertype ) |
Definition at line 83 of file PythonQtConversion.h.
| #define PythonQtRegisterListTemplateConverter | ( | type, | |
| innertype ) |
Definition at line 58 of file PythonQtConversion.h.
| #define PythonQtRegisterListTemplateConverterForKnownClass | ( | type, | |
| innertype ) |
Definition at line 67 of file PythonQtConversion.h.
| #define PythonQtRegisterListTemplateQPairConverter | ( | listtype, | |
| type1, | |||
| type2 ) |
Definition at line 92 of file PythonQtConversion.h.
| #define PythonQtRegisterQPairConverter | ( | type1, | |
| type2 ) |
Definition at line 76 of file PythonQtConversion.h.
| #define PythonQtRegisterToolClassesTemplateConverter | ( | innertype | ) |
Definition at line 102 of file PythonQtConversion.h.
| #define PythonQtRegisterToolClassesTemplateConverterForKnownClass | ( | innertype | ) |
Definition at line 107 of file PythonQtConversion.h.
| typedef PyObject * PythonQtConvertMetaTypeToPythonCB(const void *inObject, int metaTypeId) |
Definition at line 54 of file PythonQtConversion.h.
| typedef QVariant PythonQtConvertPythonSequenceToQVariantListCB(PyObject *inObject) |
Definition at line 56 of file PythonQtConversion.h.
| typedef bool PythonQtConvertPythonToMetaTypeCB(PyObject *inObject, void *outObject, int metaTypeId, bool strict) |
Definition at line 55 of file PythonQtConversion.h.
| PyObject * PythonQtConvertIntegerMapToPython | ( | const void * | inMap, |
| int | metaTypeId ) |
Definition at line 524 of file PythonQtConversion.h.
References PythonQtConv::convertQtValueToPythonInternal(), PythonQtMethodInfo::getInnerTemplateTypeName(), PythonQtUtils::metaTypeIdFromTypeName(), and PythonQtUtils::typeNameFromMetaTypeId().
| PyObject * PythonQtConvertListOfKnownClassToPythonList | ( | const void * | inList, |
| int | metaTypeId ) |
Definition at line 328 of file PythonQtConversion.h.
References PythonQtInstanceWrapper::_ownedByPythonQt, PythonQtClassInfo::className(), PythonQtPrivate::getClassInfo(), PythonQtMethodInfo::getInnerListTypeName(), PythonQt::priv(), and PythonQtUtils::typeNameFromMetaTypeId().
| PyObject * PythonQtConvertListOfPairToPythonList | ( | const void * | inList, |
| int | metaTypeId ) |
Definition at line 467 of file PythonQtConversion.h.
References PythonQtMethodInfo::getInnerTemplateMetaType(), PythonQtConvertPairToPython(), and PythonQtUtils::typeNameFromMetaTypeId().
| PyObject * PythonQtConvertListOfValueTypeToPythonList | ( | const void * | inList, |
| int | metaTypeId ) |
Definition at line 273 of file PythonQtConversion.h.
References PythonQtConv::convertQtValueToPythonInternal(), PythonQtMethodInfo::getInnerTemplateMetaType(), and PythonQtUtils::typeNameFromMetaTypeId().
| PyObject * PythonQtConvertPairToPython | ( | const void * | inPair, |
| int | metaTypeId ) |
Definition at line 394 of file PythonQtConversion.h.
References PythonQtConv::convertQtValueToPythonInternal(), PythonQtMethodInfo::getInnerTemplateTypeName(), PythonQtUtils::metaTypeIdFromTypeName(), and PythonQtUtils::typeNameFromMetaTypeId().
Referenced by PythonQtConvertListOfPairToPythonList().
| bool PythonQtConvertPythonListToListOfKnownClass | ( | PyObject * | obj, |
| void * | outList, | ||
| int | metaTypeId, | ||
| bool | ) |
Definition at line 351 of file PythonQtConversion.h.
References PythonQtConv::castWrapperTo(), PythonQtClassInfo::className(), PythonQtPrivate::getClassInfo(), PythonQtMethodInfo::getInnerListTypeName(), PythonQt::priv(), PythonQtInstanceWrapper_Type, and PythonQtUtils::typeNameFromMetaTypeId().
| bool PythonQtConvertPythonListToListOfPair | ( | PyObject * | obj, |
| void * | outList, | ||
| int | metaTypeId, | ||
| bool | ) |
Definition at line 488 of file PythonQtConversion.h.
References PythonQtMethodInfo::getInnerTemplateMetaType(), PythonQtConvertPythonToPair(), and PythonQtUtils::typeNameFromMetaTypeId().
| bool PythonQtConvertPythonListToListOfValueType | ( | PyObject * | obj, |
| void * | outList, | ||
| int | metaTypeId, | ||
| bool | ) |
Definition at line 292 of file PythonQtConversion.h.
References PythonQtMethodInfo::getInnerTemplateMetaType(), PythonQtConv::PyObjToQVariant(), and PythonQtUtils::typeNameFromMetaTypeId().
| bool PythonQtConvertPythonToIntegerMap | ( | PyObject * | val, |
| void * | outMap, | ||
| int | metaTypeId, | ||
| bool | ) |
Definition at line 554 of file PythonQtConversion.h.
References PythonQtMethodInfo::getInnerTemplateTypeName(), PythonQtUtils::metaTypeIdFromTypeName(), PythonQtConv::PyObjGetInt(), PythonQtConv::PyObjToQVariant(), and PythonQtUtils::typeNameFromMetaTypeId().
| bool PythonQtConvertPythonToPair | ( | PyObject * | obj, |
| void * | outPair, | ||
| int | metaTypeId, | ||
| bool | ) |
Definition at line 417 of file PythonQtConversion.h.
References PythonQtMethodInfo::getInnerTemplateTypeName(), PythonQtUtils::metaTypeIdFromTypeName(), PythonQtConv::PyObjToQVariant(), and PythonQtUtils::typeNameFromMetaTypeId().
Referenced by PythonQtConvertPythonListToListOfPair().