2012-03-17 15:17:13 +00:00
|
|
|
#ifndef __PCBNEW_SCRIPTING_HELPERS_H
|
|
|
|
#define __PCBNEW_SCRIPTING_HELPERS_H
|
|
|
|
|
|
|
|
#include <wxPcbStruct.h>
|
2012-04-14 21:18:27 +00:00
|
|
|
#include <io_mgr.h>
|
2012-03-17 15:17:13 +00:00
|
|
|
/* we could be including all these methods as static in a class, but
|
|
|
|
* we want plain pcbnew.<method_name> access from python */
|
|
|
|
|
|
|
|
#ifndef SWIG
|
2012-07-31 21:00:33 +00:00
|
|
|
void ScriptingSetPcbEditFrame( PCB_EDIT_FRAME *aPCBEdaFrame );
|
2012-03-17 15:17:13 +00:00
|
|
|
#endif
|
|
|
|
|
2012-04-08 14:25:49 +00:00
|
|
|
BOARD *GetBoard();
|
2012-04-14 21:18:27 +00:00
|
|
|
|
2012-07-31 21:00:33 +00:00
|
|
|
BOARD* LoadBoard( wxString& aFileName, IO_MGR::PCB_FILE_T aFormat );
|
|
|
|
BOARD* LoadBoard( wxString& aFileName );
|
2012-04-14 21:18:27 +00:00
|
|
|
|
2012-07-31 21:00:33 +00:00
|
|
|
bool SaveBoard( wxString& aFileName, BOARD* aBoard, IO_MGR::PCB_FILE_T aFormat );
|
|
|
|
bool SaveBoard( wxString& aFileName, BOARD* aBoard );
|
2012-03-17 15:17:13 +00:00
|
|
|
|
2012-07-31 21:00:33 +00:00
|
|
|
|
|
|
|
#endif
|