30 #include <wx/button.h> 38 auto main_sizer =
new wxBoxSizer( wxVERTICAL );
43 main_sizer->Add(
m_hk_list, 1, wxTOP | wxLEFT | wxRIGHT | wxEXPAND, margin );
45 auto sdb_sizer =
new wxStdDialogButtonSizer;
46 sdb_sizer->AddButton(
new wxButton(
this, wxID_OK ) );
49 main_sizer->Add( sdb_sizer, 0, wxEXPAND | wxALL, margin );
51 SetSizer( main_sizer );
bool TransferDataToWindow() override
Called on dialog initialisation - inits the dialog's own widgets.
Hotkey list dialog (as opposed to editor)
void AddHotKeys(TOOL_MANAGER *aToolMgr)
int GetStdMargin()
Get the standard margin around a widget in the KiCad UI.
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
DIALOG_LIST_HOTKEYS(EDA_BASE_FRAME *aParent, TOOL_MANAGER *aToolManager)
Construct a hotkey list dialog on the given frame.
Functions to provide common constants and other functions to assist in making a consistent UI.
PANEL_HOTKEYS_EDITOR * m_hk_list
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
bool TransferDataToWindow() override
The base frame for deriving all KiCad main window classes.