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 "dialog_erc_listbox.h"
34 
35 // DIALOG_ERC class declaration
36 
38 {
39  DECLARE_EVENT_TABLE()
40 
41 private:
46  static bool m_writeErcFile;
47  static bool m_diagErcTableInit; // go to true after DiagErc init
49 
50 public:
51  static bool m_TestSimilarLabels;
52 
53 public:
54  DIALOG_ERC( SCH_EDIT_FRAME* parent );
55  ~DIALOG_ERC();
56 
57 private:
58  void Init();
59 
60  // from DIALOG_ERC_BASE:
61  void OnCloseErcDialog( wxCloseEvent& event ) override;
62  void OnErcCmpClick( wxCommandEvent& event ) override;
63  void OnEraseDrcMarkersClick( wxCommandEvent& event ) override;
64  void OnButtonCloseClick( wxCommandEvent& event ) override;
65  void OnResetMatrixClick( wxCommandEvent& event ) override;
66 
67  // Click on a marker info:
68  void OnLeftClickMarkersList( wxHtmlLinkEvent& event ) override;
69 
70  // Double click on a marker info:
71  void OnLeftDblClickMarkersList( wxMouseEvent& event ) override;
72 
73  void TestErc( wxArrayString* aMessagesList );
75  void SelLocal( wxCommandEvent& event );
76  void SelNewCmp( wxCommandEvent& event );
77  void ResetDefaultERCDiag( wxCommandEvent& event );
78  void ChangeErrorLevel( wxCommandEvent& event );
79  void ReBuildMatrixPanel();
80  void setDRCMatrixButtonState( wxBitmapButton *aButton, int aState );
81  void updateMarkerCounts( SCH_SCREENS *screens );
82 };
83 
84 
85 #endif
86 
87 // _DIALOG_ERC_H_
void SelNewCmp(wxCommandEvent &event)
static bool m_TestSimilarLabels
Definition: dialog_erc.h:51
void setDRCMatrixButtonState(wxBitmapButton *aButton, int aState)
Definition: dialog_erc.cpp:346
static bool m_writeErcFile
Definition: dialog_erc.h:46
void Init()
Definition: dialog_erc.cpp:93
Class DIALOG_ERC_BASE.
void OnEraseDrcMarkersClick(wxCommandEvent &event) override
Definition: dialog_erc.cpp:143
Schematic editor (Eeschema) main window.
Definition: schframe.h:117
void ChangeErrorLevel(wxCommandEvent &event)
Definition: dialog_erc.cpp:415
void OnLeftClickMarkersList(wxHtmlLinkEvent &event) override
Definition: dialog_erc.cpp:191
bool m_initialized
Definition: dialog_erc.h:44
void OnErcCmpClick(wxCommandEvent &event) override
Definition: dialog_erc.cpp:176
wxBitmapButton * m_buttonList[PINTYPE_COUNT][PINTYPE_COUNT]
Definition: dialog_erc.h:43
void OnLeftDblClickMarkersList(wxMouseEvent &event) override
Definition: dialog_erc.cpp:251
DIALOG_ERC(SCH_EDIT_FRAME *parent)
void OnButtonCloseClick(wxCommandEvent &event) override
Definition: dialog_erc.cpp:158
void SelLocal(wxCommandEvent &event)
SCH_EDIT_FRAME * m_parent
Definition: dialog_erc.h:42
void OnCloseErcDialog(wxCloseEvent &event) override
Definition: dialog_erc.cpp:164
void TestErc(wxArrayString *aMessagesList)
Definition: dialog_erc.cpp:451
static bool m_diagErcTableInit
Definition: dialog_erc.h:47
void OnResetMatrixClick(wxCommandEvent &event) override
Definition: dialog_erc.cpp:170
void updateMarkerCounts(SCH_SCREENS *screens)
Definition: dialog_erc.cpp:120
static bool m_tstUniqueGlobalLabels
Definition: dialog_erc.h:48
void ReBuildMatrixPanel()
Definition: dialog_erc.cpp:271
void ResetDefaultERCDiag(wxCommandEvent &event)
Definition: dialog_erc.cpp:404
const SCH_MARKER * m_lastMarkerFound
Definition: dialog_erc.h:45
Class SCH_SCREENS is a container class that holds multiple SCH_SCREENs in a hierarchy.
void DisplayERC_MarkersList()
Definition: dialog_erc.cpp:377