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.

113 lines
4.2 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version 3.9.0 Nov 1 2020)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_unused_pad_layers_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_UNUSED_PAD_LAYERS_BASE::DIALOG_UNUSED_PAD_LAYERS_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. m_MainSizer = new wxBoxSizer( wxVERTICAL );
  13. wxBoxSizer* bSizer2;
  14. bSizer2 = new wxBoxSizer( wxHORIZONTAL );
  15. wxBoxSizer* bSizer6;
  16. bSizer6 = new wxBoxSizer( wxVERTICAL );
  17. wxBoxSizer* bSizer4;
  18. bSizer4 = new wxBoxSizer( wxVERTICAL );
  19. wxBoxSizer* bSizer5;
  20. bSizer5 = new wxBoxSizer( wxHORIZONTAL );
  21. bSizer5->Add( 0, 0, 0, wxEXPAND, 5 );
  22. wxString m_rbScopeChoices[] = { _("&Vias"), _("&Pads") };
  23. int m_rbScopeNChoices = sizeof( m_rbScopeChoices ) / sizeof( wxString );
  24. m_rbScope = new wxRadioBox( this, wxID_ANY, _("Scope"), wxDefaultPosition, wxDefaultSize, m_rbScopeNChoices, m_rbScopeChoices, 1, wxRA_SPECIFY_COLS );
  25. m_rbScope->SetSelection( 0 );
  26. bSizer5->Add( m_rbScope, 0, wxALL|wxEXPAND|wxLEFT|wxRIGHT, 5 );
  27. wxString m_rbActionChoices[] = { _("&Remove Unused"), _("Reset &Unused") };
  28. int m_rbActionNChoices = sizeof( m_rbActionChoices ) / sizeof( wxString );
  29. m_rbAction = new wxRadioBox( this, wxID_ANY, _("Action"), wxDefaultPosition, wxDefaultSize, m_rbActionNChoices, m_rbActionChoices, 1, wxRA_SPECIFY_COLS );
  30. m_rbAction->SetSelection( 0 );
  31. bSizer5->Add( m_rbAction, 0, wxALL|wxEXPAND|wxLEFT|wxRIGHT, 5 );
  32. bSizer5->Add( 0, 0, 0, wxEXPAND, 5 );
  33. bSizer4->Add( bSizer5, 2, 0, 5 );
  34. m_cbSelectedOnly = new wxCheckBox( this, wxID_ANY, _("&Selection only"), wxDefaultPosition, wxDefaultSize, 0 );
  35. bSizer4->Add( m_cbSelectedOnly, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
  36. m_cbPreservePads = new wxCheckBox( this, wxID_ANY, _("&Keep pads at first and last layers"), wxDefaultPosition, wxDefaultSize, 0 );
  37. bSizer4->Add( m_cbPreservePads, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
  38. bSizer6->Add( bSizer4, 1, wxEXPAND, 0 );
  39. bSizer2->Add( bSizer6, 4, wxEXPAND, 5 );
  40. m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
  41. bSizer2->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
  42. wxBoxSizer* bSizer3;
  43. bSizer3 = new wxBoxSizer( wxVERTICAL );
  44. bSizer3->Add( 0, 0, 0, wxEXPAND, 5 );
  45. m_image = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
  46. bSizer3->Add( m_image, 0, wxALL, 10 );
  47. bSizer3->Add( 0, 0, 0, wxEXPAND, 5 );
  48. bSizer2->Add( bSizer3, 2, wxEXPAND|wxLEFT|wxRIGHT, 5 );
  49. m_MainSizer->Add( bSizer2, 6, wxEXPAND, 5 );
  50. m_StdButtons = new wxStdDialogButtonSizer();
  51. m_StdButtonsOK = new wxButton( this, wxID_OK );
  52. m_StdButtons->AddButton( m_StdButtonsOK );
  53. m_StdButtonsCancel = new wxButton( this, wxID_CANCEL );
  54. m_StdButtons->AddButton( m_StdButtonsCancel );
  55. m_StdButtons->Realize();
  56. m_MainSizer->Add( m_StdButtons, 0, wxEXPAND|wxALL, 5 );
  57. this->SetSizer( m_MainSizer );
  58. this->Layout();
  59. m_MainSizer->Fit( this );
  60. this->Centre( wxBOTH );
  61. // Connect Events
  62. m_rbScope->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::onScopeChange ), NULL, this );
  63. m_rbAction->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
  64. m_cbPreservePads->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
  65. }
  66. DIALOG_UNUSED_PAD_LAYERS_BASE::~DIALOG_UNUSED_PAD_LAYERS_BASE()
  67. {
  68. // Disconnect Events
  69. m_rbScope->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::onScopeChange ), NULL, this );
  70. m_rbAction->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
  71. m_cbPreservePads->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
  72. }