2012-05-05 20:18:47 +00:00
|
|
|
/**
|
|
|
|
* @file pcbnew_footprint_wizards.h
|
|
|
|
* @brief Class PCBNEW_FOOTPRINT_WIZARDS
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PCBNEW_FOOTPRINT_WIZARDS_H
|
|
|
|
#define PCBNEW_FOOTPRINT_WIZARDS_H
|
|
|
|
#include <Python.h>
|
|
|
|
#include <vector>
|
2012-05-09 17:37:25 +00:00
|
|
|
#include <class_footprint_wizard.h>
|
2012-05-05 20:18:47 +00:00
|
|
|
|
2012-05-10 08:53:05 +00:00
|
|
|
|
|
|
|
|
2012-05-09 17:37:25 +00:00
|
|
|
class PYTHON_FOOTPRINT_WIZARD: public FOOTPRINT_WIZARD
|
2012-05-05 20:18:47 +00:00
|
|
|
{
|
|
|
|
|
2012-05-09 17:37:25 +00:00
|
|
|
PyObject *m_PyWizard;
|
2012-07-31 21:00:33 +00:00
|
|
|
PyObject *CallMethod( const char *aMethod, PyObject *aArglist=NULL );
|
|
|
|
wxString CallRetStrMethod( const char *aMethod, PyObject *aArglist=NULL );
|
|
|
|
wxArrayString CallRetArrayStrMethod( const char *aMethod,
|
|
|
|
PyObject *aArglist=NULL );
|
2012-05-09 23:04:08 +00:00
|
|
|
|
2012-05-05 20:18:47 +00:00
|
|
|
public:
|
2012-07-31 21:00:33 +00:00
|
|
|
PYTHON_FOOTPRINT_WIZARD( PyObject *wizard );
|
2012-05-09 17:37:25 +00:00
|
|
|
~PYTHON_FOOTPRINT_WIZARD();
|
2012-05-05 20:18:47 +00:00
|
|
|
wxString GetName();
|
|
|
|
wxString GetImage();
|
|
|
|
wxString GetDescription();
|
|
|
|
int GetNumParameterPages();
|
2012-07-31 21:00:33 +00:00
|
|
|
wxString GetParameterPageName( int aPage );
|
|
|
|
wxArrayString GetParameterNames( int aPage );
|
|
|
|
wxArrayString GetParameterTypes( int aPage );
|
|
|
|
wxArrayString GetParameterValues( int aPage );
|
|
|
|
wxArrayString GetParameterErrors( int aPage );
|
|
|
|
wxString SetParameterValues( int aPage, wxArrayString& aValues ); //< must return "OK" or error description
|
2012-05-05 20:18:47 +00:00
|
|
|
MODULE *GetModule();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2012-05-09 17:37:25 +00:00
|
|
|
class PYTHON_FOOTPRINT_WIZARDS
|
2012-05-05 20:18:47 +00:00
|
|
|
{
|
|
|
|
public:
|
2012-07-31 21:00:33 +00:00
|
|
|
static void register_wizard( PyObject *aPyWizard );
|
2012-05-05 20:18:47 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* PCBNEW_FOOTPRINT_WIZARDS_H */
|
|
|
|
|