KiCad PCB EDA Suite
dialog_erc.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 _DIALOG_ERC_H_
26 #define _DIALOG_ERC_H_
27 
28 #include <wx/htmllbox.h>
29 #include <vector>
30 #include <lib_pin.h> // For PINTYPE_COUNT definition
31 
32 #include <dialog_erc_base.h>
33 #include <erc_settings.h>
34 #include "dialog_erc_listbox.h"
35 
36 // DIALOG_ERC class declaration
37 
39 {
40  DECLARE_EVENT_TABLE()
41 
42 private:
47  static bool m_diagErcTableInit; // go to true after DiagErc init
49 
50 public:
51  DIALOG_ERC( SCH_EDIT_FRAME* parent );
52  ~DIALOG_ERC();
53 
54 private:
55  void Init();
56 
57  // from DIALOG_ERC_BASE:
58  void OnCloseErcDialog( wxCloseEvent& event ) override;
59  void OnErcCmpClick( wxCommandEvent& event ) override;
60  void OnEraseDrcMarkersClick( wxCommandEvent& event ) override;
61  void OnButtonCloseClick( wxCommandEvent& event ) override;
62  void OnResetMatrixClick( wxCommandEvent& event ) override;
63 
64  void RedrawDrawPanel();
65 
66  // Click on a marker info:
67  void OnLeftClickMarkersList( wxHtmlLinkEvent& event ) override;
68 
69  // Double click on a marker info:
70  void OnLeftDblClickMarkersList( wxMouseEvent& event ) override;
71 
72  void TestErc( REPORTER& aReporter );
74  void ResetDefaultERCDiag( wxCommandEvent& event );
75  void ChangeErrorLevel( wxCommandEvent& event );
76  void ReBuildMatrixPanel();
77  void setDRCMatrixButtonState( wxBitmapButton *aButton, int aState );
78  void updateMarkerCounts( SCH_SCREENS *screens );
81 };
82 
83 
84 #endif
85 
86 // _DIALOG_ERC_H_
void setDRCMatrixButtonState(wxBitmapButton *aButton, int aState)
Definition: dialog_erc.cpp:404
void Init()
Definition: dialog_erc.cpp:113
void transferSettingsToControls()
Definition: dialog_erc.cpp:136
Class DIALOG_ERC_BASE.
void OnEraseDrcMarkersClick(wxCommandEvent &event) override
Definition: dialog_erc.cpp:183
Schematic editor (Eeschema) main window.
Class REPORTER is a pure virtual class used to derive REPORTER objects from.
Definition: reporter.h:61
void ChangeErrorLevel(wxCommandEvent &event)
Definition: dialog_erc.cpp:471
void OnLeftClickMarkersList(wxHtmlLinkEvent &event) override
Definition: dialog_erc.cpp:235
bool m_initialized
Definition: dialog_erc.h:45
void OnErcCmpClick(wxCommandEvent &event) override
Definition: dialog_erc.cpp:214
wxBitmapButton * m_buttonList[PINTYPE_COUNT][PINTYPE_COUNT]
Definition: dialog_erc.h:44
void RedrawDrawPanel()
Definition: dialog_erc.cpp:227
void OnLeftDblClickMarkersList(wxMouseEvent &event) override
Definition: dialog_erc.cpp:297
DIALOG_ERC(SCH_EDIT_FRAME *parent)
void OnButtonCloseClick(wxCommandEvent &event) override
Definition: dialog_erc.cpp:196
Container for ERC settings.
Definition: erc_settings.h:30
SCH_EDIT_FRAME * m_parent
Definition: dialog_erc.h:43
void OnCloseErcDialog(wxCloseEvent &event) override
Definition: dialog_erc.cpp:202
ERC_SETTINGS m_settings
Definition: dialog_erc.h:48
static bool m_diagErcTableInit
Definition: dialog_erc.h:47
void OnResetMatrixClick(wxCommandEvent &event) override
Definition: dialog_erc.cpp:208
void transferControlsToSettings()
Definition: dialog_erc.cpp:148
void updateMarkerCounts(SCH_SCREENS *screens)
Definition: dialog_erc.cpp:160
void ReBuildMatrixPanel()
Definition: dialog_erc.cpp:318
void TestErc(REPORTER &aReporter)
Definition: dialog_erc.cpp:507
void ResetDefaultERCDiag(wxCommandEvent &event)
Definition: dialog_erc.cpp:462
const SCH_MARKER * m_lastMarkerFound
Definition: dialog_erc.h:46
Container class that holds multiple SCH_SCREEN objects in a hierarchy.
Definition: sch_screen.h:493
void DisplayERC_MarkersList()
Definition: dialog_erc.cpp:435