KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_symbol.h File Reference
#include <eda_item.h>
#include <core/typeinfo.h>
#include <layer_ids.h>
#include <lib_id.h>
#include <widgets/msgpanel.h>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include <wx/arrstr.h>
#include <wx/chartype.h>
#include <wx/fdrepdlg.h>
#include <wx/gdicmn.h>
#include <wx/string.h>
#include <schematic.h>
#include <sch_field.h>
#include <sch_item.h>
#include <sch_pin.h>
#include <sch_sheet_path.h>
#include <symbol_lib_table.h>
#include <transform.h>

Go to the source code of this file.

Classes

class  SCH_SYMBOL
 Schematic symbol object. More...
 

Typedefs

typedef std::vector< SCH_FIELDSCH_FIELDS
 A container for several SCH_FIELD items. More...
 
typedef std::weak_ptr< LIB_SYMBOLPART_REF
 

Enumerations

enum  SYMBOL_ORIENTATION_T {
  SYM_NORMAL , SYM_ROTATE_CLOCKWISE , SYM_ROTATE_COUNTERCLOCKWISE , SYM_ORIENT_0 ,
  SYM_ORIENT_90 , SYM_ORIENT_180 , SYM_ORIENT_270 , SYM_MIRROR_X = 0x100 ,
  SYM_MIRROR_Y = 0x200
}
 enum used in RotationMiroir() More...
 
enum  SYMBOL_ORIENTATION_PROP { SYMBOL_ANGLE_0 = SYMBOL_ORIENTATION_T::SYM_ORIENT_0 , SYMBOL_ANGLE_90 = SYMBOL_ORIENTATION_T::SYM_ORIENT_90 , SYMBOL_ANGLE_180 = SYMBOL_ORIENTATION_T::SYM_ORIENT_180 , SYMBOL_ANGLE_270 = SYMBOL_ORIENTATION_T::SYM_ORIENT_270 }
 

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...
 

Typedef Documentation

◆ PART_REF

typedef std::weak_ptr<LIB_SYMBOL> PART_REF

Definition at line 72 of file sch_symbol.h.

◆ SCH_FIELDS

typedef std::vector<SCH_FIELD> SCH_FIELDS

A container for several SCH_FIELD items.

Definition at line 70 of file sch_symbol.h.

Enumeration Type Documentation

◆ SYMBOL_ORIENTATION_PROP

Enumerator
SYMBOL_ANGLE_0 
SYMBOL_ANGLE_90 
SYMBOL_ANGLE_180 
SYMBOL_ANGLE_270 

Definition at line 96 of file sch_symbol.h.

◆ SYMBOL_ORIENTATION_T

enum used in RotationMiroir()

Enumerator
SYM_NORMAL 
SYM_ROTATE_CLOCKWISE 
SYM_ROTATE_COUNTERCLOCKWISE 
SYM_ORIENT_0 
SYM_ORIENT_90 
SYM_ORIENT_180 
SYM_ORIENT_270 
SYM_MIRROR_X 
SYM_MIRROR_Y 

Definition at line 80 of file sch_symbol.h.

Function Documentation

◆ 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().