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.

83 lines
3.0 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
  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. m_lblPadNumStep = new wxStaticText( this, wxID_ANY, _("Numbering step:"), wxDefaultPosition, wxDefaultSize, 0 );
  42. m_lblPadNumStep->Wrap( -1 );
  43. fgSizer->Add( m_lblPadNumStep, 0, wxALL, 5 );
  44. m_padNumStep = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 999, 1 );
  45. fgSizer->Add( m_padNumStep, 0, wxALL|wxEXPAND, 5 );
  46. bMainSizer->Add( fgSizer, 1, wxEXPAND|wxALL, 5 );
  47. m_stdButtons = new wxStdDialogButtonSizer();
  48. m_stdButtonsOK = new wxButton( this, wxID_OK );
  49. m_stdButtons->AddButton( m_stdButtonsOK );
  50. m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
  51. m_stdButtons->AddButton( m_stdButtonsCancel );
  52. m_stdButtons->Realize();
  53. bMainSizer->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
  54. this->SetSizer( bMainSizer );
  55. this->Layout();
  56. bMainSizer->Fit( this );
  57. this->Centre( wxBOTH );
  58. }
  59. DIALOG_ENUM_PADS_BASE::~DIALOG_ENUM_PADS_BASE()
  60. {
  61. }