23 #ifndef PYTHONWORKSPACE_H
24 #define PYTHONWORKSPACE_H
27 #define PY_ARRAY_UNIQUE_SYMBOL itom_ARRAY_API //see numpy help ::array api :: Miscellaneous :: Importing the api (this line must bebefore include global.h)
28 #define NO_IMPORT_ARRAY
30 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
34 #if (defined _DEBUG) && (defined WIN32)
36 #include "pythonWrapper.h"
37 #include "numpy/arrayobject.h"
40 #include "pythonWrapper.h"
41 #include "numpy/arrayobject.h"
45 #include "../global.h"
52 #include <qstringlist.h>
54 #define PY_LIST_TUPLE 'l'
55 #define PY_MAPPING 'm'
64 class PyWorkspaceItem;
90 QString m_extendedValue;
95 QHash<QString, PyWorkspaceItem*> m_childs;
108 void loadDictionary(PyObject *obj,
const QString &fullNameParentItem =
"");
110 inline bool isGlobalWorkspace()
const {
return m_globalNotLocal; }
111 inline bool isRoot(
PyWorkspaceItem *item)
const {
return item == &m_rootItem; }
112 inline void emitGetChildNodes(
PyWorkspaceContainer *container, QString fullNameParentItem) { emit getChildNodes(container,fullNameParentItem); }
116 QMutex m_accessMutex;
117 QSet<QString> m_expandedFullNames;
123 void loadDictionaryRec(PyObject *obj,
const QString &fullNameParentItem,
PyWorkspaceItem *parentItem, QStringList &deletedKeys);
124 void parseSinglePyObject(
PyWorkspaceItem *item, PyObject *value, QString &fullName, QStringList &deletedKeys,
int &m_compatibleParamBaseType);
126 QSet<QByteArray> m_blackListType;
127 bool m_globalNotLocal;
129 PyObject *dictUnicode;
130 PyObject *slotsUnicode;
133 void updateAvailable(
PyWorkspaceItem *rootItem, QString fullNameRoot, QStringList recentlyDeletedFullNames);
Definition: pythonWorkspace.h:83
QString m_name
Definition: pythonWorkspace.h:86
QString m_key
Definition: pythonWorkspace.h:87
int m_compatibleParamBaseType
Definition: pythonWorkspace.h:91
Definition: pythonWorkspace.h:82
Definition: apiFunctionsGraph.cpp:39
QString m_type
Definition: pythonWorkspace.h:88
bool m_isarrayelement
Definition: pythonWorkspace.h:93
static QChar delimiter
Definition: pythonWorkspace.h:120
every item in the workspace is represented by one PyWorkspaceItem
Definition: pythonWorkspace.h:71
ChildState m_childState
Definition: pythonWorkspace.h:94
Definition: pythonWorkspace.h:99
ChildState
Definition: pythonWorkspace.h:80