KiCad PCB EDA Suite
Loading...
Searching...
No Matches
net_settings.cpp File Reference
#include <nlohmann/json.hpp>
#include <project/net_settings.h>
#include <settings/parameters.h>
#include <settings/settings_manager.h>
#include <string_utils.h>
#include <base_units.h>

Go to the source code of this file.

Functions

static std::optional< int > getInPcbUnits (const nlohmann::json &aObj, const std::string &aKey, std::optional< int > aDefault=std::optional< int >())
 
static int getInSchUnits (const nlohmann::json &aObj, const std::string &aKey, int aDefault)
 
static bool isSuperSubOverbar (wxChar c)
 

Variables

const int netSettingsSchemaVersion = 3
 

Function Documentation

◆ getInPcbUnits()

static std::optional< int > getInPcbUnits ( const nlohmann::json &  aObj,
const std::string &  aKey,
std::optional< int >  aDefault = std::optional<int>() 
)
static

Definition at line 37 of file net_settings.cpp.

References EDA_IU_SCALE::mmToIU(), and pcbIUScale.

Referenced by NET_SETTINGS::NET_SETTINGS().

◆ getInSchUnits()

static int getInSchUnits ( const nlohmann::json &  aObj,
const std::string &  aKey,
int  aDefault 
)
static

Definition at line 47 of file net_settings.cpp.

References EDA_IU_SCALE::MilsToIU(), and schIUScale.

Referenced by NET_SETTINGS::NET_SETTINGS().

◆ isSuperSubOverbar()

static bool isSuperSubOverbar ( wxChar  c)
static

Variable Documentation

◆ netSettingsSchemaVersion

const int netSettingsSchemaVersion = 3

Definition at line 34 of file net_settings.cpp.