KiCad PCB EDA Suite
gerbview/hotkeys.cpp File Reference
#include <fctsys.h>
#include <common.h>
#include <gerbview_id.h>
#include <gerbview.h>
#include <gerbview_frame.h>
#include <class_drawpanel.h>
#include <class_gerbview_layer_widget.h>
#include <hotkeys.h>

Go to the source code of this file.

Macros

#define CHANGE(x)   ( x ) = not (x )
 

Functions

static wxString gerbviewSectionTag (wxT("[gerbview]"))
 
static wxString gerbviewSectionTitle (_HKI("Gerbview Hotkeys"))
 

Variables

static EDA_HOTKEY HkZoomAuto (_HKI("Zoom Auto"), HK_ZOOM_AUTO, WXK_HOME)
 
static EDA_HOTKEY HkZoomCenter (_HKI("Zoom Center"), HK_ZOOM_CENTER, WXK_F4)
 
static EDA_HOTKEY HkZoomRedraw (_HKI("Zoom Redraw"), HK_ZOOM_REDRAW, WXK_F3)
 
static EDA_HOTKEY HkZoomOut (_HKI("Zoom Out"), HK_ZOOM_OUT, WXK_F2)
 
static EDA_HOTKEY HkZoomIn (_HKI("Zoom In"), HK_ZOOM_IN, WXK_F1)
 
static EDA_HOTKEY HkZoomSelection (_HKI("Zoom to Selection"), HK_ZOOM_SELECTION, '@')
 
static EDA_HOTKEY HkHelp (_HKI("Help (this window)"), HK_HELP, '?')
 
static EDA_HOTKEY HkSwitchUnits (_HKI("Switch Units"), HK_SWITCH_UNITS, 'U')
 
static EDA_HOTKEY HkResetLocalCoord (_HKI("Reset Local Coordinates"), HK_RESET_LOCAL_COORD, ' ')
 
static EDA_HOTKEY HkLinesDisplayMode (_HKI("Gbr Lines Display Mode"), HK_GBR_LINES_DISPLAY_MODE, 'L')
 
static EDA_HOTKEY HkFlashedDisplayMode (_HKI("Gbr Flashed Display Mode"), HK_GBR_FLASHED_DISPLAY_MODE, 'F')
 
static EDA_HOTKEY HkPolygonDisplayMode (_HKI("Gbr Polygons Display Mode"), HK_GBR_POLYGON_DISPLAY_MODE, 'P')
 
static EDA_HOTKEY HkNegativeObjDisplayMode (_HKI("Gbr Negative Obj Display Mode"), HK_GBR_NEGATIVE_DISPLAY_ONOFF, 'N')
 
static EDA_HOTKEY HkDCodesDisplayMode (_HKI("DCodes Display Mode"), HK_GBR_DCODE_DISPLAY_ONOFF, 'D')
 
static EDA_HOTKEY HkSwitch2NextCopperLayer (_HKI("Switch to Next Layer"), HK_SWITCH_LAYER_TO_NEXT, '+')
 
static EDA_HOTKEY HkSwitch2PreviousCopperLayer (_HKI("Switch to Previous Layer"), HK_SWITCH_LAYER_TO_PREVIOUS, '-')
 
static EDA_HOTKEY HkCanvasDefault (_HKI("Switch to Legacy Canvas"), HK_CANVAS_LEGACY, WXK_F9)
 
static EDA_HOTKEY HkCanvasOpenGL (_HKI("Switch to OpenGL Canvas"), HK_CANVAS_OPENGL, WXK_F11)
 
static EDA_HOTKEY HkCanvasCairo (_HKI("Switch to Cairo Canvas"), HK_CANVAS_CAIRO, WXK_F12)
 
EDA_HOTKEYgerbviewHotkeyList []
 
struct EDA_HOTKEY_CONFIG GerbviewHokeysDescr []
 

Macro Definition Documentation

#define CHANGE (   x)    ( x ) = not (x )

Function Documentation

static wxString gerbviewSectionTag ( wxT("[gerbview]")  )
static
static wxString gerbviewSectionTitle ( _HKI("Gerbview Hotkeys")  )
static

Variable Documentation

struct EDA_HOTKEY_CONFIG GerbviewHokeysDescr[]
Initial value:
=
{
{ NULL, NULL, NULL }
}
static wxString gerbviewSectionTitle(_HKI("Gerbview Hotkeys"))
EDA_HOTKEY * gerbviewHotkeyList[]
static wxString gerbviewSectionTag(wxT("[gerbview]"))

Definition at line 129 of file gerbview/hotkeys.cpp.

Referenced by GERBVIEW_FRAME::GERBVIEW_FRAME(), GERBV::IFACE::OnKifaceStart(), GERBVIEW_FRAME::Process_Config(), GERBVIEW_FRAME::ReCreateHToolbar(), and GERBVIEW_FRAME::ReCreateMenuBar().

EDA_HOTKEY* gerbviewHotkeyList[]
Initial value:
= {
NULL
}
static EDA_HOTKEY HkCanvasDefault(_HKI("Switch to Legacy Canvas"), HK_CANVAS_LEGACY, WXK_F9)
static EDA_HOTKEY HkSwitch2NextCopperLayer(_HKI("Switch to Next Layer"), HK_SWITCH_LAYER_TO_NEXT, '+')
static EDA_HOTKEY HkZoomRedraw(_HKI("Zoom Redraw"), HK_ZOOM_REDRAW, WXK_F3)
static EDA_HOTKEY HkCanvasOpenGL(_HKI("Switch to OpenGL Canvas"), HK_CANVAS_OPENGL, WXK_F11)
static EDA_HOTKEY HkZoomCenter(_HKI("Zoom Center"), HK_ZOOM_CENTER, WXK_F4)
static EDA_HOTKEY HkFlashedDisplayMode(_HKI("Gbr Flashed Display Mode"), HK_GBR_FLASHED_DISPLAY_MODE, 'F')
static EDA_HOTKEY HkDCodesDisplayMode(_HKI("DCodes Display Mode"), HK_GBR_DCODE_DISPLAY_ONOFF, 'D')
static EDA_HOTKEY HkZoomSelection(_HKI("Zoom to Selection"), HK_ZOOM_SELECTION, '@')
static EDA_HOTKEY HkZoomOut(_HKI("Zoom Out"), HK_ZOOM_OUT, WXK_F2)
static EDA_HOTKEY HkNegativeObjDisplayMode(_HKI("Gbr Negative Obj Display Mode"), HK_GBR_NEGATIVE_DISPLAY_ONOFF, 'N')
static EDA_HOTKEY HkCanvasCairo(_HKI("Switch to Cairo Canvas"), HK_CANVAS_CAIRO, WXK_F12)
static EDA_HOTKEY HkZoomAuto(_HKI("Zoom Auto"), HK_ZOOM_AUTO, WXK_HOME)
static EDA_HOTKEY HkPolygonDisplayMode(_HKI("Gbr Polygons Display Mode"), HK_GBR_POLYGON_DISPLAY_MODE, 'P')
static EDA_HOTKEY HkZoomIn(_HKI("Zoom In"), HK_ZOOM_IN, WXK_F1)
static EDA_HOTKEY HkSwitch2PreviousCopperLayer(_HKI("Switch to Previous Layer"), HK_SWITCH_LAYER_TO_PREVIOUS, '-')
static EDA_HOTKEY HkSwitchUnits(_HKI("Switch Units"), HK_SWITCH_UNITS, 'U')
static EDA_HOTKEY HkResetLocalCoord(_HKI("Reset Local Coordinates"), HK_RESET_LOCAL_COORD, ' ')
static EDA_HOTKEY HkLinesDisplayMode(_HKI("Gbr Lines Display Mode"), HK_GBR_LINES_DISPLAY_MODE, 'L')
static EDA_HOTKEY HkHelp(_HKI("Help (this window)"), HK_HELP, '?')

Definition at line 109 of file gerbview/hotkeys.cpp.

EDA_HOTKEY HkCanvasCairo(_HKI("Switch to Cairo Canvas"), HK_CANVAS_CAIRO, WXK_F12)
static
EDA_HOTKEY HkCanvasDefault(_HKI("Switch to Legacy Canvas"), HK_CANVAS_LEGACY, WXK_F9)
static
EDA_HOTKEY HkCanvasOpenGL(_HKI("Switch to OpenGL Canvas"), HK_CANVAS_OPENGL, WXK_F11)
static
EDA_HOTKEY HkDCodesDisplayMode(_HKI("DCodes Display Mode"), HK_GBR_DCODE_DISPLAY_ONOFF, 'D')
static
EDA_HOTKEY HkFlashedDisplayMode(_HKI("Gbr Flashed Display Mode"), HK_GBR_FLASHED_DISPLAY_MODE, 'F')
static
EDA_HOTKEY HkHelp(_HKI("Help (this window)"), HK_HELP, '?')
static
EDA_HOTKEY HkLinesDisplayMode(_HKI("Gbr Lines Display Mode"), HK_GBR_LINES_DISPLAY_MODE, 'L')
static
EDA_HOTKEY HkNegativeObjDisplayMode(_HKI("Gbr Negative Obj Display Mode"), HK_GBR_NEGATIVE_DISPLAY_ONOFF, 'N')
static
EDA_HOTKEY HkPolygonDisplayMode(_HKI("Gbr Polygons Display Mode"), HK_GBR_POLYGON_DISPLAY_MODE, 'P')
static
EDA_HOTKEY HkResetLocalCoord(_HKI("Reset Local Coordinates"), HK_RESET_LOCAL_COORD, ' ')
static
EDA_HOTKEY HkSwitch2NextCopperLayer(_HKI("Switch to Next Layer"), HK_SWITCH_LAYER_TO_NEXT, '+')
static
EDA_HOTKEY HkSwitch2PreviousCopperLayer(_HKI("Switch to Previous Layer"), HK_SWITCH_LAYER_TO_PREVIOUS, '-')
static
EDA_HOTKEY HkSwitchUnits(_HKI("Switch Units"), HK_SWITCH_UNITS, 'U')
static
EDA_HOTKEY HkZoomAuto(_HKI("Zoom Auto"), HK_ZOOM_AUTO, WXK_HOME)
static
EDA_HOTKEY HkZoomCenter(_HKI("Zoom Center"), HK_ZOOM_CENTER, WXK_F4)
static
EDA_HOTKEY HkZoomIn(_HKI("Zoom In"), HK_ZOOM_IN, WXK_F1)
static
EDA_HOTKEY HkZoomOut(_HKI("Zoom Out"), HK_ZOOM_OUT, WXK_F2)
static
EDA_HOTKEY HkZoomRedraw(_HKI("Zoom Redraw"), HK_ZOOM_REDRAW, WXK_F3)
static
EDA_HOTKEY HkZoomSelection(_HKI("Zoom to Selection"), HK_ZOOM_SELECTION, '@')
static