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
24#include <rc_item.h>
25
27class PCB_MARKER;
28
29
31{
32public:
35
36 void SelectMarker( const PCB_MARKER* aMarker );
37
38private:
39 int getSeverities() const;
40
41 void runChecks();
42
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
64private:
67
68 std::shared_ptr<RC_ITEMS_PROVIDER> m_markersProvider;
70
72};
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)
void centerMarkerIdleHandler(wxIdleEvent &aEvent)
void OnCancelClick(wxCommandEvent &aEvent) override
void OnDeleteAllClick(wxCommandEvent &event) override
void OnClose(wxCloseEvent &event) override
std::shared_ptr< RC_ITEMS_PROVIDER > m_markersProvider
void OnSeverity(wxCommandEvent &aEvent) override
DIALOG_FOOTPRINT_CHECKER(FOOTPRINT_EDIT_FRAME *aParent)
void OnRunChecksClick(wxCommandEvent &aEvent) override
void OnSelectItem(wxDataViewEvent &event) override
void SelectMarker(const PCB_MARKER *aMarker)
void OnDeleteOneClick(wxCommandEvent &event) override
void OnLeftDClickItem(wxMouseEvent &event) override
const PCB_MARKER * m_centerMarkerOnIdle