Loading pcbnew/class_module.h +0 −2 Original line number Diff line number Diff line Loading @@ -235,8 +235,6 @@ public: */ bool Read_GPCB_Descr( const wxString& CmpFullFileName ); int Read_3D_Descr( LINE_READER* aReader ); /* drawing functions */ void Draw( EDA_DRAW_PANEL* aPanel, Loading pcbnew/class_netclass.h +0 −7 Original line number Diff line number Diff line Loading @@ -294,13 +294,6 @@ public: */ NETCLASS* Find( const wxString& aName ) const; /** * Function Save * writes the data structures for this object out to a FILE in "*.brd" format. * @param aFile The FILE to write to. * @return bool - true if success writing else false. */ bool Save( FILE* aFile ) const; }; #endif // CLASS_NETCLASS_H pcbnew/scripting/board.i +7 −4 Original line number Diff line number Diff line Loading @@ -45,8 +45,11 @@ def Save(self,filename,format = None): if format is None: return SaveBoard(filename,self) else: str_filename = str(filename) if str_filename.endswith(".brd"): format = IO_MGR.LEGACY if str_filename.endswith(".kicad_brd"): format = IO_MGR.KICAD return SaveBoard(filename,self,format) # Loading pcbnew/scripting/examples/createPcb.py +2 −2 Original line number Diff line number Diff line Loading @@ -34,9 +34,9 @@ for y in range (0,10): # save the PCB to disk pcb.Save("/tmp/my2.kicad_brd") pcb.Save("/tmp/my2.brd",IO_MGR.LEGACY) pcb.Save("/tmp/my2.brd") pcb = LoadBoard("/tmp/my2.brd",IO_MGR.LEGACY) pcb = LoadBoard("/tmp/my2.brd") print map( lambda x: x.GetReference() , list(pcb.GetModules())) Loading pcbnew/scripting/pcbnew.i +6 −8 Original line number Diff line number Diff line Loading @@ -73,12 +73,11 @@ BOARD *GetBoard(); /* get current editor board */ %} #ifdef BUILD_WITH_PLUGIN %{ #include <io_mgr.h> #include <kicad_plugin.h> %} #endif %include <class_board_item.h> %include <class_board_connected_item.h> Loading @@ -104,15 +103,14 @@ %include <pcbnew_scripting_helpers.h> #ifdef BUILD_WITH_PLUGIN // ignore RELEASER as nested classes are still unsupported by swig %ignore IO_MGR::RELEASER; %include <io_mgr.h> %include <kicad_plugin.h> #endif %include "board.i" %include "module.i" %include "units.i" Loading
pcbnew/class_module.h +0 −2 Original line number Diff line number Diff line Loading @@ -235,8 +235,6 @@ public: */ bool Read_GPCB_Descr( const wxString& CmpFullFileName ); int Read_3D_Descr( LINE_READER* aReader ); /* drawing functions */ void Draw( EDA_DRAW_PANEL* aPanel, Loading
pcbnew/class_netclass.h +0 −7 Original line number Diff line number Diff line Loading @@ -294,13 +294,6 @@ public: */ NETCLASS* Find( const wxString& aName ) const; /** * Function Save * writes the data structures for this object out to a FILE in "*.brd" format. * @param aFile The FILE to write to. * @return bool - true if success writing else false. */ bool Save( FILE* aFile ) const; }; #endif // CLASS_NETCLASS_H
pcbnew/scripting/board.i +7 −4 Original line number Diff line number Diff line Loading @@ -45,8 +45,11 @@ def Save(self,filename,format = None): if format is None: return SaveBoard(filename,self) else: str_filename = str(filename) if str_filename.endswith(".brd"): format = IO_MGR.LEGACY if str_filename.endswith(".kicad_brd"): format = IO_MGR.KICAD return SaveBoard(filename,self,format) # Loading
pcbnew/scripting/examples/createPcb.py +2 −2 Original line number Diff line number Diff line Loading @@ -34,9 +34,9 @@ for y in range (0,10): # save the PCB to disk pcb.Save("/tmp/my2.kicad_brd") pcb.Save("/tmp/my2.brd",IO_MGR.LEGACY) pcb.Save("/tmp/my2.brd") pcb = LoadBoard("/tmp/my2.brd",IO_MGR.LEGACY) pcb = LoadBoard("/tmp/my2.brd") print map( lambda x: x.GetReference() , list(pcb.GetModules())) Loading
pcbnew/scripting/pcbnew.i +6 −8 Original line number Diff line number Diff line Loading @@ -73,12 +73,11 @@ BOARD *GetBoard(); /* get current editor board */ %} #ifdef BUILD_WITH_PLUGIN %{ #include <io_mgr.h> #include <kicad_plugin.h> %} #endif %include <class_board_item.h> %include <class_board_connected_item.h> Loading @@ -104,15 +103,14 @@ %include <pcbnew_scripting_helpers.h> #ifdef BUILD_WITH_PLUGIN // ignore RELEASER as nested classes are still unsupported by swig %ignore IO_MGR::RELEASER; %include <io_mgr.h> %include <kicad_plugin.h> #endif %include "board.i" %include "module.i" %include "units.i"