KiCad PCB EDA Suite
|
#include <sim_property.h>
Public Member Functions | |
SIM_STRING_PROPERTY (const wxString &aLabel, const wxString &aName, SIM_MODEL &aModel, int aParamIndex, SIM_VALUE::TYPE aValueType=SIM_VALUE::TYPE_FLOAT, SIM_VALUE_GRAMMAR::NOTATION aNotation=SIM_VALUE_GRAMMAR::NOTATION::SI) | |
wxValidator * | DoGetValidator () const override |
bool | StringToValue (wxVariant &aVariant, const wxString &aText, int aArgFlags=0) const override |
bool | OnEvent (wxPropertyGrid *propgrid, wxWindow *wnd_primary, wxEvent &event) override |
void | Disable () |
const SIM_MODEL::PARAM & | GetParam () const |
Protected Member Functions | |
bool | allowEval () const |
Protected Attributes | |
SIM_VALUE::TYPE | m_valueType |
SIM_MODEL & | m_model |
int | m_paramIndex |
bool | m_needsEval |
NUMERIC_EVALUATOR | m_eval |
bool | m_disabled |
If true, never access the models. | |
Definition at line 86 of file sim_property.h.
SIM_STRING_PROPERTY::SIM_STRING_PROPERTY | ( | const wxString & | aLabel, |
const wxString & | aName, | ||
SIM_MODEL & | aModel, | ||
int | aParamIndex, | ||
SIM_VALUE::TYPE | aValueType = SIM_VALUE::TYPE_FLOAT , |
||
SIM_VALUE_GRAMMAR::NOTATION | aNotation = SIM_VALUE_GRAMMAR::NOTATION::SI |
||
) |
Definition at line 84 of file sim_property.cpp.
References SIM_PROPERTY::GetParam().
|
protected |
Definition at line 179 of file sim_property.cpp.
References m_valueType, SIM_VALUE::TYPE_FLOAT, and SIM_VALUE::TYPE_INT.
Referenced by OnEvent(), and StringToValue().
|
inherited |
Definition at line 51 of file sim_property.cpp.
References SIM_PROPERTY::m_disabled.
Referenced by DIALOG_SIM_MODEL< T >::~DIALOG_SIM_MODEL().
|
override |
Definition at line 173 of file sim_property.cpp.
|
inlineinherited |
Definition at line 60 of file sim_property.h.
References SIM_MODEL::GetParam(), SIM_PROPERTY::m_model, and SIM_PROPERTY::m_paramIndex.
Referenced by SIM_ENUM_PROPERTY::SIM_ENUM_PROPERTY(), SIM_STRING_PROPERTY(), and DIALOG_SIM_MODEL< T >::updateModelParamsTab().
|
override |
Definition at line 96 of file sim_property.cpp.
References allowEval(), SIM_VALUE::Equal(), SIM_PROPERTY::m_eval, SIM_PROPERTY::m_needsEval, NUMERIC_EVALUATOR::OriginalText(), NUMERIC_EVALUATOR::Process(), NUMERIC_EVALUATOR::Result(), strValue(), and SIM_VALUE::ToDouble().
|
override |
Definition at line 186 of file sim_property.cpp.
References allowEval(), SIM_VALUE::Equal(), SIM_PROPERTY::m_disabled, SIM_PROPERTY::m_eval, SIM_PROPERTY::m_model, SIM_PROPERTY::m_needsEval, SIM_PROPERTY::m_paramIndex, SIM_VALUE::Normalize(), NUMERIC_EVALUATOR::Process(), NUMERIC_EVALUATOR::Result(), SIM_MODEL::SetParamValue(), text, and SIM_VALUE::ToDouble().
|
protectedinherited |
If true, never access the models.
Definition at line 69 of file sim_property.h.
Referenced by SIM_PROPERTY::Disable(), SIM_BOOL_PROPERTY::OnSetValue(), and StringToValue().
|
mutableprotectedinherited |
Definition at line 67 of file sim_property.h.
Referenced by OnEvent(), and StringToValue().
|
protectedinherited |
Definition at line 63 of file sim_property.h.
Referenced by SIM_PROPERTY::GetParam(), SIM_BOOL_PROPERTY::OnSetValue(), SIM_BOOL_PROPERTY::SIM_BOOL_PROPERTY(), and StringToValue().
|
protectedinherited |
Definition at line 66 of file sim_property.h.
Referenced by OnEvent(), and StringToValue().
|
protectedinherited |
Definition at line 64 of file sim_property.h.
Referenced by SIM_PROPERTY::GetParam(), SIM_BOOL_PROPERTY::OnSetValue(), SIM_BOOL_PROPERTY::SIM_BOOL_PROPERTY(), and StringToValue().
|
protected |
Definition at line 108 of file sim_property.h.
Referenced by allowEval().