2015-02-18 00:29:54 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2021-05-11 01:40:52 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
2015-02-18 00:29:54 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2018-10-17 09:48:15 +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_length_tuning_settings_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_PNS_LENGTH_TUNING_SETTINGS_BASE::DIALOG_PNS_LENGTH_TUNING_SETTINGS_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 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
wxBoxSizer* bMainSizer;
|
|
|
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
wxStaticBoxSizer* sbSizerUpper;
|
|
|
|
sbSizerUpper = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Length / Skew") ), wxVERTICAL );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2015-05-03 18:43:07 +00:00
|
|
|
wxFlexGridSizer* fgSizerLenSkew;
|
|
|
|
fgSizerLenSkew = new wxFlexGridSizer( 0, 3, 0, 0 );
|
|
|
|
fgSizerLenSkew->AddGrowableCol( 1 );
|
|
|
|
fgSizerLenSkew->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizerLenSkew->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_staticText4 = new wxStaticText( sbSizerUpper->GetStaticBox(), wxID_ANY, _("Tune from:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_staticText4->Wrap( -1 );
|
2021-05-11 01:40:52 +00:00
|
|
|
m_staticText4->Hide();
|
|
|
|
|
2019-02-06 00:05:17 +00:00
|
|
|
fgSizerLenSkew->Add( m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
wxArrayString m_choicePathFromChoices;
|
2018-10-17 09:48:15 +00:00
|
|
|
m_choicePathFrom = new wxChoice( sbSizerUpper->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choicePathFromChoices, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_choicePathFrom->SetSelection( 0 );
|
2021-05-11 01:40:52 +00:00
|
|
|
m_choicePathFrom->Hide();
|
|
|
|
|
2019-02-06 00:05:17 +00:00
|
|
|
fgSizerLenSkew->Add( m_choicePathFrom, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
|
|
|
|
2015-05-03 18:43:07 +00:00
|
|
|
fgSizerLenSkew->Add( 0, 0, 0, 0, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_staticText15 = new wxStaticText( sbSizerUpper->GetStaticBox(), wxID_ANY, _("Tune to:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_staticText15->Wrap( -1 );
|
2021-05-11 01:40:52 +00:00
|
|
|
m_staticText15->Hide();
|
|
|
|
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizerLenSkew->Add( m_staticText15, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
wxArrayString m_choice4Choices;
|
2018-10-17 09:48:15 +00:00
|
|
|
m_choice4 = new wxChoice( sbSizerUpper->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choice4Choices, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_choice4->SetSelection( 0 );
|
2021-05-11 01:40:52 +00:00
|
|
|
m_choice4->Hide();
|
|
|
|
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizerLenSkew->Add( m_choice4, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
|
|
|
|
2015-05-03 18:43:07 +00:00
|
|
|
fgSizerLenSkew->Add( 0, 0, 0, 0, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_staticText3 = new wxStaticText( sbSizerUpper->GetStaticBox(), wxID_ANY, _("Constraint:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_staticText3->Wrap( -1 );
|
2021-05-11 01:40:52 +00:00
|
|
|
m_staticText3->Hide();
|
|
|
|
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizerLenSkew->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2015-05-03 18:43:07 +00:00
|
|
|
wxString m_constraintSourceChoices[] = { _("From Design Rules"), _("Manual") };
|
2015-02-18 00:29:54 +00:00
|
|
|
int m_constraintSourceNChoices = sizeof( m_constraintSourceChoices ) / sizeof( wxString );
|
2018-10-17 09:48:15 +00:00
|
|
|
m_constraintSource = new wxChoice( sbSizerUpper->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_constraintSourceNChoices, m_constraintSourceChoices, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_constraintSource->SetSelection( 1 );
|
|
|
|
m_constraintSource->Enable( false );
|
2021-05-11 01:40:52 +00:00
|
|
|
m_constraintSource->Hide();
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizerLenSkew->Add( m_constraintSource, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
|
|
|
|
2015-05-03 18:43:07 +00:00
|
|
|
fgSizerLenSkew->Add( 0, 0, 0, 0, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_targetLengthLabel = new wxStaticText( sbSizerUpper->GetStaticBox(), wxID_ANY, _("Target length:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_targetLengthLabel->Wrap( -1 );
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizerLenSkew->Add( m_targetLengthLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2019-02-06 00:05:17 +00:00
|
|
|
m_targetLengthText = new wxTextCtrl( sbSizerUpper->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2015-06-15 13:54:58 +00:00
|
|
|
fgSizerLenSkew->Add( m_targetLengthText, 0, wxALL|wxEXPAND, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_targetLengthUnit = new wxStaticText( sbSizerUpper->GetStaticBox(), wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_targetLengthUnit->Wrap( -1 );
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizerLenSkew->Add( m_targetLengthUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
sbSizerUpper->Add( fgSizerLenSkew, 1, wxEXPAND, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
bMainSizer->Add( sbSizerUpper, 0, wxEXPAND|wxALL, 10 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
wxStaticBoxSizer* sbSizerLower;
|
|
|
|
sbSizerLower = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Meandering") ), wxHORIZONTAL );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_legend = new wxStaticBitmap( sbSizerLower->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLower->Add( m_legend, 0, wxALL|wxEXPAND, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
wxFlexGridSizer* fgSizer3;
|
|
|
|
fgSizer3 = new wxFlexGridSizer( 0, 3, 0, 0 );
|
2015-05-03 18:43:07 +00:00
|
|
|
fgSizer3->AddGrowableCol( 1 );
|
2015-02-18 00:29:54 +00:00
|
|
|
fgSizer3->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_minAmplLabel = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("Min amplitude (Amin):"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-02-03 09:09:53 +00:00
|
|
|
m_minAmplLabel->Wrap( -1 );
|
2019-02-06 00:05:17 +00:00
|
|
|
fgSizer3->Add( m_minAmplLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2019-02-06 00:05:17 +00:00
|
|
|
m_minAmplText = new wxTextCtrl( sbSizerLower->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgSizer3->Add( m_minAmplText, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_minAmplUnit = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_minAmplUnit->Wrap( -1 );
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizer3->Add( m_minAmplUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_maxAmplLabel = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("Max amplitude (Amax):"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-02-03 09:09:53 +00:00
|
|
|
m_maxAmplLabel->Wrap( -1 );
|
|
|
|
fgSizer3->Add( m_maxAmplLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2019-02-06 00:05:17 +00:00
|
|
|
m_maxAmplText = new wxTextCtrl( sbSizerLower->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizer3->Add( m_maxAmplText, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_maxAmplUnit = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_maxAmplUnit->Wrap( -1 );
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizer3->Add( m_maxAmplUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_spacingLabel = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("Spacing (s):"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-02-03 09:09:53 +00:00
|
|
|
m_spacingLabel->Wrap( -1 );
|
|
|
|
fgSizer3->Add( m_spacingLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2019-02-06 00:05:17 +00:00
|
|
|
m_spacingText = new wxTextCtrl( sbSizerLower->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizer3->Add( m_spacingText, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_spacingUnit = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_spacingUnit->Wrap( -1 );
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizer3->Add( m_spacingUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_staticText14 = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("Miter style:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_staticText14->Wrap( -1 );
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizer3->Add( m_staticText14, 1, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
wxString m_miterStyleChoices[] = { _("45 degree"), _("arc") };
|
|
|
|
int m_miterStyleNChoices = sizeof( m_miterStyleChoices ) / sizeof( wxString );
|
2018-10-17 09:48:15 +00:00
|
|
|
m_miterStyle = new wxChoice( sbSizerLower->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_miterStyleNChoices, m_miterStyleChoices, 0 );
|
2015-02-18 00:29:54 +00:00
|
|
|
m_miterStyle->SetSelection( 0 );
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizer3->Add( m_miterStyle, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
|
|
|
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
|
|
|
m_radiusLabel = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("Miter radius (r):"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_radiusLabel->Wrap( -1 );
|
|
|
|
fgSizer3->Add( m_radiusLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_radiusText = new TEXT_CTRL_EVAL( sbSizerLower->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2018-05-20 13:08:06 +00:00
|
|
|
fgSizer3->Add( m_radiusText, 0, wxALL|wxEXPAND, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
m_radiusUnit = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-05-20 13:08:06 +00:00
|
|
|
m_radiusUnit->Wrap( -1 );
|
|
|
|
fgSizer3->Add( m_radiusUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
sbSizerLower->Add( fgSizer3, 1, wxEXPAND, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
bMainSizer->Add( sbSizerLower, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
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();
|
2019-06-29 16:36:29 +00:00
|
|
|
|
2018-10-17 09:48:15 +00:00
|
|
|
bMainSizer->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
|
2019-06-29 16:36:29 +00:00
|
|
|
|
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
this->SetSizer( bMainSizer );
|
|
|
|
this->Layout();
|
2019-02-06 00:05:17 +00:00
|
|
|
bMainSizer->Fit( this );
|
2015-02-18 00:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_PNS_LENGTH_TUNING_SETTINGS_BASE::~DIALOG_PNS_LENGTH_TUNING_SETTINGS_BASE()
|
|
|
|
{
|
|
|
|
}
|