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
22
#include <
widgets/properties_panel.h
>
23
24
class
PL_EDITOR_FRAME
;
25
class
PL_PAGE_PROPERTIES
;
26
class
PL_ITEM_PROPERTIES
;
27
class
PG_UNIT_EDITOR
;
28
29
class
PL_PROPERTIES_PANEL
:
public
PROPERTIES_PANEL
30
{
31
public
:
32
explicit
PL_PROPERTIES_PANEL
(
PL_EDITOR_FRAME
* aFrame );
33
~PL_PROPERTIES_PANEL
()
override
;
34
35
void
UpdateData
()
override
;
36
37
protected
:
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
43
private
:
44
void
resetDefaults
();
45
void
refreshDrawing
();
46
47
PL_EDITOR_FRAME
*
m_editor
;
48
PG_UNIT_EDITOR
*
m_unitEditor
;
49
std::unique_ptr<PL_PAGE_PROPERTIES>
m_pageProperties
;
50
std::vector<std::unique_ptr<PL_ITEM_PROPERTIES>>
m_itemProperties
;
51
SELECTION
m_selection
;
52
};
PG_UNIT_EDITOR
Definition
pg_editors.h:32
PL_EDITOR_FRAME
The main window used in the drawing sheet editor.
Definition
pl_editor_frame.h:48
PL_ITEM_PROPERTIES
Exposes a drawing-sheet definition to the shared properties panel.
Definition
pl_properties.h:35
PL_PAGE_PROPERTIES
Drawing-sheet defaults and margins, shown when no item is selected.
Definition
pl_properties.h:131
PL_PROPERTIES_PANEL::UpdateData
void UpdateData() override
Definition
pl_properties_panel.cpp:184
PL_PROPERTIES_PANEL::valueChanged
void valueChanged(wxPropertyGridEvent &aEvent) override
Definition
pl_properties_panel.cpp:281
PL_PROPERTIES_PANEL::m_itemProperties
std::vector< std::unique_ptr< PL_ITEM_PROPERTIES > > m_itemProperties
Definition
pl_properties_panel.h:50
PL_PROPERTIES_PANEL::resetDefaults
void resetDefaults()
Definition
pl_properties_panel.cpp:299
PL_PROPERTIES_PANEL::~PL_PROPERTIES_PANEL
~PL_PROPERTIES_PANEL() override
Definition
pl_properties_panel.cpp:176
PL_PROPERTIES_PANEL::PL_PROPERTIES_PANEL
PL_PROPERTIES_PANEL(PL_EDITOR_FRAME *aFrame)
Definition
pl_properties_panel.cpp:134
PL_PROPERTIES_PANEL::createPGProperty
wxPGProperty * createPGProperty(const PROPERTY_BASE *aProperty) const override
Definition
pl_properties_panel.cpp:223
PL_PROPERTIES_PANEL::valueChanging
void valueChanging(wxPropertyGridEvent &aEvent) override
Definition
pl_properties_panel.cpp:251
PL_PROPERTIES_PANEL::m_pageProperties
std::unique_ptr< PL_PAGE_PROPERTIES > m_pageProperties
Definition
pl_properties_panel.h:49
PL_PROPERTIES_PANEL::m_editor
PL_EDITOR_FRAME * m_editor
Definition
pl_properties_panel.h:47
PL_PROPERTIES_PANEL::m_selection
SELECTION m_selection
Definition
pl_properties_panel.h:51
PL_PROPERTIES_PANEL::refreshDrawing
void refreshDrawing()
Definition
pl_properties_panel.cpp:310
PL_PROPERTIES_PANEL::m_unitEditor
PG_UNIT_EDITOR * m_unitEditor
Definition
pl_properties_panel.h:48
PL_PROPERTIES_PANEL::rebuildProperties
void rebuildProperties(const SELECTION &aSelection) override
Generates the property grid for a given selection of items.
Definition
pl_properties_panel.cpp:215
PROPERTIES_PANEL::PROPERTIES_PANEL
PROPERTIES_PANEL(wxWindow *aParent, EDA_BASE_FRAME *aFrame)
Definition
properties_panel.cpp:79
PROPERTY_BASE
Definition
property.h:196
SELECTION
Definition
selection.h:35
properties_panel.h
src
pagelayout_editor
widgets
pl_properties_panel.h
Generated on Thu Oct 22 2026 00:06:42 for KiCad PCB EDA Suite by
1.13.2