KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_track_via_properties.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) 2015 CERN
5 * Copyright (C) 2015-2023 KiCad Developers, see AUTHORS.txt for contributors.
6 * @author Maciej Suminski <[email protected]>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, you may find one here:
20 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21 * or you may search the http://www.gnu.org website for the version 2 license,
22 * or you may write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 */
25
27#include <widgets/unit_binder.h>
28#include <optional>
29#include <layer_ids.h>
30
31class PCB_SELECTION;
32class PCB_BASE_FRAME;
33class PAD;
34class PADSTACK;
35
37{
38public:
40
42
43 bool TransferDataFromWindow() override;
44
45private:
46 void onNetSelector( wxCommandEvent& aEvent );
47 void onViaNotFreeClicked( wxCommandEvent& aEvent ) override;
48 void onWidthSelect( wxCommandEvent& aEvent ) override;
49 void onWidthEdit( wxCommandEvent& aEvent ) override;
50 void onViaSelect( wxCommandEvent& aEvent ) override;
51 void onViaEdit( wxCommandEvent& aEvent ) override;
52 void onTentingLinkToggle( wxCommandEvent& event ) override;
53 void onFrontTentingChanged( wxCommandEvent& event ) override;
54 void onTrackEdit( wxCommandEvent& aEvent ) override;
55 void onPadstackModeChanged( wxCommandEvent& aEvent ) override;
56 void onEditLayerChanged( wxCommandEvent& aEvent ) override;
57
58 void onUnitsChanged( wxCommandEvent& aEvent );
59 void onTeardropsUpdateUi( wxUpdateUIEvent& event ) override;
60
61 bool confirmPadChange( const std::vector<PAD*>& connectedPads );
62
63 int getLayerDepth();
65
66private:
68 const PCB_SELECTION& m_items; // List of items to be modified.
69
74
77
83
84 bool m_tracks; // True if dialog displays any track properties.
85 bool m_vias; // True if dialog displays any via properties.
86
88 std::unique_ptr<PADSTACK> m_viaStack;
89
92 std::map<int, PCB_LAYER_ID> m_editLayerCtrlMap;
93};
Class DIALOG_TRACK_VIA_PROPERTIES_BASE.
void onWidthEdit(wxCommandEvent &aEvent) override
void onUnitsChanged(wxCommandEvent &aEvent)
void onNetSelector(wxCommandEvent &aEvent)
void onTentingLinkToggle(wxCommandEvent &event) override
void onWidthSelect(wxCommandEvent &aEvent) override
void onTeardropsUpdateUi(wxUpdateUIEvent &event) override
void onPadstackModeChanged(wxCommandEvent &aEvent) override
void onViaEdit(wxCommandEvent &aEvent) override
bool confirmPadChange(const std::vector< PAD * > &connectedPads)
std::map< int, PCB_LAYER_ID > m_editLayerCtrlMap
void onFrontTentingChanged(wxCommandEvent &event) override
PCB_LAYER_ID m_editLayer
The currently-shown copper layer of the edited via(s)
void onViaSelect(wxCommandEvent &aEvent) override
void onEditLayerChanged(wxCommandEvent &aEvent) override
void onViaNotFreeClicked(wxCommandEvent &aEvent) override
std::unique_ptr< PADSTACK > m_viaStack
Temporary padstack of the edited via(s)
void onTrackEdit(wxCommandEvent &aEvent) override
A PADSTACK defines the characteristics of a single or multi-layer pad, in the IPC sense of the word.
Definition: padstack.h:124
Definition: pad.h:54
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
PCB_LAYER_ID
A quick note on layer IDs:
Definition: layer_ids.h:60