KiCad PCB EDA Suite
|
A class to handle one parameter of transline. More...
#include <transline_ident.h>
Public Member Functions | |
TRANSLINE_PRM (PRM_TYPE aType, PRMS_ID aId, const char *aKeywordCfg="", const wxString &aDlgLabel=wxEmptyString, const wxString &aToolTip=wxEmptyString, double aValue=0.0, bool aConvUnit=false) | |
double | ToUserUnit () |
double | FromUserUnit () |
Public Attributes | |
PRM_TYPE | m_Type |
PRMS_ID | m_Id |
std::string | m_KeyWord |
wxString | m_DlgLabel |
wxString | m_ToolTip |
double | m_Value |
double | m_DefaultValue |
double | m_NormalizedValue |
bool | m_ConvUnit |
void * | m_ValueCtrl |
void * | m_UnitCtrl |
int | m_UnitSelection |
A class to handle one parameter of transline.
Definition at line 62 of file transline_ident.h.
TRANSLINE_PRM::TRANSLINE_PRM | ( | PRM_TYPE | aType, |
PRMS_ID | aId, | ||
const char * | aKeywordCfg = "" , |
||
const wxString & | aDlgLabel = wxEmptyString , |
||
const wxString & | aToolTip = wxEmptyString , |
||
double | aValue = 0.0 , |
||
bool | aConvUnit = false |
||
) |
aKeywordCfg | is the keyword used in config to identify the parameter only ASCII7 keyword is valid. |
aDlgLabel | is a I18n string used to identify the parameter in dialog. usually aDlgLabel is same as aKeywordCfg, but translatable. |
Definition at line 45 of file transline_ident.cpp.
References m_ConvUnit, m_DefaultValue, m_DlgLabel, m_Id, m_KeyWord, m_NormalizedValue, m_ToolTip, m_Type, m_UnitCtrl, m_UnitSelection, m_Value, and m_ValueCtrl.
double TRANSLINE_PRM::FromUserUnit | ( | ) |
Definition at line 73 of file transline_ident.cpp.
References m_UnitCtrl.
double TRANSLINE_PRM::ToUserUnit | ( | ) |
Definition at line 64 of file transline_ident.cpp.
References m_ConvUnit, and m_UnitCtrl.
Referenced by PANEL_TRANSLINE::SetPrmValue().
bool TRANSLINE_PRM::m_ConvUnit |
Definition at line 87 of file transline_ident.h.
Referenced by ToUserUnit(), TRANSLINE_PRM(), and PANEL_TRANSLINE::TranslineTypeSelection().
double TRANSLINE_PRM::m_DefaultValue |
Definition at line 85 of file transline_ident.h.
Referenced by PANEL_TRANSLINE::OnTransLineResetButtonClick(), and TRANSLINE_PRM().
wxString TRANSLINE_PRM::m_DlgLabel |
Definition at line 82 of file transline_ident.h.
Referenced by TRANSLINE_PRM(), and PANEL_TRANSLINE::TranslineTypeSelection().
PRMS_ID TRANSLINE_PRM::m_Id |
Definition at line 80 of file transline_ident.h.
Referenced by PANEL_TRANSLINE::GetPrmValue(), PANEL_TRANSLINE::SetPrmBgColor(), PANEL_TRANSLINE::SetPrmValue(), TRANSLINE_PRM(), and PANEL_TRANSLINE::TranslineTypeSelection().
std::string TRANSLINE_PRM::m_KeyWord |
Definition at line 81 of file transline_ident.h.
Referenced by TRANSLINE_PRM().
double TRANSLINE_PRM::m_NormalizedValue |
Definition at line 86 of file transline_ident.h.
Referenced by PANEL_TRANSLINE::GetPrmValue(), PANEL_TRANSLINE::SetPrmValue(), PANEL_TRANSLINE::TransfDlgDataToTranslineParams(), and TRANSLINE_PRM().
wxString TRANSLINE_PRM::m_ToolTip |
Definition at line 83 of file transline_ident.h.
Referenced by TRANSLINE_PRM(), and PANEL_TRANSLINE::TranslineTypeSelection().
PRM_TYPE TRANSLINE_PRM::m_Type |
Definition at line 79 of file transline_ident.h.
Referenced by TRANSLINE_PRM(), and PANEL_TRANSLINE::TranslineTypeSelection().
void* TRANSLINE_PRM::m_UnitCtrl |
Definition at line 89 of file transline_ident.h.
Referenced by FromUserUnit(), ToUserUnit(), PANEL_TRANSLINE::TransfDlgDataToTranslineParams(), TRANSLINE_PRM(), and PANEL_TRANSLINE::TranslineTypeSelection().
int TRANSLINE_PRM::m_UnitSelection |
Definition at line 90 of file transline_ident.h.
Referenced by PANEL_TRANSLINE::TransfDlgDataToTranslineParams(), TRANSLINE_PRM(), and PANEL_TRANSLINE::TranslineTypeSelection().
double TRANSLINE_PRM::m_Value |
Definition at line 84 of file transline_ident.h.
Referenced by PANEL_TRANSLINE::OnTransLineResetButtonClick(), PANEL_TRANSLINE::SetPrmValue(), PANEL_TRANSLINE::TransfDlgDataToTranslineParams(), TRANSLINE_PRM(), and PANEL_TRANSLINE::TranslineTypeSelection().
void* TRANSLINE_PRM::m_ValueCtrl |
Definition at line 88 of file transline_ident.h.
Referenced by PANEL_TRANSLINE::SetPrmBgColor(), PANEL_TRANSLINE::SetPrmValue(), PANEL_TRANSLINE::TransfDlgDataToTranslineParams(), TRANSLINE_PRM(), and PANEL_TRANSLINE::TranslineTypeSelection().