KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_symbol.cpp File Reference
#include <ee_collectors.h>
#include <sch_commit.h>
#include <sch_edit_frame.h>
#include <widgets/msgpanel.h>
#include <bitmaps.h>
#include <core/mirror.h>
#include <sch_shape.h>
#include <pgm_base.h>
#include <sim/sim_model.h>
#include <sim/spice_generator.h>
#include <sim/sim_lib_mgr.h>
#include <trace_helpers.h>
#include <trigo.h>
#include <refdes_utils.h>
#include <wx/log.h>
#include <settings/settings_manager.h>
#include <sch_plotter.h>
#include <string_utils.h>
#include <sch_rule_area.h>
#include <utility>
#include <validators.h>

Go to the source code of this file.

Classes

struct  SCH_SYMBOL_DESC
 

Functions

std::string toUTFTildaText (const wxString &txt)
 Convert a wxString to UTF8 and replace any control characters with a ~, where a control character is one of the first ASCII values up to ' ' 32d.
 
static LIB_SYMBOLdummy ()
 Used to draw a dummy shape when a LIB_SYMBOL is not found in library.
 

Variables

static struct SCH_SYMBOL_DESC _SCH_SYMBOL_DESC
 

Function Documentation

◆ dummy()

static LIB_SYMBOL * dummy ( )
static

Used to draw a dummy shape when a LIB_SYMBOL is not found in library.

This symbol is a 400 mils square with the text "??"

Definition at line 75 of file sch_symbol.cpp.

References LIB_SYMBOL::AddDrawItem(), LAYER_DEVICE, EDA_IU_SCALE::MilsToIU(), RECTANGLE, schIUScale, square(), and text.

◆ toUTFTildaText()

std::string toUTFTildaText ( const wxString &  txt)

Convert a wxString to UTF8 and replace any control characters with a ~, where a control character is one of the first ASCII values up to ' ' 32d.

Definition at line 56 of file sch_symbol.cpp.

References TO_UTF8.

Referenced by SCH_IO_KICAD_LEGACY::saveSymbol(), and SCH_IO_KICAD_SEXPR::saveSymbol().

Variable Documentation

◆ _SCH_SYMBOL_DESC

struct SCH_SYMBOL_DESC _SCH_SYMBOL_DESC
static