KiCad PCB EDA Suite
gerbview_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) 2017 Jon Evans <jon@craftyjon.com>
5  * Copyright (C) 2017 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 __GERBVIEW_ACTIONS_H
22 #define __GERBVIEW_ACTIONS_H
23 
24 #include <tool/tool_action.h>
25 #include <tool/actions.h>
26 #include <core/optional.h>
27 
28 class TOOL_EVENT;
29 class TOOL_MANAGER;
30 
37 class GERBVIEW_ACTIONS : public ACTIONS
38 {
39 public:
40  // Selection Tool
43 
46 
49 
52 
55 
58 
60 
61  // View controls
69 
70  // Display modes
79 
80  // Layer control
86 
87  static TOOL_ACTION layerChanged; // notification
88 
89  // Grid control
97 
101 
102  // Miscellaneous
112 
113  // Highlighting
118 
120  virtual OPT<TOOL_EVENT> TranslateLegacyId( int aId ) override;
121 
123  virtual void RegisterAllTools( TOOL_MANAGER* aToolManager ) override;
124 };
125 
126 #endif // __GERBVIEW_ACTIONS_H
static TOOL_ACTION selectionClear
Clears the current selection.
static TOOL_ACTION resetCoords
static TOOL_ACTION layerChanged
static TOOL_ACTION showHelp
static TOOL_ACTION highContrastMode
virtual void RegisterAllTools(TOOL_MANAGER *aToolManager) override
>
static TOOL_ACTION highContrastInc
static TOOL_ACTION layerToggle
static TOOL_ACTION selectionCursor
Select a single item under the cursor position.
static TOOL_ACTION layerNext
static TOOL_ACTION zoomCenter
static TOOL_ACTION highContrastDec
static TOOL_ACTION selectItem
Selects an item (specified as the event parameter).
static TOOL_ACTION highlightNet
static TOOL_ACTION layerPrev
static TOOL_ACTION gridSetOrigin
static TOOL_ACTION dcodeDisplay
static TOOL_ACTION negativeObjectDisplay
Class GERBVIEW_ACTIONS.
static TOOL_ACTION layerAlphaDec
static TOOL_ACTION zoomTool
static TOOL_ACTION gridPrev
static TOOL_ACTION toBeDone
Class TOOL_MANAGER.
Definition: tool_manager.h:49
static TOOL_ACTION measureTool
static TOOL_ACTION selectionTool
static TOOL_ACTION zoomIn
static TOOL_ACTION zoomFitScreen
static TOOL_ACTION gridPreset
static TOOL_ACTION highlightAttribute
static TOOL_ACTION zoomOut
static TOOL_ACTION linesDisplayOutlines
Class TOOL_EVENT.
Definition: tool_event.h:168
static TOOL_ACTION gridResetOrigin
static TOOL_ACTION zoomOutCenter
static TOOL_ACTION gridFast2
static TOOL_ACTION properties
Activation of the edit tool.
static TOOL_ACTION gridNext
static TOOL_ACTION panTool
static TOOL_ACTION flashedDisplayOutlines
static TOOL_ACTION pickerTool
static TOOL_ACTION switchCursor
static TOOL_ACTION cursorDblClick
static TOOL_ACTION switchUnits
static TOOL_ACTION highlightClear
static TOOL_ACTION selectionActivate
Activation of the selection tool.
static TOOL_ACTION unselectItem
Unselects an item (specified as the event parameter).
static TOOL_ACTION polygonsDisplayOutlines
Class TOOL_ACTION.
Definition: tool_action.h:46
boost::optional< T > OPT
Definition: optional.h:7
virtual OPT< TOOL_EVENT > TranslateLegacyId(int aId) override
>
static TOOL_ACTION zoomPreset
Class ACTIONS.
Definition: actions.h:41
static TOOL_ACTION layerAlphaInc
static TOOL_ACTION cursorClick
Cursor control.
static TOOL_ACTION zoomInCenter
static TOOL_ACTION gridFast1
static TOOL_ACTION highlightComponent