KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SIM_STRING_PROPERTY Class Reference

#include <sim_property.h>

Inheritance diagram for SIM_STRING_PROPERTY:
SIM_PROPERTY

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::PARAMGetParam () const
 

Protected Member Functions

bool allowEval () const
 

Protected Attributes

SIM_VALUE::TYPE m_valueType
 
SIM_MODELm_model
 
int m_paramIndex
 
bool m_needsEval
 
NUMERIC_EVALUATOR m_eval
 
bool m_disabled
 If true, never access the models.
 

Detailed Description

Definition at line 86 of file sim_property.h.

Constructor & Destructor Documentation

◆ SIM_STRING_PROPERTY()

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 )

Member Function Documentation

◆ allowEval()

bool SIM_STRING_PROPERTY::allowEval ( ) const
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().

◆ Disable()

void SIM_PROPERTY::Disable ( )
inherited

Definition at line 51 of file sim_property.cpp.

References m_disabled.

◆ DoGetValidator()

wxValidator * SIM_STRING_PROPERTY::DoGetValidator ( ) const
override

Definition at line 173 of file sim_property.cpp.

◆ GetParam()

const SIM_MODEL::PARAM & SIM_PROPERTY::GetParam ( ) const
inlineinherited

◆ OnEvent()

bool SIM_STRING_PROPERTY::OnEvent ( wxPropertyGrid * propgrid,
wxWindow * wnd_primary,
wxEvent & event )
override

◆ StringToValue()

bool SIM_STRING_PROPERTY::StringToValue ( wxVariant & aVariant,
const wxString & aText,
int aArgFlags = 0 ) const
override

Member Data Documentation

◆ m_disabled

bool SIM_PROPERTY::m_disabled
protectedinherited

If true, never access the models.

Definition at line 69 of file sim_property.h.

Referenced by Disable(), SIM_ENUM_PROPERTY::IntToValue(), SIM_BOOL_PROPERTY::OnSetValue(), SIM_PROPERTY(), and SIM_STRING_PROPERTY::StringToValue().

◆ m_eval

NUMERIC_EVALUATOR SIM_PROPERTY::m_eval
mutableprotectedinherited

◆ m_model

◆ m_needsEval

bool SIM_PROPERTY::m_needsEval
protectedinherited

◆ m_paramIndex

◆ m_valueType

SIM_VALUE::TYPE SIM_STRING_PROPERTY::m_valueType
protected

Definition at line 108 of file sim_property.h.

Referenced by allowEval(), and SIM_STRING_PROPERTY().


The documentation for this class was generated from the following files: