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 
35 // DIALOG_ERC class declaration
36 
38 {
39 private:
41 
44 
46 
47 public:
48  DIALOG_ERC( SCH_EDIT_FRAME* parent );
49  ~DIALOG_ERC();
50 
51 private:
52  // from DIALOG_ERC_BASE:
53  void OnCloseErcDialog( wxCloseEvent& event ) override;
54  void OnRunERCClick( wxCommandEvent& event ) override;
55  void OnEraseDrcMarkersClick( wxCommandEvent& event ) override;
56  void OnERCItemSelected( wxDataViewEvent& aEvent ) override;
57  void OnERCItemDClick( wxDataViewEvent& aEvent ) override;
58  void OnERCItemRClick( wxDataViewEvent& aEvent ) override;
59 
60  void OnSeverity( wxCommandEvent& aEvent ) override;
61  void OnSaveReport( wxCommandEvent& aEvent ) override;
62  void OnButtonCloseClick( wxCommandEvent& event ) override;
63 
64  void RedrawDrawPanel();
65 
66  void TestErc( REPORTER& aReporter );
67 
68  bool writeReport( const wxString& aFullFileName );
69 
70  void deleteAllMarkers();
71 
72  void syncCheckboxes();
73  void updateDisplayedCounts();
74 };
75 
76 
77 #endif
78 
79 // _DIALOG_ERC_H_
void OnERCItemRClick(wxDataViewEvent &aEvent) override
Definition: dialog_erc.cpp:379
RC_TREE_MODEL * m_markerTreeModel
Definition: dialog_erc.h:43
void syncCheckboxes()
Definition: dialog_erc.cpp:146
Class DIALOG_ERC_BASE.
bool writeReport(const wxString &aFullFileName)
Definition: dialog_erc.cpp:566
void OnEraseDrcMarkersClick(wxCommandEvent &event) override
Definition: dialog_erc.cpp:117
RC_ITEMS_PROVIDER * m_markerProvider
Definition: dialog_erc.h:42
void updateDisplayedCounts()
Definition: dialog_erc.cpp:96
Schematic editor (Eeschema) main window.
REPORTER is a pure virtual class used to derive REPORTER objects from.
Definition: reporter.h:62
void OnSeverity(wxCommandEvent &aEvent) override
Definition: dialog_erc.cpp:489
Provide an abstract interface of a RC_ITEM* list manager.
Definition: rc_item.h:42
void deleteAllMarkers()
Definition: dialog_erc.cpp:523
void RedrawDrawPanel()
Definition: dialog_erc.cpp:168
int m_severities
Definition: dialog_erc.h:45
DIALOG_ERC(SCH_EDIT_FRAME *parent)
Definition: dialog_erc.cpp:52
void OnButtonCloseClick(wxCommandEvent &event) override
Definition: dialog_erc.cpp:127
void OnERCItemSelected(wxDataViewEvent &aEvent) override
Definition: dialog_erc.cpp:335
SCH_EDIT_FRAME * m_parent
Definition: dialog_erc.h:40
void OnCloseErcDialog(wxCloseEvent &event) override
Definition: dialog_erc.cpp:135
void OnERCItemDClick(wxDataViewEvent &aEvent) override
Definition: dialog_erc.cpp:365
void OnSaveReport(wxCommandEvent &aEvent) override
Definition: dialog_erc.cpp:532
void TestErc(REPORTER &aReporter)
Definition: dialog_erc.cpp:176
void OnRunERCClick(wxCommandEvent &event) override
Definition: dialog_erc.cpp:155