KiCad PCB EDA Suite
Loading...
Searching...
No Matches
footprint_wizard_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) 2026 Jon Evans <
[email protected]
>
5
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6
*
7
* This program is free software: you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License as published by the
9
* Free Software Foundation, either version 3 of the License, or (at your
10
* option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License along
18
* with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef FOOTPRINT_WIZARD_PROPERTIES_PANEL_H
22
#define FOOTPRINT_WIZARD_PROPERTIES_PANEL_H
23
24
#include <
widgets/properties_panel.h
>
25
26
#include <memory>
27
#include <vector>
28
29
class
FOOTPRINT_WIZARD_FRAME
;
30
class
FOOTPRINT_WIZARD
;
31
class
PG_UNIT_EDITOR
;
32
class
PG_CHECKBOX_EDITOR
;
33
class
PG_RATIO_EDITOR
;
34
class
WIZARD_PARAMETER
;
35
36
class
FOOTPRINT_WIZARD_PROPERTIES_PANEL
:
public
PROPERTIES_PANEL
37
{
38
public
:
39
FOOTPRINT_WIZARD_PROPERTIES_PANEL
( wxWindow* aParent,
FOOTPRINT_WIZARD_FRAME
* aFrame );
40
~FOOTPRINT_WIZARD_PROPERTIES_PANEL
()
override
;
41
42
void
UpdateData
()
override
;
43
44
void
RebuildParameters
(
FOOTPRINT_WIZARD
* aWizard );
45
46
protected
:
47
wxPGProperty*
createPGProperty
(
const
PROPERTY_BASE
* aProperty )
const override
{
return
nullptr
; }
48
wxPGProperty*
createPGProperty
(
WIZARD_PARAMETER
* aParam )
const
;
49
void
valueChanged
( wxPropertyGridEvent& aEvent )
override
;
50
static
WIZARD_PARAMETER
*
getParamFromEvent
(
const
wxPropertyGridEvent& aEvent );
51
52
private
:
53
struct
WIZARD_PARAM_INFO
54
{
55
int
page
= -1;
56
int
index
= -1;
57
wxString
units
;
58
};
59
60
FOOTPRINT_WIZARD_FRAME
*
m_frame
;
61
FOOTPRINT_WIZARD
*
m_wizard
;
62
std::vector<std::unique_ptr<WIZARD_PARAM_INFO>>
m_paramInfos
;
63
64
PG_UNIT_EDITOR
*
m_unitEditorInstance
;
65
PG_CHECKBOX_EDITOR
*
m_checkboxEditorInstance
;
66
PG_RATIO_EDITOR
*
m_ratioEditorInstance
;
67
};
68
69
#endif
// FOOTPRINT_WIZARD_PROPERTIES_PANEL_H
FOOTPRINT_WIZARD_FRAME
Definition
footprint_wizard_frame.h:45
FOOTPRINT_WIZARD_PROPERTIES_PANEL::m_wizard
FOOTPRINT_WIZARD * m_wizard
Definition
footprint_wizard_properties_panel.h:61
FOOTPRINT_WIZARD_PROPERTIES_PANEL::m_ratioEditorInstance
PG_RATIO_EDITOR * m_ratioEditorInstance
Definition
footprint_wizard_properties_panel.h:66
FOOTPRINT_WIZARD_PROPERTIES_PANEL::~FOOTPRINT_WIZARD_PROPERTIES_PANEL
~FOOTPRINT_WIZARD_PROPERTIES_PANEL() override
Definition
footprint_wizard_properties_panel.cpp:88
FOOTPRINT_WIZARD_PROPERTIES_PANEL::FOOTPRINT_WIZARD_PROPERTIES_PANEL
FOOTPRINT_WIZARD_PROPERTIES_PANEL(wxWindow *aParent, FOOTPRINT_WIZARD_FRAME *aFrame)
Definition
footprint_wizard_properties_panel.cpp:34
FOOTPRINT_WIZARD_PROPERTIES_PANEL::m_frame
FOOTPRINT_WIZARD_FRAME * m_frame
Definition
footprint_wizard_properties_panel.h:60
FOOTPRINT_WIZARD_PROPERTIES_PANEL::RebuildParameters
void RebuildParameters(FOOTPRINT_WIZARD *aWizard)
Definition
footprint_wizard_properties_panel.cpp:100
FOOTPRINT_WIZARD_PROPERTIES_PANEL::m_unitEditorInstance
PG_UNIT_EDITOR * m_unitEditorInstance
Definition
footprint_wizard_properties_panel.h:64
FOOTPRINT_WIZARD_PROPERTIES_PANEL::valueChanged
void valueChanged(wxPropertyGridEvent &aEvent) override
Definition
footprint_wizard_properties_panel.cpp:212
FOOTPRINT_WIZARD_PROPERTIES_PANEL::m_paramInfos
std::vector< std::unique_ptr< WIZARD_PARAM_INFO > > m_paramInfos
Definition
footprint_wizard_properties_panel.h:62
FOOTPRINT_WIZARD_PROPERTIES_PANEL::UpdateData
void UpdateData() override
Definition
footprint_wizard_properties_panel.cpp:95
FOOTPRINT_WIZARD_PROPERTIES_PANEL::createPGProperty
wxPGProperty * createPGProperty(const PROPERTY_BASE *aProperty) const override
Definition
footprint_wizard_properties_panel.h:47
FOOTPRINT_WIZARD_PROPERTIES_PANEL::m_checkboxEditorInstance
PG_CHECKBOX_EDITOR * m_checkboxEditorInstance
Definition
footprint_wizard_properties_panel.h:65
FOOTPRINT_WIZARD_PROPERTIES_PANEL::getParamFromEvent
static WIZARD_PARAMETER * getParamFromEvent(const wxPropertyGridEvent &aEvent)
Definition
footprint_wizard_properties_panel.cpp:206
FOOTPRINT_WIZARD
Definition
footprint_wizard.h:136
PG_CHECKBOX_EDITOR
Definition
pg_editors.h:73
PG_RATIO_EDITOR
Definition
pg_editors.h:115
PG_UNIT_EDITOR
Definition
pg_editors.h:32
PROPERTIES_PANEL::PROPERTIES_PANEL
PROPERTIES_PANEL(wxWindow *aParent, EDA_BASE_FRAME *aFrame)
Definition
properties_panel.cpp:46
PROPERTY_BASE
Definition
property.h:196
WIZARD_PARAMETER
Definition
footprint_wizard.h:46
properties_panel.h
FOOTPRINT_WIZARD_PROPERTIES_PANEL::WIZARD_PARAM_INFO
Definition
footprint_wizard_properties_panel.h:54
FOOTPRINT_WIZARD_PROPERTIES_PANEL::WIZARD_PARAM_INFO::units
wxString units
Definition
footprint_wizard_properties_panel.h:57
FOOTPRINT_WIZARD_PROPERTIES_PANEL::WIZARD_PARAM_INFO::index
int index
Definition
footprint_wizard_properties_panel.h:56
FOOTPRINT_WIZARD_PROPERTIES_PANEL::WIZARD_PARAM_INFO::page
int page
Definition
footprint_wizard_properties_panel.h:55
src
pcbnew
widgets
footprint_wizard_properties_panel.h
Generated on Fri Apr 3 2026 00:07:23 for KiCad PCB EDA Suite by
1.13.2