39 wxBoxSizer* main_sizer =
new wxBoxSizer( wxVERTICAL );
48 ACTION_MANAGER* actionMgr = kicadMgr->GetToolManager()->GetActionManager();
51 m_hk_list->ActionsList().push_back( action );
70 main_sizer->Add(
m_hk_list, 1, wxTOP | wxLEFT | wxRIGHT | wxEXPAND, margin );
72 wxStdDialogButtonSizer* sdb_sizer =
new wxStdDialogButtonSizer;
73 sdb_sizer->AddButton(
new wxButton(
this, wxID_OK ) );
74 sdb_sizer->AddButton(
new wxButton(
this, wxID_CANCEL ) );
77 main_sizer->Add( sdb_sizer, 0, wxEXPAND | wxALL, margin );
79 SetSizer( main_sizer );
80 main_sizer->SetMinSize( 600, 400 );
94 return m_hk_list->TransferDataFromWindow();
Manage TOOL_ACTION objects.
const std::map< std::string, TOOL_ACTION * > & GetActions() const
Get a list of currently-registered actions mapped by their name.
DIALOG_LIST_HOTKEYS(EDA_BASE_FRAME *aParent)
Construct a hotkey list dialog on the given frame.
PANEL_HOTKEYS_EDITOR * m_hk_list
bool TransferDataFromWindow() override
Called on dialog close to save the hotkey changes.
bool TransferDataToWindow() override
Called on dialog initialisation - inits the dialog's own widgets.
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
The base frame for deriving all KiCad main window classes.
The main KiCad project manager frame.
KIWAY & Kiway() const
Return a reference to the KIWAY that this object has an opportunity to participate in.
virtual KIFACE * KiFACE(FACE_T aFaceId, bool doLoad=true)
Return the KIFACE* given a FACE_T.
Hotkey list dialog (as opposed to editor)
Base window classes and related definitions.
#define KICAD_MANAGER_FRAME_NAME
void ReadHotKeyConfigIntoActions(const wxString &aFileName, std::vector< TOOL_ACTION * > &aActions)
Read a hotkey config file into a list of actions.
KICOMMON_API int GetStdMargin()
Get the standard margin around a widget in the KiCad UI.
Implement a participant in the KIWAY alchemy.
IFACE KIFACE_BASE kiface("pcb_test_frame", KIWAY::FACE_PCB)
Functions to provide common constants and other functions to assist in making a consistent UI.