KiCad PCB EDA Suite
dialog_paste_special_base.cpp
Go to the documentation of this file.
1
2// 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
12DIALOG_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 wxString m_pasteOptionsChoices[] = { _("Assign unique reference designators to pasted symbols"), _("Keep existing reference designators, even if they are duplicated"), _("Clear reference designators on all pasted symbols") };
23 int m_pasteOptionsNChoices = sizeof( m_pasteOptionsChoices ) / sizeof( wxString );
24 m_pasteOptions = new wxRadioBox( this, wxID_ANY, _("Paste Options"), wxDefaultPosition, wxDefaultSize, m_pasteOptionsNChoices, m_pasteOptionsChoices, 1, wxRA_SPECIFY_COLS );
25 m_pasteOptions->SetSelection( 1 );
26 optionsSizer->Add( m_pasteOptions, 0, wxALL, 5 );
27
28
29 m_mainSizer->Add( optionsSizer, 1, wxALL|wxEXPAND, 10 );
30
31 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
32 m_mainSizer->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
33
34 m_sdbSizer = new wxStdDialogButtonSizer();
35 m_sdbSizerOK = new wxButton( this, wxID_OK );
36 m_sdbSizer->AddButton( m_sdbSizerOK );
37 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
38 m_sdbSizer->AddButton( m_sdbSizerCancel );
39 m_sdbSizer->Realize();
40
41 m_mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 6 );
42
43
44 this->SetSizer( m_mainSizer );
45 this->Layout();
46 m_mainSizer->Fit( this );
47
48 this->Centre( wxBOTH );
49
50 // Connect Events
51 m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PASTE_SPECIAL_BASE::onOKButton ), NULL, this );
52}
53
55{
56 // Disconnect Events
57 m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PASTE_SPECIAL_BASE::onOKButton ), NULL, this );
58
59}
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)
virtual void onOKButton(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
#define _(s)