KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_paste_special_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf0)
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, _("Reference Designators"), 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 m_clearNetsCB = new wxCheckBox( this, wxID_ANY, _("Clear Net Assignments"), wxDefaultPosition, wxDefaultSize, 0 );
29 m_clearNetsCB->SetToolTip( _("Remove the net information from all connected items before pasting") );
30
31 optionsSizer->Add( m_clearNetsCB, 0, wxALL, 5 );
32
33
34 m_mainSizer->Add( optionsSizer, 1, wxALL|wxEXPAND, 10 );
35
36 m_sdbSizer = new wxStdDialogButtonSizer();
37 m_sdbSizerOK = new wxButton( this, wxID_OK );
38 m_sdbSizer->AddButton( m_sdbSizerOK );
39 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
40 m_sdbSizer->AddButton( m_sdbSizerCancel );
41 m_sdbSizer->Realize();
42
43 m_mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 6 );
44
45
46 this->SetSizer( m_mainSizer );
47 this->Layout();
48 m_mainSizer->Fit( this );
49
50 this->Centre( wxBOTH );
51
52 // Connect Events
53 m_pasteOptions->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_PASTE_SPECIAL_BASE::onRadioBoxEvent ), NULL, this );
54}
55
57{
58 // Disconnect Events
59 m_pasteOptions->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_PASTE_SPECIAL_BASE::onRadioBoxEvent ), NULL, this );
60
61}
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 onRadioBoxEvent(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)