KiCad PCB EDA Suite
actions.cpp
Go to the documentation of this file.
1 #include <tool/actions.h>
2 #include <hotkeys.h>
3 #include <bitmaps.h>
4 
5 // These members are static in class ACTIONS: Build them here:
6 
7 // Generic Actions
8 TOOL_ACTION ACTIONS::cancelInteractive( "common.Interactive.cancel",
9  AS_GLOBAL, 0, // ESC key is handled in the dispatcher
10  _( "Cancel" ), _( "Cancel current tool" ),
11  cancel_xpm, AF_NONE );
12 
13 // View Controls
14 TOOL_ACTION ACTIONS::zoomIn( "common.Control.zoomIn",
16  _( "Zoom In" ), "", zoom_in_xpm );
17 
18 TOOL_ACTION ACTIONS::zoomOut( "common.Control.zoomOut",
20  _( "Zoom Out" ), "", zoom_out_xpm );
21 
22 TOOL_ACTION ACTIONS::zoomInCenter( "common.Control.zoomInCenter",
23  AS_GLOBAL, 0,
24  "", "" );
25 
26 TOOL_ACTION ACTIONS::zoomOutCenter( "common.Control.zoomOutCenter",
27  AS_GLOBAL, 0,
28  "", "" );
29 
30 TOOL_ACTION ACTIONS::zoomCenter( "common.Control.zoomCenter",
32  _( "Center" ), "", zoom_center_on_screen_xpm );
33 
34 TOOL_ACTION ACTIONS::zoomFitScreen( "common.Control.zoomFitScreen",
36  _( "Zoom Auto" ), "", zoom_fit_in_page_xpm );
37 
38 TOOL_ACTION ACTIONS::zoomTool( "common.Control.zoomTool",
40  _( "Zoom to Selection" ), "", NULL, AF_ACTIVATE );
41 
42 TOOL_ACTION ACTIONS::zoomPreset( "common.Control.zoomPreset",
43  AS_GLOBAL, 0,
44  "", "" );
45 
46 // Grid control
47 TOOL_ACTION ACTIONS::gridFast1( "common.Control.gridFast1",
49  "", "" );
50 
51 TOOL_ACTION ACTIONS::gridFast2( "common.Control.gridFast2",
53  "", "" );
54 
55 TOOL_ACTION ACTIONS::gridNext( "common.Control.gridNext",
57  "", "" );
58 
59 TOOL_ACTION ACTIONS::gridPrev( "common.Control.gridPrev",
61  "", "" );
62 
63 TOOL_ACTION ACTIONS::gridSetOrigin( "common.Control.gridSetOrigin",
65  "", "" );
66 
67 TOOL_ACTION ACTIONS::gridResetOrigin( "common.Control.gridResetOrigin",
69  "", "" );
70 
71 TOOL_ACTION ACTIONS::gridPreset( "common.Control.gridPreset",
72  AS_GLOBAL, 0,
73  "", "" );
static TOOL_ACTION zoomPreset
Definition: actions.h:57
static TOOL_ACTION zoomInCenter
Definition: actions.h:53
static TOOL_ACTION zoomTool
Definition: actions.h:58
static TOOL_ACTION gridResetOrigin
Definition: actions.h:66
static TOOL_ACTION cancelInteractive
Definition: actions.h:45
static TOOL_ACTION zoomFitScreen
Definition: actions.h:56
static int LegacyHotKey(int aHotKey)
Creates a hot key code that refers to a legacy hot key setting, instead of a particular key...
Definition: tool_action.h:174
static TOOL_ACTION gridFast1
Definition: actions.h:61
static TOOL_ACTION zoomOutCenter
Definition: actions.h:54
Pcbnew hotkeys.
static TOOL_ACTION gridFast2
Definition: actions.h:62
static TOOL_ACTION gridPreset
Definition: actions.h:67
static TOOL_ACTION gridPrev
Definition: actions.h:64
All active tools
Definition: tool_event.h:138
static TOOL_ACTION zoomCenter
Definition: actions.h:55
Class TOOL_ACTION.
Definition: tool_action.h:46
static TOOL_ACTION gridNext
Definition: actions.h:63
static TOOL_ACTION zoomIn
Definition: actions.h:51
static TOOL_ACTION zoomOut
Definition: actions.h:52
static TOOL_ACTION gridSetOrigin
Definition: actions.h:65