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 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 CVPCB_ASSOCIATION_TOOL_H_
22#define CVPCB_ASSOCIATION_TOOL_H_
23
25
26#include <cvpcb_mainframe.h>
27
28
34{
35public:
38
40 void Reset( RESET_REASON aReason ) override;
41
47 int Undo( const TOOL_EVENT& aEvent );
48
54 int Redo( const TOOL_EVENT& aEvent );
55
61 int Associate( const TOOL_EVENT& aEvent );
62
68 int AutoAssociate( const TOOL_EVENT& aEvent );
69
75 int DeleteAll( const TOOL_EVENT& aEvent );
76
82 int DeleteAssoc( const TOOL_EVENT& aEvent );
83
89 int CopyAssoc( const TOOL_EVENT& aEvent );
90
96 int CutAssoc( const TOOL_EVENT& aEvent );
97
103 int PasteAssoc( const TOOL_EVENT& aEvent );
104
108 void setTransitions() override;
109
110private:
112};
113
114#endif
Handles action in main CvPcb window.
void setTransitions() override
Set up handlers for various events.
int DeleteAssoc(const TOOL_EVENT &aEvent)
Delete the selected associations.
int Associate(const TOOL_EVENT &aEvent)
Associate the selected footprint with the currently selected components.
int Undo(const TOOL_EVENT &aEvent)
Undo the footprint associations most recently done.
int PasteAssoc(const TOOL_EVENT &aEvent)
Paste the clipboard onto the current selection.
int CutAssoc(const TOOL_EVENT &aEvent)
Cut the selected associations to the clipboard.
int Redo(const TOOL_EVENT &aEvent)
Redo the footprint associations most recently done.
int AutoAssociate(const TOOL_EVENT &aEvent)
Perform automatic footprint association.
int CopyAssoc(const TOOL_EVENT &aEvent)
Copy the selected associations to the clipboard.
int DeleteAll(const TOOL_EVENT &aEvent)
Delete all associations.
The CvPcb application main window.
RESET_REASON
Determine the reason of reset for a tool.
Definition: tool_base.h:78
Generic, UI-independent tool event.
Definition: tool_event.h:168
void Reset() override