KiCad PCB EDA Suite
Loading...
Searching...
No Matches
footprint_wizard_tools.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
#ifndef FOOTPRINT_WIZARD_TOOLS_H
21
#define FOOTPRINT_WIZARD_TOOLS_H
22
23
#include <
tool/tool_interactive.h
>
24
#include <
footprint_wizard_frame.h
>
25
26
class
FOOTPRINT_WIZARD_FRAME
;
27
34
class
FOOTPRINT_WIZARD_TOOLS
:
public
TOOL_INTERACTIVE
35
{
36
public
:
37
FOOTPRINT_WIZARD_TOOLS
() :
38
TOOL_INTERACTIVE
(
"pcbnew.FpWizard"
),
39
m_wizardFrame
( nullptr )
40
{}
41
42
~FOOTPRINT_WIZARD_TOOLS
()
override
{}
43
44
bool
Init
()
override
;
45
47
void
Reset
(
RESET_REASON
aReason )
override
;
48
50
void
setTransitions
()
override
;
51
52
protected
:
53
int
ShowWizards
(
const
TOOL_EVENT
& aEvent );
54
int
ResetWizardPrms
(
const
TOOL_EVENT
& aEvent );
55
int
ExportFpToEditor
(
const
TOOL_EVENT
& aEvent );
56
57
FOOTPRINT_WIZARD_FRAME
*
frame
()
const
58
{
59
return
getEditFrame<FOOTPRINT_WIZARD_FRAME>
();
60
}
61
62
/*FOOTPRINT_WIZARD_FRAME* frame() const
63
{
64
return m_wizardFrame;
65
}*/
66
67
protected
:
68
FOOTPRINT_WIZARD_FRAME
*
m_wizardFrame
;
69
};
70
71
#endif
FOOTPRINT_WIZARD_FRAME
Definition
footprint_wizard_frame.h:41
FOOTPRINT_WIZARD_TOOLS::setTransitions
void setTransitions() override
This method is meant to be overridden in order to specify handlers for events.
Definition
footprint_wizard_tools.cpp:60
FOOTPRINT_WIZARD_TOOLS::FOOTPRINT_WIZARD_TOOLS
FOOTPRINT_WIZARD_TOOLS()
Definition
footprint_wizard_tools.h:37
FOOTPRINT_WIZARD_TOOLS::ResetWizardPrms
int ResetWizardPrms(const TOOL_EVENT &aEvent)
Definition
footprint_wizard_tools.cpp:45
FOOTPRINT_WIZARD_TOOLS::Init
bool Init() override
Init() is called once upon a registration of the tool.
Definition
footprint_wizard_tools.cpp:26
FOOTPRINT_WIZARD_TOOLS::~FOOTPRINT_WIZARD_TOOLS
~FOOTPRINT_WIZARD_TOOLS() override
Definition
footprint_wizard_tools.h:42
FOOTPRINT_WIZARD_TOOLS::ShowWizards
int ShowWizards(const TOOL_EVENT &aEvent)
Definition
footprint_wizard_tools.cpp:37
FOOTPRINT_WIZARD_TOOLS::frame
FOOTPRINT_WIZARD_FRAME * frame() const
Definition
footprint_wizard_tools.h:57
FOOTPRINT_WIZARD_TOOLS::m_wizardFrame
FOOTPRINT_WIZARD_FRAME * m_wizardFrame
the associated footprint wizard frame
Definition
footprint_wizard_tools.h:68
FOOTPRINT_WIZARD_TOOLS::ExportFpToEditor
int ExportFpToEditor(const TOOL_EVENT &aEvent)
Definition
footprint_wizard_tools.cpp:53
TOOL_BASE::getEditFrame
T * getEditFrame() const
Return the application window object, casted to requested user type.
Definition
tool_base.h:182
TOOL_BASE::RESET_REASON
RESET_REASON
Determine the reason of reset for a tool.
Definition
tool_base.h:74
TOOL_EVENT
Generic, UI-independent tool event.
Definition
tool_event.h:167
TOOL_INTERACTIVE::TOOL_INTERACTIVE
TOOL_INTERACTIVE(TOOL_ID aId, const std::string &aName)
Create a tool with given id & name.
Definition
tool_interactive.cpp:35
Reset
void Reset() override
footprint_wizard_frame.h
tool_interactive.h
src
pcbnew
tools
footprint_wizard_tools.h
Generated on Fri Jun 26 2026 00:05:42 for KiCad PCB EDA Suite by
1.13.2