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 )
14 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
16 wxBoxSizer* m_mainSizer;
17 m_mainSizer =
new wxBoxSizer( wxVERTICAL );
19 wxBoxSizer* optionsSizer;
20 optionsSizer =
new wxBoxSizer( wxVERTICAL );
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 );
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") );
34 m_mainSizer->Add( optionsSizer, 1, wxALL|wxEXPAND, 10 );
43 m_mainSizer->Add(
m_sdbSizer, 0, wxALL|wxEXPAND, 6 );
46 this->SetSizer( m_mainSizer );
48 m_mainSizer->Fit(
this );
50 this->Centre( wxBOTH );
wxStdDialogButtonSizer * m_sdbSizer
wxCheckBox * m_clearNetsCB
wxRadioBox * m_pasteOptions
~DIALOG_PASTE_SPECIAL_BASE()
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)
wxButton * m_sdbSizerCancel
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...