KiCad PCB EDA Suite
Loading...
Searching...
No Matches
footprint_chooser_selection_tool.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 modify it
7
* under the terms of the GNU General Public License as published by the
8
* Free Software Foundation, either version 3 of the License, or (at your
9
* option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License along
17
* with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef FOOTPRINT_CHOOSER_SELECTION_TOOL_H_
21
#define FOOTPRINT_CHOOSER_SELECTION_TOOL_H_
22
23
#include <
tool/action_menu.h
>
24
#include <
tool/selection.h
>
25
#include <
tool/tool_interactive.h
>
26
#include <
tool/tool_menu.h
>
27
28
32
class
FOOTPRINT_CHOOSER_SELECTION_TOOL
:
public
TOOL_INTERACTIVE
33
{
34
public
:
35
FOOTPRINT_CHOOSER_SELECTION_TOOL
();
36
~FOOTPRINT_CHOOSER_SELECTION_TOOL
() {}
37
39
bool
Init
()
override
;
40
42
void
Reset
(
RESET_REASON
aReason )
override
{}
43
47
SELECTION
&
GetSelection
()
48
{
49
return
m_selection
;
50
}
51
52
void
clearSelection
() {}
53
59
int
UpdateMenu
(
const
TOOL_EVENT
& aEvent );
60
62
void
setTransitions
()
override
;
63
64
private
:
66
SELECTION
m_selection
;
67
};
68
69
#endif
action_menu.h
FOOTPRINT_CHOOSER_SELECTION_TOOL
Selection tool for the footprint viewer in CvPcb.
Definition:
footprint_chooser_selection_tool.h:33
FOOTPRINT_CHOOSER_SELECTION_TOOL::GetSelection
SELECTION & GetSelection()
Selections aren't currently supported in the footprint viewer.
Definition:
footprint_chooser_selection_tool.h:47
FOOTPRINT_CHOOSER_SELECTION_TOOL::setTransitions
void setTransitions() override
Set up handlers for various events.
Definition:
footprint_chooser_selection_tool.cpp:73
FOOTPRINT_CHOOSER_SELECTION_TOOL::m_selection
SELECTION m_selection
Current state of selection (not really used: no selection in display footprints frame).
Definition:
footprint_chooser_selection_tool.h:66
FOOTPRINT_CHOOSER_SELECTION_TOOL::clearSelection
void clearSelection()
Definition:
footprint_chooser_selection_tool.h:52
FOOTPRINT_CHOOSER_SELECTION_TOOL::Reset
void Reset(RESET_REASON aReason) override
Bring the tool to a known, initial state.
Definition:
footprint_chooser_selection_tool.h:42
FOOTPRINT_CHOOSER_SELECTION_TOOL::UpdateMenu
int UpdateMenu(const TOOL_EVENT &aEvent)
Update the menu to reflect the current tool states.
Definition:
footprint_chooser_selection_tool.cpp:58
FOOTPRINT_CHOOSER_SELECTION_TOOL::Init
bool Init() override
Init() is called once upon a registration of the tool.
Definition:
footprint_chooser_selection_tool.cpp:34
FOOTPRINT_CHOOSER_SELECTION_TOOL::FOOTPRINT_CHOOSER_SELECTION_TOOL
FOOTPRINT_CHOOSER_SELECTION_TOOL()
Definition:
footprint_chooser_selection_tool.cpp:28
FOOTPRINT_CHOOSER_SELECTION_TOOL::~FOOTPRINT_CHOOSER_SELECTION_TOOL
~FOOTPRINT_CHOOSER_SELECTION_TOOL()
Definition:
footprint_chooser_selection_tool.h:36
SELECTION
Definition:
selection.h:39
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
selection.h
tool_interactive.h
tool_menu.h
src
pcbnew
tools
footprint_chooser_selection_tool.h
Generated on Fri Mar 14 2025 00:05:26 for KiCad PCB EDA Suite by
1.9.6