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 The 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#include <set>
27
28class SELECTION;
29class SCHEMATIC;
30class SCH_BASE_FRAME;
32class PG_UNIT_EDITOR;
34class PG_COLOR_EDITOR;
35class PG_FPID_EDITOR;
36class PG_URL_EDITOR;
37
39{
40public:
41 SCH_PROPERTIES_PANEL( wxWindow* aParent, SCH_BASE_FRAME* aFrame );
42
43 virtual ~SCH_PROPERTIES_PANEL();
44
45 void UpdateData() override;
46
47 void AfterCommit() override;
48
49protected:
50 void rebuildProperties( const SELECTION& aSelection ) override;
51 wxPGProperty* createPGProperty( const PROPERTY_BASE* aProperty ) const override;
52
53 PROPERTY_BASE* getPropertyFromEvent( const wxPropertyGridEvent& aEvent ) const;
54
55 void valueChanging( wxPropertyGridEvent& aEvent ) override;
56 void valueChanged( wxPropertyGridEvent& aEvent ) override;
57
58 void OnLanguageChanged( wxCommandEvent& aEvent ) override;
59
67
68 static std::set<wxString> m_currentFieldNames;
69 wxPGChoices m_nets;
70};
71
72#endif /* PCB_PROPERTIES_PANEL_H */
PROPERTIES_PANEL(wxWindow *aParent, EDA_BASE_FRAME *aFrame)
Provide class metadata.Helper macro to map type hashes to names.
Holds all the data relating to one schematic.
Definition schematic.h:88
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
PG_FPID_EDITOR * m_fpEditorInstance
void valueChanging(wxPropertyGridEvent &aEvent) override
PG_UNIT_EDITOR * m_unitEditorInstance
static std::set< wxString > m_currentFieldNames
void valueChanged(wxPropertyGridEvent &aEvent) override
SCH_PROPERTIES_PANEL(wxWindow *aParent, SCH_BASE_FRAME *aFrame)
PG_COLOR_EDITOR * m_colorEditorInstance
PROPERTY_BASE * getPropertyFromEvent(const wxPropertyGridEvent &aEvent) const
void OnLanguageChanged(wxCommandEvent &aEvent) override
void rebuildProperties(const SELECTION &aSelection) override
Generates the property grid for a given selection of items.
PG_URL_EDITOR * m_urlEditorInstance