KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_setup_tracks_and_vias.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 The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20
21#ifndef PANEL_SETUP_TRACKS_AND_VIAS_H
22#define PANEL_SETUP_TRACKS_AND_VIAS_H
23
24#include <board.h>
25#include <widgets/unit_binder.h>
27
30
31class PCB_EDIT_FRAME;
33
34
36{
37public:
38 PANEL_SETUP_TRACKS_AND_VIAS( wxWindow* aParentWindow, PCB_EDIT_FRAME* aFrame );
40
41 bool TransferDataToWindow() override;
42 bool TransferDataFromWindow() override;
43
44 bool Validate() override;
45
46 void ImportSettingsFrom( BOARD* aBoard );
47
48protected:
49 void OnAddTrackWidthsClick( wxCommandEvent& event ) override;
50 void OnSortTrackWidthsClick( wxCommandEvent& event ) override;
51 void OnRemoveTrackWidthsClick( wxCommandEvent& event ) override;
52 void OnAddViaSizesClick( wxCommandEvent& event ) override;
53 void OnSortViaSizesClick( wxCommandEvent& event ) override;
54 void OnRemoveViaSizesClick( wxCommandEvent& event ) override;
55 void OnAddDiffPairsClick( wxCommandEvent& event ) override;
56 void OnSortDiffPairsClick( wxCommandEvent& event ) override;
57 void OnRemoveDiffPairsClick( wxCommandEvent& event ) override;
58
59 void onUnitsChanged( wxCommandEvent& aEvent );
60
61 void AppendTrackWidth( int aWidth );
62 void AppendViaSize( int aSize, int aDrill );
63 void AppendDiffPairs( int aWidth, int aGap, int aViaGap );
64
65 bool commitPendingChanges( bool aQuietMode = false );
66
67private:
71};
72
73#endif //PANEL_SETUP_TRACKS_AND_VIAS_H
Container for design settings for a BOARD object.
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:372
PANEL_SETUP_TRACKS_AND_VIAS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
void OnRemoveViaSizesClick(wxCommandEvent &event) override
PANEL_SETUP_TRACKS_AND_VIAS(wxWindow *aParentWindow, PCB_EDIT_FRAME *aFrame)
void OnRemoveDiffPairsClick(wxCommandEvent &event) override
void OnSortTrackWidthsClick(wxCommandEvent &event) override
bool commitPendingChanges(bool aQuietMode=false)
void onUnitsChanged(wxCommandEvent &aEvent)
void OnSortViaSizesClick(wxCommandEvent &event) override
void OnAddViaSizesClick(wxCommandEvent &event) override
void OnSortDiffPairsClick(wxCommandEvent &event) override
void OnRemoveTrackWidthsClick(wxCommandEvent &event) override
void OnAddDiffPairsClick(wxCommandEvent &event) override
void AppendDiffPairs(int aWidth, int aGap, int aViaGap)
void OnAddTrackWidthsClick(wxCommandEvent &event) override
void AppendViaSize(int aSize, int aDrill)
The main frame for Pcbnew.