KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_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) 2023 KiCad Developers, see AUTHORS.txt for contributors.
5 *
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 3
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 along
19 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef SCH_PROPERTIES_PANEL_H
23#define SCH_PROPERTIES_PANEL_H
24
26
27class SELECTION;
28class SCHEMATIC;
29class SCH_BASE_FRAME;
31class PG_UNIT_EDITOR;
33class PG_COLOR_EDITOR;
34
36{
37public:
38 SCH_PROPERTIES_PANEL( wxWindow* aParent, SCH_BASE_FRAME* aFrame );
39
40 virtual ~SCH_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
54 void OnLanguageChanged( wxCommandEvent& aEvent ) override;
55
57 void updateFontList();
58
64
65 wxPGChoices m_nets;
66};
67
68#endif /* PCB_PROPERTIES_PANEL_H */
Provide class metadata.Helper macro to map type hashes to names.
Definition: property_mgr.h:85
Holds all the data relating to one schematic.
Definition: schematic.h:77
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
wxPGProperty * createPGProperty(const PROPERTY_BASE *aProperty) const override
PROPERTY_MANAGER & m_propMgr
PG_CHECKBOX_EDITOR * m_checkboxEditorInstance
void valueChanging(wxPropertyGridEvent &aEvent) override
PG_UNIT_EDITOR * m_unitEditorInstance
SCH_BASE_FRAME * m_frame
void valueChanged(wxPropertyGridEvent &aEvent) override
PG_COLOR_EDITOR * m_colorEditorInstance
PROPERTY_BASE * getPropertyFromEvent(const wxPropertyGridEvent &aEvent) const
void OnLanguageChanged(wxCommandEvent &aEvent) override
Regenerates caches of font list property.