Gui::PythonWorkbenchPy Class Reference

The python export class for PythonWorkbench. More...

#include <PythonWorkbenchPy.h>

Inheritance diagram for Gui::PythonWorkbenchPy:
Gui::WorkbenchPy Base::BaseClassPy Base::PyObjectBase

List of all members.

Public Types

typedef PythonWorkbenchPointerType

Public Member Functions

PyObject_getattr (char *attr)
 GetAttribute implementation This method implements the retriavel of object attributes.
virtual PyObject_repr (void)
 _repr method Overide this method to return a string object with some invormation about the object.
int _setattr (char *attr, PyObject *value)
 SetAttribute implementation This method implements the seting of object attributes.
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones)
virtual PyParentObjectGetParents (void)
PythonWorkbenchgetPythonWorkbenchPtr (void) const
 getter for the object handled by this class
virtual PyTypeObject * GetType (void)
virtual int PyInit (PyObject *args, PyObject *k)
 PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
 PythonWorkbenchPy (PythonWorkbench *pcObject, PyTypeObject *T=&Type)
std::string representation (void) const
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. dynamic ones)
 ~PythonWorkbenchPy ()

Static Public Member Functions

static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)

Static Public Attributes

static PyGetSetDef GetterSetter []
 Attribute structure of PythonWorkbenchPy.
static PyMethodDef Methods []
 Methods structure of PythonWorkbenchPy.
static PyParentObject Parents [] = { PARENTSGuiPythonWorkbenchPy }
static PyTypeObject Type
 Type structure of PythonWorkbenchPy.

callbacks and implementers for the python object methods



PyObjectAppendCommandbar (PyObject *args)
 implementer for the AppendCommandbar() method
PyObjectappendCommandbar (PyObject *args)
 implementer for the appendCommandbar() method
PyObjectAppendContextMenu (PyObject *args)
 implementer for the AppendContextMenu() method
PyObjectappendContextMenu (PyObject *args)
 implementer for the appendContextMenu() method
PyObjectAppendMenu (PyObject *args)
 implementer for the AppendMenu() method
PyObjectappendMenu (PyObject *args)
 implementer for the appendMenu() method
PyObjectAppendToolbar (PyObject *args)
 implementer for the AppendToolbar() method
PyObjectappendToolbar (PyObject *args)
 implementer for the appendToolbar() method
PyObjectListCommandbars (PyObject *args)
 implementer for the ListCommandbars() method
PyObjectlistCommandbars (PyObject *args)
 implementer for the listCommandbars() method
PyObjectListMenus (PyObject *args)
 implementer for the ListMenus() method
PyObjectlistMenus (PyObject *args)
 implementer for the listMenus() method
PyObjectListToolbars (PyObject *args)
 implementer for the ListToolbars() method
PyObjectlistToolbars (PyObject *args)
 implementer for the listToolbars() method
PyObjectRemoveCommandbar (PyObject *args)
 implementer for the RemoveCommandbar() method
PyObjectremoveCommandbar (PyObject *args)
 implementer for the removeCommandbar() method
PyObjectRemoveContextMenu (PyObject *args)
 implementer for the RemoveContextMenu() method
PyObjectremoveContextMenu (PyObject *args)
 implementer for the removeContextMenu() method
PyObjectRemoveMenu (PyObject *args)
 implementer for the RemoveMenu() method
PyObjectremoveMenu (PyObject *args)
 implementer for the removeMenu() method
PyObjectRemoveToolbar (PyObject *args)
 implementer for the RemoveToolbar() method
PyObjectremoveToolbar (PyObject *args)
 implementer for the removeToolbar() method
static PyObjectstaticCallback_AppendCommandbar (PyObject *self, PyObject *args)
 callback for the AppendCommandbar() method
static PyObjectstaticCallback_appendCommandbar (PyObject *self, PyObject *args)
 callback for the appendCommandbar() method
static PyObjectstaticCallback_AppendContextMenu (PyObject *self, PyObject *args)
 callback for the AppendContextMenu() method
static PyObjectstaticCallback_appendContextMenu (PyObject *self, PyObject *args)
 callback for the appendContextMenu() method
static PyObjectstaticCallback_AppendMenu (PyObject *self, PyObject *args)
 callback for the AppendMenu() method
static PyObjectstaticCallback_appendMenu (PyObject *self, PyObject *args)
 callback for the appendMenu() method
static PyObjectstaticCallback_AppendToolbar (PyObject *self, PyObject *args)
 callback for the AppendToolbar() method
static PyObjectstaticCallback_appendToolbar (PyObject *self, PyObject *args)
 callback for the appendToolbar() method
static PyObjectstaticCallback_ListCommandbars (PyObject *self, PyObject *args)
 callback for the ListCommandbars() method
static PyObjectstaticCallback_listCommandbars (PyObject *self, PyObject *args)
 callback for the listCommandbars() method
static PyObjectstaticCallback_ListMenus (PyObject *self, PyObject *args)
 callback for the ListMenus() method
static PyObjectstaticCallback_listMenus (PyObject *self, PyObject *args)
 callback for the listMenus() method
static PyObjectstaticCallback_ListToolbars (PyObject *self, PyObject *args)
 callback for the ListToolbars() method
static PyObjectstaticCallback_listToolbars (PyObject *self, PyObject *args)
 callback for the listToolbars() method
static PyObjectstaticCallback_RemoveCommandbar (PyObject *self, PyObject *args)
 callback for the RemoveCommandbar() method
static PyObjectstaticCallback_removeCommandbar (PyObject *self, PyObject *args)
 callback for the removeCommandbar() method
static PyObjectstaticCallback_RemoveContextMenu (PyObject *self, PyObject *args)
 callback for the RemoveContextMenu() method
static PyObjectstaticCallback_removeContextMenu (PyObject *self, PyObject *args)
 callback for the removeContextMenu() method
static PyObjectstaticCallback_RemoveMenu (PyObject *self, PyObject *args)
 callback for the RemoveMenu() method
static PyObjectstaticCallback_removeMenu (PyObject *self, PyObject *args)
 callback for the removeMenu() method
static PyObjectstaticCallback_RemoveToolbar (PyObject *self, PyObject *args)
 callback for the RemoveToolbar() method
static PyObjectstaticCallback_removeToolbar (PyObject *self, PyObject *args)
 callback for the removeToolbar() method

Detailed Description

The python export class for PythonWorkbench.

Definition at line 20 of file PythonWorkbenchPy.h.


Member Typedef Documentation

Reimplemented from Gui::WorkbenchPy.

Definition at line 36 of file PythonWorkbenchPy.h.


Constructor & Destructor Documentation

PythonWorkbenchPy::PythonWorkbenchPy ( PythonWorkbench pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 1877 of file PythonWorkbenchPy.cpp.

PythonWorkbenchPy::~PythonWorkbenchPy (  ) 

Definition at line 1898 of file PythonWorkbenchPy.cpp.


Member Function Documentation

PyObject * PythonWorkbenchPy::_getattr ( char *  attr  )  [virtual]

GetAttribute implementation This method implements the retriavel of object attributes.

If you want to implement attributes in your class, reimplement this method. You have to call the method of the base class. Note: if you reimplement _gettattr() in a inheriting class you need to call the method of the base class! Otherwise even the methods of the object will disapiear!

Reimplemented from Gui::WorkbenchPy.

Definition at line 1913 of file PythonWorkbenchPy.cpp.

References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().

PyObject * PythonWorkbenchPy::_repr ( void   )  [virtual]

_repr method Overide this method to return a string object with some invormation about the object.

 PyObject *MeshFeaturePy::_repr(void)
 {
   std::stringstream a;
   a << "MeshFeature: [ ";
   a << "some realy important info about the object!";
   a << "]" << std::endl;
   return Py_BuildValue("s", a.str().c_str());
 }

Reimplemented from Gui::WorkbenchPy.

Definition at line 1905 of file PythonWorkbenchPy.cpp.

References representation().

int PythonWorkbenchPy::_setattr ( char *  attr,
PyObject value 
) [virtual]

SetAttribute implementation This method implements the seting of object attributes.

If you want to implement attributes in your class, reimplement this method. You have to call the method of the base class.

Reimplemented from Gui::WorkbenchPy.

Definition at line 1981 of file PythonWorkbenchPy.cpp.

References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().

PyObject * PythonWorkbenchPy::AppendCommandbar ( PyObject args  ) 

implementer for the AppendCommandbar() method

Definition at line 368 of file PythonWorkbenchPyImp.cpp.

References appendCommandbar().

PyObject * PythonWorkbenchPy::appendCommandbar ( PyObject args  ) 

implementer for the appendCommandbar() method

Appends a new command bar.

Definition at line 261 of file PythonWorkbenchPyImp.cpp.

References Gui::PythonWorkbench::appendCommandbar(), getPythonWorkbenchPtr(), PY_CATCH, Py_Return, and PY_TRY.

Referenced by AppendCommandbar().

PyObject * PythonWorkbenchPy::AppendContextMenu ( PyObject args  ) 

implementer for the AppendContextMenu() method

Definition at line 343 of file PythonWorkbenchPyImp.cpp.

References appendContextMenu().

PyObject * PythonWorkbenchPy::appendContextMenu ( PyObject args  ) 

implementer for the appendContextMenu() method

Appends new context menu items.

Definition at line 135 of file PythonWorkbenchPyImp.cpp.

References Gui::PythonWorkbench::appendContextMenu(), getPythonWorkbenchPtr(), PY_CATCH, Py_Return, and PY_TRY.

Referenced by AppendContextMenu().

PyObject * PythonWorkbenchPy::AppendMenu ( PyObject args  ) 

implementer for the AppendMenu() method

Definition at line 328 of file PythonWorkbenchPyImp.cpp.

References appendMenu().

PyObject * PythonWorkbenchPy::appendMenu ( PyObject args  ) 

implementer for the appendMenu() method

Appends a new menu.

Definition at line 51 of file PythonWorkbenchPyImp.cpp.

References Gui::PythonWorkbench::appendMenu(), getPythonWorkbenchPtr(), PY_CATCH, Py_Return, and PY_TRY.

Referenced by AppendMenu().

PyObject * PythonWorkbenchPy::AppendToolbar ( PyObject args  ) 

implementer for the AppendToolbar() method

Definition at line 353 of file PythonWorkbenchPyImp.cpp.

References appendToolbar().

PyObject * PythonWorkbenchPy::appendToolbar ( PyObject args  ) 

implementer for the appendToolbar() method

Appends a new toolbar.

Definition at line 203 of file PythonWorkbenchPyImp.cpp.

References Gui::PythonWorkbench::appendToolbar(), getPythonWorkbenchPtr(), PY_CATCH, Py_Return, and PY_TRY.

Referenced by AppendToolbar().

PyObject * PythonWorkbenchPy::getCustomAttributes ( const char *  attr  )  const

getter method for special attributes (e.g. dynamic ones)

Reimplemented from Gui::WorkbenchPy.

Definition at line 318 of file PythonWorkbenchPyImp.cpp.

Referenced by _getattr().

virtual PyParentObject* Gui::PythonWorkbenchPy::GetParents ( void   )  [inline, virtual]

Reimplemented from Gui::WorkbenchPy.

Definition at line 28 of file PythonWorkbenchPy.h.

PythonWorkbench * PythonWorkbenchPy::getPythonWorkbenchPtr ( void   )  const
virtual PyTypeObject* Gui::PythonWorkbenchPy::GetType ( void   )  [inline, virtual]

Reimplemented from Gui::WorkbenchPy.

Definition at line 27 of file PythonWorkbenchPy.h.

PyObject * PythonWorkbenchPy::ListCommandbars ( PyObject args  ) 

implementer for the ListCommandbars() method

Definition at line 378 of file PythonWorkbenchPyImp.cpp.

References listCommandbars().

PyObject * PythonWorkbenchPy::listCommandbars ( PyObject args  ) 

implementer for the listCommandbars() method

Shows a list of all command bars.

Definition at line 303 of file PythonWorkbenchPyImp.cpp.

References getPythonWorkbenchPtr(), Gui::PythonWorkbench::listCommandbars(), PY_CATCH, and PY_TRY.

Referenced by ListCommandbars().

PyObject * PythonWorkbenchPy::ListMenus ( PyObject args  ) 

implementer for the ListMenus() method

Definition at line 338 of file PythonWorkbenchPyImp.cpp.

References listMenus().

PyObject * PythonWorkbenchPy::listMenus ( PyObject args  ) 

implementer for the listMenus() method

Shows a list of all menus.

Definition at line 119 of file PythonWorkbenchPyImp.cpp.

References getPythonWorkbenchPtr(), Gui::PythonWorkbench::listMenus(), PY_CATCH, and PY_TRY.

Referenced by ListMenus().

PyObject * PythonWorkbenchPy::ListToolbars ( PyObject args  ) 

implementer for the ListToolbars() method

Definition at line 363 of file PythonWorkbenchPyImp.cpp.

References listToolbars().

PyObject * PythonWorkbenchPy::listToolbars ( PyObject args  ) 

implementer for the listToolbars() method

Shows a list of all toolbars.

Definition at line 245 of file PythonWorkbenchPyImp.cpp.

References getPythonWorkbenchPtr(), Gui::PythonWorkbench::listToolbars(), PY_CATCH, and PY_TRY.

Referenced by ListToolbars().

int PythonWorkbenchPy::PyInit ( PyObject ,
PyObject  
) [virtual]

PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).

Reimplemented from Gui::WorkbenchPy.

Definition at line 1890 of file PythonWorkbenchPy.cpp.

PyObject * PythonWorkbenchPy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
) [static]

Reimplemented from Gui::WorkbenchPy.

Definition at line 1882 of file PythonWorkbenchPy.cpp.

PyObject * PythonWorkbenchPy::RemoveCommandbar ( PyObject args  ) 

implementer for the RemoveCommandbar() method

Definition at line 373 of file PythonWorkbenchPyImp.cpp.

References removeCommandbar().

PyObject * PythonWorkbenchPy::removeCommandbar ( PyObject args  ) 

implementer for the removeCommandbar() method

Removes a command bar.

Definition at line 290 of file PythonWorkbenchPyImp.cpp.

References getPythonWorkbenchPtr(), PY_CATCH, Py_Return, PY_TRY, and Gui::PythonWorkbench::removeCommandbar().

Referenced by RemoveCommandbar().

PyObject * PythonWorkbenchPy::RemoveContextMenu ( PyObject args  ) 

implementer for the RemoveContextMenu() method

Definition at line 348 of file PythonWorkbenchPyImp.cpp.

References removeContextMenu().

PyObject * PythonWorkbenchPy::removeContextMenu ( PyObject args  ) 

implementer for the removeContextMenu() method

Removes a context menu.

Definition at line 190 of file PythonWorkbenchPyImp.cpp.

References getPythonWorkbenchPtr(), PY_CATCH, Py_Return, PY_TRY, and Gui::PythonWorkbench::removeContextMenu().

Referenced by RemoveContextMenu().

PyObject * PythonWorkbenchPy::RemoveMenu ( PyObject args  ) 

implementer for the RemoveMenu() method

Definition at line 333 of file PythonWorkbenchPyImp.cpp.

References removeMenu().

PyObject * PythonWorkbenchPy::removeMenu ( PyObject args  ) 

implementer for the removeMenu() method

Removes a menu.

Definition at line 106 of file PythonWorkbenchPyImp.cpp.

References getPythonWorkbenchPtr(), PY_CATCH, Py_Return, PY_TRY, and Gui::PythonWorkbench::removeMenu().

Referenced by RemoveMenu().

PyObject * PythonWorkbenchPy::RemoveToolbar ( PyObject args  ) 

implementer for the RemoveToolbar() method

Definition at line 358 of file PythonWorkbenchPyImp.cpp.

References removeToolbar().

PyObject * PythonWorkbenchPy::removeToolbar ( PyObject args  ) 

implementer for the removeToolbar() method

Removes a toolbar.

Definition at line 232 of file PythonWorkbenchPyImp.cpp.

References getPythonWorkbenchPtr(), PY_CATCH, Py_Return, PY_TRY, and Gui::PythonWorkbench::removeToolbar().

Referenced by RemoveToolbar().

std::string PythonWorkbenchPy::representation ( void   )  const

Reimplemented from Gui::WorkbenchPy.

Definition at line 45 of file PythonWorkbenchPyImp.cpp.

Referenced by _repr().

int PythonWorkbenchPy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

setter for special attributes (e.g. dynamic ones)

Reimplemented from Gui::WorkbenchPy.

Definition at line 323 of file PythonWorkbenchPyImp.cpp.

Referenced by _setattr().

PyObject * PythonWorkbenchPy::staticCallback_AppendCommandbar ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_appendCommandbar ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_AppendContextMenu ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_appendContextMenu ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_AppendMenu ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_appendMenu ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_AppendToolbar ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_appendToolbar ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_ListCommandbars ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_listCommandbars ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_ListMenus ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_listMenus ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_ListToolbars ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_listToolbars ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_RemoveCommandbar ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_removeCommandbar ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_RemoveContextMenu ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_removeContextMenu ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_RemoveMenu ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_removeMenu ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_RemoveToolbar ( PyObject self,
PyObject args 
) [static]
PyObject * PythonWorkbenchPy::staticCallback_removeToolbar ( PyObject self,
PyObject args 
) [static]

Member Data Documentation

PyGetSetDef PythonWorkbenchPy::GetterSetter [static]
Initial value:
 {
    {NULL, NULL, NULL, NULL, NULL}              
}

Attribute structure of PythonWorkbenchPy.

Reimplemented from Gui::WorkbenchPy.

Definition at line 25 of file PythonWorkbenchPy.h.

PyMethodDef PythonWorkbenchPy::Methods [static]

Methods structure of PythonWorkbenchPy.

Reimplemented from Gui::WorkbenchPy.

Definition at line 24 of file PythonWorkbenchPy.h.

Referenced by _getattr().

PyParentObject PythonWorkbenchPy::Parents = { PARENTSGuiPythonWorkbenchPy } [static]

Reimplemented from Gui::WorkbenchPy.

Definition at line 26 of file PythonWorkbenchPy.h.

PyTypeObject PythonWorkbenchPy::Type [static]

Type structure of PythonWorkbenchPy.

Reimplemented from Gui::WorkbenchPy.

Definition at line 23 of file PythonWorkbenchPy.h.


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:02 2011 for FreeCAD by  doxygen 1.6.1