KiCad PCB EDA Suite
dialog_constraints_reporter_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 26 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_CONSTRAINTS_REPORTER_BASE::DIALOG_CONSTRAINTS_REPORTER_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* bMainSizer;
17  bMainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), 0 );
20  m_notebook->SetMinSize( wxSize( 550,480 ) );
21 
22 
23  bMainSizer->Add( m_notebook, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
24 
25  m_sdbSizer = new wxStdDialogButtonSizer();
26  m_sdbSizerOK = new wxButton( this, wxID_OK );
27  m_sdbSizer->AddButton( m_sdbSizerOK );
28  m_sdbSizer->Realize();
29 
30  bMainSizer->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
31 
32 
33  this->SetSizer( bMainSizer );
34  this->Layout();
35  bMainSizer->Fit( this );
36 
37  this->Centre( wxBOTH );
38 
39  // Connect Events
40  m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_CONSTRAINTS_REPORTER_BASE::OnOK ), NULL, this );
41 }
42 
44 {
45  // Disconnect Events
46  m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_CONSTRAINTS_REPORTER_BASE::OnOK ), NULL, this );
47 
48 }
virtual void OnOK(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:82
DIALOG_CONSTRAINTS_REPORTER_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Constraints Resolution Report"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)