28 #define PY_ARRAY_UNIQUE_SYMBOL itom_ARRAY_API //see numpy help ::array api :: Miscellaneous :: Importing the api (this line must bebefore include global.h)
29 #define NO_IMPORT_ARRAY
33 #if (defined _DEBUG) && (defined WIN32)
35 #include "python/pythonWrapper.h"
38 #include "python/pythonWrapper.h"
42 #include "../global.h"
56 static PyMethodDef PythonMethodItom[];
57 static PyModuleDef PythonModuleItom;
62 static PyObject*
PyNewScript(PyObject *pSelf, PyObject *pArgs);
63 static PyObject*
PyOpenScript(PyObject *pSelf, PyObject *pArgs);
64 static PyObject* PyClearCommandLine(PyObject *pSelf);
65 static PyObject* PyShowHelpViewer(PyObject *pSelf, PyObject *pArgs);
67 static PyObject* PyPlotImage(PyObject *pSelf, PyObject *pArgs, PyObject *pKwds);
68 static PyObject* PyLiveImage(PyObject *pSelf, PyObject *pArgs, PyObject *pKwds);
70 static PyObject* PyPlot1d(PyObject *pSelf, PyObject *pArgs, PyObject *pKwds);
71 static PyObject* PyPlot2d(PyObject *pSelf, PyObject *pArgs, PyObject *pKwds);
72 static PyObject* PyPlot25d(PyObject *pSelf, PyObject *pArgs, PyObject *pKwds);
74 static PyObject* PyFilter(PyObject *pSelf, PyObject *pArgs, PyObject *pKwds);
75 static PyObject* PyFilterHelp(PyObject* pSelf, PyObject* pArgs, PyObject *pKwds);
76 static PyObject* PyWidgetHelp(PyObject* pSelf, PyObject* pArgs, PyObject *pKwds);
77 static PyObject* PyPluginHelp(PyObject* pSelf, PyObject* pArgs, PyObject *pKwds);
78 static PyObject* PyAboutInfo(PyObject* pSelf, PyObject* pArgs, PyObject *pKwds);
79 static PyObject* PyPlotHelp(PyObject* pSelf, PyObject* pArgs, PyObject *pKwds);
80 static PyObject* PyItomVersion(PyObject* pSelf, PyObject* pArgs, PyObject* pKwds);
82 static PyObject* PyLoadIDC(PyObject* pSelf, PyObject* pArgs, PyObject *pKwds);
83 static PyObject* PySaveIDC(PyObject* pSelf, PyObject* pArgs, PyObject *pKwds);
85 static PyObject* PyPluginLoaded(PyObject* pSelf, PyObject* pArgs);
86 static PyObject* PyFilterLoaded(PyObject* pSelf, PyObject* pArgs);
87 static PyObject* PyPlotLoaded(PyObject* pSelf, PyObject* pArgs);
89 static PyObject* PySaveDataObject(PyObject* pSelf, PyObject* pArgs, PyObject *pKwds);
90 static PyObject* PyLoadDataObject(PyObject* pSelf, PyObject* pArgs, PyObject *pKwds);
92 static PyObject* PyRegisterResource(PyObject* pSelf, PyObject* pArgs, PyObject *pKwds);
93 static PyObject* PyUnregisterResource(PyObject* pSelf, PyObject* pArgs, PyObject *pKwds);
95 static PyObject* PyAddButton(PyObject* pSelf, PyObject* pArgs, PyObject *kwds);
96 static PyObject* PyRemoveButton(PyObject* pSelf, PyObject* pArgs);
98 static PyObject* PyAddMenu(PyObject* pSelf, PyObject* args, PyObject *kwds);
99 static PyObject* PyRemoveMenu(PyObject* pSelf, PyObject* args, PyObject *kwds);
101 static PyObject* PySetCentralWidgetsSizes(PyObject* pSelf, PyObject* pArgs, PyObject* pKwds);
103 static PyObject* PyDumpMenusAndButtons(PyObject* pSelf);
105 static PyObject* PyCheckSignals(PyObject* pSelf);
106 static PyObject* PyProcessEvents(PyObject* pSelf);
108 static PyObject* PySaveMatlabMat(PyObject* pSelf, PyObject* pArgs);
109 static PyObject* PyLoadMatlabMat(PyObject* pSelf, PyObject* pArgs);
112 static PyObject* PyGetDebugger(PyObject* pSelf);
113 static PyObject* PyGCStartTracking(PyObject *pSelf);
114 static PyObject* PyGCEndTracking(PyObject *pSelf);
116 static PyObject* PyAutoReloader(PyObject* pSelf, PyObject *args, PyObject *kwds);
118 static PyObject* PyGetScreenInfo(PyObject* pSelf);
120 static PyObject* getDefaultScaleableUnits(PyObject* pSelf);
121 static PyObject* scaleValueAndUnit(PyObject* pSelf, PyObject* pArgs, PyObject *pKwds);
123 static PyObject* getAppPath(PyObject* pSelf);
124 static PyObject* getQtToolPath(PyObject* pSelf, PyObject* pArgs);
125 static PyObject* getCurrentPath(PyObject* pSelf);
126 static PyObject* setCurrentPath(PyObject* pSelf, PyObject* pArgs);
128 static PyObject* PyGetPalette(PyObject* pSelf, PyObject* pArgs);
129 static PyObject* PySetPalette(PyObject* pSelf, PyObject* pArgs, PyObject *pKwds);
130 static PyObject* PyGetPaletteList(PyObject* pSelf, PyObject* pArgs);
132 static PyObject* compressData(PyObject* pSelf, PyObject* pArgs);
133 static PyObject* uncompressData(PyObject* pSelf, PyObject* pArgs);
135 static PyObject* setApplicationCursor(PyObject* pSelf, PyObject* pArgs);
137 static PyObject* userCheckIsAdmin(PyObject* pSelf);
138 static PyObject* userCheckIsDeveloper(PyObject* pSelf);
139 static PyObject* userCheckIsUser(PyObject* pSelf);
140 static PyObject* userGetUserInfo(PyObject* pSelf);
142 static PyObject* PyClearAll(PyObject* pSelf);
148 static ito::RetVal unhashButtonOrMenuCode(
const size_t &funcID);
Definition: pythonItom.h:52
static PyObject * PyMatlabMatDataObjectConverter(PyObject *element)
returns new reference to element and extracts tags, if possible
Definition: pythonItom.cpp:4178
Class for managing status values (like errors or warning)
Definition: retVal.h:54
static QHash< size_t, QString > m_gcTrackerList
list with objects currently tracked by python garbage collector.
Definition: pythonItom.h:145
static PyObject * PyInitItom(void)
methods of module itom
Definition: pythonItom.cpp:6243
static PyObject * PyNewScript(PyObject *pSelf, PyObject *pArgs)
Definition: pythonItom.cpp:126
Definition: apiFunctionsGraph.cpp:39
static PyObject * PyOpenScript(PyObject *pSelf, PyObject *pArgs)
Definition: pythonItom.cpp:181
static PyObject * PyOpenEmptyScriptEditor(PyObject *pSelf, PyObject *pArgs)
Definition: pythonItom.cpp:85
Definition: pythonEngine.h:92