2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2016-01-05 00:31:35 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Dec 28 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 );
|
|
|
|
|
2016-01-05 18:46:45 +00:00
|
|
|
m_mainSizer = new wxBoxSizer( wxVERTICAL );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2016-01-16 01:58:39 +00:00
|
|
|
m_staticText1 = new wxStaticText( this, wxID_ANY, _("Double-click to edit"), wxDefaultPosition, wxDefaultSize, 0 );
|
2014-10-16 01:17:46 +00:00
|
|
|
m_staticText1->Wrap( 400 );
|
2016-01-05 18:46:45 +00:00
|
|
|
m_mainSizer->Add( m_staticText1, 0, wxALL|wxEXPAND, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2016-01-16 01:58:39 +00:00
|
|
|
m_panelHotkeys = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
|
|
m_mainSizer->Add( m_panelHotkeys, 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
|
|
|
|
2016-01-05 00:31:35 +00:00
|
|
|
m_resetButton = new wxButton( this, wxID_RESET, _("Reset"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
b_buttonsSizer->Add( m_resetButton, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
b_buttonsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
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
|
|
|
|
2013-09-21 17:09:08 +00:00
|
|
|
|
2016-01-05 18:46:45 +00:00
|
|
|
m_mainSizer->Add( b_buttonsSizer, 0, wxALIGN_RIGHT|wxEXPAND, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2013-09-21 17:09:08 +00:00
|
|
|
|
2016-01-05 18:46:45 +00:00
|
|
|
this->SetSizer( m_mainSizer );
|
2013-05-26 04:36:44 +00:00
|
|
|
this->Layout();
|
|
|
|
|
|
|
|
// Connect Events
|
2016-01-05 00:31:35 +00:00
|
|
|
m_resetButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HOTKEYS_EDITOR_DIALOG_BASE::ResetClicked ), NULL, this );
|
2013-05-26 04:36:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
HOTKEYS_EDITOR_DIALOG_BASE::~HOTKEYS_EDITOR_DIALOG_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2016-01-05 00:31:35 +00:00
|
|
|
m_resetButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HOTKEYS_EDITOR_DIALOG_BASE::ResetClicked ), NULL, this );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
}
|