2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2020-04-30 08:33:02 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Jul 10 2019)
|
2013-05-26 04:36:44 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2018-02-02 15:56:09 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2019-08-22 09:49:35 +00:00
|
|
|
#include "dialog_edit_sheet_pin_base.h"
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2019-08-22 09:49:35 +00:00
|
|
|
DIALOG_EDIT_SHEET_PIN_BASE::DIALOG_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 )
|
2013-05-26 04:36:44 +00:00
|
|
|
{
|
2017-12-26 14:38:45 +00:00
|
|
|
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* m_mainSizer;
|
|
|
|
m_mainSizer = new wxBoxSizer( wxVERTICAL );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* m_nameSizer;
|
|
|
|
m_nameSizer = new wxBoxSizer( wxHORIZONTAL );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxFlexGridSizer* fgSizer1;
|
|
|
|
fgSizer1 = new wxFlexGridSizer( 4, 3, 0, 0 );
|
|
|
|
fgSizer1->AddGrowableCol( 1 );
|
|
|
|
fgSizer1->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticText1 = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText1->Wrap( -1 );
|
2018-02-02 15:56:09 +00:00
|
|
|
fgSizer1->Add( m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2018-02-02 15:56:09 +00:00
|
|
|
m_textName->SetMinSize( wxSize( 160,-1 ) );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2018-02-02 15:56:09 +00:00
|
|
|
fgSizer1->Add( m_textName, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 6 );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2020-04-30 08:33:02 +00:00
|
|
|
m_textSizeLabel = new wxStaticText( this, wxID_ANY, _("Text size:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_textSizeLabel->Wrap( -1 );
|
|
|
|
fgSizer1->Add( m_textSizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2020-04-30 08:33:02 +00:00
|
|
|
m_textSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgSizer1->Add( m_textSizeCtrl, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2020-04-30 08:33:02 +00:00
|
|
|
m_textSizeUnits = new wxStaticText( this, wxID_ANY, _("units"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_textSizeUnits->Wrap( -1 );
|
|
|
|
fgSizer1->Add( m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticText3 = new wxStaticText( this, wxID_ANY, _("Connection type:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText3->Wrap( -1 );
|
2018-02-02 15:56:09 +00:00
|
|
|
fgSizer1->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxArrayString m_choiceConnectionTypeChoices;
|
|
|
|
m_choiceConnectionType = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceConnectionTypeChoices, 0 );
|
|
|
|
m_choiceConnectionType->SetSelection( 0 );
|
2018-02-02 15:56:09 +00:00
|
|
|
fgSizer1->Add( m_choiceConnectionType, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT|wxEXPAND, 5 );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 6 );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
m_nameSizer->Add( fgSizer1, 1, wxEXPAND, 6 );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
|
|
|
|
2018-02-02 15:56:09 +00:00
|
|
|
m_mainSizer->Add( m_nameSizer, 1, wxALL|wxEXPAND, 10 );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2018-02-02 15:56:09 +00:00
|
|
|
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
m_mainSizer->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2015-03-15 11:41:06 +00:00
|
|
|
m_sdbSizer = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizerOK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerOK );
|
|
|
|
m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerCancel );
|
|
|
|
m_sdbSizer->Realize();
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2015-03-15 11:41:06 +00:00
|
|
|
m_mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 6 );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
this->SetSizer( m_mainSizer );
|
|
|
|
this->Layout();
|
2017-12-26 14:38:45 +00:00
|
|
|
m_mainSizer->Fit( this );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
this->Centre( wxBOTH );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2018-02-19 17:07:57 +00:00
|
|
|
// Connect Events
|
2019-08-22 09:49:35 +00:00
|
|
|
m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_SHEET_PIN_BASE::onOKButton ), NULL, this );
|
2013-05-26 04:36:44 +00:00
|
|
|
}
|
|
|
|
|
2019-08-22 09:49:35 +00:00
|
|
|
DIALOG_EDIT_SHEET_PIN_BASE::~DIALOG_EDIT_SHEET_PIN_BASE()
|
2013-05-26 04:36:44 +00:00
|
|
|
{
|
2018-02-19 17:07:57 +00:00
|
|
|
// Disconnect Events
|
2019-08-22 09:49:35 +00:00
|
|
|
m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_SHEET_PIN_BASE::onOKButton ), NULL, this );
|
2019-05-21 02:52:39 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
}
|