37 wxBoxSizer* main_sizer =
new wxBoxSizer( wxVERTICAL );
60 main_sizer->Add(
m_hk_list, 1, wxTOP | wxLEFT | wxRIGHT | wxEXPAND, margin );
62 wxStdDialogButtonSizer* sdb_sizer =
new wxStdDialogButtonSizer;
63 sdb_sizer->AddButton(
new wxButton(
this, wxID_OK ) );
66 main_sizer->Add( sdb_sizer, 0, wxEXPAND | wxALL, margin );
68 SetSizer( main_sizer );
69 main_sizer->SetMinSize( 600, 400 );
DIALOG_LIST_HOTKEYS(EDA_BASE_FRAME *aParent)
Construct a hotkey list dialog on the given frame.
PANEL_HOTKEYS_EDITOR * m_hk_list
bool TransferDataToWindow() override
Called on dialog initialisation - inits the dialog's own widgets.
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
The base frame for deriving all KiCad main window classes.
void GetActions(std::vector< TOOL_ACTION * > &aActions) const override
Append this Kiface's registered actions to the given list.
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.
virtual void GetActions(std::vector< TOOL_ACTION * > &aActions) const
Append all registered actions to the given list.
std::vector< TOOL_ACTION * > & ActionsList()
bool TransferDataToWindow() override
Hotkey list dialog (as opposed to editor)
Base window classes and related definitions.
void ReadHotKeyConfigIntoActions(const wxString &aFileName, std::vector< TOOL_ACTION * > &aActions)
Reads 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.