KiCad PCB EDA Suite
pagelayout_editor/hotkeys.cpp File Reference
#include <fctsys.h>
#include <common.h>
#include <kicad_device_context.h>
#include <id.h>
#include <class_drawpanel.h>
#include <pl_editor_frame.h>
#include <design_tree_frame.h>
#include <class_worksheet_dataitem.h>
#include <hotkeys.h>
#include <pl_editor_id.h>

Go to the source code of this file.

Functions

static EDA_HOTKEY HkUndo (_HKI("Undo"), HK_UNDO, GR_KB_CTRL+ 'Z',(int) wxID_UNDO)
 
static EDA_HOTKEY HkRedo (_HKI("Redo"), HK_REDO, GR_KB_CTRL+ 'Y',(int) wxID_REDO)
 
static EDA_HOTKEY HkNew (_HKI("New"), HK_NEW, GR_KB_CTRL+ 'N',(int) wxID_NEW)
 
static EDA_HOTKEY HkOpen (_HKI("Open"), HK_OPEN, GR_KB_CTRL+ 'O',(int) wxID_OPEN)
 
static EDA_HOTKEY HkSave (_HKI("Save"), HK_SAVE, GR_KB_CTRL+ 'S',(int) wxID_SAVE)
 
static EDA_HOTKEY HkSaveAs (_HKI("Save As"), HK_SAVEAS, GR_KB_CTRL+GR_KB_SHIFT+ 'S',(int) wxID_SAVEAS)
 
static EDA_HOTKEY HkPrint (_HKI("Print"), HK_PRINT, GR_KB_CTRL+ 'P',(int) wxID_PRINT)
 
static wxString commonSectionTitle (_HKI("Common"))
 
static wxString s_PlEditorSectionTag (wxT("[pl_editor]"))
 
static wxString s_PlEditorSectionTitle (_HKI("Page Layout Editor"))
 

Variables

static EDA_HOTKEY HkMouseLeftClick (_HKI("Mouse Left Click"), HK_LEFT_CLICK, WXK_RETURN, 0)
 
static EDA_HOTKEY HkMouseLeftDClick (_HKI("Mouse Left Double Click"), HK_LEFT_DCLICK, WXK_END, 0)
 
static EDA_HOTKEY HkResetLocalCoord (_HKI("Reset Local Coordinates"), HK_RESET_LOCAL_COORD, ' ')
 
static EDA_HOTKEY HkZoomAuto (_HKI("Zoom Auto"), HK_ZOOM_AUTO, WXK_HOME, ID_ZOOM_PAGE)
 
static EDA_HOTKEY HkZoomCenter (_HKI("Zoom Center"), HK_ZOOM_CENTER, WXK_F4, ID_POPUP_ZOOM_CENTER)
 
static EDA_HOTKEY HkZoomRedraw (_HKI("Zoom Redraw"), HK_ZOOM_REDRAW, WXK_F3, ID_ZOOM_REDRAW)
 
static EDA_HOTKEY HkZoomOut (_HKI("Zoom Out"), HK_ZOOM_OUT, WXK_F2, ID_POPUP_ZOOM_OUT)
 
static EDA_HOTKEY HkZoomIn (_HKI("Zoom In"), HK_ZOOM_IN, WXK_F1, ID_POPUP_ZOOM_IN)
 
static EDA_HOTKEY HkZoomSelection (_HKI("Zoom to Selection"), HK_ZOOM_SELECTION, '@', ID_ZOOM_SELECTION)
 
static EDA_HOTKEY HkHelp (_HKI("Help (this window)"), HK_HELP, '?')
 
static EDA_HOTKEY HkMoveItem (_HKI("Move Item"), HK_MOVE_ITEM, 'M', ID_POPUP_ITEM_MOVE)
 
static EDA_HOTKEY HkPlaceItem (_HKI("Place Item"), HK_PLACE_ITEM, 'P', ID_POPUP_ITEM_PLACE)
 
static EDA_HOTKEY HkMoveStartPoint (_HKI("Move Start Point"), HK_MOVE_START_POINT, 'S', ID_POPUP_ITEM_MOVE_START_POINT)
 
static EDA_HOTKEY HkMoveEndPoint (_HKI("Move End Point"), HK_MOVE_END_POINT, 'E', ID_POPUP_ITEM_MOVE_END_POINT)
 
static EDA_HOTKEY HkDeleteItem (_HKI("Delete Item"), HK_DELETE_ITEM, WXK_DELETE, ID_POPUP_ITEM_DELETE)
 
EDA_HOTKEYs_Common_Hotkey_List []
 
EDA_HOTKEYs_PlEditor_Hotkey_List []
 
struct EDA_HOTKEY_CONFIG PlEditorHokeysDescr []
 

Function Documentation

static wxString commonSectionTitle ( _HKI("Common")  )
static
static EDA_HOTKEY HkNew ( _HKI("New")  ,
HK_NEW  ,
GR_KB_CTRL+ 'N'  ,
(int)  wxID_NEW 
)
static
static EDA_HOTKEY HkOpen ( _HKI("Open")  ,
HK_OPEN  ,
GR_KB_CTRL+ 'O'  ,
(int)  wxID_OPEN 
)
static
static EDA_HOTKEY HkPrint ( _HKI("Print")  ,
HK_PRINT  ,
GR_KB_CTRL+ 'P'  ,
(int)  wxID_PRINT 
)
static
static EDA_HOTKEY HkRedo ( _HKI("Redo")  ,
HK_REDO  ,
GR_KB_CTRL+ 'Y'  ,
(int)  wxID_REDO 
)
static
static EDA_HOTKEY HkSave ( _HKI("Save")  ,
HK_SAVE  ,
GR_KB_CTRL+ 'S'  ,
(int)  wxID_SAVE 
)
static
static EDA_HOTKEY HkSaveAs ( _HKI("Save As")  ,
HK_SAVEAS  ,
GR_KB_CTRL+GR_KB_SHIFT+ 'S'  ,
(int)  wxID_SAVEAS 
)
static
static EDA_HOTKEY HkUndo ( _HKI("Undo")  ,
HK_UNDO  ,
GR_KB_CTRL+ 'Z'  ,
(int)  wxID_UNDO 
)
static
static wxString s_PlEditorSectionTag ( wxT("[pl_editor]")  )
static
static wxString s_PlEditorSectionTitle ( _HKI("Page Layout Editor")  )
static

Variable Documentation

EDA_HOTKEY HkDeleteItem(_HKI("Delete Item"), HK_DELETE_ITEM, WXK_DELETE, ID_POPUP_ITEM_DELETE)
static
EDA_HOTKEY HkHelp(_HKI("Help (this window)"), HK_HELP, '?')
static
EDA_HOTKEY HkMouseLeftClick(_HKI("Mouse Left Click"), HK_LEFT_CLICK, WXK_RETURN, 0)
static
EDA_HOTKEY HkMouseLeftDClick(_HKI("Mouse Left Double Click"), HK_LEFT_DCLICK, WXK_END, 0)
static
EDA_HOTKEY HkMoveEndPoint(_HKI("Move End Point"), HK_MOVE_END_POINT, 'E', ID_POPUP_ITEM_MOVE_END_POINT)
static
EDA_HOTKEY HkMoveItem(_HKI("Move Item"), HK_MOVE_ITEM, 'M', ID_POPUP_ITEM_MOVE)
static
EDA_HOTKEY HkMoveStartPoint(_HKI("Move Start Point"), HK_MOVE_START_POINT, 'S', ID_POPUP_ITEM_MOVE_START_POINT)
static
EDA_HOTKEY HkPlaceItem(_HKI("Place Item"), HK_PLACE_ITEM, 'P', ID_POPUP_ITEM_PLACE)
static
EDA_HOTKEY HkResetLocalCoord(_HKI("Reset Local Coordinates"), HK_RESET_LOCAL_COORD, ' ')
static
EDA_HOTKEY HkZoomAuto(_HKI("Zoom Auto"), HK_ZOOM_AUTO, WXK_HOME, ID_ZOOM_PAGE)
static
EDA_HOTKEY HkZoomCenter(_HKI("Zoom Center"), HK_ZOOM_CENTER, WXK_F4, ID_POPUP_ZOOM_CENTER)
static
EDA_HOTKEY HkZoomIn(_HKI("Zoom In"), HK_ZOOM_IN, WXK_F1, ID_POPUP_ZOOM_IN)
static
EDA_HOTKEY HkZoomOut(_HKI("Zoom Out"), HK_ZOOM_OUT, WXK_F2, ID_POPUP_ZOOM_OUT)
static
EDA_HOTKEY HkZoomRedraw(_HKI("Zoom Redraw"), HK_ZOOM_REDRAW, WXK_F3, ID_ZOOM_REDRAW)
static
EDA_HOTKEY HkZoomSelection(_HKI("Zoom to Selection"), HK_ZOOM_SELECTION, '@', ID_ZOOM_SELECTION)
static
struct EDA_HOTKEY_CONFIG PlEditorHokeysDescr[]
Initial value:
=
{
{ NULL, NULL, NULL }
}
static wxString s_PlEditorSectionTitle(_HKI("Page Layout Editor"))
static wxString s_PlEditorSectionTag(wxT("[pl_editor]"))
static wxString commonSectionTitle(_HKI("Common"))
EDA_HOTKEY * s_Common_Hotkey_List[]
EDA_HOTKEY * s_PlEditor_Hotkey_List[]
wxString g_CommonSectionTag

Definition at line 130 of file pagelayout_editor/hotkeys.cpp.

Referenced by PGE::IFACE::OnKifaceStart(), PL_EDITOR_FRAME::OnRightClick(), PL_EDITOR_FRAME::PL_EDITOR_FRAME(), PL_EDITOR_FRAME::Process_Config(), PL_EDITOR_FRAME::ReCreateHToolbar(), and PL_EDITOR_FRAME::ReCreateMenuBar().

EDA_HOTKEY* s_Common_Hotkey_List[]
Initial value:
=
{
NULL
}
static EDA_HOTKEY HkMouseLeftDClick(_HKI("Mouse Left Double Click"), HK_LEFT_DCLICK, WXK_END, 0)
static EDA_HOTKEY HkZoomOut(_HKI("Zoom Out"), HK_ZOOM_OUT, WXK_F2, ID_POPUP_ZOOM_OUT)
static EDA_HOTKEY HkPrint(_HKI("Print"), HK_PRINT, GR_KB_CTRL+ 'P',(int) wxID_PRINT)
static EDA_HOTKEY HkSaveAs(_HKI("Save As"), HK_SAVEAS, GR_KB_CTRL+GR_KB_SHIFT+ 'S',(int) wxID_SAVEAS)
static EDA_HOTKEY HkMouseLeftClick(_HKI("Mouse Left Click"), HK_LEFT_CLICK, WXK_RETURN, 0)
static EDA_HOTKEY HkResetLocalCoord(_HKI("Reset Local Coordinates"), HK_RESET_LOCAL_COORD, ' ')
static EDA_HOTKEY HkOpen(_HKI("Open"), HK_OPEN, GR_KB_CTRL+ 'O',(int) wxID_OPEN)
static EDA_HOTKEY HkSave(_HKI("Save"), HK_SAVE, GR_KB_CTRL+ 'S',(int) wxID_SAVE)
static EDA_HOTKEY HkZoomIn(_HKI("Zoom In"), HK_ZOOM_IN, WXK_F1, ID_POPUP_ZOOM_IN)
static EDA_HOTKEY HkNew(_HKI("New"), HK_NEW, GR_KB_CTRL+ 'N',(int) wxID_NEW)
static EDA_HOTKEY HkZoomAuto(_HKI("Zoom Auto"), HK_ZOOM_AUTO, WXK_HOME, ID_ZOOM_PAGE)
static EDA_HOTKEY HkZoomSelection(_HKI("Zoom to Selection"), HK_ZOOM_SELECTION, '@', ID_ZOOM_SELECTION)
static EDA_HOTKEY HkZoomRedraw(_HKI("Zoom Redraw"), HK_ZOOM_REDRAW, WXK_F3, ID_ZOOM_REDRAW)
static EDA_HOTKEY HkZoomCenter(_HKI("Zoom Center"), HK_ZOOM_CENTER, WXK_F4, ID_POPUP_ZOOM_CENTER)
static EDA_HOTKEY HkUndo(_HKI("Undo"), HK_UNDO, GR_KB_CTRL+ 'Z',(int) wxID_UNDO)
static EDA_HOTKEY HkRedo(_HKI("Redo"), HK_REDO, GR_KB_CTRL+ 'Y',(int) wxID_REDO)
static EDA_HOTKEY HkHelp(_HKI("Help (this window)"), HK_HELP, '?')

Definition at line 101 of file pagelayout_editor/hotkeys.cpp.

EDA_HOTKEY* s_PlEditor_Hotkey_List[]
Initial value:
=
{
NULL
}
static EDA_HOTKEY HkMoveStartPoint(_HKI("Move Start Point"), HK_MOVE_START_POINT, 'S', ID_POPUP_ITEM_MOVE_START_POINT)
static EDA_HOTKEY HkMoveItem(_HKI("Move Item"), HK_MOVE_ITEM, 'M', ID_POPUP_ITEM_MOVE)
static EDA_HOTKEY HkPlaceItem(_HKI("Place Item"), HK_PLACE_ITEM, 'P', ID_POPUP_ITEM_PLACE)
static EDA_HOTKEY HkMoveEndPoint(_HKI("Move End Point"), HK_MOVE_END_POINT, 'E', ID_POPUP_ITEM_MOVE_END_POINT)
static EDA_HOTKEY HkDeleteItem(_HKI("Delete Item"), HK_DELETE_ITEM, WXK_DELETE, ID_POPUP_ITEM_DELETE)

Definition at line 113 of file pagelayout_editor/hotkeys.cpp.