KiCad PCB EDA Suite
dialog_paste_special_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_PASTE_SPECIAL_BASE::DIALOG_PASTE_SPECIAL_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( wxSize( -1,-1 ), wxDefaultSize );
15 
16  wxBoxSizer* m_mainSizer;
17  m_mainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* optionsSizer;
20  optionsSizer = new wxBoxSizer( wxVERTICAL );
21 
22  m_staticText7 = new wxStaticText( this, wxID_ANY, _("Paste Options"), wxDefaultPosition, wxDefaultSize, 0 );
23  m_staticText7->Wrap( -1 );
24  optionsSizer->Add( m_staticText7, 0, wxALL, 5 );
25 
26  m_keepAnnotations = new wxCheckBox( this, wxID_ANY, _("Keep existing annotations, even if they are duplicated"), wxDefaultPosition, wxDefaultSize, 0 );
27  optionsSizer->Add( m_keepAnnotations, 0, wxALL, 5 );
28 
29 
30  m_mainSizer->Add( optionsSizer, 1, wxALL|wxEXPAND, 10 );
31 
32  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
33  m_mainSizer->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
34 
35  m_sdbSizer = new wxStdDialogButtonSizer();
36  m_sdbSizerOK = new wxButton( this, wxID_OK );
37  m_sdbSizer->AddButton( m_sdbSizerOK );
38  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
39  m_sdbSizer->AddButton( m_sdbSizerCancel );
40  m_sdbSizer->Realize();
41 
42  m_mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 6 );
43 
44 
45  this->SetSizer( m_mainSizer );
46  this->Layout();
47  m_mainSizer->Fit( this );
48 
49  this->Centre( wxBOTH );
50 
51  // Connect Events
52  m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PASTE_SPECIAL_BASE::onOKButton ), NULL, this );
53 }
54 
56 {
57  // Disconnect Events
58  m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PASTE_SPECIAL_BASE::onOKButton ), NULL, this );
59 
60 }
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
#define NULL
#define _(s)
Definition: 3d_actions.cpp:33
virtual void onOKButton(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
DIALOG_PASTE_SPECIAL_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Paste Special"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)