KiCad PCB EDA Suite
kicad/menubar.cpp File Reference

(Re)Create the project manager menubar for KiCad More...

#include <bitmaps.h>
#include <hotkeys_basic.h>
#include <menus_helpers.h>
#include "kicad.h"
#include "pgm_kicad.h"

Go to the source code of this file.

Enumerations

enum  hotkey_id_commnand {
  HK_RUN_EESCHEMA = HK_COMMON_END, HK_NEW_PRJ_TEMPLATE, HK_REFRESH, HK_RUN_LIBEDIT,
  HK_RUN_PCBNEW, HK_RUN_FPEDITOR, HK_RUN_GERBVIEW, HK_RUN_BM2COMPONENT,
  HK_RUN_PCBCALCULATOR, HK_RUN_PLEDITOR, HK_DELETE = HK_COMMON_END, HK_BACK_SPACE,
  HK_ROTATE_ITEM, HK_FLIP_ITEM, HK_COPY_ITEM, HK_MOVE_ITEM,
  HK_MOVE_ITEM_EXACT, HK_POSITION_RELATIVE, HK_DRAG_ITEM, HK_GET_AND_MOVE_FOOTPRINT,
  HK_LOCK_UNLOCK_FOOTPRINT, HK_ADD_NEW_TRACK, HK_ADD_THROUGH_VIA, HK_SEL_LAYER_AND_ADD_THROUGH_VIA,
  HK_ADD_BLIND_BURIED_VIA, HK_SEL_LAYER_AND_ADD_BLIND_BURIED_VIA, HK_ADD_MICROVIA, HK_SWITCH_TRACK_POSTURE,
  HK_DRAG_TRACK_KEEP_SLOPE, HK_SAVE_BOARD, HK_SAVE_BOARD_AS, HK_LOAD_BOARD,
  HK_SAVE_MODULE, HK_SWITCH_UNITS, HK_SWITCH_TRACK_DISPLAY_MODE, HK_3D_VIEWER,
  HK_FIND_ITEM, HK_EDIT_ITEM, HK_EDIT_MODULE_WITH_MODEDIT, HK_DUPLICATE_ITEM,
  HK_DUPLICATE_ITEM_AND_INCREMENT, HK_CREATE_ARRAY, HK_PLACE_ITEM, HK_SWITCH_TRACK_WIDTH_TO_NEXT,
  HK_SWITCH_TRACK_WIDTH_TO_PREVIOUS, HK_SWITCH_GRID_TO_FASTGRID1, HK_SWITCH_GRID_TO_FASTGRID2, HK_SWITCH_GRID_TO_NEXT,
  HK_SWITCH_GRID_TO_PREVIOUS, HK_SWITCH_LAYER_TO_COPPER, HK_SWITCH_LAYER_TO_COMPONENT, HK_SWITCH_LAYER_TO_NEXT,
  HK_SWITCH_LAYER_TO_PREVIOUS, HK_SWITCH_LAYER_TO_INNER1, HK_SWITCH_LAYER_TO_INNER2, HK_SWITCH_LAYER_TO_INNER3,
  HK_SWITCH_LAYER_TO_INNER4, HK_SWITCH_LAYER_TO_INNER5, HK_SWITCH_LAYER_TO_INNER6, HK_SWITCH_LAYER_TO_INNER7,
  HK_SWITCH_LAYER_TO_INNER8, HK_SWITCH_LAYER_TO_INNER9, HK_SWITCH_LAYER_TO_INNER10, HK_SWITCH_LAYER_TO_INNER11,
  HK_SWITCH_LAYER_TO_INNER12, HK_SWITCH_LAYER_TO_INNER13, HK_SWITCH_LAYER_TO_INNER14, HK_ADD_MODULE,
  HK_SLIDE_TRACK, HK_SWITCH_HIGHCONTRAST_MODE, HK_CANVAS_LEGACY, HK_CANVAS_OPENGL,
  HK_CANVAS_CAIRO, HK_LEFT_CLICK, HK_LEFT_DCLICK, HK_ZONE_FILL_OR_REFILL,
  HK_ZONE_REMOVE_FILLED, HK_INC_LAYER_ALHPA, HK_DEC_LAYER_ALHPA, HK_SEL_TRIVIAL_CONNECTION,
  HK_SEL_COPPER_CONNECTION, HK_ROUTING_OPTIONS, HK_CUSTOM_TRACK_WIDTH, HK_DP_DIMENSIONS,
  HK_VIA_SIZE_INC, HK_VIA_SIZE_DEC, HK_EDIT_CUT, HK_EDIT_PASTE,
  HK_EDIT_COPY, HK_FIND_NEXT_ITEM = HK_COMMON_END, HK_FIND_NEXT_DRC_MARKER, HK_FIND_ITEM,
  HK_FIND_REPLACE, HK_DELETE, HK_REPEAT_LAST, HK_LIBEDIT_MOVE_GRAPHIC_ITEM,
  HK_MOVEBLOCK_TO_DRAGBLOCK, HK_COPY_BLOCK, HK_PASTE_BLOCK, HK_CUT_BLOCK,
  HK_LIBEDIT_CREATE_PIN, HK_DELETE_PIN, HK_ROTATE, HK_EDIT,
  HK_EDIT_COMPONENT_VALUE, HK_EDIT_COMPONENT_REFERENCE, HK_EDIT_COMPONENT_FOOTPRINT, HK_EDIT_COMPONENT_WITH_LIBEDIT,
  HK_MIRROR_X, HK_MIRROR_Y, HK_ORIENT_NORMAL_COMPONENT, HK_MOVE_COMPONENT_OR_ITEM,
  HK_DUPLICATE_ITEM, HK_DRAG, HK_ADD_NEW_COMPONENT, HK_ADD_NEW_POWER,
  HK_BEGIN_WIRE, HK_BEGIN_BUS, HK_END_CURR_LINEWIREBUS, HK_ADD_WIRE_ENTRY,
  HK_ADD_BUS_ENTRY, HK_ADD_LABEL, HK_ADD_HLABEL, HK_ADD_GLABEL,
  HK_ADD_JUNCTION, HK_ADD_HIER_SHEET, HK_ADD_GRAPHIC_TEXT, HK_ADD_GRAPHIC_POLYLINE,
  HK_ADD_NOCONN_FLAG, HK_SAVE_LIB, HK_SAVE_PART, HK_SAVE_SCH,
  HK_LOAD_SCH, HK_LEFT_CLICK, HK_LEFT_DCLICK, HK_LEAVE_SHEET,
  HK_DELETE_NODE, HK_AUTOPLACE_FIELDS, HK_UPDATE_PCB_FROM_SCH, HK_SELECT_ITEMS_ON_PCB,
  HK_SWITCH_UNITS = HK_COMMON_END, HK_GBR_LINES_DISPLAY_MODE, HK_GBR_FLASHED_DISPLAY_MODE, HK_GBR_POLYGON_DISPLAY_MODE,
  HK_GBR_NEGATIVE_DISPLAY_ONOFF, HK_GBR_DCODE_DISPLAY_ONOFF, HK_SWITCH_LAYER_TO_NEXT, HK_SWITCH_LAYER_TO_PREVIOUS,
  HK_CANVAS_LEGACY, HK_CANVAS_OPENGL, HK_CANVAS_CAIRO, HK_SWITCH_UNITS = HK_COMMON_END,
  HK_MOVE_ITEM, HK_MOVE_START_POINT, HK_MOVE_END_POINT, HK_PLACE_ITEM,
  HK_DELETE_ITEM, HK_LEFT_CLICK, HK_LEFT_DCLICK
}
 

Functions

 EVT_MENU (ID_SELECT_PREFERED_PDF_BROWSER_NAME, KICAD_MANAGER_FRAME::OnSelectPreferredPdfBrowser) EVT_MENU_RANGE(ID_LANGUAGE_CHOICE
 
KICAD_MANAGER_FRAME::language_change EVT_MENU_RANGE (ID_PREFERENCES_HOTKEY_START, ID_PREFERENCES_HOTKEY_END, KICAD_MANAGER_FRAME::Process_Config) EVT_MENU_RANGE(ID_KICAD_SELECT_ICONS_OPTIONS
 
KICAD_MANAGER_FRAME::language_change KICAD_MANAGER_FRAME::OnChangeIconsOptions EVT_UPDATE_UI (ID_SELECT_PREFERED_PDF_BROWSER, KICAD_MANAGER_FRAME::OnUpdatePreferredPdfBrowser) EVT_UPDATE_UI_RANGE(ID_TO_SCH
 
static EDA_HOTKEY HkNewProjectFromTemplate (_HKI("New Project From Template"), HK_NEW_PRJ_TEMPLATE, 'T'+GR_KB_CTRL)
 
static EDA_HOTKEY HkRunEeschema (_HKI("Run Eeschema"), HK_RUN_EESCHEMA, 'E'+GR_KB_CTRL, 0)
 
static EDA_HOTKEY HkRunLibedit (_HKI("Run LibEdit"), HK_RUN_LIBEDIT, 'L'+GR_KB_CTRL, 0)
 
static EDA_HOTKEY HkRunPcbnew (_HKI("Run Pcbnew"), HK_RUN_PCBNEW, 'P'+GR_KB_CTRL, 0)
 
static EDA_HOTKEY HkRunModedit (_HKI("Run FpEditor"), HK_RUN_FPEDITOR, 'F'+GR_KB_CTRL, 0)
 
static EDA_HOTKEY HkRunGerbview (_HKI("Run Gerbview"), HK_RUN_GERBVIEW, 'G'+GR_KB_CTRL, 0)
 
static EDA_HOTKEY HkRunBm2Cmp (_HKI("Run Bitmap2Component"), HK_RUN_BM2COMPONENT, 'B'+GR_KB_CTRL, 0)
 
static EDA_HOTKEY HkRunPcbCalc (_HKI("Run PcbCalculator"), HK_RUN_PCBCALCULATOR, 'A'+GR_KB_CTRL, 0)
 
static EDA_HOTKEY HkRunPleditor (_HKI("Run PlEditor"), HK_RUN_PLEDITOR, 'Y'+GR_KB_CTRL, 0)
 
static wxString sectionTitle (_HKI("Kicad Manager Hotkeys"))
 

Variables

 ID_LANGUAGE_CHOICE_END
 
KICAD_MANAGER_FRAME::language_change ID_KICAD_SELECT_ICON_OPTIONS_END
 
KICAD_MANAGER_FRAME::language_change KICAD_MANAGER_FRAME::OnChangeIconsOptions ID_TO_PCB_FP_EDITOR
 
static EDA_HOTKEY HkRefresh (_HKI("Refresh Project Tree"), HK_REFRESH, GR_KB_CTRL+ 'R')
 
static EDA_HOTKEY HkNewProject (_HKI("New Project"), HK_NEW, GR_KB_CTRL+ 'N')
 
static EDA_HOTKEY HkOpenProject (_HKI("Open Project"), HK_OPEN, GR_KB_CTRL+ 'O')
 
static EDA_HOTKEY HkSaveProject (_HKI("Save Project"), HK_SAVE, GR_KB_CTRL+ 'S')
 
static EDA_HOTKEY HkHelp (_HKI("Help (this window)"), HK_HELP, '?')
 
EDA_HOTKEYcommon_Hotkey_List []
 
struct EDA_HOTKEY_CONFIG kicad_Manager_Hokeys_Descr []
 

Detailed Description

(Re)Create the project manager menubar for KiCad

Definition in file kicad/menubar.cpp.

Enumeration Type Documentation

Enumerator
HK_RUN_EESCHEMA 
HK_NEW_PRJ_TEMPLATE 
HK_REFRESH 
HK_RUN_LIBEDIT 
HK_RUN_PCBNEW 
HK_RUN_FPEDITOR 
HK_RUN_GERBVIEW 
HK_RUN_BM2COMPONENT 
HK_RUN_PCBCALCULATOR 
HK_RUN_PLEDITOR 
HK_DELETE 
HK_BACK_SPACE 
HK_ROTATE_ITEM 
HK_FLIP_ITEM 
HK_COPY_ITEM 
HK_MOVE_ITEM 
HK_MOVE_ITEM_EXACT 
HK_POSITION_RELATIVE 
HK_DRAG_ITEM 
HK_GET_AND_MOVE_FOOTPRINT 
HK_LOCK_UNLOCK_FOOTPRINT 
HK_ADD_NEW_TRACK 
HK_ADD_THROUGH_VIA 
HK_SEL_LAYER_AND_ADD_THROUGH_VIA 
HK_ADD_BLIND_BURIED_VIA 
HK_SEL_LAYER_AND_ADD_BLIND_BURIED_VIA 
HK_ADD_MICROVIA 
HK_SWITCH_TRACK_POSTURE 
HK_DRAG_TRACK_KEEP_SLOPE 
HK_SAVE_BOARD 
HK_SAVE_BOARD_AS 
HK_LOAD_BOARD 
HK_SAVE_MODULE 
HK_SWITCH_UNITS 
HK_SWITCH_TRACK_DISPLAY_MODE 
HK_3D_VIEWER 
HK_FIND_ITEM 
HK_EDIT_ITEM 
HK_EDIT_MODULE_WITH_MODEDIT 
HK_DUPLICATE_ITEM 
HK_DUPLICATE_ITEM_AND_INCREMENT 
HK_CREATE_ARRAY 
HK_PLACE_ITEM 
HK_SWITCH_TRACK_WIDTH_TO_NEXT 
HK_SWITCH_TRACK_WIDTH_TO_PREVIOUS 
HK_SWITCH_GRID_TO_FASTGRID1 
HK_SWITCH_GRID_TO_FASTGRID2 
HK_SWITCH_GRID_TO_NEXT 
HK_SWITCH_GRID_TO_PREVIOUS 
HK_SWITCH_LAYER_TO_COPPER 
HK_SWITCH_LAYER_TO_COMPONENT 
HK_SWITCH_LAYER_TO_NEXT 
HK_SWITCH_LAYER_TO_PREVIOUS 
HK_SWITCH_LAYER_TO_INNER1 
HK_SWITCH_LAYER_TO_INNER2 
HK_SWITCH_LAYER_TO_INNER3 
HK_SWITCH_LAYER_TO_INNER4 
HK_SWITCH_LAYER_TO_INNER5 
HK_SWITCH_LAYER_TO_INNER6 
HK_SWITCH_LAYER_TO_INNER7 
HK_SWITCH_LAYER_TO_INNER8 
HK_SWITCH_LAYER_TO_INNER9 
HK_SWITCH_LAYER_TO_INNER10 
HK_SWITCH_LAYER_TO_INNER11 
HK_SWITCH_LAYER_TO_INNER12 
HK_SWITCH_LAYER_TO_INNER13 
HK_SWITCH_LAYER_TO_INNER14 
HK_ADD_MODULE 
HK_SLIDE_TRACK 
HK_SWITCH_HIGHCONTRAST_MODE 
HK_CANVAS_LEGACY 
HK_CANVAS_OPENGL 
HK_CANVAS_CAIRO 
HK_LEFT_CLICK 
HK_LEFT_DCLICK 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
HK_LEAVE_SHEET 
HK_DELETE_NODE 
HK_AUTOPLACE_FIELDS 
HK_UPDATE_PCB_FROM_SCH 
HK_SELECT_ITEMS_ON_PCB 
HK_SWITCH_UNITS 
HK_GBR_LINES_DISPLAY_MODE 
HK_GBR_FLASHED_DISPLAY_MODE 
HK_GBR_POLYGON_DISPLAY_MODE 
HK_GBR_NEGATIVE_DISPLAY_ONOFF 
HK_GBR_DCODE_DISPLAY_ONOFF 
HK_SWITCH_LAYER_TO_NEXT 
HK_SWITCH_LAYER_TO_PREVIOUS 
HK_CANVAS_LEGACY 
HK_CANVAS_OPENGL 
HK_CANVAS_CAIRO 
HK_SWITCH_UNITS 
HK_MOVE_ITEM 
HK_MOVE_START_POINT 
HK_MOVE_END_POINT 
HK_PLACE_ITEM 
HK_DELETE_ITEM 
HK_LEFT_CLICK 
HK_LEFT_DCLICK 

Definition at line 121 of file kicad/menubar.cpp.

Function Documentation

static EDA_HOTKEY HkNewProjectFromTemplate ( _HKI("New Project From Template")  ,
HK_NEW_PRJ_TEMPLATE  ,
'T'+  GR_KB_CTRL 
)
static
static EDA_HOTKEY HkRunBm2Cmp ( _HKI("Run Bitmap2Component")  ,
HK_RUN_BM2COMPONENT  ,
'B'+  GR_KB_CTRL,
 
)
static
static EDA_HOTKEY HkRunEeschema ( _HKI("Run Eeschema")  ,
HK_RUN_EESCHEMA  ,
'E'+  GR_KB_CTRL,
 
)
static
static EDA_HOTKEY HkRunGerbview ( _HKI("Run Gerbview")  ,
HK_RUN_GERBVIEW  ,
'G'+  GR_KB_CTRL,
 
)
static
static EDA_HOTKEY HkRunLibedit ( _HKI("Run LibEdit")  ,
HK_RUN_LIBEDIT  ,
'L'+  GR_KB_CTRL,
 
)
static
static EDA_HOTKEY HkRunModedit ( _HKI("Run FpEditor")  ,
HK_RUN_FPEDITOR  ,
'F'+  GR_KB_CTRL,
 
)
static
static EDA_HOTKEY HkRunPcbCalc ( _HKI("Run PcbCalculator")  ,
HK_RUN_PCBCALCULATOR  ,
'A'+  GR_KB_CTRL,
 
)
static
static EDA_HOTKEY HkRunPcbnew ( _HKI("Run Pcbnew")  ,
HK_RUN_PCBNEW  ,
'P'+  GR_KB_CTRL,
 
)
static
static EDA_HOTKEY HkRunPleditor ( _HKI("Run PlEditor")  ,
HK_RUN_PLEDITOR  ,
'Y'+  GR_KB_CTRL,
 
)
static
static wxString sectionTitle ( _HKI("Kicad Manager Hotkeys")  )
static

Variable Documentation

EDA_HOTKEY* common_Hotkey_List[]
Initial value:
=
{
NULL
}
static EDA_HOTKEY HkRunPcbnew(_HKI("Run Pcbnew"), HK_RUN_PCBNEW, 'P'+GR_KB_CTRL, 0)
static EDA_HOTKEY HkHelp(_HKI("Help (this window)"), HK_HELP, '?')
static EDA_HOTKEY HkRunGerbview(_HKI("Run Gerbview"), HK_RUN_GERBVIEW, 'G'+GR_KB_CTRL, 0)
static EDA_HOTKEY HkNewProject(_HKI("New Project"), HK_NEW, GR_KB_CTRL+ 'N')
static EDA_HOTKEY HkRunPcbCalc(_HKI("Run PcbCalculator"), HK_RUN_PCBCALCULATOR, 'A'+GR_KB_CTRL, 0)
static EDA_HOTKEY HkRunEeschema(_HKI("Run Eeschema"), HK_RUN_EESCHEMA, 'E'+GR_KB_CTRL, 0)
static EDA_HOTKEY HkRunBm2Cmp(_HKI("Run Bitmap2Component"), HK_RUN_BM2COMPONENT, 'B'+GR_KB_CTRL, 0)
static EDA_HOTKEY HkOpenProject(_HKI("Open Project"), HK_OPEN, GR_KB_CTRL+ 'O')
static EDA_HOTKEY HkRunLibedit(_HKI("Run LibEdit"), HK_RUN_LIBEDIT, 'L'+GR_KB_CTRL, 0)
static EDA_HOTKEY HkNewProjectFromTemplate(_HKI("New Project From Template"), HK_NEW_PRJ_TEMPLATE, 'T'+GR_KB_CTRL)
static EDA_HOTKEY HkRunModedit(_HKI("Run FpEditor"), HK_RUN_FPEDITOR, 'F'+GR_KB_CTRL, 0)
static EDA_HOTKEY HkRunPleditor(_HKI("Run PlEditor"), HK_RUN_PLEDITOR, 'Y'+GR_KB_CTRL, 0)
static EDA_HOTKEY HkRefresh(_HKI("Refresh Project Tree"), HK_REFRESH, GR_KB_CTRL+ 'R')

Definition at line 164 of file kicad/menubar.cpp.

Referenced by FOOTPRINT_EDIT_FRAME::GetHotKeyDescription(), PCB_EDIT_FRAME::GetHotKeyDescription(), FOOTPRINT_EDIT_FRAME::OnHotKey(), and PCB_EDIT_FRAME::OnHotKey().

EDA_HOTKEY HkHelp(_HKI("Help (this window)"), HK_HELP, '?')
static
EDA_HOTKEY HkNewProject(_HKI("New Project"), HK_NEW, GR_KB_CTRL+ 'N')
static
EDA_HOTKEY HkOpenProject(_HKI("Open Project"), HK_OPEN, GR_KB_CTRL+ 'O')
static
EDA_HOTKEY HkRefresh(_HKI("Refresh Project Tree"), HK_REFRESH, GR_KB_CTRL+ 'R')
static
EDA_HOTKEY HkSaveProject(_HKI("Save Project"), HK_SAVE, GR_KB_CTRL+ 'S')
static
KICAD_MANAGER_FRAME::language_change ID_KICAD_SELECT_ICON_OPTIONS_END

Definition at line 110 of file kicad/menubar.cpp.

ID_LANGUAGE_CHOICE_END

Definition at line 72 of file kicad/menubar.cpp.

struct EDA_HOTKEY_CONFIG kicad_Manager_Hokeys_Descr[]
Initial value:
= {
{ NULL, NULL, NULL }
}
EDA_HOTKEY * common_Hotkey_List[]
static wxString sectionTitle(_HKI("Kicad Manager Hotkeys"))
wxString g_CommonSectionTag

Definition at line 184 of file kicad/menubar.cpp.

Referenced by KICAD_MANAGER_FRAME::ReCreateMenuBar().