2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2015-10-16 08:53:57 +00:00
// C++ code generated with wxFormBuilder (version Jun 17 2015)
2013-05-26 04:36:44 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "dialog_hotkeys_editor_base.h"
///////////////////////////////////////////////////////////////////////////
2013-09-21 17:09:08 +00:00
HOTKEYS_EDITOR_DIALOG_BASE : : HOTKEYS_EDITOR_DIALOG_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
2013-05-26 04:36:44 +00:00
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bMainSizer ;
2014-10-16 01:17:46 +00:00
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2013-05-26 04:36:44 +00:00
2014-10-16 01:17:46 +00:00
m_staticText1 = new wxStaticText ( this , wxID_ANY , _ ( " Select a row and press a new key combination to alter the binding. " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1 - > Wrap ( 400 ) ;
bMainSizer - > Add ( m_staticText1 , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2014-10-16 01:17:46 +00:00
m_hotkeySections = new wxNotebook ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
2014-10-16 01:17:46 +00:00
bMainSizer - > Add ( m_hotkeySections , 1 , wxEXPAND | wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
wxBoxSizer * b_buttonsSizer ;
2014-10-16 01:17:46 +00:00
b_buttonsSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2013-05-26 04:36:44 +00:00
2015-10-16 08:53:57 +00:00
m_sdbSizer = new wxStdDialogButtonSizer ( ) ;
m_sdbSizerOK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer - > AddButton ( m_sdbSizerOK ) ;
m_sdbSizerCancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizer - > AddButton ( m_sdbSizerCancel ) ;
m_sdbSizer - > Realize ( ) ;
2013-05-26 04:36:44 +00:00
2015-10-16 08:53:57 +00:00
b_buttonsSizer - > Add ( m_sdbSizer , 0 , wxEXPAND | wxTOP | wxBOTTOM , 5 ) ;
2013-05-26 04:36:44 +00:00
2015-10-16 08:53:57 +00:00
m_undoButton = new wxButton ( this , wxID_UNDO , _ ( " Undo " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
b_buttonsSizer - > Add ( m_undoButton , 0 , wxALL | wxEXPAND , 5 ) ;
2013-09-21 17:09:08 +00:00
2015-06-16 12:51:34 +00:00
bMainSizer - > Add ( b_buttonsSizer , 0 , wxALIGN_RIGHT , 5 ) ;
2013-05-26 04:36:44 +00:00
2013-09-21 17:09:08 +00:00
2013-05-26 04:36:44 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
// Connect Events
2015-10-16 08:53:57 +00:00
m_sdbSizerOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( HOTKEYS_EDITOR_DIALOG_BASE : : OnOKClicked ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
m_undoButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( HOTKEYS_EDITOR_DIALOG_BASE : : UndoClicked ) , NULL , this ) ;
}
HOTKEYS_EDITOR_DIALOG_BASE : : ~ HOTKEYS_EDITOR_DIALOG_BASE ( )
{
// Disconnect Events
2015-10-16 08:53:57 +00:00
m_sdbSizerOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( HOTKEYS_EDITOR_DIALOG_BASE : : OnOKClicked ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
m_undoButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( HOTKEYS_EDITOR_DIALOG_BASE : : UndoClicked ) , NULL , this ) ;
}