KiCad PCB EDA Suite
Loading...
Searching...
No Matches
net_settings.cpp File Reference
#include <algorithm>
#include <limits>
#include <json_common.h>
#include <project/net_settings.h>
#include <settings/parameters.h>
#include <settings/settings_manager.h>
#include <string_utils.h>
#include <base_units.h>
#include <unordered_set>

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 std::optional< int > getInSchUnits (const nlohmann::json &aObj, const std::string &aKey, std::optional< int > aDefault=std::optional< int >())
 
static bool isSuperSubOverbar (wxChar c)
 

Variables

const int netSettingsSchemaVersion = 5
 

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 43 of file net_settings.cpp.

References pcbIUScale.

Referenced by NET_SETTINGS::NET_SETTINGS().

◆ getInSchUnits()

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

Definition at line 53 of file net_settings.cpp.

References schIUScale.

Referenced by NET_SETTINGS::NET_SETTINGS().

◆ isSuperSubOverbar()

static bool isSuperSubOverbar ( wxChar c)
static

Variable Documentation

◆ netSettingsSchemaVersion

const int netSettingsSchemaVersion = 5

Definition at line 40 of file net_settings.cpp.

Referenced by NET_SETTINGS::NET_SETTINGS().