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 PythonWorkbench * PointerType

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.
PyObject * getCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones)
virtual PyParentObject * GetParents (void)
PythonWorkbench * getPythonWorkbenchPtr (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 PyObject * PyMake (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



PyObject * AppendCommandbar (PyObject *args)
 implementer for the AppendCommandbar() method
PyObject * appendCommandbar (PyObject *args)
 implementer for the appendCommandbar() method
PyObject * AppendContextMenu (PyObject *args)
 implementer for the AppendContextMenu() method
PyObject * appendContextMenu (PyObject *args)
 implementer for the appendContextMenu() method
PyObject * AppendMenu (PyObject *args)
 implementer for the AppendMenu() method
PyObject * appendMenu (PyObject *args)
 implementer for the appendMenu() method
PyObject * AppendToolbar (PyObject *args)
 implementer for the AppendToolbar() method
PyObject * appendToolbar (PyObject *args)
 implementer for the appendToolbar() method
PyObject * ListCommandbars (PyObject *args)
 implementer for the ListCommandbars() method
PyObject * listCommandbars (PyObject *args)
 implementer for the listCommandbars() method
PyObject * ListMenus (PyObject *args)
 implementer for the ListMenus() method
PyObject * listMenus (PyObject *args)
 implementer for the listMenus() method
PyObject * ListToolbars (PyObject *args)
 implementer for the ListToolbars() method
PyObject * listToolbars (PyObject *args)
 implementer for the listToolbars() method
PyObject * RemoveCommandbar (PyObject *args)
 implementer for the RemoveCommandbar() method
PyObject * removeCommandbar (PyObject *args)
 implementer for the removeCommandbar() method
PyObject * RemoveContextMenu (PyObject *args)
 implementer for the RemoveContextMenu() method
PyObject * removeContextMenu (PyObject *args)
 implementer for the removeContextMenu() method
PyObject * RemoveMenu (PyObject *args)
 implementer for the RemoveMenu() method
PyObject * removeMenu (PyObject *args)
 implementer for the removeMenu() method
PyObject * RemoveToolbar (PyObject *args)
 implementer for the RemoveToolbar() method
PyObject * removeToolbar (PyObject *args)
 implementer for the removeToolbar() method
static PyObject * staticCallback_AppendCommandbar (PyObject *self, PyObject *args)
 callback for the AppendCommandbar() method
static PyObject * staticCallback_appendCommandbar (PyObject *self, PyObject *args)
 callback for the appendCommandbar() method
static PyObject * staticCallback_AppendContextMenu (PyObject *self, PyObject *args)
 callback for the AppendContextMenu() method
static PyObject * staticCallback_appendContextMenu (PyObject *self, PyObject *args)
 callback for the appendContextMenu() method
static PyObject * staticCallback_AppendMenu (PyObject *self, PyObject *args)
 callback for the AppendMenu() method
static PyObject * staticCallback_appendMenu (PyObject *self, PyObject *args)
 callback for the appendMenu() method
static PyObject * staticCallback_AppendToolbar (PyObject *self, PyObject *args)
 callback for the AppendToolbar() method
static PyObject * staticCallback_appendToolbar (PyObject *self, PyObject *args)
 callback for the appendToolbar() method
static PyObject * staticCallback_ListCommandbars (PyObject *self, PyObject *args)
 callback for the ListCommandbars() method
static PyObject * staticCallback_listCommandbars (PyObject *self, PyObject *args)
 callback for the listCommandbars() method
static PyObject * staticCallback_ListMenus (PyObject *self, PyObject *args)
 callback for the ListMenus() method
static PyObject * staticCallback_listMenus (PyObject *self, PyObject *args)
 callback for the listMenus() method
static PyObject * staticCallback_ListToolbars (PyObject *self, PyObject *args)
 callback for the ListToolbars() method
static PyObject * staticCallback_listToolbars (PyObject *self, PyObject *args)
 callback for the listToolbars() method
static PyObject * staticCallback_RemoveCommandbar (PyObject *self, PyObject *args)
 callback for the RemoveCommandbar() method
static PyObject * staticCallback_removeCommandbar (PyObject *self, PyObject *args)
 callback for the removeCommandbar() method
static PyObject * staticCallback_RemoveContextMenu (PyObject *self, PyObject *args)
 callback for the RemoveContextMenu() method
static PyObject * staticCallback_removeContextMenu (PyObject *self, PyObject *args)
 callback for the removeContextMenu() method
static PyObject * staticCallback_RemoveMenu (PyObject *self, PyObject *args)
 callback for the RemoveMenu() method
static PyObject * staticCallback_removeMenu (PyObject *self, PyObject *args)
 callback for the removeMenu() method
static PyObject * staticCallback_RemoveToolbar (PyObject *self, PyObject *args)
 callback for the RemoveToolbar() method
static PyObject * staticCallback_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