KiCad PCB EDA Suite
dialog_hotkeys_editor_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jun 17 2015)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 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 )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  m_mainSizer = new wxBoxSizer( wxVERTICAL );
17 
18  m_staticText1 = new wxStaticText( this, wxID_ANY, _("Double-click to edit"), wxDefaultPosition, wxDefaultSize, 0 );
19  m_staticText1->Wrap( 400 );
20  m_mainSizer->Add( m_staticText1, 0, wxALL|wxEXPAND, 5 );
21 
22  m_panelHotkeys = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
23  m_mainSizer->Add( m_panelHotkeys, 1, wxEXPAND | wxALL, 5 );
24 
25  wxBoxSizer* b_buttonsSizer;
26  b_buttonsSizer = new wxBoxSizer( wxHORIZONTAL );
27 
28  m_resetButton = new wxButton( this, wxID_RESET, _("Reset"), wxDefaultPosition, wxDefaultSize, 0 );
29  b_buttonsSizer->Add( m_resetButton, 0, wxALL|wxEXPAND, 5 );
30 
31  m_defaultButton = new wxButton( this, wxID_ANY, _("Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
32  b_buttonsSizer->Add( m_defaultButton, 0, wxALL|wxEXPAND, 5 );
33 
34 
35  b_buttonsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
36 
37  m_sdbSizer = new wxStdDialogButtonSizer();
38  m_sdbSizerOK = new wxButton( this, wxID_OK );
39  m_sdbSizer->AddButton( m_sdbSizerOK );
40  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
41  m_sdbSizer->AddButton( m_sdbSizerCancel );
42  m_sdbSizer->Realize();
43 
44  b_buttonsSizer->Add( m_sdbSizer, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
45 
46 
47  m_mainSizer->Add( b_buttonsSizer, 0, wxALIGN_RIGHT|wxEXPAND, 5 );
48 
49 
50  this->SetSizer( m_mainSizer );
51  this->Layout();
52 
53  // Connect Events
54  m_resetButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HOTKEYS_EDITOR_DIALOG_BASE::ResetClicked ), NULL, this );
55  m_defaultButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HOTKEYS_EDITOR_DIALOG_BASE::DefaultsClicked ), NULL, this );
56 }
57 
59 {
60  // Disconnect Events
61  m_resetButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HOTKEYS_EDITOR_DIALOG_BASE::ResetClicked ), NULL, this );
62  m_defaultButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HOTKEYS_EDITOR_DIALOG_BASE::DefaultsClicked ), NULL, this );
63 
64 }
wxStdDialogButtonSizer * m_sdbSizer
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
virtual void DefaultsClicked(wxCommandEvent &event)
HOTKEYS_EDITOR_DIALOG_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Hotkeys Editor"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(450, 500), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void ResetClicked(wxCommandEvent &event)