KiCad PCB EDA Suite
Loading...
Searching...
No Matches
cvpcb_association_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 (C) 2019 Ian McInerney <
[email protected]
>
5
* Copyright (C) 2019 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 CVPCB_ASSOCIATION_TOOL_H_
22
#define CVPCB_ASSOCIATION_TOOL_H_
23
24
#include <
tool/tool_interactive.h
>
25
26
#include <
cvpcb_mainframe.h
>
27
28
35
class
CVPCB_ASSOCIATION_TOOL
:
public
TOOL_INTERACTIVE
36
{
37
public
:
38
CVPCB_ASSOCIATION_TOOL
();
39
~CVPCB_ASSOCIATION_TOOL
() {}
40
42
void
Reset
(
RESET_REASON
aReason )
override
;
43
49
int
Undo
(
const
TOOL_EVENT
& aEvent );
50
56
int
Redo
(
const
TOOL_EVENT
& aEvent );
57
63
int
Associate
(
const
TOOL_EVENT
& aEvent );
64
70
int
AutoAssociate
(
const
TOOL_EVENT
& aEvent );
71
77
int
DeleteAll
(
const
TOOL_EVENT
& aEvent );
78
84
int
DeleteAssoc
(
const
TOOL_EVENT
& aEvent );
85
91
int
CopyAssoc
(
const
TOOL_EVENT
& aEvent );
92
98
int
CutAssoc
(
const
TOOL_EVENT
& aEvent );
99
105
int
PasteAssoc
(
const
TOOL_EVENT
& aEvent );
106
107
/*
108
* Sets up handlers for various events.
109
*/
110
void
setTransitions
()
override
;
111
112
private
:
113
CVPCB_MAINFRAME
*
m_frame
;
114
};
115
116
#endif
CVPCB_ASSOCIATION_TOOL
CVPCB_CONTROL.
Definition:
cvpcb_association_tool.h:36
CVPCB_ASSOCIATION_TOOL::setTransitions
void setTransitions() override
This method is meant to be overridden in order to specify handlers for events.
Definition:
cvpcb_association_tool.cpp:280
CVPCB_ASSOCIATION_TOOL::DeleteAssoc
int DeleteAssoc(const TOOL_EVENT &aEvent)
Delete the selected associations.
Definition:
cvpcb_association_tool.cpp:238
CVPCB_ASSOCIATION_TOOL::Associate
int Associate(const TOOL_EVENT &aEvent)
Associate the selected footprint with the currently selected components.
Definition:
cvpcb_association_tool.cpp:194
CVPCB_ASSOCIATION_TOOL::m_frame
CVPCB_MAINFRAME * m_frame
Definition:
cvpcb_association_tool.h:113
CVPCB_ASSOCIATION_TOOL::Undo
int Undo(const TOOL_EVENT &aEvent)
Undo the footprint associations most recently done.
Definition:
cvpcb_association_tool.cpp:178
CVPCB_ASSOCIATION_TOOL::PasteAssoc
int PasteAssoc(const TOOL_EVENT &aEvent)
Paste the clipboard onto the current selection.
Definition:
cvpcb_association_tool.cpp:130
CVPCB_ASSOCIATION_TOOL::CVPCB_ASSOCIATION_TOOL
CVPCB_ASSOCIATION_TOOL()
Definition:
cvpcb_association_tool.cpp:43
CVPCB_ASSOCIATION_TOOL::CutAssoc
int CutAssoc(const TOOL_EVENT &aEvent)
Cut the selected associations to the clipboard.
Definition:
cvpcb_association_tool.cpp:78
CVPCB_ASSOCIATION_TOOL::Redo
int Redo(const TOOL_EVENT &aEvent)
Redo the footprint associations most recently done.
Definition:
cvpcb_association_tool.cpp:186
CVPCB_ASSOCIATION_TOOL::~CVPCB_ASSOCIATION_TOOL
~CVPCB_ASSOCIATION_TOOL()
Definition:
cvpcb_association_tool.h:39
CVPCB_ASSOCIATION_TOOL::AutoAssociate
int AutoAssociate(const TOOL_EVENT &aEvent)
Perform automatic footprint association.
Definition:
cvpcb_association_tool.cpp:230
CVPCB_ASSOCIATION_TOOL::CopyAssoc
int CopyAssoc(const TOOL_EVENT &aEvent)
Copy the selected associations to the clipboard.
Definition:
cvpcb_association_tool.cpp:50
CVPCB_ASSOCIATION_TOOL::DeleteAll
int DeleteAll(const TOOL_EVENT &aEvent)
Delete all associations.
Definition:
cvpcb_association_tool.cpp:253
CVPCB_MAINFRAME
The CvPcb application main window.
Definition:
cvpcb_mainframe.h:56
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:167
TOOL_INTERACTIVE
Definition:
tool_interactive.h:57
cvpcb_mainframe.h
Reset
void Reset() override
tool_interactive.h
src
cvpcb
tools
cvpcb_association_tool.h
Generated on Thu Nov 21 2024 00:06:38 for KiCad PCB EDA Suite by
1.9.6