KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pl_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 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
23
24class PL_EDITOR_FRAME;
27class PG_UNIT_EDITOR;
28
30{
31public:
32 explicit PL_PROPERTIES_PANEL( PL_EDITOR_FRAME* aFrame );
33 ~PL_PROPERTIES_PANEL() override;
34
35 void UpdateData() override;
36
37protected:
38 void rebuildProperties( const SELECTION& aSelection ) override;
39 wxPGProperty* createPGProperty( const PROPERTY_BASE* aProperty ) const override;
40 void valueChanging( wxPropertyGridEvent& aEvent ) override;
41 void valueChanged( wxPropertyGridEvent& aEvent ) override;
42
43private:
44 void resetDefaults();
45 void refreshDrawing();
46
49 std::unique_ptr<PL_PAGE_PROPERTIES> m_pageProperties;
50 std::vector<std::unique_ptr<PL_ITEM_PROPERTIES>> m_itemProperties;
52};
The main window used in the drawing sheet editor.
Exposes a drawing-sheet definition to the shared properties panel.
Drawing-sheet defaults and margins, shown when no item is selected.
void valueChanged(wxPropertyGridEvent &aEvent) override
std::vector< std::unique_ptr< PL_ITEM_PROPERTIES > > m_itemProperties
PL_PROPERTIES_PANEL(PL_EDITOR_FRAME *aFrame)
wxPGProperty * createPGProperty(const PROPERTY_BASE *aProperty) const override
void valueChanging(wxPropertyGridEvent &aEvent) override
std::unique_ptr< PL_PAGE_PROPERTIES > m_pageProperties
PL_EDITOR_FRAME * m_editor
PG_UNIT_EDITOR * m_unitEditor
void rebuildProperties(const SELECTION &aSelection) override
Generates the property grid for a given selection of items.
PROPERTIES_PANEL(wxWindow *aParent, EDA_BASE_FRAME *aFrame)