KiCad PCB EDA Suite
eeschema/dialogs/dialog_set_grid_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Dec 30 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
8 #include "dialog_set_grid_base.h"
9 
11 
12 DIALOG_SET_GRID_BASE::DIALOG_SET_GRID_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  wxBoxSizer* bSizerMain;
17  bSizerMain = new wxBoxSizer( wxVERTICAL );
18 
19  wxFlexGridSizer* fgSizer32;
20  fgSizer32 = new wxFlexGridSizer( 0, 3, 0, 0 );
21  fgSizer32->AddGrowableCol( 1 );
22  fgSizer32->SetFlexibleDirection( wxBOTH );
23  fgSizer32->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
24 
25  m_staticText3 = new wxStaticText( this, wxID_ANY, _("&Grid size:"), wxDefaultPosition, wxDefaultSize, 0 );
26  m_staticText3->Wrap( -1 );
27  fgSizer32->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
28 
29  wxArrayString m_choiceGridSizeChoices;
30  m_choiceGridSize = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceGridSizeChoices, 0 );
31  m_choiceGridSize->SetSelection( 0 );
32  fgSizer32->Add( m_choiceGridSize, 0, wxEXPAND|wxLEFT, 5 );
33 
34  m_units = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
35  m_units->Wrap( -1 );
36  fgSizer32->Add( m_units, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
37 
38 
39  bSizerMain->Add( fgSizer32, 1, wxEXPAND|wxALL, 15 );
40 
41  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
42  bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
43 
44  m_sdbSizer = new wxStdDialogButtonSizer();
45  m_sdbSizerOK = new wxButton( this, wxID_OK );
46  m_sdbSizer->AddButton( m_sdbSizerOK );
47  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
48  m_sdbSizer->AddButton( m_sdbSizerCancel );
49  m_sdbSizer->Realize();
50 
51  bSizerMain->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
52 
53 
54  this->SetSizer( bSizerMain );
55  this->Layout();
56  bSizerMain->Fit( this );
57 
58  // Connect Events
59  this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SET_GRID_BASE::OnInitDlg ) );
60  m_sdbSizerCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnCancelClick ), NULL, this );
61  m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnOkClick ), NULL, this );
62 }
63 
65 {
66  // Disconnect Events
67  this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SET_GRID_BASE::OnInitDlg ) );
68  m_sdbSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnCancelClick ), NULL, this );
69  m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnOkClick ), NULL, this );
70 
71 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:82
DIALOG_SET_GRID_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Grid Settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE)
virtual void OnInitDlg(wxInitDialogEvent &event)
virtual void OnOkClick(wxCommandEvent &event)
virtual void OnCancelClick(wxCommandEvent &event)