KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_book_reporter_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_BOOK_REPORTER_BASE::DIALOG_BOOK_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|wxALL, 10 );
24
25 m_sdbSizer = new wxStdDialogButtonSizer();
26 m_sdbSizerOK = new wxButton( this, wxID_OK );
27 m_sdbSizer->AddButton( m_sdbSizerOK );
28 m_sdbSizerApply = new wxButton( this, wxID_APPLY );
29 m_sdbSizer->AddButton( m_sdbSizerApply );
30 m_sdbSizer->Realize();
31
32 bMainSizer->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
33
34
35 this->SetSizer( bMainSizer );
36 this->Layout();
37 bMainSizer->Fit( this );
38
39 this->Centre( wxBOTH );
40
41 // Connect Events
42 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_BOOK_REPORTER_BASE::OnClose ) );
43 m_sdbSizerApply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_BOOK_REPORTER_BASE::OnApply ), NULL, this );
44 m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_BOOK_REPORTER_BASE::OnOK ), NULL, this );
45}
46
48{
49 // Disconnect Events
50 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_BOOK_REPORTER_BASE::OnClose ) );
51 m_sdbSizerApply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_BOOK_REPORTER_BASE::OnApply ), NULL, this );
52 m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_BOOK_REPORTER_BASE::OnOK ), NULL, this );
53
54}
virtual void OnClose(wxCloseEvent &event)
virtual void OnApply(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
virtual void OnOK(wxCommandEvent &event)
DIALOG_BOOK_REPORTER_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Report"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)