PythonWorkbenchPy.h
Go to the documentation of this file.00001
00002
00003
00004 #ifndef GUI_PYTHONWORKBENCHPY_H
00005 #define GUI_PYTHONWORKBENCHPY_H
00006
00007 #include <Gui/WorkbenchPy.h>
00008 #include <Gui/Workbench.h>
00009 #include <string>
00010
00011 namespace Gui
00012 {
00013
00014
00015
00016
00017
00020 class GuiExport PythonWorkbenchPy : public Gui::WorkbenchPy
00021 {
00022 public:
00023 static PyTypeObject Type;
00024 static PyMethodDef Methods[];
00025 static PyGetSetDef GetterSetter[];
00026 static PyParentObject Parents[];
00027 virtual PyTypeObject *GetType(void) {return &Type;};
00028 virtual PyParentObject *GetParents(void) {return Parents;}
00029
00030 public:
00031 PythonWorkbenchPy(PythonWorkbench *pcObject, PyTypeObject *T = &Type);
00032 static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *);
00033 virtual int PyInit(PyObject* args, PyObject*k);
00034 ~PythonWorkbenchPy();
00035
00036 typedef PythonWorkbench* PointerType ;
00037
00038 virtual PyObject *_repr(void);
00039 std::string representation(void) const;
00040
00043
00044 static PyObject * staticCallback_appendMenu (PyObject *self, PyObject *args);
00046 PyObject* appendMenu(PyObject *args);
00048 static PyObject * staticCallback_removeMenu (PyObject *self, PyObject *args);
00050 PyObject* removeMenu(PyObject *args);
00052 static PyObject * staticCallback_listMenus (PyObject *self, PyObject *args);
00054 PyObject* listMenus(PyObject *args);
00056 static PyObject * staticCallback_appendContextMenu (PyObject *self, PyObject *args);
00058 PyObject* appendContextMenu(PyObject *args);
00060 static PyObject * staticCallback_removeContextMenu (PyObject *self, PyObject *args);
00062 PyObject* removeContextMenu(PyObject *args);
00064 static PyObject * staticCallback_appendToolbar (PyObject *self, PyObject *args);
00066 PyObject* appendToolbar(PyObject *args);
00068 static PyObject * staticCallback_removeToolbar (PyObject *self, PyObject *args);
00070 PyObject* removeToolbar(PyObject *args);
00072 static PyObject * staticCallback_listToolbars (PyObject *self, PyObject *args);
00074 PyObject* listToolbars(PyObject *args);
00076 static PyObject * staticCallback_appendCommandbar (PyObject *self, PyObject *args);
00078 PyObject* appendCommandbar(PyObject *args);
00080 static PyObject * staticCallback_removeCommandbar (PyObject *self, PyObject *args);
00082 PyObject* removeCommandbar(PyObject *args);
00084 static PyObject * staticCallback_listCommandbars (PyObject *self, PyObject *args);
00086 PyObject* listCommandbars(PyObject *args);
00088 static PyObject * staticCallback_AppendMenu (PyObject *self, PyObject *args);
00090 PyObject* AppendMenu(PyObject *args);
00092 static PyObject * staticCallback_RemoveMenu (PyObject *self, PyObject *args);
00094 PyObject* RemoveMenu(PyObject *args);
00096 static PyObject * staticCallback_ListMenus (PyObject *self, PyObject *args);
00098 PyObject* ListMenus(PyObject *args);
00100 static PyObject * staticCallback_AppendContextMenu (PyObject *self, PyObject *args);
00102 PyObject* AppendContextMenu(PyObject *args);
00104 static PyObject * staticCallback_RemoveContextMenu (PyObject *self, PyObject *args);
00106 PyObject* RemoveContextMenu(PyObject *args);
00108 static PyObject * staticCallback_AppendToolbar (PyObject *self, PyObject *args);
00110 PyObject* AppendToolbar(PyObject *args);
00112 static PyObject * staticCallback_RemoveToolbar (PyObject *self, PyObject *args);
00114 PyObject* RemoveToolbar(PyObject *args);
00116 static PyObject * staticCallback_ListToolbars (PyObject *self, PyObject *args);
00118 PyObject* ListToolbars(PyObject *args);
00120 static PyObject * staticCallback_AppendCommandbar (PyObject *self, PyObject *args);
00122 PyObject* AppendCommandbar(PyObject *args);
00124 static PyObject * staticCallback_RemoveCommandbar (PyObject *self, PyObject *args);
00126 PyObject* RemoveCommandbar(PyObject *args);
00128 static PyObject * staticCallback_ListCommandbars (PyObject *self, PyObject *args);
00130 PyObject* ListCommandbars(PyObject *args);
00132
00133
00136
00137
00139 PyObject *getCustomAttributes(const char* attr) const;
00141 int setCustomAttributes(const char* attr, PyObject *obj);
00142 PyObject *_getattr(char *attr);
00143 int _setattr(char *attr, PyObject *value);
00144
00146 PythonWorkbench *getPythonWorkbenchPtr(void) const;
00147
00150
00152 };
00153
00154 #define PARENTSGuiPythonWorkbenchPy &PythonWorkbenchPy::Type,PARENTSGuiWorkbenchPy
00155
00156 }
00157
00158 #endif // GUI_PYTHONWORKBENCHPY_H
00159
00160