KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_properties_panel.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) 2020 CERN
5 * Copyright (C) 2023 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * @author Maciej Suminski <[email protected]>
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 3
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License along
20 * with this program. If not, see <http://www.gnu.org/licenses/>.
21 */
22
23#ifndef PCB_PROPERTIES_PANEL_H
24#define PCB_PROPERTIES_PANEL_H
25
27
28class SELECTION;
29class BOARD;
32class PG_UNIT_EDITOR;
34
36{
37public:
38 PCB_PROPERTIES_PANEL( wxWindow* aParent, PCB_BASE_EDIT_FRAME* aFrame );
39
40 virtual ~PCB_PROPERTIES_PANEL();
41
42 void UpdateData() override;
43
44 void AfterCommit() override;
45
46protected:
47 wxPGProperty* createPGProperty( const PROPERTY_BASE* aProperty ) const override;
48
49 PROPERTY_BASE* getPropertyFromEvent( const wxPropertyGridEvent& aEvent ) const;
50
51 void valueChanging( wxPropertyGridEvent& aEvent ) override;
52 void valueChanged( wxPropertyGridEvent& aEvent ) override;
53
55 void updateLists( const BOARD* aBoard );
56
61
62 wxPGChoices m_nets;
63};
64
65#endif /* PCB_PROPERTIES_PANEL_H */
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:270
Common, abstract interface for edit frames.
PCB_BASE_EDIT_FRAME * m_frame
void valueChanged(wxPropertyGridEvent &aEvent) override
Regenerates caches storing layer and net names.
PG_UNIT_EDITOR * m_unitEditorInstance
wxPGProperty * createPGProperty(const PROPERTY_BASE *aProperty) const override
PROPERTY_BASE * getPropertyFromEvent(const wxPropertyGridEvent &aEvent) const
PROPERTY_MANAGER & m_propMgr
PG_CHECKBOX_EDITOR * m_checkboxEditorInstance
void updateLists(const BOARD *aBoard)
void valueChanging(wxPropertyGridEvent &aEvent) override
Provide class metadata.Helper macro to map type hashes to names.
Definition: property_mgr.h:74