KiCad PCB EDA Suite
panel_setup_pinmap.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) 2007 Jean-Pierre Charras, jp.charras at wanadoo.fr
5  * Copyright (C) 1992-2014 KiCad Developers, see AUTHORS.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 _PANEL_SETUP_PINMAP_H_
26 #define _PANEL_SETUP_PINMAP_H_
27 
28 #include <vector>
29 #include <lib_pin.h> // For PINTYPE_COUNT definition
30 #include <erc_settings.h>
32 
33 
34 class SCH_EDIT_FRAME;
35 class SCHEMATIC;
36 
37 
39 {
40  DECLARE_EVENT_TABLE()
41 
42 private:
47 
48 public:
49  PANEL_SETUP_PINMAP( wxWindow* aWindow, SCH_EDIT_FRAME* aParent );
50 
51  bool Show( bool show ) override;
53 
54 private:
55  void OnResetMatrixClick( wxCommandEvent& aEvent ) override;
56 
57  void changeErrorLevel( wxCommandEvent& event );
58  void reBuildMatrixPanel();
59  void setDRCMatrixButtonState( wxBitmapButton *aButton, PIN_ERROR aState );
60 };
61 
62 
63 #endif
64 
65 // _PANEL_SETUP_PINMAP_H_
PANEL_SETUP_PINMAP(wxWindow *aWindow, SCH_EDIT_FRAME *aParent)
Holds all the data relating to one schematic A schematic may consist of one or more sheets (and one r...
Definition: schematic.h:42
void setDRCMatrixButtonState(wxBitmapButton *aButton, PIN_ERROR aState)
void OnResetMatrixClick(wxCommandEvent &aEvent) override
SCH_EDIT_FRAME * m_parent
Class PANEL_SETUP_PINMAP_BASE.
PIN_ERROR
The values a pin-to-pin entry in the pin matrix can take on.
Definition: erc_settings.h:66
Schematic editor (Eeschema) main window.
void ImportSettingsFrom(PIN_ERROR aPinMap[][ELECTRICAL_PINTYPES_TOTAL])
wxBitmapButton * m_buttonList[ELECTRICAL_PINTYPES_TOTAL][ELECTRICAL_PINTYPES_TOTAL]
bool Show(bool show) override
void changeErrorLevel(wxCommandEvent &event)
#define ELECTRICAL_PINTYPES_TOTAL
Definition: pin_type.h:54