KiCad PCB EDA Suite
cvpcb_actions.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) 2013-2016 CERN
5  * Copyright (C) 2018 KiCad Developers, see AUTHORS.txt for contributors.
6  * @author Maciej Suminski <maciej.suminski@cern.ch>
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, you may find one here:
20  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21  * or you may search the http://www.gnu.org website for the version 2 license,
22  * or you may write to the Free Software Foundation, Inc.,
23  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24  */
25 
26 #ifndef CVPCB_ACTIONS_H
27 #define CVPCB_ACTIONS_H
28 
29 #include <tool/tool_action.h>
30 #include <tool/actions.h>
31 #include <core/optional.h>
32 
33 class TOOL_EVENT;
34 class TOOL_MANAGER;
35 
42 class CVPCB_ACTIONS : public ACTIONS
43 {
44 public:
45  // Selection Tool
48 
52 
53  // Miscellaneous
60 
61 
63  virtual OPT<TOOL_EVENT> TranslateLegacyId( int aId ) override;
64 
66  virtual void RegisterAllTools( TOOL_MANAGER* aToolManager ) override;
67 };
68 
69 #endif
static TOOL_ACTION resetCoords
Definition: cvpcb_actions.h:55
static TOOL_ACTION selectionActivate
Activation of the selection tool.
Definition: cvpcb_actions.h:47
static TOOL_ACTION no_selectionTool
Tool selection.
Definition: cvpcb_actions.h:50
virtual void RegisterAllTools(TOOL_MANAGER *aToolManager) override
>
Class TOOL_MANAGER.
Definition: tool_manager.h:49
static TOOL_ACTION switchCursor
Definition: cvpcb_actions.h:56
static TOOL_ACTION switchUnits
Definition: cvpcb_actions.h:57
Class TOOL_EVENT.
Definition: tool_event.h:168
Class CVPCB_ACTIONS.
Definition: cvpcb_actions.h:42
static TOOL_ACTION showHelp
Definition: cvpcb_actions.h:58
static TOOL_ACTION zoomTool
Definition: cvpcb_actions.h:54
static TOOL_ACTION toBeDone
Definition: cvpcb_actions.h:59
Class TOOL_ACTION.
Definition: tool_action.h:46
boost::optional< T > OPT
Definition: optional.h:7
Class ACTIONS.
Definition: actions.h:41
virtual OPT< TOOL_EVENT > TranslateLegacyId(int aId) override
>
static TOOL_ACTION measureTool
Definition: cvpcb_actions.h:51