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_optionsChoices[] = {
_(
"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_optionsNChoices =
sizeof( m_optionsChoices ) /
sizeof( wxString );
24 m_options =
new wxRadioBox(
this, wxID_ANY,
_(
"Reference Designators"), wxDefaultPosition, wxDefaultSize, m_optionsNChoices, m_optionsChoices, 1, wxRA_SPECIFY_COLS );
26 optionsSizer->Add(
m_options, 0, wxALL, 5 );
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, 5 );
43 m_mainSizer->Add(
m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
46 this->SetSizer( m_mainSizer );
48 m_mainSizer->Fit(
this );
50 this->Centre( wxBOTH );
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)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)