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 <pcb_calculator_utils.h>
#include <transline/transline.h>

Go to the source code of this file.

Macros

#define MSG_CNT_MAX   10
 

Functions

double DoubleFromString (const wxString &TextValue)
 
PANEL_TRANSLINE * getTranslinePanel ()
 
void SetPropertyInDialog (enum PRMS_ID aPrmId, double value)
 
void SetPropertyBgColorInDialog (enum PRMS_ID aPrmId, const KIGFX::COLOR4D *aCol)
 Set the background color of a parameter.
 
void SetResultInDialog (int line, const char *aText)
 Puts the text into the given result line.
 
void SetResultInDialog (int aLineNumber, double aValue, const char *aText)
 print aValue into the given result line.
 
double GetPropertyInDialog (enum PRMS_ID aPrmId)
 Return a named property value.
 
bool IsSelectedInDialog (enum PRMS_ID aPrmId)
 Return true if the param aPrmId is selected.
 

Macro Definition Documentation

◆ MSG_CNT_MAX

#define MSG_CNT_MAX   10

Function Documentation

◆ DoubleFromString()

◆ GetPropertyInDialog()

double GetPropertyInDialog ( enum PRMS_ID aPrmId)

Return a named property value.

Definition at line 131 of file params_read_write.cpp.

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

Referenced by TRANSLINE::getProperty().

◆ getTranslinePanel()

◆ IsSelectedInDialog()

bool IsSelectedInDialog ( enum PRMS_ID aPrmId)

Return true if the param aPrmId is selected.

Has meaning only for params that have a radio button.

Definition at line 139 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 )

Set the background color of a parameter.

Parameters
aPrmIdis parameter ID to set.
aColis the new color.

Definition at line 102 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 96 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 )

print aValue into the given result line.

Print aValue into the given result line.

Definition at line 120 of file params_read_write.cpp.

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

◆ SetResultInDialog() [2/2]

void SetResultInDialog ( int line,
const char * aText )

Puts the text into the given result line.

Put the text into the given result line.

Definition at line 110 of file params_read_write.cpp.

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

Referenced by TRANSLINE::setResult(), and TRANSLINE::setResult().