KiCad PCB EDA Suite
Loading...
Searching...
No Matches
fp_conflict_assignment_selector.h
Go to the documentation of this file.
1
4
5/*
6 * This program source code file is part of KICAD, a free EDA CAD application.
7 *
8 * Copyright (C) 2010-2014 Jean-Pierre Charras <jp.charras at wanadoo.fr>
9 * Copyright The KiCad Developers, see AUTHORS.TXT for contributors.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <https://www.gnu.org/licenses/>.
23 */
24
26
27
29{
30public:
32
40 void Add( const wxString& aRef, const wxString& aFpSchName, const wxString& aFpCmpName );
41
48 int GetSelection( const wxString& aReference );
49
50private:
51 void OnSize( wxSizeEvent& event ) override;
52
53 // Virtual: called when clicking on the column title:
54 // when it is a column choice, set all item choices.
55 void OnColumnClick( wxListEvent& event ) override;
56
57 void OnItemClicked( wxMouseEvent& event ) override;
58
59 void OnCancelClick( wxCommandEvent& event ) override { EndModal( wxID_CANCEL ); }
60 void OnOKClick( wxCommandEvent& event ) override { EndModal( wxID_OK ); }
61
62 void recalculateColumns();
63
69
71};
DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Footprint Assignment Conflicts"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
void OnCancelClick(wxCommandEvent &event) override
void Add(const wxString &aRef, const wxString &aFpSchName, const wxString &aFpCmpName)
Add a line to the selection list.
void OnOKClick(wxCommandEvent &event) override