You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.4 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_paste_special_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_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 )
  10. {
  11. this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
  12. wxBoxSizer* m_mainSizer;
  13. m_mainSizer = new wxBoxSizer( wxVERTICAL );
  14. wxBoxSizer* optionsSizer;
  15. optionsSizer = new wxBoxSizer( wxVERTICAL );
  16. 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") };
  17. int m_optionsNChoices = sizeof( m_optionsChoices ) / sizeof( wxString );
  18. m_options = new wxRadioBox( this, wxID_ANY, _("Reference Designators"), wxDefaultPosition, wxDefaultSize, m_optionsNChoices, m_optionsChoices, 1, wxRA_SPECIFY_COLS );
  19. m_options->SetSelection( 1 );
  20. optionsSizer->Add( m_options, 0, wxALL, 5 );
  21. m_clearNetsCB = new wxCheckBox( this, wxID_ANY, _("Clear net assignments"), wxDefaultPosition, wxDefaultSize, 0 );
  22. m_clearNetsCB->SetToolTip( _("Remove the net information from all connected items before pasting") );
  23. optionsSizer->Add( m_clearNetsCB, 0, wxALL, 5 );
  24. m_mainSizer->Add( optionsSizer, 1, wxALL|wxEXPAND, 5 );
  25. m_sdbSizer = new wxStdDialogButtonSizer();
  26. m_sdbSizerOK = new wxButton( this, wxID_OK );
  27. m_sdbSizer->AddButton( m_sdbSizerOK );
  28. m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
  29. m_sdbSizer->AddButton( m_sdbSizerCancel );
  30. m_sdbSizer->Realize();
  31. m_mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
  32. this->SetSizer( m_mainSizer );
  33. this->Layout();
  34. m_mainSizer->Fit( this );
  35. this->Centre( wxBOTH );
  36. // Connect Events
  37. m_options->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_PASTE_SPECIAL_BASE::onRadioBoxEvent ), NULL, this );
  38. }
  39. DIALOG_PASTE_SPECIAL_BASE::~DIALOG_PASTE_SPECIAL_BASE()
  40. {
  41. // Disconnect Events
  42. m_options->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_PASTE_SPECIAL_BASE::onRadioBoxEvent ), NULL, this );
  43. }