KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_setup_formatting.cpp File Reference
#include <sch_edit_frame.h>
#include <sch_painter.h>
#include <kiface_base.h>
#include <panel_setup_formatting.h>
#include <sch_junction.h>
#include <schematic.h>
#include <schematic_settings.h>
#include <project/project_file.h>
#include <project/net_settings.h>

Go to the source code of this file.

Macros

#define SET_VALUE(ctrl, units, value)
 
#define GET_VALUE(units, str)
 
#define SET_VALUE(ctrl, units, value)
 

Macro Definition Documentation

◆ GET_VALUE

#define GET_VALUE ( units,
str )
Value:
constexpr EDA_IU_SCALE unityScale
Definition base_units.h:115
KICOMMON_API double DoubleValueFromString(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits, const wxString &aTextValue, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE)
Convert aTextValue to a double.

Referenced by PANEL_SETUP_FORMATTING::TransferDataFromWindow().

◆ SET_VALUE [1/2]

#define SET_VALUE ( ctrl,
units,
value )
Value:
ctrl->SetValue( EDA_UNIT_UTILS::UI::StringFromValue( unityScale, units, value ) )
KICOMMON_API wxString StringFromValue(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=false, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE)
Return the string from aValue according to aUnits (inch, mm ...) for display.

Referenced by PANEL_SETUP_FORMATTING::ImportSettingsFrom(), and PANEL_SETUP_FORMATTING::TransferDataToWindow().

◆ SET_VALUE [2/2]

#define SET_VALUE ( ctrl,
units,
value )
Value:
ctrl->SetValue( EDA_UNIT_UTILS::UI::StringFromValue( unityScale, units, value ) )