KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_board_finish.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) 2019 Jean-Pierre Charras, jp.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 <optional>
24#include <vector>
25#include <board.h>
28
29class PAGED_DIALOG;
30class PCB_EDIT_FRAME;
31
32
34{
35public:
36 PANEL_SETUP_BOARD_FINISH( wxWindow* aParentWindow, PCB_EDIT_FRAME* aFrame );
38
39 void ImportSettingsFrom( BOARD* aBoard );
40
41 void SetStackup( const BOARD_STACKUP& aStackup, int aCopperLayerCount );
42
43 // Called by wxWidgets: transfer current settings stored in m_stackup to the board
44 bool TransferDataFromWindow() override;
45
46 bool TransferDataFromWindow( BOARD_STACKUP& aStackup );
47
48private:
56
57 static const std::vector<VIA_PROTECTION_CONTROL>& viaProtectionControls();
58
60
63 void updateViaPreview();
64 void onViaProtectionChanged( wxCommandEvent& aEvent );
65
66private:
72};
Container for design settings for a BOARD object.
Manage layers needed to make a physical board.
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:411
PANEL_SETUP_BOARD_FINISH_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 onViaProtectionChanged(wxCommandEvent &aEvent)
void enableViaProtection()
Grey out the features that cannot be built with the ones selected.
BOARD_DESIGN_SETTINGS * m_brdSettings
void ImportSettingsFrom(BOARD *aBoard)
static const std::vector< VIA_PROTECTION_CONTROL > & viaProtectionControls()
PANEL_SETUP_BOARD_FINISH(wxWindow *aParentWindow, PCB_EDIT_FRAME *aFrame)
void SetStackup(const BOARD_STACKUP &aStackup, int aCopperLayerCount)
The main frame for Pcbnew.
A via protection checkbox, the board setting it edits and the preview flag it drives.
wxCheckBox *PANEL_SETUP_BOARD_FINISH_BASE::* m_CheckBox
std::optional< bool > VIA_CROSS_SECTION_GEOMETRY::STATE::* m_State