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.

108 lines
4.4 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Oct 26 2018)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_sch_edit_sheet_pin_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_SCH_EDIT_SHEET_PIN_BASE::DIALOG_SCH_EDIT_SHEET_PIN_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* m_nameSizer;
  15. m_nameSizer = new wxBoxSizer( wxHORIZONTAL );
  16. wxFlexGridSizer* fgSizer1;
  17. fgSizer1 = new wxFlexGridSizer( 4, 3, 0, 0 );
  18. fgSizer1->AddGrowableCol( 1 );
  19. fgSizer1->SetFlexibleDirection( wxBOTH );
  20. fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  21. m_staticText1 = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
  22. m_staticText1->Wrap( -1 );
  23. fgSizer1->Add( m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
  24. m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  25. m_textName->SetMinSize( wxSize( 160,-1 ) );
  26. fgSizer1->Add( m_textName, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
  27. fgSizer1->Add( 0, 0, 1, wxEXPAND, 6 );
  28. m_heightLabel = new wxStaticText( this, wxID_ANY, _("Text height:"), wxDefaultPosition, wxDefaultSize, 0 );
  29. m_heightLabel->Wrap( -1 );
  30. fgSizer1->Add( m_heightLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
  31. m_heightCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  32. fgSizer1->Add( m_heightCtrl, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
  33. m_heightUnits = new wxStaticText( this, wxID_ANY, _("units"), wxDefaultPosition, wxDefaultSize, 0 );
  34. m_heightUnits->Wrap( -1 );
  35. fgSizer1->Add( m_heightUnits, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
  36. m_widthLabel = new wxStaticText( this, wxID_ANY, _("Text width:"), wxDefaultPosition, wxDefaultSize, 0 );
  37. m_widthLabel->Wrap( -1 );
  38. fgSizer1->Add( m_widthLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
  39. m_widthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  40. fgSizer1->Add( m_widthCtrl, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
  41. m_widthUnits = new wxStaticText( this, wxID_ANY, _("units"), wxDefaultPosition, wxDefaultSize, 0 );
  42. m_widthUnits->Wrap( -1 );
  43. fgSizer1->Add( m_widthUnits, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
  44. m_staticText3 = new wxStaticText( this, wxID_ANY, _("Connection type:"), wxDefaultPosition, wxDefaultSize, 0 );
  45. m_staticText3->Wrap( -1 );
  46. fgSizer1->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
  47. wxArrayString m_choiceConnectionTypeChoices;
  48. m_choiceConnectionType = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceConnectionTypeChoices, 0 );
  49. m_choiceConnectionType->SetSelection( 0 );
  50. fgSizer1->Add( m_choiceConnectionType, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT|wxEXPAND, 5 );
  51. fgSizer1->Add( 0, 0, 1, wxEXPAND, 6 );
  52. m_nameSizer->Add( fgSizer1, 1, wxEXPAND, 6 );
  53. m_mainSizer->Add( m_nameSizer, 1, wxALL|wxEXPAND, 10 );
  54. m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
  55. m_mainSizer->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
  56. m_sdbSizer = new wxStdDialogButtonSizer();
  57. m_sdbSizerOK = new wxButton( this, wxID_OK );
  58. m_sdbSizer->AddButton( m_sdbSizerOK );
  59. m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
  60. m_sdbSizer->AddButton( m_sdbSizerCancel );
  61. m_sdbSizer->Realize();
  62. m_mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 6 );
  63. this->SetSizer( m_mainSizer );
  64. this->Layout();
  65. m_mainSizer->Fit( this );
  66. this->Centre( wxBOTH );
  67. // Connect Events
  68. m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SCH_EDIT_SHEET_PIN_BASE::onOKButton ), NULL, this );
  69. }
  70. DIALOG_SCH_EDIT_SHEET_PIN_BASE::~DIALOG_SCH_EDIT_SHEET_PIN_BASE()
  71. {
  72. // Disconnect Events
  73. m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SCH_EDIT_SHEET_PIN_BASE::onOKButton ), NULL, this );
  74. }