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, you may find one here:
18
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19
* or you may search the http://www.gnu.org website for the version 2 license,
20
* or you may write to the Free Software Foundation, Inc.,
21
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22
*/
23
24
#ifndef FOOTPRINT_WIZARD_TOOLS_H
25
#define FOOTPRINT_WIZARD_TOOLS_H
26
27
#include <
tool/tool_interactive.h
>
28
#include <
footprint_wizard_frame.h
>
29
30
class
FOOTPRINT_WIZARD_FRAME
;
31
38
class
FOOTPRINT_WIZARD_TOOLS
:
public
TOOL_INTERACTIVE
39
{
40
public
:
41
FOOTPRINT_WIZARD_TOOLS
() :
42
TOOL_INTERACTIVE
(
"pcbnew.FpWizard"
),
43
m_wizardFrame
( nullptr )
44
{}
45
46
~FOOTPRINT_WIZARD_TOOLS
()
override
{}
47
48
bool
Init
()
override
;
49
51
void
Reset
(
RESET_REASON
aReason )
override
;
52
54
void
setTransitions
()
override
;
55
56
protected
:
57
int
ShowWizards
(
const
TOOL_EVENT
& aEvent );
58
int
ResetWizardPrms
(
const
TOOL_EVENT
& aEvent );
59
int
SelectPreviousWizardPage
(
const
TOOL_EVENT
& aEvent );
60
int
SelectNextWizardPage
(
const
TOOL_EVENT
& aEvent );
61
int
ExportFpToEditor
(
const
TOOL_EVENT
& aEvent );
62
63
FOOTPRINT_WIZARD_FRAME
*
frame
()
const
64
{
65
return
getEditFrame<FOOTPRINT_WIZARD_FRAME>();
66
}
67
68
/*FOOTPRINT_WIZARD_FRAME* frame() const
69
{
70
return m_wizardFrame;
71
}*/
72
73
protected
:
74
FOOTPRINT_WIZARD_FRAME
*
m_wizardFrame
;
75
};
76
77
#endif
FOOTPRINT_WIZARD_FRAME
Definition:
footprint_wizard_frame.h:53
FOOTPRINT_WIZARD_TOOLS
Tool useful for viewing footprints.
Definition:
footprint_wizard_tools.h:39
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:77
FOOTPRINT_WIZARD_TOOLS::FOOTPRINT_WIZARD_TOOLS
FOOTPRINT_WIZARD_TOOLS()
Definition:
footprint_wizard_tools.h:41
FOOTPRINT_WIZARD_TOOLS::ResetWizardPrms
int ResetWizardPrms(const TOOL_EVENT &aEvent)
Definition:
footprint_wizard_tools.cpp:49
FOOTPRINT_WIZARD_TOOLS::SelectNextWizardPage
int SelectNextWizardPage(const TOOL_EVENT &aEvent)
Definition:
footprint_wizard_tools.cpp:63
FOOTPRINT_WIZARD_TOOLS::Init
bool Init() override
Init() is called once upon a registration of the tool.
Definition:
footprint_wizard_tools.cpp:30
FOOTPRINT_WIZARD_TOOLS::~FOOTPRINT_WIZARD_TOOLS
~FOOTPRINT_WIZARD_TOOLS() override
Definition:
footprint_wizard_tools.h:46
FOOTPRINT_WIZARD_TOOLS::ShowWizards
int ShowWizards(const TOOL_EVENT &aEvent)
Definition:
footprint_wizard_tools.cpp:41
FOOTPRINT_WIZARD_TOOLS::frame
FOOTPRINT_WIZARD_FRAME * frame() const
Definition:
footprint_wizard_tools.h:63
FOOTPRINT_WIZARD_TOOLS::m_wizardFrame
FOOTPRINT_WIZARD_FRAME * m_wizardFrame
the associated footprint wizard frame
Definition:
footprint_wizard_tools.h:74
FOOTPRINT_WIZARD_TOOLS::SelectPreviousWizardPage
int SelectPreviousWizardPage(const TOOL_EVENT &aEvent)
Definition:
footprint_wizard_tools.cpp:56
FOOTPRINT_WIZARD_TOOLS::ExportFpToEditor
int ExportFpToEditor(const TOOL_EVENT &aEvent)
Definition:
footprint_wizard_tools.cpp:70
TOOL_BASE::RESET_REASON
RESET_REASON
Determine the reason of reset for a tool.
Definition:
tool_base.h:78
TOOL_EVENT
Generic, UI-independent tool event.
Definition:
tool_event.h:168
TOOL_INTERACTIVE
Definition:
tool_interactive.h:57
Reset
void Reset() override
footprint_wizard_frame.h
tool_interactive.h
src
pcbnew
tools
footprint_wizard_tools.h
Generated on Tue Aug 12 2025 00:06:57 for KiCad PCB EDA Suite by
1.9.6