KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_symbol.cpp File Reference
#include <sch_edit_frame.h>
#include <widgets/msgpanel.h>
#include <bitmaps.h>
#include <core/mirror.h>
#include <lib_pin.h>
#include <lib_text.h>
#include <lib_shape.h>
#include <pgm_base.h>
#include <sch_symbol.h>
#include <sch_sheet_path.h>
#include <schematic.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 <utility>

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. More...
 
static LIB_SYMBOLdummy ()
 Used to draw a dummy shape when a LIB_SYMBOL is not found in library. More...
 

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 76 of file sch_symbol.cpp.

References LIB_SYMBOL::AddDrawItem(), 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 57 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