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

#include <sim_property.h>

Inheritance diagram for SIM_ENUM_PROPERTY:
SIM_PROPERTY

Public Member Functions

 SIM_ENUM_PROPERTY (const wxString &aLabel, const wxString &aName, SIM_MODEL &aModel, int aParamIndex, const wxArrayString &aValues)
 
bool IntToValue (wxVariant &aVariant, int aNumber, int aArgFlags=0) const override
 
void Disable ()
 
const SIM_MODEL::PARAMGetParam () const
 

Protected Attributes

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 112 of file sim_property.h.

Constructor & Destructor Documentation

◆ SIM_ENUM_PROPERTY()

SIM_ENUM_PROPERTY::SIM_ENUM_PROPERTY ( const wxString &  aLabel,
const wxString &  aName,
SIM_MODEL aModel,
int  aParamIndex,
const wxArrayString &  aValues 
)

Member Function Documentation

◆ 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().

◆ GetParam()

◆ IntToValue()

bool SIM_ENUM_PROPERTY::IntToValue ( wxVariant &  aVariant,
int  aNumber,
int  aArgFlags = 0 
) const
override

Definition at line 243 of file sim_property.cpp.

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 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

int SIM_PROPERTY::m_paramIndex
protectedinherited

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