2015-02-18 00:29:54 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2018-09-01 13:01:42 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Dec 30 2017)
|
2015-02-18 00:29:54 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2018-09-01 13:01:42 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2015-02-18 00:29:54 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2017-11-23 13:05:26 +00:00
|
|
|
#include "widgets/text_ctrl_eval.h"
|
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
#include "dialog_pns_diff_pair_dimensions_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
|
|
|
{
|
2017-12-27 17:09:27 +00:00
|
|
|
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizer7;
|
|
|
|
bSizer7 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxFlexGridSizer* fgSizer1;
|
2018-09-01 13:01:42 +00:00
|
|
|
fgSizer1 = new wxFlexGridSizer( 0, 3, 5, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
fgSizer1->AddGrowableCol( 1 );
|
|
|
|
fgSizer1->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
|
|
|
m_traceWidthLabel = new wxStaticText( this, wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_traceWidthLabel->Wrap( -1 );
|
2018-09-01 13:01:42 +00:00
|
|
|
fgSizer1->Add( m_traceWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2017-11-23 13:05:26 +00:00
|
|
|
m_traceWidthText = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2018-09-01 13:01:42 +00:00
|
|
|
fgSizer1->Add( m_traceWidthText, 0, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
m_traceWidthUnit = new wxStaticText( this, wxID_ANY, _("u"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_traceWidthUnit->Wrap( -1 );
|
2018-09-01 13:01:42 +00:00
|
|
|
fgSizer1->Add( m_traceWidthUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
m_traceGapLabel = new wxStaticText( this, wxID_ANY, _("Trace gap:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_traceGapLabel->Wrap( -1 );
|
2018-09-01 13:01:42 +00:00
|
|
|
fgSizer1->Add( m_traceGapLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2017-11-23 13:05:26 +00:00
|
|
|
m_traceGapText = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2018-09-01 13:01:42 +00:00
|
|
|
fgSizer1->Add( m_traceGapText, 0, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
m_traceGapUnit = new wxStaticText( this, wxID_ANY, _("u"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_traceGapUnit->Wrap( -1 );
|
2018-09-01 13:01:42 +00:00
|
|
|
fgSizer1->Add( m_traceGapUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
m_viaGapLabel = new wxStaticText( this, wxID_ANY, _("Via gap:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_viaGapLabel->Wrap( -1 );
|
|
|
|
m_viaGapLabel->Enable( false );
|
|
|
|
|
2018-09-01 13:01:42 +00:00
|
|
|
fgSizer1->Add( m_viaGapLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2017-11-23 13:05:26 +00:00
|
|
|
m_viaGapText = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_viaGapText->Enable( false );
|
|
|
|
|
2018-09-01 13:01:42 +00:00
|
|
|
fgSizer1->Add( m_viaGapText, 0, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
m_viaGapUnit = new wxStaticText( this, wxID_ANY, _("u"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_viaGapUnit->Wrap( -1 );
|
|
|
|
m_viaGapUnit->Enable( false );
|
|
|
|
|
2018-09-01 13:01:42 +00:00
|
|
|
fgSizer1->Add( m_viaGapUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
|
2018-09-01 13:01:42 +00:00
|
|
|
bSizer7->Add( fgSizer1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
m_viaTraceGapEqual = new wxCheckBox( this, wxID_ANY, _("Via gap same as trace gap"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_viaTraceGapEqual->SetValue(true);
|
2015-05-03 18:43:07 +00:00
|
|
|
bSizer7->Add( m_viaTraceGapEqual, 0, wxALL|wxEXPAND, 10 );
|
|
|
|
|
|
|
|
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
2018-09-01 13:01:42 +00:00
|
|
|
bSizer7->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
m_stdButtons = new wxStdDialogButtonSizer();
|
|
|
|
m_stdButtonsOK = new wxButton( this, wxID_OK );
|
|
|
|
m_stdButtons->AddButton( m_stdButtonsOK );
|
|
|
|
m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_stdButtons->AddButton( m_stdButtonsCancel );
|
|
|
|
m_stdButtons->Realize();
|
|
|
|
|
2015-05-03 18:43:07 +00:00
|
|
|
bSizer7->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizer7 );
|
|
|
|
this->Layout();
|
2017-12-27 17:09:27 +00:00
|
|
|
bSizer7->Fit( this );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
// Connect Events
|
2015-04-05 14:58:19 +00:00
|
|
|
m_viaTraceGapEqual->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnViaTraceGapEqualCheck ), NULL, this );
|
2015-02-18 00:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::~DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2015-04-05 14:58:19 +00:00
|
|
|
m_viaTraceGapEqual->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnViaTraceGapEqualCheck ), NULL, this );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
}
|