KiCad PCB EDA Suite
dialog_paste_special_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
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_sdbSizer = new wxStdDialogButtonSizer();
32 m_sdbSizerOK = new wxButton( this, wxID_OK );
33 m_sdbSizer->AddButton( m_sdbSizerOK );
34 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
35 m_sdbSizer->AddButton( m_sdbSizerCancel );
36 m_sdbSizer->Realize();
37
38 m_mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 6 );
39
40
41 this->SetSizer( m_mainSizer );
42 this->Layout();
43 m_mainSizer->Fit( this );
44
45 this->Centre( wxBOTH );
46
47 // Connect Events
48 m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PASTE_SPECIAL_BASE::onOKButton ), NULL, this );
49}
50
52{
53 // Disconnect Events
54 m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PASTE_SPECIAL_BASE::onOKButton ), NULL, this );
55
56}
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)