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;
34class PG_RATIO_EDITOR;
35
37{
38public:
39 PCB_PROPERTIES_PANEL( wxWindow* aParent, PCB_BASE_EDIT_FRAME* aFrame );
40
41 virtual ~PCB_PROPERTIES_PANEL();
42
43 void UpdateData() override;
44
45 void AfterCommit() override;
46
47protected:
48 wxPGProperty* createPGProperty( const PROPERTY_BASE* aProperty ) const override;
49
50 PROPERTY_BASE* getPropertyFromEvent( const wxPropertyGridEvent& aEvent ) const;
51
52 void valueChanging( wxPropertyGridEvent& aEvent ) override;
53 void valueChanged( wxPropertyGridEvent& aEvent ) override;
54
56 void updateLists( const BOARD* aBoard );
57
58protected:
64
65 wxPGChoices m_nets;
66};
67
68#endif /* PCB_PROPERTIES_PANEL_H */
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:276
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
PG_RATIO_EDITOR * m_ratioEditorInstance
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:85