KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_footprint_checker.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) 2010-2014 Jean-Pierre Charras, jean-pierre.charras at wanadoo.fr
5
* Copyright The 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, see <https://www.gnu.org/licenses/>.
19
*/
20
21
#pragma once
22
23
#include <
dialog_footprint_checker_base.h
>
24
#include <
rc_item.h
>
25
26
class
FOOTPRINT_EDIT_FRAME
;
27
class
PCB_MARKER
;
28
29
30
class
DIALOG_FOOTPRINT_CHECKER
:
public
DIALOG_FOOTPRINT_CHECKER_BASE
31
{
32
public
:
33
DIALOG_FOOTPRINT_CHECKER
(
FOOTPRINT_EDIT_FRAME
* aParent );
34
~DIALOG_FOOTPRINT_CHECKER
();
35
36
void
SelectMarker
(
const
PCB_MARKER
* aMarker );
37
38
private
:
39
int
getSeverities
()
const
;
40
41
void
runChecks
();
42
43
void
updateDisplayedCounts
();
44
void
updateData
();
45
46
void
centerMarkerIdleHandler
( wxIdleEvent& aEvent );
47
48
void
deleteAllMarkers
();
49
void
refreshEditor
();
50
51
void
OnRunChecksClick
( wxCommandEvent& aEvent )
override
;
52
void
OnCancelClick
( wxCommandEvent& aEvent )
override
;
53
void
OnClose
( wxCloseEvent& event )
override
;
54
55
void
OnSeverity
( wxCommandEvent& aEvent )
override
;
56
57
void
OnSelectItem
( wxDataViewEvent& event )
override
;
58
void
OnLeftDClickItem
( wxMouseEvent& event )
override
;
59
void
OnDeleteOneClick
( wxCommandEvent& event )
override
;
60
void
OnDeleteAllClick
( wxCommandEvent& event )
override
;
61
62
bool
TransferDataToWindow
()
override
;
63
64
private
:
65
FOOTPRINT_EDIT_FRAME
*
m_frame
;
66
bool
m_checksRun
;
67
68
std::shared_ptr<RC_ITEMS_PROVIDER>
m_markersProvider
;
69
RC_TREE_MODEL
*
m_markersTreeModel
;
70
71
const
PCB_MARKER
*
m_centerMarkerOnIdle
;
72
};
DIALOG_FOOTPRINT_CHECKER_BASE::DIALOG_FOOTPRINT_CHECKER_BASE
DIALOG_FOOTPRINT_CHECKER_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Footprint Checker"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Definition
dialog_footprint_checker_base.cpp:12
DIALOG_FOOTPRINT_CHECKER::centerMarkerIdleHandler
void centerMarkerIdleHandler(wxIdleEvent &aEvent)
Definition
dialog_footprint_checker.cpp:185
DIALOG_FOOTPRINT_CHECKER::OnCancelClick
void OnCancelClick(wxCommandEvent &aEvent) override
Definition
dialog_footprint_checker.cpp:335
DIALOG_FOOTPRINT_CHECKER::OnDeleteAllClick
void OnDeleteAllClick(wxCommandEvent &event) override
Definition
dialog_footprint_checker.cpp:376
DIALOG_FOOTPRINT_CHECKER::OnClose
void OnClose(wxCloseEvent &event) override
Definition
dialog_footprint_checker.cpp:347
DIALOG_FOOTPRINT_CHECKER::m_frame
FOOTPRINT_EDIT_FRAME * m_frame
Definition
dialog_footprint_checker.h:65
DIALOG_FOOTPRINT_CHECKER::m_markersProvider
std::shared_ptr< RC_ITEMS_PROVIDER > m_markersProvider
Definition
dialog_footprint_checker.h:68
DIALOG_FOOTPRINT_CHECKER::m_checksRun
bool m_checksRun
Definition
dialog_footprint_checker.h:66
DIALOG_FOOTPRINT_CHECKER::~DIALOG_FOOTPRINT_CHECKER
~DIALOG_FOOTPRINT_CHECKER()
Definition
dialog_footprint_checker.cpp:59
DIALOG_FOOTPRINT_CHECKER::OnSeverity
void OnSeverity(wxCommandEvent &aEvent) override
Definition
dialog_footprint_checker.cpp:322
DIALOG_FOOTPRINT_CHECKER::deleteAllMarkers
void deleteAllMarkers()
Definition
dialog_footprint_checker.cpp:386
DIALOG_FOOTPRINT_CHECKER::DIALOG_FOOTPRINT_CHECKER
DIALOG_FOOTPRINT_CHECKER(FOOTPRINT_EDIT_FRAME *aParent)
Definition
dialog_footprint_checker.cpp:37
DIALOG_FOOTPRINT_CHECKER::OnRunChecksClick
void OnRunChecksClick(wxCommandEvent &aEvent) override
Definition
dialog_footprint_checker.cpp:196
DIALOG_FOOTPRINT_CHECKER::getSeverities
int getSeverities() const
Definition
dialog_footprint_checker.cpp:305
DIALOG_FOOTPRINT_CHECKER::refreshEditor
void refreshEditor()
Definition
dialog_footprint_checker.cpp:354
DIALOG_FOOTPRINT_CHECKER::m_markersTreeModel
RC_TREE_MODEL * m_markersTreeModel
Definition
dialog_footprint_checker.h:69
DIALOG_FOOTPRINT_CHECKER::runChecks
void runChecks()
Definition
dialog_footprint_checker.cpp:84
DIALOG_FOOTPRINT_CHECKER::OnSelectItem
void OnSelectItem(wxDataViewEvent &event) override
Definition
dialog_footprint_checker.cpp:203
DIALOG_FOOTPRINT_CHECKER::updateData
void updateData()
Definition
dialog_footprint_checker.cpp:70
DIALOG_FOOTPRINT_CHECKER::TransferDataToWindow
bool TransferDataToWindow() override
Definition
dialog_footprint_checker.cpp:77
DIALOG_FOOTPRINT_CHECKER::updateDisplayedCounts
void updateDisplayedCounts()
Definition
dialog_footprint_checker.cpp:396
DIALOG_FOOTPRINT_CHECKER::SelectMarker
void SelectMarker(const PCB_MARKER *aMarker)
Definition
dialog_footprint_checker.cpp:174
DIALOG_FOOTPRINT_CHECKER::OnDeleteOneClick
void OnDeleteOneClick(wxCommandEvent &event) override
Definition
dialog_footprint_checker.cpp:362
DIALOG_FOOTPRINT_CHECKER::OnLeftDClickItem
void OnLeftDClickItem(wxMouseEvent &event) override
Definition
dialog_footprint_checker.cpp:291
DIALOG_FOOTPRINT_CHECKER::m_centerMarkerOnIdle
const PCB_MARKER * m_centerMarkerOnIdle
Definition
dialog_footprint_checker.h:71
FOOTPRINT_EDIT_FRAME
Definition
footprint_edit_frame.h:47
PCB_MARKER
Definition
pcb_marker.h:34
RC_TREE_MODEL
Definition
rc_item.h:260
dialog_footprint_checker_base.h
rc_item.h
src
pcbnew
dialogs
dialog_footprint_checker.h
Generated on Fri Jun 26 2026 00:05:38 for KiCad PCB EDA Suite by
1.13.2