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.

79 lines
2.8 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Nov 22 2017)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_enum_pads_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_ENUM_PADS_BASE::DIALOG_ENUM_PADS_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( wxDefaultSize, wxDefaultSize );
  12. wxBoxSizer* bMainSizer;
  13. bMainSizer = new wxBoxSizer( wxVERTICAL );
  14. m_lblInfo = new wxStaticText( this, wxID_ANY, _("Pad names are restricted to 4 characters (including number)."), wxDefaultPosition, wxDefaultSize, 0 );
  15. m_lblInfo->Wrap( -1 );
  16. bMainSizer->Add( m_lblInfo, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
  17. bMainSizer->Add( 0, 0, 0, wxTOP|wxBOTTOM, 5 );
  18. wxFlexGridSizer* fgSizer;
  19. fgSizer = new wxFlexGridSizer( 0, 2, 0, 0 );
  20. fgSizer->AddGrowableCol( 1 );
  21. fgSizer->SetFlexibleDirection( wxBOTH );
  22. fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  23. m_lblPadPrefix = new wxStaticText( this, wxID_ANY, _("Pad name prefix:"), wxDefaultPosition, wxDefaultSize, 0 );
  24. m_lblPadPrefix->Wrap( -1 );
  25. fgSizer->Add( m_lblPadPrefix, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
  26. m_padPrefix = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  27. #ifdef __WXGTK__
  28. if ( !m_padPrefix->HasFlag( wxTE_MULTILINE ) )
  29. {
  30. m_padPrefix->SetMaxLength( 4 );
  31. }
  32. #else
  33. m_padPrefix->SetMaxLength( 4 );
  34. #endif
  35. fgSizer->Add( m_padPrefix, 0, wxALL|wxEXPAND, 5 );
  36. m_lblPadStartNum = new wxStaticText( this, wxID_ANY, _("First pad number:"), wxDefaultPosition, wxDefaultSize, 0 );
  37. m_lblPadStartNum->Wrap( -1 );
  38. fgSizer->Add( m_lblPadStartNum, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
  39. m_padStartNum = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 999, 1 );
  40. fgSizer->Add( m_padStartNum, 0, wxALL|wxEXPAND, 5 );
  41. bMainSizer->Add( fgSizer, 1, wxEXPAND|wxALL, 5 );
  42. m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
  43. bMainSizer->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
  44. m_stdButtons = new wxStdDialogButtonSizer();
  45. m_stdButtonsOK = new wxButton( this, wxID_OK );
  46. m_stdButtons->AddButton( m_stdButtonsOK );
  47. m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
  48. m_stdButtons->AddButton( m_stdButtonsCancel );
  49. m_stdButtons->Realize();
  50. bMainSizer->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
  51. this->SetSizer( bMainSizer );
  52. this->Layout();
  53. bMainSizer->Fit( this );
  54. this->Centre( wxBOTH );
  55. }
  56. DIALOG_ENUM_PADS_BASE::~DIALOG_ENUM_PADS_BASE()
  57. {
  58. }