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
25
26#include <memory>
27#include <vector>
28
31class PG_UNIT_EDITOR;
33class PG_RATIO_EDITOR;
35
37{
38public:
41
42 void UpdateData() override;
43
44 void RebuildParameters( FOOTPRINT_WIZARD* aWizard );
45
46protected:
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
52private:
54 {
55 int page = -1;
56 int index = -1;
57 wxString units;
58 };
59
62 std::vector<std::unique_ptr<WIZARD_PARAM_INFO>> m_paramInfos;
63
67};
68
69#endif // FOOTPRINT_WIZARD_PROPERTIES_PANEL_H
FOOTPRINT_WIZARD_PROPERTIES_PANEL(wxWindow *aParent, FOOTPRINT_WIZARD_FRAME *aFrame)
void valueChanged(wxPropertyGridEvent &aEvent) override
std::vector< std::unique_ptr< WIZARD_PARAM_INFO > > m_paramInfos
wxPGProperty * createPGProperty(const PROPERTY_BASE *aProperty) const override
static WIZARD_PARAMETER * getParamFromEvent(const wxPropertyGridEvent &aEvent)
PROPERTIES_PANEL(wxWindow *aParent, EDA_BASE_FRAME *aFrame)