KiCad PCB EDA Suite
|
#include <unit_binder.h>
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. | |
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 () |
Return the current value in Internal Units. | |
int | GetIntValue () |
virtual double | GetDoubleValue () |
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). | |
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. | |
void | RequireEval () |
Force the binder to evaluate the text. | |
Protected Member Functions | |
void | init (UNITS_PROVIDER *aProvider) |
void | onClick (wxMouseEvent &aEvent) |
void | onComboBox (wxCommandEvent &aEvent) |
void | onSetFocus (wxFocusEvent &aEvent) |
void | onKillFocus (wxFocusEvent &aEvent) |
void | delayedFocusHandler (wxCommandEvent &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 | getTextForValue (long long int aValue) const |
wxString | getTextForDoubleValue (double aValue) const |
Protected Attributes | |
bool | m_bindFocusEvent |
The bound widgets. | |
wxStaticText * | m_label |
wxWindow * | m_valueCtrl |
wxStaticText * | m_unitLabel |
Can be nullptr. | |
const EDA_IU_SCALE * | m_iuScale |
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. | |
Definition at line 42 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.
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 delayedFocusHandler(), EDA_UNIT_UTILS::GetLabel(), init(), m_allowEval, m_bindFocusEvent, m_dataType, m_negativeZero, m_unitLabel, m_units, m_valueCtrl, minSize, onClick(), onComboBox(), onKillFocus(), onSetFocus(), and onUnitsChanged().
|
overridevirtual |
Definition at line 116 of file unit_binder.cpp.
References delayedFocusHandler(), m_bindFocusEvent, m_valueCtrl, onClick(), onComboBox(), onKillFocus(), and onSetFocus().
|
virtual |
Definition at line 494 of file unit_binder.cpp.
References EDA_ANGLE::AsDegrees(), and ChangeDoubleValue().
Referenced by DIALOG_PAD_PROPERTIES::initValues().
|
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 488 of file unit_binder.cpp.
References ChangeValue(), and getTextForDoubleValue().
Referenced by ChangeAngleValue(), DIALOG_PAD_PROPERTIES::initValues(), DIALOG_PAD_PROPERTIES::onCornerRadiusChange(), DIALOG_PAD_PROPERTIES::OnPadShapeSelection(), and DIALOG_PAD_PROPERTIES::updateRoundRectCornerValues().
void UNIT_BINDER::ChangeValue | ( | const wxString & | aValue | ) |
Definition at line 500 of file unit_binder.cpp.
References NUMERIC_EVALUATOR::Clear(), EDA_UNIT_UTILS::GetLabel(), m_allowEval, m_dataType, m_eval, m_unitLabel, m_units, m_unitsInValue, and m_valueCtrl.
|
virtual |
Set new value (in Internal Units) for the text field, taking care of units conversion WITHOUT triggering the update routine.
Definition at line 482 of file unit_binder.cpp.
References ChangeValue(), and getTextForValue().
Referenced by ChangeDoubleValue(), ChangeValue(), DIALOG_PAD_PROPERTIES::initPadstackLayerValues(), DIALOG_PAD_PROPERTIES::initValues(), DIALOG_DIMENSION_PROPERTIES::onBoldToggle(), DIALOG_TEXT_PROPERTIES::onBoldToggle(), DIALOG_TEXTBOX_PROPERTIES::onBoldToggle(), DIALOG_PAD_PROPERTIES::onCornerSizePercentChange(), DIALOG_TRACK_VIA_PROPERTIES::onViaSelect(), DIALOG_PAD_PROPERTIES::PadTypeSelected(), DIALOG_LIB_SYMBOL_PROPERTIES::TransferDataToWindow(), and DIALOG_PAD_PROPERTIES::updateRoundRectCornerValues().
|
protected |
Definition at line 333 of file unit_binder.cpp.
References DisplayError(), m_errorMessage, and m_valueCtrl.
Referenced by UNIT_BINDER(), and ~UNIT_BINDER().
void UNIT_BINDER::Enable | ( | bool | aEnable | ) |
Enable/disable the label, widget and units label.
Definition at line 673 of file unit_binder.cpp.
References m_label, m_unitLabel, and m_valueCtrl.
Referenced by DIALOG_COPPER_ZONE::DIALOG_COPPER_ZONE(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::onActionButtonChange(), DIALOG_SHAPE_PROPERTIES::onBorderChecked(), DIALOG_TABLE_PROPERTIES::onBorderChecked(), DIALOG_TEXT_PROPERTIES::onBorderChecked(), DIALOG_TEXTBOX_PROPERTIES::onBorderChecked(), DIALOG_IMPORT_GFX_SCH::onFilename(), DIALOG_IMPORT_GRAPHICS::onFilename(), DIALOG_TUNING_PATTERN_PROPERTIES::onOverrideCustomRules(), DIALOG_PAD_PROPERTIES::OnPadShapeSelection(), DIALOG_PAGES_SETTINGS::OnPaperSizeChoice(), CONVERT_SETTINGS_DIALOG::onRadioButton(), DIALOG_COPPER_ZONE::OnRemoveIslandsSelection(), PANEL_ZONE_PROPERTIES::OnRemoveIslandsSelection(), DIALOG_NON_COPPER_ZONES_EDITOR::OnStyleSelection(), DIALOG_COPPER_ZONE::OnUpdateUI(), DIALOG_NON_COPPER_ZONES_EDITOR::OnUpdateUI(), DIALOG_LIB_SYMBOL_PROPERTIES::OnUpdateUI(), DIALOG_PLOT_SCHEMATIC::OnUpdateUI(), DIALOG_PAD_PROPERTIES::OnUpdateUI(), DIALOG_IMPORT_GRAPHICS::onUpdateUI(), DIALOG_IMPORT_GFX_SCH::originOptionOnUpdateUI(), PANEL_ZONE_PROPERTIES::PANEL_ZONE_PROPERTIES(), DIALOG_PLOT::SetPlotFormat(), DIALOG_SHAPE_PROPERTIES::TransferDataToWindow(), DIALOG_TABLE_PROPERTIES::TransferDataToWindow(), DIALOG_TEXT_PROPERTIES::TransferDataToWindow(), DIALOG_WIRE_BUS_PROPERTIES::TransferDataToWindow(), DIALOG_COPPER_ZONE::TransferDataToWindow(), DIALOG_NON_COPPER_ZONES_EDITOR::TransferDataToWindow(), DIALOG_TEXTBOX_PROPERTIES::TransferDataToWindow(), DIALOG_TUNING_PATTERN_PROPERTIES::TransferDataToWindow(), CONVERT_SETTINGS_DIALOG::TransferDataToWindow(), and PANEL_ZONE_PROPERTIES::TransferZoneSettingsToWindow().
|
virtual |
Definition at line 611 of file unit_binder.cpp.
References DEGREES_T, and GetDoubleValue().
Referenced by DIALOG_POSITION_RELATIVE::getTranslationInIU(), DIALOG_MOVE_EXACT::GetTranslationInIU(), DIALOG_POSITION_RELATIVE::OnClear(), DIALOG_SET_OFFSET::OnClear(), DIALOG_PAD_PROPERTIES::OnPadShapeSelection(), DIALOG_MOVE_EXACT::OnPolarChanged(), DIALOG_POSITION_RELATIVE::OnPolarChanged(), DIALOG_SET_OFFSET::OnPolarChanged(), DIALOG_DRAW_LAYERS_SETTINGS::TransferDataFromWindow(), DIALOG_COPPER_ZONE::TransferDataFromWindow(), DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow(), DIALOG_MOVE_EXACT::TransferDataFromWindow(), DIALOG_NON_COPPER_ZONES_EDITOR::TransferDataFromWindow(), DIALOG_TEXTBOX_PROPERTIES::TransferDataFromWindow(), PANEL_EDIT_OPTIONS::TransferDataFromWindow(), DIALOG_PAD_PROPERTIES::transferDataToPad(), PANEL_ZONE_PROPERTIES::TransferZoneSettingsFromWindow(), and DIALOG_DIMENSION_PROPERTIES::updateDimensionFromDialog().
|
inline |
Get the origin transforms coordinate type.
Definition at line 191 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 579 of file unit_binder.cpp.
References EDA_UNIT_UTILS::UI::DoubleValueFromString(), ORIGIN_TRANSFORMS::FromDisplay(), m_coordType, m_dataType, m_eval, m_iuScale, m_needsEval, m_originTransforms, m_units, m_valueCtrl, NUMERIC_EVALUATOR::Process(), NUMERIC_EVALUATOR::Result(), and setPrecision().
Referenced by DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), GetAngleValue(), DIALOG_PAGES_SETTINGS::GetCustomSizeMilsFromDialog(), DIALOG_POSITION_RELATIVE::getTranslationInIU(), DIALOG_MOVE_EXACT::GetTranslationInIU(), DIALOG_POSITION_RELATIVE::OnClear(), DIALOG_SET_OFFSET::OnClear(), DIALOG_POSITION_RELATIVE::OnOkClick(), DIALOG_MOVE_EXACT::OnPolarChanged(), DIALOG_POSITION_RELATIVE::OnPolarChanged(), DIALOG_SET_OFFSET::OnPolarChanged(), DIALOG_MOVE_EXACT::OnTextChanged(), DIALOG_GLOBAL_EDIT_TEARDROPS::setSpecifiedParams(), DIALOG_GRID_SETTINGS::TransferDataFromWindow(), DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow(), DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow(), PANEL_SETUP_MASK_AND_PASTE::TransferDataFromWindow(), DIALOG_IMPORT_GRAPHICS::TransferDataFromWindow(), and DIALOG_PAD_PROPERTIES::transferDataToPad().
|
inline |
Definition at line 129 of file unit_binder.h.
References GetValue().
Referenced by DIALOG_COPPER_ZONE::AcceptOptions(), PANEL_ZONE_PROPERTIES::AcceptOptions(), PROPERTIES_FRAME::CopyPrmsFromPanelToGeneral(), PROPERTIES_FRAME::CopyPrmsFromPanelToItem(), DIALOG_CLEANUP_GRAPHICS::doCleanup(), WX_UNIT_ENTRY_DIALOG::GetValue(), WX_PT_ENTRY_DIALOG::GetValue(), PANEL_SYM_EDITING_OPTIONS::onKillFocusPinPitch(), DIALOG_PIN_PROPERTIES::OnPropertiesChange(), onUnitsChanged(), DIALOG_GLOBAL_EDIT_TEARDROPS::setSpecifiedParams(), DIALOG_FIELD_PROPERTIES::TransferDataFromWindow(), DIALOG_LABEL_PROPERTIES::TransferDataFromWindow(), DIALOG_LINE_PROPERTIES::TransferDataFromWindow(), DIALOG_PIN_PROPERTIES::TransferDataFromWindow(), DIALOG_SHAPE_PROPERTIES::TransferDataFromWindow(), DIALOG_SHEET_PIN_PROPERTIES::TransferDataFromWindow(), DIALOG_SHEET_PROPERTIES::TransferDataFromWindow(), DIALOG_TABLE_PROPERTIES::TransferDataFromWindow(), DIALOG_TABLECELL_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXT_PROPERTIES::TransferDataFromWindow(), DIALOG_WIRE_BUS_PROPERTIES::TransferDataFromWindow(), PANEL_EESCHEMA_EDITING_OPTIONS::TransferDataFromWindow(), PANEL_SETUP_FORMATTING::TransferDataFromWindow(), PANEL_SYM_EDITING_OPTIONS::TransferDataFromWindow(), DIALOG_COPPER_ZONE::TransferDataFromWindow(), DIALOG_CREATE_ARRAY::TransferDataFromWindow(), DIALOG_NON_COPPER_ZONES_EDITOR::TransferDataFromWindow(), DIALOG_RULE_AREA_PROPERTIES::TransferDataFromWindow(), DIALOG_TARGET_PROPERTIES::TransferDataFromWindow(), DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow(), DIALOG_TRACK_VIA_SIZE::TransferDataFromWindow(), DIALOG_TUNING_PATTERN_PROPERTIES::TransferDataFromWindow(), PANEL_SETUP_TEARDROPS::TransferDataFromWindow(), PANEL_SETUP_TUNING_PATTERNS::TransferDataFromWindow(), DIALOG_IMPORT_GRAPHICS::TransferDataFromWindow(), CONVERT_SETTINGS_DIALOG::TransferDataFromWindow(), DIALOG_PAD_PROPERTIES::transferDataToPad(), DIALOG_TABLECELL_PROPERTIES::TransferDataToWindow(), PANEL_ZONE_PROPERTIES::TransferZoneSettingsFromWindow(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::~DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS(), and DIALOG_IMPORT_GRAPHICS::~DIALOG_IMPORT_GRAPHICS().
|
protected |
Definition at line 469 of file unit_binder.cpp.
References m_coordType, m_dataType, m_iuScale, m_negativeZero, m_originTransforms, m_units, setPrecision(), EDA_UNIT_UTILS::UI::StringFromValue(), and ORIGIN_TRANSFORMS::ToDisplay().
Referenced by ChangeDoubleValue(), and SetDoubleOptionsList().
|
protected |
Definition at line 456 of file unit_binder.cpp.
References m_coordType, m_dataType, m_iuScale, m_negativeZero, m_originTransforms, m_units, setPrecision(), EDA_UNIT_UTILS::UI::StringFromValue(), and ORIGIN_TRANSFORMS::ToDisplay().
Referenced by ChangeValue(), and SetOptionsList().
|
virtual |
Return the current value in Internal Units.
Definition at line 528 of file unit_binder.cpp.
References ORIGIN_TRANSFORMS::FromDisplay(), m_coordType, m_dataType, m_eval, m_iuScale, m_needsEval, m_originTransforms, m_units, m_valueCtrl, NUMERIC_EVALUATOR::Process(), NUMERIC_EVALUATOR::Result(), and EDA_UNIT_UTILS::UI::ValueFromString().
Referenced by DIALOG_COPPER_ZONE::AcceptOptions(), PANEL_ZONE_PROPERTIES::AcceptOptions(), DIALOG_PLOT::applyPlotSettings(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), GetIntValue(), DIALOG_LIB_NEW_SYMBOL::GetPinTextPosition(), DIALOG_PLOT_SCHEMATIC::getPlotOptions(), DIALOG_IMPORT_GRAPHICS::GetTolerance(), WX_MULTI_ENTRY_DIALOG::GetValues(), DIALOG_DIMENSION_PROPERTIES::onBoldToggle(), DIALOG_TEXT_PROPERTIES::onBoldToggle(), DIALOG_TEXTBOX_PROPERTIES::onBoldToggle(), DIALOG_SHAPE_PROPERTIES::onBorderChecked(), DIALOG_TABLE_PROPERTIES::onBorderChecked(), DIALOG_TEXT_PROPERTIES::onBorderChecked(), DIALOG_TEXTBOX_PROPERTIES::onBorderChecked(), DIALOG_PAD_PROPERTIES::onCornerRadiusChange(), DIALOG_TRACK_VIA_PROPERTIES::onEditLayerChanged(), DIALOG_DIMENSION_PROPERTIES::onFontSelected(), DIALOG_TEXT_PROPERTIES::onFontSelected(), DIALOG_TEXTBOX_PROPERTIES::onFontSelected(), DIALOG_PLOT_SCHEMATIC::OnPlotAll(), DIALOG_DIMENSION_PROPERTIES::onThickness(), DIALOG_TEXT_PROPERTIES::onThickness(), DIALOG_TEXTBOX_PROPERTIES::onThickness(), DIALOG_PAD_PROPERTIES::PadTypeSelected(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem(), DIALOG_PLOT_SCHEMATIC::setHpglPenWidth(), DIALOG_IMAGE_PROPERTIES::TransferDataFromWindow(), DIALOG_JUNCTION_PROPS::TransferDataFromWindow(), DIALOG_LIB_SYMBOL_PROPERTIES::TransferDataFromWindow(), DIALOG_PIN_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXT_PROPERTIES::TransferDataFromWindow(), DIALOG_WIRE_BUS_PROPERTIES::TransferDataFromWindow(), DIALOG_IMPORT_GFX_SCH::TransferDataFromWindow(), DIALOG_DRAW_LAYERS_SETTINGS::TransferDataFromWindow(), DIALOG_CLEANUP_GRAPHICS::TransferDataFromWindow(), DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow(), DIALOG_NON_COPPER_ZONES_EDITOR::TransferDataFromWindow(), DIALOG_OUTSET_ITEMS::TransferDataFromWindow(), DIALOG_PNS_DIFF_PAIR_DIMENSIONS::TransferDataFromWindow(), DIALOG_REFERENCE_IMAGE_PROPERTIES::TransferDataFromWindow(), DIALOG_SET_OFFSET::TransferDataFromWindow(), DIALOG_TEXTBOX_PROPERTIES::TransferDataFromWindow(), DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow(), DIALOG_TRACK_VIA_SIZE::TransferDataFromWindow(), PANEL_SETUP_CONSTRAINTS::TransferDataFromWindow(), PANEL_SETUP_MASK_AND_PASTE::TransferDataFromWindow(), PANEL_SETUP_TEXT_AND_GRAPHICS::TransferDataFromWindow(), MWAVE_POLYGONAL_SHAPE_DLG::TransferDataFromWindow(), DIALOG_TABLECELL_PROPERTIES::TransferDataToWindow(), DIALOG_TUNING_PATTERN_PROPERTIES::TransferDataToWindow(), DIALOG_DIMENSION_PROPERTIES::updateDimensionFromDialog(), DIALOG_TEXT_PROPERTIES::updateTextThickness(), DIALOG_SHAPE_PROPERTIES::Validate(), Validate(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::visitItem(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem(), and DIALOG_IMPORT_GFX_SCH::~DIALOG_IMPORT_GFX_SCH().
|
protected |
Definition at line 138 of file unit_binder.cpp.
References UNITS_PROVIDER::GetUserUnits(), m_needsEval, m_selEnd, m_selStart, and m_units.
Referenced by UNIT_BINDER().
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 645 of file unit_binder.cpp.
References INDETERMINATE_ACTION, INDETERMINATE_STATE, and m_valueCtrl.
Referenced by DIALOG_TRACK_VIA_PROPERTIES::onEditLayerChanged(), onUnitsChanged(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem(), DIALOG_GLOBAL_EDIT_TEARDROPS::setSpecifiedParams(), DIALOG_JUNCTION_PROPS::TransferDataFromWindow(), DIALOG_LINE_PROPERTIES::TransferDataFromWindow(), DIALOG_SHAPE_PROPERTIES::TransferDataFromWindow(), DIALOG_TABLECELL_PROPERTIES::TransferDataFromWindow(), DIALOG_WIRE_BUS_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXTBOX_PROPERTIES::TransferDataFromWindow(), DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
bool UNIT_BINDER::IsNull | ( | ) | const |
Return true if the control holds no value (ie: empty string, not 0).
Definition at line 656 of file unit_binder.cpp.
References m_valueCtrl.
Referenced by DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataFromWindow(), DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow(), and DIALOG_PAD_PROPERTIES::transferDataToPad().
|
protected |
Definition at line 216 of file unit_binder.cpp.
References INDETERMINATE_ACTION, INDETERMINATE_STATE, and m_valueCtrl.
Referenced by PROPERTY_EDITOR_UNIT_BINDER::SetControl(), UNIT_BINDER(), and ~UNIT_BINDER().
|
protected |
Definition at line 232 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(), and ~UNIT_BINDER().
|
protected |
Definition at line 278 of file unit_binder.cpp.
References EDA_UNIT_UTILS::GetLabel(), m_allowEval, m_dataType, m_eval, m_needsEval, m_selEnd, m_selStart, m_units, m_unitsInValue, m_valueCtrl, NUMERIC_EVALUATOR::Process(), and NUMERIC_EVALUATOR::Result().
Referenced by PROPERTY_EDITOR_UNIT_BINDER::SetControl(), UNIT_BINDER(), and ~UNIT_BINDER().
|
protected |
Definition at line 247 of file unit_binder.cpp.
References INDETERMINATE_ACTION, INDETERMINATE_STATE, m_allowEval, m_eval, m_needsEval, m_selEnd, m_selStart, m_valueCtrl, and NUMERIC_EVALUATOR::OriginalText().
Referenced by PROPERTY_EDITOR_UNIT_BINDER::SetControl(), UNIT_BINDER(), and ~UNIT_BINDER().
|
protected |
Definition at line 174 of file unit_binder.cpp.
References GetIntValue(), UNITS_PROVIDER::GetIuScale(), UNITS_PROVIDER::GetUserUnits(), IsIndeterminate(), m_dataType, m_iuScale, m_units, m_valueCtrl, SetOptionsList(), SetUnits(), SetValue(), and EDA_UNIT_UTILS::UI::ValueFromString().
Referenced by UNIT_BINDER().
|
inline |
Force the binder to evaluate the text.
Definition at line 207 of file unit_binder.h.
References m_needsEval.
Referenced by DIALOG_MOVE_EXACT::DIALOG_MOVE_EXACT().
|
virtual |
Definition at line 421 of file unit_binder.cpp.
References EDA_ANGLE::AsDegrees(), and SetDoubleValue().
Referenced by DIALOG_CREATE_ARRAY::calculateCircularArrayProperties(), DIALOG_PAD_PROPERTIES::initValues(), PANEL_EDIT_OPTIONS::loadFPSettings(), PANEL_EDIT_OPTIONS::loadPCBSettings(), DIALOG_MOVE_EXACT::OnClear(), DIALOG_POSITION_RELATIVE::OnClear(), DIALOG_SET_OFFSET::OnClear(), DIALOG_PAD_PROPERTIES::OnPadShapeSelection(), DIALOG_MOVE_EXACT::OnPolarChanged(), DIALOG_POSITION_RELATIVE::OnPolarChanged(), DIALOG_SET_OFFSET::OnPolarChanged(), DIALOG_COPPER_ZONE::TransferDataToWindow(), DIALOG_DIMENSION_PROPERTIES::TransferDataToWindow(), DIALOG_FOOTPRINT_PROPERTIES::TransferDataToWindow(), DIALOG_NON_COPPER_ZONES_EDITOR::TransferDataToWindow(), DIALOG_TEXTBOX_PROPERTIES::TransferDataToWindow(), and PANEL_ZONE_PROPERTIES::TransferZoneSettingsToWindow().
|
inline |
Set the current origin transform mode.
Definition at line 199 of file unit_binder.h.
References m_coordType.
Referenced by DIALOG_CREATE_ARRAY::DIALOG_CREATE_ARRAY(), DIALOG_DIMENSION_PROPERTIES::DIALOG_DIMENSION_PROPERTIES(), DIALOG_FOOTPRINT_PROPERTIES::DIALOG_FOOTPRINT_PROPERTIES(), DIALOG_IMAGE_PROPERTIES::DIALOG_IMAGE_PROPERTIES(), DIALOG_MOVE_EXACT::DIALOG_MOVE_EXACT(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_POSITION_RELATIVE::DIALOG_POSITION_RELATIVE(), DIALOG_REFERENCE_IMAGE_PROPERTIES::DIALOG_REFERENCE_IMAGE_PROPERTIES(), DIALOG_SET_OFFSET::DIALOG_SET_OFFSET(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), and DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES().
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 165 of file unit_binder.cpp.
References EDA_UNIT_UTILS::GetLabel(), m_dataType, m_unitLabel, and m_units.
Referenced by DIALOG_COPPER_ZONE::TransferDataToWindow(), and PANEL_ZONE_PROPERTIES::TransferZoneSettingsToWindow().
|
virtual |
Definition at line 631 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 407 of file unit_binder.cpp.
References m_coordType, m_dataType, m_iuScale, m_negativeZero, m_originTransforms, m_units, setPrecision(), SetValue(), EDA_UNIT_UTILS::UI::StringFromValue(), and ORIGIN_TRANSFORMS::ToDisplay().
Referenced by PROPERTIES_FRAME::CopyPrmsFromGeneralToPanel(), PROPERTIES_FRAME::CopyPrmsFromItemToPanel(), DIALOG_POSITION_RELATIVE::DIALOG_POSITION_RELATIVE(), DIALOG_SET_OFFSET::DIALOG_SET_OFFSET(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), DIALOG_POSITION_RELATIVE::OnClear(), DIALOG_SET_OFFSET::OnClear(), DIALOG_PAD_PROPERTIES::onCornerSizePercentChange(), DIALOG_MOVE_EXACT::OnPolarChanged(), DIALOG_POSITION_RELATIVE::OnPolarChanged(), DIALOG_SET_OFFSET::OnPolarChanged(), SetAngleValue(), DIALOG_GRID_SETTINGS::TransferDataToWindow(), DIALOG_PAGES_SETTINGS::TransferDataToWindow(), DIALOG_COPPER_ZONE::TransferDataToWindow(), DIALOG_FOOTPRINT_PROPERTIES::TransferDataToWindow(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataToWindow(), PANEL_SETUP_MASK_AND_PASTE::TransferDataToWindow(), and PANEL_ZONE_PROPERTIES::TransferZoneSettingsToWindow().
void UNIT_BINDER::SetLabel | ( | const wxString & | aLabel | ) |
Definition at line 667 of file unit_binder.cpp.
References m_label.
Referenced by DIALOG_MOVE_EXACT::updateDialogControls(), DIALOG_POSITION_RELATIVE::updateDialogControls(), and DIALOG_SET_OFFSET::updateDialogControls().
|
inlinevirtual |
Definition at line 73 of file unit_binder.h.
References m_negativeZero.
Referenced by DIALOG_FOOTPRINT_PROPERTIES::DIALOG_FOOTPRINT_PROPERTIES(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), and PANEL_SETUP_MASK_AND_PASTE::PANEL_SETUP_MASK_AND_PASTE().
|
virtual |
Set the list of options for a combobox control.
Doesn't affect the value of the control.
Definition at line 617 of file unit_binder.cpp.
References getTextForValue(), and m_valueCtrl.
Referenced by DIALOG_OUTSET_ITEMS::DIALOG_OUTSET_ITEMS(), and onUnitsChanged().
|
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 558 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, 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 159 of file unit_binder.cpp.
References m_precision.
Referenced by DIALOG_DIMENSION_PROPERTIES::DIALOG_DIMENSION_PROPERTIES(), DIALOG_DRAW_LAYERS_SETTINGS::DIALOG_DRAW_LAYERS_SETTINGS(), DIALOG_FOOTPRINT_PROPERTIES::DIALOG_FOOTPRINT_PROPERTIES(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), and DIALOG_TEXTBOX_PROPERTIES::DIALOG_TEXTBOX_PROPERTIES().
|
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 147 of file unit_binder.cpp.
References EDA_UNIT_UTILS::GetLabel(), NUMERIC_EVALUATOR::LocaleChanged(), m_dataType, m_eval, m_unitLabel, m_units, and NUMERIC_EVALUATOR::SetDefaultUnits().
Referenced by DIALOG_CREATE_ARRAY::DIALOG_CREATE_ARRAY(), DIALOG_DIMENSION_PROPERTIES::DIALOG_DIMENSION_PROPERTIES(), DIALOG_DRAW_LAYERS_SETTINGS::DIALOG_DRAW_LAYERS_SETTINGS(), DIALOG_FOOTPRINT_PROPERTIES::DIALOG_FOOTPRINT_PROPERTIES(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR(), DIALOG_GLOBAL_EDIT_TEARDROPS::DIALOG_GLOBAL_EDIT_TEARDROPS(), DIALOG_MOVE_EXACT::DIALOG_MOVE_EXACT(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_TEXTBOX_PROPERTIES::DIALOG_TEXTBOX_PROPERTIES(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), DIALOG_TUNING_PATTERN_PROPERTIES::DIALOG_TUNING_PATTERN_PROPERTIES(), onUnitsChanged(), PANEL_EDIT_OPTIONS::PANEL_EDIT_OPTIONS(), PANEL_SETUP_MASK_AND_PASTE::PANEL_SETUP_MASK_AND_PASTE(), PANEL_SETUP_TUNING_PATTERNS::PANEL_SETUP_TUNING_PATTERNS(), PANEL_SETUP_FORMATTING::TransferDataToWindow(), DIALOG_COPPER_ZONE::TransferDataToWindow(), DIALOG_NON_COPPER_ZONES_EDITOR::TransferDataToWindow(), PANEL_ZONE_PROPERTIES::TransferZoneSettingsToWindow(), DIALOG_MOVE_EXACT::updateDialogControls(), DIALOG_POSITION_RELATIVE::updateDialogControls(), and DIALOG_SET_OFFSET::updateDialogControls().
void UNIT_BINDER::SetValue | ( | const wxString & | aValue | ) |
Definition at line 427 of file unit_binder.cpp.
References NUMERIC_EVALUATOR::Clear(), EDA_UNIT_UTILS::GetLabel(), m_allowEval, m_dataType, m_eval, m_unitLabel, m_units, m_unitsInValue, and m_valueCtrl.
|
virtual |
Set new value (in Internal Units) for the text field, taking care of units conversion.
Definition at line 394 of file unit_binder.cpp.
References m_coordType, m_dataType, m_iuScale, m_negativeZero, m_originTransforms, m_units, SetValue(), EDA_UNIT_UTILS::UI::StringFromValue(), and ORIGIN_TRANSFORMS::ToDisplay().
Referenced by DIALOG_COPPER_ZONE::AcceptOptions(), PANEL_ZONE_PROPERTIES::AcceptOptions(), DIALOG_PLOT::applyPlotSettings(), DIALOG_COPPER_ZONE::DIALOG_COPPER_ZONE(), DIALOG_IMPORT_GFX_SCH::DIALOG_IMPORT_GFX_SCH(), DIALOG_IMPORT_GRAPHICS::DIALOG_IMPORT_GRAPHICS(), DIALOG_LIB_NEW_SYMBOL::DIALOG_LIB_NEW_SYMBOL(), DIALOG_MOVE_EXACT::DIALOG_MOVE_EXACT(), DIALOG_NON_COPPER_ZONES_EDITOR::DIALOG_NON_COPPER_ZONES_EDITOR(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), PANEL_SETUP_FORMATTING::ImportSettingsFrom(), DIALOG_PLOT::init_Dialog(), DIALOG_PLOT_SCHEMATIC::initDlg(), DIALOG_PAD_PROPERTIES::initValues(), PANEL_EESCHEMA_EDITING_OPTIONS::loadEEschemaSettings(), PANEL_SYM_EDITING_OPTIONS::loadSymEditorSettings(), DIALOG_SHAPE_PROPERTIES::onBorderChecked(), DIALOG_TABLE_PROPERTIES::onBorderChecked(), DIALOG_TEXT_PROPERTIES::onBorderChecked(), DIALOG_TEXTBOX_PROPERTIES::onBorderChecked(), DIALOG_MOVE_EXACT::OnClear(), DIALOG_POSITION_RELATIVE::OnClear(), DIALOG_SET_OFFSET::OnClear(), onComboBox(), DIALOG_TRACK_VIA_PROPERTIES::onEditLayerChanged(), PANEL_SYM_EDITING_OPTIONS::onKillFocusPinPitch(), DIALOG_OUTSET_ITEMS::OnLayerDefaultClick(), DIALOG_PAD_PROPERTIES::OnOffsetCheckbox(), DIALOG_TUNING_PATTERN_PROPERTIES::onOverrideCustomRules(), DIALOG_PAD_PROPERTIES::OnPadToDieCheckbox(), onUnitsChanged(), MWAVE_POLYGONAL_SHAPE_DLG::ReadDataShapeDescr(), DIALOG_JUNCTION_PROPS::resetDefaults(), DIALOG_LINE_PROPERTIES::resetDefaults(), DIALOG_WIRE_BUS_PROPERTIES::resetDefaults(), SetDoubleValue(), DIALOG_LIB_NEW_SYMBOL::SetPinTextPosition(), SetValue(), DIALOG_FIELD_PROPERTIES::TransferDataToWindow(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::TransferDataToWindow(), DIALOG_IMAGE_PROPERTIES::TransferDataToWindow(), DIALOG_JUNCTION_PROPS::TransferDataToWindow(), DIALOG_LABEL_PROPERTIES::TransferDataToWindow(), DIALOG_LINE_PROPERTIES::TransferDataToWindow(), DIALOG_PIN_PROPERTIES::TransferDataToWindow(), DIALOG_SHAPE_PROPERTIES::TransferDataToWindow(), DIALOG_SHEET_PIN_PROPERTIES::TransferDataToWindow(), DIALOG_SHEET_PROPERTIES::TransferDataToWindow(), DIALOG_TABLE_PROPERTIES::TransferDataToWindow(), DIALOG_TABLECELL_PROPERTIES::TransferDataToWindow(), DIALOG_TEXT_PROPERTIES::TransferDataToWindow(), DIALOG_WIRE_BUS_PROPERTIES::TransferDataToWindow(), PANEL_SETUP_FORMATTING::TransferDataToWindow(), DIALOG_DRAW_LAYERS_SETTINGS::TransferDataToWindow(), DIALOG_CLEANUP_GRAPHICS::TransferDataToWindow(), DIALOG_COPPER_ZONE::TransferDataToWindow(), DIALOG_DIMENSION_PROPERTIES::TransferDataToWindow(), DIALOG_FOOTPRINT_PROPERTIES::TransferDataToWindow(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataToWindow(), DIALOG_GLOBAL_EDIT_TEARDROPS::TransferDataToWindow(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::TransferDataToWindow(), DIALOG_NON_COPPER_ZONES_EDITOR::TransferDataToWindow(), DIALOG_OUTSET_ITEMS::TransferDataToWindow(), DIALOG_PNS_DIFF_PAIR_DIMENSIONS::TransferDataToWindow(), DIALOG_REFERENCE_IMAGE_PROPERTIES::TransferDataToWindow(), DIALOG_RULE_AREA_PROPERTIES::TransferDataToWindow(), DIALOG_SET_OFFSET::TransferDataToWindow(), DIALOG_TARGET_PROPERTIES::TransferDataToWindow(), DIALOG_TEXTBOX_PROPERTIES::TransferDataToWindow(), DIALOG_TRACK_VIA_SIZE::TransferDataToWindow(), DIALOG_TUNING_PATTERN_PROPERTIES::TransferDataToWindow(), PANEL_SETUP_CONSTRAINTS::TransferDataToWindow(), PANEL_SETUP_MASK_AND_PASTE::TransferDataToWindow(), PANEL_SETUP_TEARDROPS::TransferDataToWindow(), PANEL_SETUP_TEXT_AND_GRAPHICS::TransferDataToWindow(), PANEL_SETUP_TUNING_PATTERNS::TransferDataToWindow(), CONVERT_SETTINGS_DIALOG::TransferDataToWindow(), PANEL_ZONE_PROPERTIES::TransferZoneSettingsToWindow(), DIALOG_CREATE_ARRAY::UpdatePickedItem(), DIALOG_CREATE_ARRAY::UpdatePickedPoint(), DIALOG_TEXT_PROPERTIES::updateTextThickness(), WX_PT_ENTRY_DIALOG::WX_PT_ENTRY_DIALOG(), and WX_UNIT_ENTRY_DIALOG::WX_UNIT_ENTRY_DIALOG().
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 685 of file unit_binder.cpp.
References m_label, m_unitLabel, and m_valueCtrl.
Referenced by CONVERT_SETTINGS_DIALOG::CONVERT_SETTINGS_DIALOG(), PROPERTIES_FRAME::CopyPrmsFromItemToPanel(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_DIMENSION_PROPERTIES::onFontSelected(), DIALOG_TEXT_PROPERTIES::onFontSelected(), DIALOG_TEXTBOX_PROPERTIES::onFontSelected(), DIALOG_PAD_PROPERTIES::OnUpdateUI(), DIALOG_DIMENSION_PROPERTIES::TransferDataToWindow(), DIALOG_PAD_PROPERTIES::updateHoleControls(), and DIALOG_PAD_PROPERTIES::updatePadSizeControls().
|
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 343 of file unit_binder.cpp.
References _, EDA_UNIT_UTILS::UI::FromUserUnit(), GetValue(), INDETERMINATE_ACTION, INDETERMINATE_STATE, m_errorMessage, m_iuScale, m_label, m_units, m_valueCtrl, EDA_UNIT_UTILS::UI::StringFromValue(), and valueDescriptionFromLabel().
Referenced by DIALOG_COPPER_ZONE::AcceptOptions(), PANEL_ZONE_PROPERTIES::AcceptOptions(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::TransferDataFromWindow(), DIALOG_LABEL_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXT_PROPERTIES::TransferDataFromWindow(), PANEL_SETUP_FORMATTING::TransferDataFromWindow(), DIALOG_GRID_SETTINGS::TransferDataFromWindow(), DIALOG_PAGES_SETTINGS::TransferDataFromWindow(), DIALOG_NON_COPPER_ZONES_EDITOR::TransferDataFromWindow(), DIALOG_RULE_AREA_PROPERTIES::TransferDataFromWindow(), DIALOG_TARGET_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXTBOX_PROPERTIES::TransferDataFromWindow(), DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow(), PANEL_SETUP_CONSTRAINTS::TransferDataFromWindow(), DIALOG_PAD_PROPERTIES::transferDataToPad(), DIALOG_FOOTPRINT_PROPERTIES::Validate(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::Validate(), and validateMM().
|
protected |
Definition at line 257 of file unit_binder.h.
Referenced by ChangeValue(), onKillFocus(), onSetFocus(), SetValue(), and UNIT_BINDER().
|
protected |
The bound widgets.
Definition at line 240 of file unit_binder.h.
Referenced by UNIT_BINDER(), and ~UNIT_BINDER().
|
protected |
Type of coordinate for display origin transforms.
Definition at line 269 of file unit_binder.h.
Referenced by GetCoordType(), GetDoubleValue(), getTextForDoubleValue(), getTextForValue(), GetValue(), SetCoordType(), SetDoubleValue(), and SetValue().
|
protected |
Definition at line 251 of file unit_binder.h.
Referenced by ChangeValue(), GetDoubleValue(), getTextForDoubleValue(), getTextForValue(), GetValue(), onComboBox(), onKillFocus(), onUnitsChanged(), SetDataType(), SetDoubleValue(), SetUnits(), SetValue(), and UNIT_BINDER().
|
protected |
Definition at line 254 of file unit_binder.h.
Referenced by delayedFocusHandler(), and Validate().
|
protected |
Definition at line 256 of file unit_binder.h.
Referenced by ChangeValue(), GetDoubleValue(), GetValue(), onKillFocus(), onSetFocus(), SetUnits(), and SetValue().
|
protected |
Definition at line 248 of file unit_binder.h.
Referenced by GetDoubleValue(), getTextForDoubleValue(), getTextForValue(), GetValue(), onComboBox(), onUnitsChanged(), SetDoubleValue(), setPrecision(), SetValue(), and Validate().
|
protected |
Definition at line 243 of file unit_binder.h.
Referenced by Enable(), SetLabel(), Show(), and Validate().
|
protected |
Definition at line 258 of file unit_binder.h.
Referenced by GetDoubleValue(), GetValue(), init(), onKillFocus(), onSetFocus(), and RequireEval().
|
protected |
Indicates "-0" should be displayed for 0.
Definition at line 250 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 266 of file unit_binder.h.
Referenced by GetDoubleValue(), getTextForDoubleValue(), getTextForValue(), GetValue(), SetDoubleValue(), and SetValue().
|
protected |
0 to 6
Definition at line 252 of file unit_binder.h.
Referenced by setPrecision(), and SetPrecision().
|
protected |
Definition at line 261 of file unit_binder.h.
Referenced by init(), onKillFocus(), and onSetFocus().
|
protected |
Selection start and end of the original text.
Definition at line 260 of file unit_binder.h.
Referenced by init(), onKillFocus(), and onSetFocus().
|
protected |
Can be nullptr.
Currently used units.
Definition at line 245 of file unit_binder.h.
Referenced by ChangeValue(), Enable(), SetDataType(), SetUnits(), SetValue(), Show(), and UNIT_BINDER().
|
protected |
Definition at line 249 of file unit_binder.h.
Referenced by ChangeValue(), GetDoubleValue(), getTextForDoubleValue(), getTextForValue(), GetValue(), init(), onComboBox(), onKillFocus(), onUnitsChanged(), SetDataType(), SetDoubleValue(), setPrecision(), SetUnits(), SetValue(), UNIT_BINDER(), and Validate().
|
protected |
Units label should be included in value text.
Definition at line 263 of file unit_binder.h.
Referenced by ChangeValue(), onKillFocus(), PROPERTY_EDITOR_UNIT_BINDER::PROPERTY_EDITOR_UNIT_BINDER(), and SetValue().
|
protected |
Definition at line 244 of file unit_binder.h.
Referenced by ChangeValue(), delayedFocusHandler(), Enable(), GetDoubleValue(), GetValue(), IsIndeterminate(), IsNull(), onClick(), onComboBox(), onKillFocus(), onSetFocus(), onUnitsChanged(), PROPERTY_EDITOR_UNIT_BINDER::SetControl(), SetDoubleOptionsList(), SetOptionsList(), SetValue(), Show(), UNIT_BINDER(), Validate(), and ~UNIT_BINDER().