|
KiCad PCB EDA Suite
|
#include <unit_binder.h>
Classes | |
| struct | RANGE_BOUND |
| A range bound converted to internal units together with its user-facing display string. More... | |
Public Member Functions | |
| UNIT_BINDER (EDA_DRAW_FRAME *aParent, wxStaticText *aLabel, wxWindow *aValueCtrl, wxStaticText *aUnitLabel, bool aAllowEval=true, bool aBindFocusEvent=true) | |
| UNIT_BINDER (UNITS_PROVIDER *aUnitsProvider, wxWindow *aEventSource, wxStaticText *aLabel, wxWindow *aValueCtrl, wxStaticText *aUnitLabel, bool aAllowEval=true, bool aBindFocusEvent=true) | |
| virtual | ~UNIT_BINDER () override |
| 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 DEGREES for angular controls. | |
| bool | UnitsInvariant () const |
| virtual void | SetNegativeZero () |
| virtual void | SetPrecision (int aLength) |
| Normally not needed, but can be used to set the precision when using internal units that are floats (not integers) like DEGREES or PERCENT. | |
| void | SetDataType (EDA_DATA_TYPE aDataType) |
| Used to override the datatype of the displayed property (default is DISTANCE) | |
| virtual void | SetValue (long long int aValue) |
| Set new value (in Internal Units) for the text field, taking care of units conversion. | |
| void | SetValue (const wxString &aValue) |
| virtual void | SetDoubleValue (double aValue) |
| Set new value (in Internal Units) for the text field, taking care of units conversion. | |
| virtual void | SetAngleValue (const EDA_ANGLE &aValue) |
| virtual void | ChangeValue (int aValue) |
| Set new value (in Internal Units) for the text field, taking care of units conversion WITHOUT triggering the update routine. | |
| void | ChangeValue (const wxString &aValue) |
| virtual void | ChangeDoubleValue (double aValue) |
| Set new value (in Internal Units) for the text field, taking care of units conversion WITHOUT triggering the update routine. | |
| virtual void | ChangeAngleValue (const EDA_ANGLE &aValue) |
| virtual long long int | GetValue () const |
| Return the current value in Internal Units. | |
| int | GetIntValue () const |
| virtual double | GetDoubleValue () const |
| Return the current value in Internal Units. | |
| virtual EDA_ANGLE | GetAngleValue () |
| virtual void | SetOptionsList (std::span< const long long int > aOptions) |
| Set the list of options for a combobox control. | |
| virtual void | SetDoubleOptionsList (std::span< const double > aOptions) |
| bool | IsIndeterminate () const |
| Return true if the control holds the indeterminate value (for instance, if it represents a multiple selection of differing values). | |
| bool | IsNull () const |
| Return true if the control holds no value (ie: empty string, not 0). | |
| void | SetNull () |
| 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. | |
| void | SetLabel (const wxString &aLabel) |
| void | Enable (bool aEnable) |
| Enable/disable the label, widget and units label. | |
| void | Show (bool aShow, bool aResize=false) |
| Show/hide the label, widget and units label. | |
| ORIGIN_TRANSFORMS::COORD_TYPES_T | GetCoordType () const |
| Get the origin transforms coordinate type. | |
| void | SetCoordType (ORIGIN_TRANSFORMS::COORD_TYPES_T aCoordType) |
| Set the current origin transform mode. | |
| virtual wxString | GetFormula () const |
| Return the expression the user entered if it is more than a plain number, otherwise an empty string. | |
| virtual bool | RestoreFormula (const wxString &aFormula) |
| Show the result of an expression returned by GetFormula() and retain the expression so that it reappears for editing when the control gains focus. | |
| virtual void | RestoreValue (int aValue, const wxString &aFormula) |
| Set a value (in Internal Units) as ChangeValue() does and reinstate the expression that produced it. | |
| void | RequireEval () |
| Force the binder to evaluate the text. | |
| void | DetachFromDialogShim () |
| Sever the back-reference to the owning dialog. | |
Static Public Member Functions | |
| static RANGE_BOUND | ConvertRangeBound (const EDA_IU_SCALE &aIuScale, EDA_UNITS aBoundUnits, double aBound, EDA_UNITS aDisplayUnits, EDA_DATA_TYPE aDataType) |
Convert a range bound and format its display string honoring aDataType. | |
Protected Member Functions | |
| void | onClick (wxMouseEvent &aEvent) |
| void | onComboBox (wxCommandEvent &aEvent) |
| void | onSetFocus (wxFocusEvent &aEvent) |
| void | onKillFocus (wxFocusEvent &aEvent) |
| void | delayedFocusHandler (wxCommandEvent &aEvent) |
| void | onValueCtrlDestroyed (wxWindowDestroyEvent &aEvent) |
| void | onUnitsChanged (wxCommandEvent &aEvent) |
| double | setPrecision (double aValue, bool aValueUsesUserUnits) const |
| When m_precision > 0 truncate the value aValue to show only m_precision digits in mantissa. | |
| wxString | formulaYielding (long long int aValue) const |
| Return the retained expression if it evaluates to aValue, otherwise an empty string. | |
| wxString | getTextForValue (long long int aValue) const |
| wxString | getTextForDoubleValue (double aValue) const |
Protected Attributes | |
| bool | m_bindFocusEvent |
| wxStaticText * | m_label |
| The bound widgets. | |
| wxWindow * | m_valueCtrl |
| wxWindow * | m_eventSource |
| wxStaticText * | m_unitLabel |
| Can be nullptr. | |
| const EDA_IU_SCALE * | m_iuScale |
| Currently used units. | |
| EDA_UNITS | m_units |
| bool | m_negativeZero |
| Indicates "-0" should be displayed for 0. | |
| EDA_DATA_TYPE | m_dataType |
| int | m_precision |
| 0 to 6. | |
| wxString | m_errorMessage |
| NUMERIC_EVALUATOR | m_eval |
| bool | m_allowEval |
| bool | m_needsEval |
| long | m_selStart |
| Selection start and end of the original text. | |
| long | m_selEnd |
| bool | m_unitsInValue |
| Units label should be included in value text. | |
| ORIGIN_TRANSFORMS & | m_originTransforms |
| A reference to an ORIGIN_TRANSFORMS object. | |
| ORIGIN_TRANSFORMS::COORD_TYPES_T | m_coordType |
| Type of coordinate for display origin transforms. | |
| DIALOG_SHIM * | m_dialogShim |
| The dialog this binder registered itself with, or nullptr if it isn't owned by a dialog. | |
Definition at line 39 of file unit_binder.h.
| UNIT_BINDER::UNIT_BINDER | ( | EDA_DRAW_FRAME * | aParent, |
| wxStaticText * | aLabel, | ||
| wxWindow * | aValueCtrl, | ||
| wxStaticText * | aUnitLabel, | ||
| bool | aAllowEval = true, | ||
| bool | aBindFocusEvent = true ) |
| aParent | is the parent EDA_BASE_FRAME, used to fetch units and coordinate systems. |
| aLabel | is the static text used to label the text input widget (note: the label text, trimmed of its colon, will also be used in error messages) |
| aValueCtrl | is the control used to edit or display the given value (wxTextCtrl, wxComboBox, wxStaticText, etc.). |
| aUnitLabel | (optional) is the units label displayed after the text input widget |
| aAllowEval | indicates aTextInput's content should be eval'ed before storing |
| aBindFocusEvent | indicates the control should respond to DELAY_FOCUS from the parent frame |
Definition at line 41 of file unit_binder.cpp.
References UNIT_BINDER().
Referenced by PROPERTY_EDITOR_UNIT_BINDER::PROPERTY_EDITOR_UNIT_BINDER(), and UNIT_BINDER().
| UNIT_BINDER::UNIT_BINDER | ( | UNITS_PROVIDER * | aUnitsProvider, |
| wxWindow * | aEventSource, | ||
| wxStaticText * | aLabel, | ||
| wxWindow * | aValueCtrl, | ||
| wxStaticText * | aUnitLabel, | ||
| bool | aAllowEval = true, | ||
| bool | aBindFocusEvent = true ) |
Definition at line 47 of file unit_binder.cpp.
References DISTANCE, m_allowEval, m_bindFocusEvent, m_coordType, m_dataType, m_dialogShim, m_eval, m_eventSource, m_iuScale, m_label, m_needsEval, m_negativeZero, m_originTransforms, m_precision, m_selEnd, m_selStart, m_unitLabel, m_units, m_unitsInValue, and m_valueCtrl.
|
overridevirtual |
Definition at line 144 of file unit_binder.cpp.
References delayedFocusHandler(), m_bindFocusEvent, m_dialogShim, m_eventSource, m_valueCtrl, onClick(), onComboBox(), onKillFocus(), onSetFocus(), onUnitsChanged(), and onValueCtrlDestroyed().
|
virtual |
Definition at line 584 of file unit_binder.cpp.
References ChangeDoubleValue(), m_coordType, and m_originTransforms.
|
virtual |
Set new value (in Internal Units) for the text field, taking care of units conversion WITHOUT triggering the update routine.
The value will be truncated according to the precision set by SetPrecision() (if not <= 0).
Definition at line 578 of file unit_binder.cpp.
References ChangeValue(), and getTextForDoubleValue().
Referenced by ChangeAngleValue().
| void UNIT_BINDER::ChangeValue | ( | const wxString & | aValue | ) |
Definition at line 590 of file unit_binder.cpp.
References DEGREES, EDA_UNIT_UTILS::GetLabel(), m_allowEval, m_dataType, m_eval, m_unitLabel, m_units, m_unitsInValue, m_valueCtrl, and PERCENT.
|
virtual |
Set new value (in Internal Units) for the text field, taking care of units conversion WITHOUT triggering the update routine.
Definition at line 567 of file unit_binder.cpp.
References ChangeValue(), formulaYielding(), getTextForValue(), and m_eval.
Referenced by ChangeDoubleValue(), ChangeValue(), DIALOG_SHIM::LoadControlState(), RestoreFormula(), and RestoreValue().
|
static |
Convert a range bound and format its display string honoring aDataType.
Area and volume bounds scale by the square and cube of the unit factor respectively, and the display string carries the matching data type (so it reads "mm²" rather than "mm"). Kept static and free of any control state so the range validation math can be exercised without constructing wx widgets.
| aIuScale | the internal units scale. |
| aBoundUnits | the units the bound is expressed in (UNSCALED for internal units). |
| aBound | the bound value in aBoundUnits. |
| aDisplayUnits | the units the display string should be rendered in. |
| aDataType | the measurement type governing conversion power and units label. |
Definition at line 385 of file unit_binder.cpp.
References AREA, EDA_UNIT_UTILS::UI::FromUserUnit(), EDA_UNIT_UTILS::UI::StringFromValue(), UNITLESS, and VOLUME.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and Validate().
|
protected |
Definition at line 375 of file unit_binder.cpp.
References DisplayErrorMessage(), m_errorMessage, and m_valueCtrl.
Referenced by ~UNIT_BINDER().
|
inline |
Sever the back-reference to the owning dialog.
Called by DIALOG_SHIM while it is being destroyed so that this binder, which outlives the dialog's member teardown, does not call back into the half-destroyed dialog.
Definition at line 351 of file unit_binder.h.
References m_dialogShim.
| void UNIT_BINDER::Enable | ( | bool | aEnable | ) |
Enable/disable the label, widget and units label.
Definition at line 809 of file unit_binder.cpp.
References m_label, m_unitLabel, and m_valueCtrl.
|
protected |
Return the retained expression if it evaluates to aValue, otherwise an empty string.
Definition at line 550 of file unit_binder.cpp.
References std::abs(), m_allowEval, m_coordType, m_dataType, m_eval, m_iuScale, m_needsEval, m_originTransforms, m_units, and EDA_UNIT_UTILS::UI::ValueFromString().
Referenced by ChangeValue(), and SetValue().
|
virtual |
Definition at line 746 of file unit_binder.cpp.
References DEGREES_T, GetDoubleValue(), m_coordType, and m_originTransforms.
|
inline |
Get the origin transforms coordinate type.
Definition at line 229 of file unit_binder.h.
References m_coordType.
|
virtual |
Return the current value in Internal Units.
The returned value will be truncated according to the precision set by SetPrecision() (if not <= 0).
Definition at line 715 of file unit_binder.cpp.
References EDA_UNIT_UTILS::UI::DoubleValueFromString(), m_coordType, m_dataType, m_eval, m_iuScale, m_needsEval, m_originTransforms, m_units, m_valueCtrl, and setPrecision().
Referenced by GetAngleValue().
|
virtual |
Return the expression the user entered if it is more than a plain number, otherwise an empty string.
Definition at line 618 of file unit_binder.cpp.
References m_allowEval, m_eval, m_needsEval, and m_valueCtrl.
Referenced by DIALOG_SHIM::SaveControlState().
|
inline |
Definition at line 131 of file unit_binder.h.
References GetValue().
Referenced by onUnitsChanged().
|
protected |
Definition at line 537 of file unit_binder.cpp.
References m_coordType, m_dataType, m_iuScale, m_negativeZero, m_originTransforms, m_units, setPrecision(), and EDA_UNIT_UTILS::UI::StringFromValue().
Referenced by ChangeDoubleValue(), and SetDoubleOptionsList().
|
protected |
Definition at line 524 of file unit_binder.cpp.
References m_coordType, m_dataType, m_iuScale, m_negativeZero, m_originTransforms, m_units, setPrecision(), and EDA_UNIT_UTILS::UI::StringFromValue().
Referenced by ChangeValue(), and SetOptionsList().
|
virtual |
Return the current value in Internal Units.
Definition at line 666 of file unit_binder.cpp.
References m_coordType, m_dataType, m_eval, m_iuScale, m_needsEval, m_originTransforms, m_units, m_valueCtrl, and EDA_UNIT_UTILS::UI::ValueFromString().
Referenced by GetIntValue(), WX_MULTI_ENTRY_DIALOG::GetValues(), DIALOG_SHIM::SaveControlState(), and Validate().
| bool UNIT_BINDER::IsIndeterminate | ( | ) | const |
Return true if the control holds the indeterminate value (for instance, if it represents a multiple selection of differing values).
Definition at line 776 of file unit_binder.cpp.
References INDETERMINATE_ACTION, INDETERMINATE_STATE, and m_valueCtrl.
Referenced by onUnitsChanged().
| bool UNIT_BINDER::IsNull | ( | ) | const |
Return true if the control holds no value (ie: empty string, not 0).
Definition at line 787 of file unit_binder.cpp.
References m_valueCtrl.
|
protected |
Definition at line 235 of file unit_binder.cpp.
References INDETERMINATE_ACTION, INDETERMINATE_STATE, and m_valueCtrl.
Referenced by PROPERTY_EDITOR_UNIT_BINDER::SetControl(), and ~UNIT_BINDER().
|
protected |
Definition at line 251 of file unit_binder.cpp.
References m_dataType, m_iuScale, m_units, m_valueCtrl, SetValue(), and EDA_UNIT_UTILS::UI::ValueFromString().
Referenced by ~UNIT_BINDER().
|
protected |
Definition at line 320 of file unit_binder.cpp.
References DEGREES, EDA_UNIT_UTILS::GetLabel(), m_allowEval, m_dataType, m_eval, m_needsEval, m_selEnd, m_selStart, m_units, m_unitsInValue, m_valueCtrl, and PERCENT.
Referenced by PROPERTY_EDITOR_UNIT_BINDER::SetControl(), and ~UNIT_BINDER().
|
protected |
Definition at line 289 of file unit_binder.cpp.
References INDETERMINATE_ACTION, INDETERMINATE_STATE, m_allowEval, m_eval, m_needsEval, m_selEnd, m_selStart, and m_valueCtrl.
Referenced by PROPERTY_EDITOR_UNIT_BINDER::SetControl(), and ~UNIT_BINDER().
|
protected |
Definition at line 197 of file unit_binder.cpp.
References GetIntValue(), IsIndeterminate(), m_dataType, m_iuScale, m_units, m_valueCtrl, SetOptionsList(), SetUnits(), SetValue(), UnitsInvariant(), and EDA_UNIT_UTILS::UI::ValueFromString().
Referenced by ~UNIT_BINDER().
|
protected |
Definition at line 269 of file unit_binder.cpp.
References m_dialogShim, and m_valueCtrl.
Referenced by ~UNIT_BINDER().
|
inline |
Force the binder to evaluate the text.
Definition at line 270 of file unit_binder.h.
References m_needsEval.
|
virtual |
Show the result of an expression returned by GetFormula() and retain the expression so that it reappears for editing when the control gains focus.
Definition at line 638 of file unit_binder.cpp.
References ChangeValue(), m_allowEval, m_eval, m_needsEval, and m_valueCtrl.
Referenced by DIALOG_SHIM::LoadControlState(), and RestoreValue().
|
virtual |
Set a value (in Internal Units) as ChangeValue() does and reinstate the expression that produced it.
The expression is dropped when it no longer evaluates to aValue, which happens when the units it was entered in have since changed. SetValue() and ChangeValue() apply the same rule, so a dialog may load its own copy of the value afterwards without losing the expression.
Definition at line 659 of file unit_binder.cpp.
References ChangeValue(), and RestoreFormula().
Referenced by DIALOG_SHIM::LoadControlState().
|
virtual |
Definition at line 489 of file unit_binder.cpp.
References m_coordType, m_originTransforms, and SetDoubleValue().
|
inline |
Set the current origin transform mode.
Definition at line 237 of file unit_binder.h.
References m_coordType.
| void UNIT_BINDER::SetDataType | ( | EDA_DATA_TYPE | aDataType | ) |
Used to override the datatype of the displayed property (default is DISTANCE)
| aDataType | is the datatype to use for the units text display |
Definition at line 188 of file unit_binder.cpp.
References EDA_UNIT_UTILS::GetLabel(), m_dataType, m_unitLabel, and m_units.
|
virtual |
Definition at line 764 of file unit_binder.cpp.
References getTextForDoubleValue(), and m_valueCtrl.
|
virtual |
Set new value (in Internal Units) for the text field, taking care of units conversion.
The value will be truncated according to the precision set by SetPrecision() (if not <= 0).
Definition at line 476 of file unit_binder.cpp.
References m_coordType, m_dataType, m_iuScale, m_negativeZero, m_originTransforms, m_units, setPrecision(), SetValue(), and EDA_UNIT_UTILS::UI::StringFromValue().
Referenced by SetAngleValue().
| void UNIT_BINDER::SetLabel | ( | const wxString & | aLabel | ) |
Definition at line 803 of file unit_binder.cpp.
References m_label.
|
inlinevirtual |
Definition at line 75 of file unit_binder.h.
References m_negativeZero.
| void UNIT_BINDER::SetNull | ( | ) |
Definition at line 796 of file unit_binder.cpp.
References m_valueCtrl.
|
virtual |
Set the list of options for a combobox control.
Doesn't affect the value of the control.
Definition at line 752 of file unit_binder.cpp.
References getTextForValue(), and m_valueCtrl.
Referenced by DIALOG_OUTSET_ITEMS::DIALOG_OUTSET_ITEMS(), and onUnitsChanged().
|
virtual |
Normally not needed, but can be used to set the precision when using internal units that are floats (not integers) like DEGREES or PERCENT.
Not used for integer values in IU
| aLength | is the number of digits for mantissa (0 = no truncation) must be <= 6 |
Definition at line 182 of file unit_binder.cpp.
References m_precision.
|
protected |
When m_precision > 0 truncate the value aValue to show only m_precision digits in mantissa.
used in GetDoubleValue to return a rounded value. Mainly for units set to DEGREES.
| aValue | is the value to modify. |
| aValueUsesUserUnits | must be set to true if aValue is a user value, and set to false if aValue is a internal unit value. |
Definition at line 695 of file unit_binder.cpp.
References EDA_UNIT_UTILS::UI::FromUserUnit(), m_iuScale, m_precision, m_units, scale, and EDA_UNIT_UTILS::UI::ToUserUnit().
Referenced by GetDoubleValue(), getTextForDoubleValue(), getTextForValue(), and SetDoubleValue().
|
virtual |
Normally not needed (as the UNIT_BINDER inherits from the parent frame), but can be used to set to DEGREES for angular controls.
Definition at line 170 of file unit_binder.cpp.
References EDA_UNIT_UTILS::GetLabel(), m_dataType, m_eval, m_unitLabel, and m_units.
Referenced by onUnitsChanged().
| void UNIT_BINDER::SetValue | ( | const wxString & | aValue | ) |
Definition at line 495 of file unit_binder.cpp.
References DEGREES, EDA_UNIT_UTILS::GetLabel(), m_allowEval, m_dataType, m_eval, m_unitLabel, m_units, m_unitsInValue, m_valueCtrl, and PERCENT.
|
virtual |
Set new value (in Internal Units) for the text field, taking care of units conversion.
Definition at line 460 of file unit_binder.cpp.
References formulaYielding(), m_coordType, m_dataType, m_eval, m_iuScale, m_negativeZero, m_originTransforms, m_units, SetValue(), and EDA_UNIT_UTILS::UI::StringFromValue().
Referenced by onComboBox(), onUnitsChanged(), SetDoubleValue(), and SetValue().
| void UNIT_BINDER::Show | ( | bool | aShow, |
| bool | aResize = false ) |
Show/hide the label, widget and units label.
| aShow | called for the Show() routine in wx. |
| aResize | if true, the element will be sized to 0 on hide and -1 on show. |
Definition at line 821 of file unit_binder.cpp.
References m_label, m_unitLabel, and m_valueCtrl.
|
inline |
Definition at line 70 of file unit_binder.h.
References DEGREES, m_units, PERCENT, and UNSCALED.
Referenced by onUnitsChanged(), and DIALOG_SHIM::SaveControlState().
|
virtual |
Validate the control against the given range, informing the user of any errors found.
| aMin | a minimum value for validation. |
| aMax | a maximum value for validation. |
| aUnits | the units of the min/max parameters (use UNSCALED for internal units). |
Definition at line 413 of file unit_binder.cpp.
References _, ConvertRangeBound(), UNIT_BINDER::RANGE_BOUND::displayText, GetValue(), INDETERMINATE_ACTION, INDETERMINATE_STATE, UNIT_BINDER::RANGE_BOUND::internalUnits, m_dataType, m_errorMessage, m_iuScale, m_label, m_units, m_valueCtrl, and valueDescriptionFromLabel().
|
protected |
Definition at line 327 of file unit_binder.h.
Referenced by ChangeValue(), formulaYielding(), GetFormula(), onKillFocus(), onSetFocus(), RestoreFormula(), SetValue(), and UNIT_BINDER().
|
protected |
Definition at line 309 of file unit_binder.h.
Referenced by UNIT_BINDER(), and ~UNIT_BINDER().
|
protected |
Type of coordinate for display origin transforms.
Definition at line 339 of file unit_binder.h.
Referenced by ChangeAngleValue(), formulaYielding(), GetAngleValue(), GetCoordType(), GetDoubleValue(), getTextForDoubleValue(), getTextForValue(), GetValue(), SetAngleValue(), SetCoordType(), SetDoubleValue(), SetValue(), and UNIT_BINDER().
|
protected |
Definition at line 321 of file unit_binder.h.
Referenced by ChangeValue(), formulaYielding(), GetDoubleValue(), getTextForDoubleValue(), getTextForValue(), GetValue(), onComboBox(), onKillFocus(), onUnitsChanged(), SetDataType(), SetDoubleValue(), SetUnits(), SetValue(), SetValue(), UNIT_BINDER(), and Validate().
|
protected |
The dialog this binder registered itself with, or nullptr if it isn't owned by a dialog.
Definition at line 342 of file unit_binder.h.
Referenced by DetachFromDialogShim(), onValueCtrlDestroyed(), UNIT_BINDER(), and ~UNIT_BINDER().
|
protected |
Definition at line 324 of file unit_binder.h.
Referenced by delayedFocusHandler(), and Validate().
|
mutableprotected |
Definition at line 326 of file unit_binder.h.
Referenced by ChangeValue(), ChangeValue(), formulaYielding(), GetDoubleValue(), GetFormula(), GetValue(), onKillFocus(), onSetFocus(), RestoreFormula(), SetUnits(), SetValue(), SetValue(), and UNIT_BINDER().
|
protected |
Definition at line 314 of file unit_binder.h.
Referenced by UNIT_BINDER(), and ~UNIT_BINDER().
|
protected |
Currently used units.
Definition at line 318 of file unit_binder.h.
Referenced by formulaYielding(), GetDoubleValue(), getTextForDoubleValue(), getTextForValue(), GetValue(), onComboBox(), onUnitsChanged(), SetDoubleValue(), setPrecision(), SetValue(), UNIT_BINDER(), and Validate().
|
protected |
The bound widgets.
Definition at line 312 of file unit_binder.h.
Referenced by Enable(), SetLabel(), Show(), UNIT_BINDER(), and Validate().
|
protected |
Definition at line 328 of file unit_binder.h.
Referenced by formulaYielding(), GetDoubleValue(), GetFormula(), GetValue(), onKillFocus(), onSetFocus(), RequireEval(), RestoreFormula(), and UNIT_BINDER().
|
protected |
Indicates "-0" should be displayed for 0.
Definition at line 320 of file unit_binder.h.
Referenced by getTextForDoubleValue(), getTextForValue(), SetDoubleValue(), SetNegativeZero(), SetValue(), and UNIT_BINDER().
|
protected |
A reference to an ORIGIN_TRANSFORMS object.
Definition at line 336 of file unit_binder.h.
Referenced by ChangeAngleValue(), formulaYielding(), GetAngleValue(), GetDoubleValue(), getTextForDoubleValue(), getTextForValue(), GetValue(), SetAngleValue(), SetDoubleValue(), SetValue(), and UNIT_BINDER().
|
protected |
0 to 6.
Definition at line 322 of file unit_binder.h.
Referenced by SetPrecision(), setPrecision(), and UNIT_BINDER().
|
protected |
Definition at line 331 of file unit_binder.h.
Referenced by onKillFocus(), onSetFocus(), and UNIT_BINDER().
|
protected |
Selection start and end of the original text.
Definition at line 330 of file unit_binder.h.
Referenced by onKillFocus(), onSetFocus(), and UNIT_BINDER().
|
protected |
Can be nullptr.
Definition at line 315 of file unit_binder.h.
Referenced by ChangeValue(), Enable(), SetDataType(), SetUnits(), SetValue(), Show(), and UNIT_BINDER().
|
protected |
Definition at line 319 of file unit_binder.h.
Referenced by ChangeValue(), formulaYielding(), GetDoubleValue(), getTextForDoubleValue(), getTextForValue(), GetValue(), onComboBox(), onKillFocus(), onUnitsChanged(), SetDataType(), SetDoubleValue(), setPrecision(), SetUnits(), SetValue(), SetValue(), UNIT_BINDER(), UnitsInvariant(), and Validate().
|
protected |
Units label should be included in value text.
Definition at line 333 of file unit_binder.h.
Referenced by ChangeValue(), onKillFocus(), PROPERTY_EDITOR_UNIT_BINDER::PROPERTY_EDITOR_UNIT_BINDER(), SetValue(), and UNIT_BINDER().
|
protected |
Definition at line 313 of file unit_binder.h.
Referenced by ChangeValue(), delayedFocusHandler(), Enable(), GetDoubleValue(), GetFormula(), GetValue(), IsIndeterminate(), IsNull(), onClick(), onComboBox(), onKillFocus(), onSetFocus(), onUnitsChanged(), onValueCtrlDestroyed(), RestoreFormula(), PROPERTY_EDITOR_UNIT_BINDER::SetControl(), SetDoubleOptionsList(), SetNull(), SetOptionsList(), SetValue(), Show(), UNIT_BINDER(), Validate(), and ~UNIT_BINDER().