36 m_minAmpl( aParent, m_minAmplLabel, m_minAmplText, m_minAmplUnit ),
37 m_maxAmpl( aParent, m_maxAmplLabel, m_maxAmplText, m_maxAmplUnit ),
38 m_spacing( aParent, m_spacingLabel, m_spacingText, m_spacingUnit ),
39 m_targetLength( aParent, m_targetLengthLabel, m_targetLengthText, m_targetLengthUnit ),
40 m_radius( aParent, m_radiusLabel, m_radiusText, m_radiusUnit ),
41 m_settings( aSettings ),
50 GetSizer()->SetSizeHints(
this);
58 if( !wxDialog::TransferDataToWindow() )
81 SetTitle(
_(
"Single Track Length Tuning" ) );
87 SetTitle(
_(
"Differential Pair Length Tuning" ) );
93 SetTitle(
_(
"Differential Pair Skew Tuning" ) );
104 GetSizer()->SetSizeHints(
this);
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
Class DIALOG_PNS_LENGTH_TUNING_SETTINGS_BASE.
wxStaticText * m_targetLengthLabel
wxStaticBitmap * m_legend
wxCheckBox * m_singleSidedCheck
wxTextCtrl * m_targetLengthText
TEXT_CTRL_EVAL * m_radiusText
DIALOG_PNS_LENGTH_TUNING_SETTINGS(EDA_DRAW_FRAME *aParent, PNS::MEANDER_SETTINGS &aSettings, PNS::ROUTER_MODE aMode)
Length tuner settings dialog.
bool TransferDataFromWindow() override
bool TransferDataToWindow() override
PNS::MEANDER_SETTINGS & m_settings
UNIT_BINDER m_targetLength
void SetupStandardButtons(std::map< int, wxString > aLabels={})
The base class for create windows for drawing purpose.
Dimensions for the meandering algorithm.
int m_minAmplitude
Maximum meandering amplitude.
int m_cornerRadiusPercentage
Place meanders on one side.
bool m_singleSided
Allowable tuning error.
long long int m_targetLength
Type of corners for the meandered line.
MEANDER_STYLE m_cornerStyle
Rounding percentage (0 - 100).
int m_maxAmplitude
Meandering period/spacing (see dialog picture for explanation).
int m_spacing
Amplitude/spacing adjustment step.
void SetValue(const wxString &aValue) override
Set a new value in evaluator buffer, and display it in the wxTextCtrl.
virtual long long int GetValue()
Return the current value in Internal Units.
virtual void SetUnits(EDA_UNITS aUnits)
Normally not needed (as the UNIT_BINDER inherits from the parent frame), but can be used to set to DE...
virtual bool Validate(double aMin, double aMax, EDA_UNITS aUnits=EDA_UNITS::UNSCALED)
Validate the control against the given range, informing the user of any errors found.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
@ PNS_MODE_TUNE_DIFF_PAIR
@ PNS_MODE_TUNE_DIFF_PAIR_SKEW