KiCad PCB EDA Suite
Loading...
Searching...
No Matches
params_read_write.cpp File Reference
#include <wx/app.h>
#include <wx/colour.h>
#include <wx/msgdlg.h>
#include <calculator_panels/panel_transline.h>
#include <pcb_calculator_frame.h>
#include <transline/transline.h>

Go to the source code of this file.

Macros

#define MSG_CNT_MAX   8
 

Functions

double DoubleFromString (const wxString &TextValue)
 
PANEL_TRANSLINEgetTranslinePanel ()
 
void SetPropertyInDialog (enum PRMS_ID aPrmId, double value)
 
void SetPropertyBgColorInDialog (enum PRMS_ID aPrmId, const KIGFX::COLOR4D *aCol)
 Function SetPropertyBgColorInDialog Set the background color of a parameter.
 
void SetResultInDialog (int line, const char *aText)
 
void SetResultInDialog (int aLineNumber, double aValue, const char *aText)
 
double GetPropertyInDialog (enum PRMS_ID aPrmId)
 
bool IsSelectedInDialog (enum PRMS_ID aPrmId)
 

Macro Definition Documentation

◆ MSG_CNT_MAX

#define MSG_CNT_MAX   8

Function Documentation

◆ DoubleFromString()

◆ GetPropertyInDialog()

double GetPropertyInDialog ( enum PRMS_ID  aPrmId)

Definition at line 123 of file params_read_write.cpp.

References PANEL_TRANSLINE::GetPrmValue(), and getTranslinePanel().

Referenced by TRANSLINE::getProperty().

◆ getTranslinePanel()

◆ IsSelectedInDialog()

bool IsSelectedInDialog ( enum PRMS_ID  aPrmId)

Definition at line 130 of file params_read_write.cpp.

References getTranslinePanel(), and PANEL_TRANSLINE::IsPrmSelected().

Referenced by TRANSLINE::isSelected().

◆ SetPropertyBgColorInDialog()

void SetPropertyBgColorInDialog ( enum PRMS_ID  aPrmId,
const KIGFX::COLOR4D aCol 
)

Function SetPropertyBgColorInDialog Set the background color of a parameter.

Parameters
aPrmId= param id to set
aCol= new color

Definition at line 98 of file params_read_write.cpp.

References getTranslinePanel(), and PANEL_TRANSLINE::SetPrmBgColor().

Referenced by TRANSLINE::setErrorLevel().

◆ SetPropertyInDialog()

void SetPropertyInDialog ( enum PRMS_ID  aPrmId,
double  value 
)

Definition at line 93 of file params_read_write.cpp.

References getTranslinePanel(), and PANEL_TRANSLINE::SetPrmValue().

Referenced by TRANSLINE::setProperty().

◆ SetResultInDialog() [1/2]

void SetResultInDialog ( int  aLineNumber,
double  aValue,
const char *  aText 
)

Definition at line 113 of file params_read_write.cpp.

References getTranslinePanel(), and PANEL_TRANSLINE::SetResult().

◆ SetResultInDialog() [2/2]

void SetResultInDialog ( int  line,
const char *  aText 
)

Definition at line 105 of file params_read_write.cpp.

References getTranslinePanel(), and PANEL_TRANSLINE::SetResult().

Referenced by TRANSLINE::setResult().