36 m_minAmpl( aParent, m_minAmplLabel, m_minAmplText, m_minAmplUnit, true ),
37 m_maxAmpl( aParent, m_maxAmplLabel, m_maxAmplText, m_maxAmplUnit, true ),
38 m_spacing( aParent, m_spacingLabel, m_spacingText, m_spacingUnit, true ),
39 m_targetLength( aParent, m_targetLengthLabel, m_targetLengthText, m_targetLengthUnit ),
40 m_radius( aParent, m_radiusLabel, m_radiusText, m_radiusUnit ),
41 m_settings( aSettings ),
49 GetSizer()->SetSizeHints(
this);
57 if( !wxDialog::TransferDataToWindow() )
79 SetTitle(
_(
"Single Track Length Tuning" ) );
85 SetTitle(
_(
"Differential Pair Length Tuning" ) );
91 SetTitle(
_(
"Differential Pair Skew Tuning" ) );
102 GetSizer()->SetSizeHints(
this);
int m_minAmplitude
Maximum meandering amplitude.
wxStaticBitmap * m_legend
bool TransferDataToWindow() override
const BITMAP_OPAQUE tune_single_track_length_legend_xpm[1]
TEXT_CTRL_EVAL * m_radiusText
Dimensions for the meandering algorithm.
The base class for create windows for drawing purpose.
MEANDER_STYLE m_cornerStyle
Rounding percentage (0 - 100).
void SetValue(const wxString &aValue) override
Set a new value in evaluator buffer, and display it in the wxTextCtrl.
DIALOG_PNS_LENGTH_TUNING_SETTINGS(EDA_DRAW_FRAME *aParent, PNS::MEANDER_SETTINGS &aSettings, PNS::ROUTER_MODE aMode)
Length tuner settings dialog.
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
const BITMAP_OPAQUE tune_diff_pair_skew_legend_xpm[1]
int m_cornerRadiusPercentage
Allowable tuning error.
UNIT_BINDER m_targetLength
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
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...
bool TransferDataFromWindow() override
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(int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
long long int m_targetLength
Type of corners for the meandered line.
virtual long long int GetValue()
Return the current value in Internal Units.
int m_spacing
Amplitude/spacing adjustment step.
const BITMAP_OPAQUE tune_diff_pair_length_legend_xpm[1]
wxButton * m_stdButtonsOK
wxStaticText * m_targetLengthLabel
wxTextCtrl * m_targetLengthText
PNS::MEANDER_SETTINGS & m_settings
int m_maxAmplitude
Meandering period/spacing (see dialog picture for explanation).
Class DIALOG_PNS_LENGTH_TUNING_SETTINGS_BASE.