KiCad PCB EDA Suite
pcbnew_scripting_helpers.h
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KiCad, a free EDA CAD application.
3  *
4  * Copyright (C) 2013 NBEE Embedded Systems SL, Miguel Angel Ajo <miguelangel@ajo.es>
5  * Copyright (C) 2013-2017 KiCad Developers, see CHANGELOG.TXT for contributors.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, you may find one here:
19  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20  * or you may search the http://www.gnu.org website for the version 2 license,
21  * or you may write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23  */
24 
25 #ifndef __PCBNEW_SCRIPTING_HELPERS_H
26 #define __PCBNEW_SCRIPTING_HELPERS_H
27 
28 #include <wxPcbStruct.h>
29 #include <io_mgr.h>
30 /* we could be including all these methods as static in a class, but
31  * we want plain pcbnew.<method_name> access from python */
32 
33 #ifndef SWIG
34 void ScriptingSetPcbEditFrame( PCB_EDIT_FRAME* aPCBEdaFrame );
35 
36 #endif
37 
38 BOARD* GetBoard();
39 
40 BOARD* LoadBoard( wxString& aFileName, IO_MGR::PCB_FILE_T aFormat );
41 BOARD* LoadBoard( wxString& aFileName );
42 
43 bool SaveBoard( wxString& aFileName, BOARD* aBoard, IO_MGR::PCB_FILE_T aFormat );
44 bool SaveBoard( wxString& aFileName, BOARD* aBoard );
45 
46 void Refresh();
47 void WindowZoom( int xl, int yl, int width, int height );
48 
49 #endif
void ScriptingSetPcbEditFrame(PCB_EDIT_FRAME *aPCBEdaFrame)
BOARD * LoadBoard(wxString &aFileName, IO_MGR::PCB_FILE_T aFormat)
void WindowZoom(int xl, int yl, int width, int height)
BOARD * GetBoard()
Class BOARD holds information pertinent to a Pcbnew printed circuit board.
Definition: class_board.h:166
bool SaveBoard(wxString &aFileName, BOARD *aBoard, IO_MGR::PCB_FILE_T aFormat)
void Refresh()
PCB_FILE_T
Enum PCB_FILE_T is a set of file types that the IO_MGR knows about, and for which there has been a pl...
Definition: io_mgr.h:51