KiCad PCB EDA Suite
dialog_show_page_borders_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Apr 10 2012)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_PAGE_SHOW_PAGE_BORDERS_BASE::DIALOG_PAGE_SHOW_PAGE_BORDERS_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* bDialogSizer;
17  bDialogSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bUpperSizer;
20  bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
21 
22  wxBoxSizer* bRightSizer;
23  bRightSizer = new wxBoxSizer( wxVERTICAL );
24 
25  wxString m_ShowPageLimitsChoices[] = { _("Full size. Do not show page limits"), _("Full size"), _("Size A4"), _("Size A3"), _("Size A2"), _("Size A"), _("Size B"), _("Size C") };
26  int m_ShowPageLimitsNChoices = sizeof( m_ShowPageLimitsChoices ) / sizeof( wxString );
27  m_ShowPageLimits = new wxRadioBox( this, wxID_ANY, _("Show Page Limits:"), wxDefaultPosition, wxDefaultSize, m_ShowPageLimitsNChoices, m_ShowPageLimitsChoices, 1, wxRA_SPECIFY_COLS );
28  m_ShowPageLimits->SetSelection( 0 );
29  bRightSizer->Add( m_ShowPageLimits, 0, wxALL|wxEXPAND, 5 );
30 
31 
32  bUpperSizer->Add( bRightSizer, 1, wxEXPAND, 5 );
33 
34 
35  bDialogSizer->Add( bUpperSizer, 1, wxEXPAND, 5 );
36 
37  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
38  bDialogSizer->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
39 
40  m_sdbSizer1 = new wxStdDialogButtonSizer();
41  m_sdbSizer1OK = new wxButton( this, wxID_OK );
42  m_sdbSizer1->AddButton( m_sdbSizer1OK );
43  m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
44  m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
45  m_sdbSizer1->Realize();
46 
47  bDialogSizer->Add( m_sdbSizer1, 0, wxEXPAND|wxALL, 5 );
48 
49 
50  this->SetSizer( bDialogSizer );
51  this->Layout();
52 
53  // Connect Events
54  m_sdbSizer1Cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGE_SHOW_PAGE_BORDERS_BASE::OnCancelButtonClick ), NULL, this );
55  m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGE_SHOW_PAGE_BORDERS_BASE::OnOKBUttonClick ), NULL, this );
56 }
57 
59 {
60  // Disconnect Events
61  m_sdbSizer1Cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGE_SHOW_PAGE_BORDERS_BASE::OnCancelButtonClick ), NULL, this );
62  m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGE_SHOW_PAGE_BORDERS_BASE::OnOKBUttonClick ), NULL, this );
63 
64 }
virtual void OnOKBUttonClick(wxCommandEvent &event)
virtual void OnCancelButtonClick(wxCommandEvent &event)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
DIALOG_PAGE_SHOW_PAGE_BORDERS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Page Borders"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(263, 254), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)