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 
)

Definition at line 84 of file sim_property.cpp.

References SIM_PROPERTY::GetParam().

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 SIM_PROPERTY::m_disabled.

Referenced by DIALOG_SIM_MODEL< T >::~DIALOG_SIM_MODEL().

◆ DoGetValidator()

wxValidator * SIM_STRING_PROPERTY::DoGetValidator ( ) const
override

Definition at line 173 of file sim_property.cpp.

◆ GetParam()

◆ 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 SIM_PROPERTY::Disable(), SIM_BOOL_PROPERTY::OnSetValue(), and StringToValue().

◆ m_eval

NUMERIC_EVALUATOR SIM_PROPERTY::m_eval
mutableprotectedinherited

Definition at line 67 of file sim_property.h.

Referenced by OnEvent(), and StringToValue().

◆ m_model

SIM_MODEL& SIM_PROPERTY::m_model
protectedinherited

◆ m_needsEval

bool SIM_PROPERTY::m_needsEval
protectedinherited

Definition at line 66 of file sim_property.h.

Referenced by OnEvent(), and StringToValue().

◆ m_paramIndex

int SIM_PROPERTY::m_paramIndex
protectedinherited

◆ m_valueType

SIM_VALUE::TYPE SIM_STRING_PROPERTY::m_valueType
protected

Definition at line 108 of file sim_property.h.

Referenced by allowEval().


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