KiCad PCB EDA Suite
|
#include <cadstar_sch_archive_loader.h>
Public Types | |
enum class | TERMINAL_SHAPE_TYPE { ANNULUS , BOX , BULLET , CIRCLE , CROSS , DIAMOND , FINGER , OCTAGON , PLUS , POINTER , RECTANGLE , ROUNDED_RECT , SQUARE , STAR , TRIANGLE , UNDEFINED } |
typedef wxString | TERMINALCODE_ID |
typedef wxString | SYMBOL_ID |
typedef wxString | BUS_ID |
typedef wxString | BLOCK_ID |
typedef wxString | SHEET_NAME |
enum class | TEXT_FIELD_NAME { DESIGN_TITLE , SHORT_JOBNAME , LONG_JOBNAME , NUM_OF_SHEETS , SHEET_NUMBER , SHEET_NAME , VARIANT_NAME , VARIANT_DESCRIPTION , REG_USER , COMPANY_NAME , CURRENT_USER , DATE , TIME , MACHINE_NAME , FROM_FILE , DISTANCE , UNITS_SHORT , UNITS_ABBREV , UNITS_FULL , HYPERLINK , NONE } |
These are special fields in text objects enclosed between the tokens '<@' and '>' such as <@[FIELD_NAME][FIELD_VALUE]>. More... | |
enum class | RESOLUTION { HUNDREDTH_MICRON } |
enum class | LINESTYLE { SOLID , DASH , DASHDOT , DASHDOTDOT , DOT } |
enum class | VERTEX_TYPE { POINT , CLOCKWISE_ARC , CLOCKWISE_SEMICIRCLE , ANTICLOCKWISE_ARC , ANTICLOCKWISE_SEMICIRCLE } |
enum class | SHAPE_TYPE { OPENSHAPE , OUTLINE , SOLID , HATCHED } |
enum class | UNITS { DESIGN , THOU , INCH , MICROMETRE , MM , CENTIMETER , METER } |
enum class | ANGUNITS { DEGREES , RADIANS } |
enum class | GRID_TYPE { FRACTIONALGRID , STEPGRID } |
enum class | ALIGNMENT { NO_ALIGNMENT , TOPLEFT , TOPCENTER , TOPRIGHT , CENTERLEFT , CENTERCENTER , CENTERRIGHT , BOTTOMLEFT , BOTTOMCENTER , BOTTOMRIGHT } |
From CADSTAR Help: "Text Alignment enables you to define the position of an alignment origin for all text items in CADSTAR. More... | |
enum class | JUSTIFICATION { LEFT , CENTER , RIGHT } |
From CADSTAR Help: "Multi Line Text can also be justified as Left, Centre or Right. More... | |
enum class | READABILITY { BOTTOM_TO_TOP , TOP_TO_BOTTOM } |
Sets the readability direction of text. More... | |
enum class | ATTROWNER { ALL_ITEMS , AREA , BOARD , COMPONENT , CONNECTION , COPPER , DOCSYMBOL , FIGURE , NET , NETCLASS , PART , PART_DEFINITION , PIN , SIGNALREF , SYMBOL , SYMDEF , TEMPLATE , TESTPOINT } |
enum class | ATTRUSAGE { BOTH , COMPONENT , PART_DEFINITION , PART_LIBRARY , SYMBOL , UNDEFINED } |
enum class | SWAP_RULE { NO_SWAP , USE_SWAP_LAYER , BOTH } |
Corresponds to "Display when" Item property. More... | |
typedef wxString | LINECODE_ID |
typedef wxString | HATCHCODE_ID |
typedef wxString | ROUTECODE_ID |
typedef wxString | NETCLASS_ID |
typedef wxString | SPACING_CLASS_ID |
typedef wxString | TEXTCODE_ID |
typedef wxString | LAYER_ID |
ID of a Sheet (if schematic) or board Layer (if PCB) More... | |
typedef wxString | VARIANT_ID |
typedef wxString | ATTRIBUTE_ID |
typedef wxString | SYMDEF_ID |
typedef wxString | PART_ID |
typedef wxString | GATE_ID |
typedef long | TERMINAL_ID |
Terminal is the pin identifier in the schematic. More... | |
typedef long | PART_DEFINITION_PIN_ID |
Pin identifier in the part definition. More... | |
typedef long | PART_PIN_ID |
Pin identifier in the part. More... | |
typedef wxString | TEXT_ID |
typedef wxString | FIGURE_ID |
typedef wxString | GROUP_ID |
typedef wxString | REUSEBLOCK_ID |
typedef wxString | NET_ID |
typedef wxString | NETELEMENT_ID |
typedef wxString | DOCUMENTATION_SYMBOL_ID |
typedef wxString | COLOR_ID |
Public Member Functions | |
CADSTAR_SCH_ARCHIVE_LOADER (wxString aFilename, REPORTER *aReporter, PROGRESS_REPORTER *aProgressReporter) | |
~CADSTAR_SCH_ARCHIVE_LOADER () | |
void | Load (SCHEMATIC *aSchematic, SCH_SHEET *aRootSheet, SCH_PLUGIN::SCH_PLUGIN_RELEASER *aSchPlugin, const wxFileName &aLibraryFileName) |
Loads a CADSTAR PCB Archive file into the KiCad BOARD object given. More... | |
void | Parse () |
Parses the file. More... | |
Static Public Member Functions | |
static TERMINAL_SHAPE_TYPE | ParseTermShapeType (const wxString &aShapeStr) |
static wxString | ParseTextFields (const wxString &aTextString, PARSER_CONTEXT *aParserContext) |
Replaces CADSTAR fields for the equivalent in KiCad and stores the field values in aParserContext. More... | |
static UNITS | ParseUnits (XNODE *aNode) |
static ANGUNITS | ParseAngunits (XNODE *aNode) |
static ALIGNMENT | ParseAlignment (XNODE *aNode) |
static JUSTIFICATION | ParseJustification (XNODE *aNode) |
static READABILITY | ParseReadability (XNODE *aNode) |
static SWAP_RULE | ParseSwapRule (XNODE *aNode) |
static void | InsertAttributeAtEnd (XNODE *aNode, wxString aValue) |
static XNODE * | LoadArchiveFile (const wxString &aFileName, const wxString &aFileTypeIdentifier, PROGRESS_REPORTER *aProgressReporter=nullptr) |
Reads a CADSTAR Archive file (S-parameter format) More... | |
static bool | IsValidAttribute (wxXmlAttribute *aAttribute) |
static wxString | GetXmlAttributeIDString (XNODE *aNode, unsigned int aID, bool aIsRequired=true) |
static long | GetXmlAttributeIDLong (XNODE *aNode, unsigned int aID, bool aIsRequired=true) |
static void | CheckNoChildNodes (XNODE *aNode) |
static void | CheckNoNextNodes (XNODE *aNode) |
static void | ParseChildEValue (XNODE *aNode, PARSER_CONTEXT *aContext, EVALUE &aValueToParse) |
static std::vector< POINT > | ParseAllChildPoints (XNODE *aNode, PARSER_CONTEXT *aContext, bool aTestAllChildNodes=false, int aExpectedNumPoints=UNDEFINED_VALUE) |
if no children are present, it just returns an empty vector (without throwing an exception) More... | |
static std::vector< VERTEX > | ParseAllChildVertices (XNODE *aNode, PARSER_CONTEXT *aContext, bool aTestAllChildNodes=false) |
if no children are present, it just returns an empty vector (without throwing an exception) More... | |
static std::vector< CUTOUT > | ParseAllChildCutouts (XNODE *aNode, PARSER_CONTEXT *aContext, bool aTestAllChildNodes=false) |
if no children are present, it just returns an empty vector (without throwing an exception) More... | |
static long | GetNumberOfChildNodes (XNODE *aNode) |
static long | GetNumberOfStepsForReporting (XNODE *aRootNode, std::vector< wxString > aSubNodeChildrenToCount) |
static wxString | HandleTextOverbar (wxString aCadstarString) |
Convert a string with CADSTAR overbar characters to equivalent in KiCad. More... | |
static void | FixTextPositionNoAlignment (EDA_TEXT *aKiCadTextItem) |
Corrects the position of a text element that had NO_ALIGNMENT in CADSTAR. More... | |
static wxString | generateLibName (const wxString &aRefName, const wxString &aAlternateName) |
Public Attributes | |
const int | SMALL_LABEL_SIZE = KiROUND( (double) SCH_IU_PER_MM * 0.4 ) |
wxString | Filename |
HEADER | Header |
ASSIGNMENTS_SCM | Assignments |
LIBRARY_SCM | Library |
PARTS | Parts |
SHEETS | Sheets |
CADSTAR_SCHEMATIC | Schematic |
ATTRCOLORS | AttrColors |
PARTNAMECOL | SymbolPartNameColor |
int | KiCadUnitDivider |
Use this value to convert units in this CSA file to KiCad units. More... | |
Static Public Attributes | |
static const long | UNDEFINED_VALUE = -1 |
static const double | TXT_HEIGHT_RATIO = ( 24.0 - 5.0 ) / 24.0 |
CADSTAR fonts are drawn on a 24x24 integer matrix, where the each axis goes from 0 to 24. More... | |
static const std::map< TEXT_FIELD_NAME, wxString > | CADSTAR_TO_KICAD_FIELDS |
Map between CADSTAR fields and KiCad text variables. More... | |
static const long | FONT_NORMAL = 400 |
static const long | FONT_BOLD = 700 |
Protected Member Functions | |
void | checkPoint () |
Updates m_progressReporter or throws if user cancelled. More... | |
Protected Attributes | |
PARSER_CONTEXT | m_context |
PROGRESS_REPORTER * | m_progressReporter |
Private Types | |
typedef std::pair< BLOCK_ID, TERMINAL_ID > | BLOCK_PIN_ID |
typedef std::pair< PART_ID, GATE_ID > | PART_GATE_ID |
typedef std::map< TERMINAL_ID, wxString > | TERMINAL_TO_PINNUM_MAP |
Map between a terminal ID in a symbol definition to the pin number that should be imported into KiCad. More... | |
Private Member Functions | |
void | loadSheets () |
void | loadHierarchicalSheetPins () |
void | loadPartsLibrary () |
void | loadSchematicSymbolInstances () |
void | loadBusses () |
void | loadNets () |
void | loadFigures () |
void | loadTexts () |
void | loadDocumentationSymbols () |
void | loadTextVariables () |
void | loadSheetAndChildSheets (LAYER_ID aCadstarSheetID, const VECTOR2I &aPosition, VECTOR2I aSheetSize, const SCH_SHEET_PATH &aParentSheet) |
void | loadChildSheets (LAYER_ID aCadstarSheetID, const SCH_SHEET_PATH &aSheet) |
std::vector< LAYER_ID > | findOrphanSheets () |
int | getSheetNumber (LAYER_ID aCadstarSheetID) |
void | loadItemOntoKiCadSheet (LAYER_ID aCadstarSheetID, SCH_ITEM *aItem) |
void | loadSymDefIntoLibrary (const SYMDEF_ID &aSymdefID, const PART *aCadstarPart, const GATE_ID &aGateID, LIB_SYMBOL *aSymbol) |
void | loadLibrarySymbolShapeVertices (const std::vector< VERTEX > &aCadstarVertices, wxPoint aSymbolOrigin, LIB_SYMBOL *aSymbol, int aGateNumber, int aLineThickness) |
void | applyToLibraryFieldAttribute (const ATTRIBUTE_LOCATION &aCadstarAttrLoc, wxPoint aSymbolOrigin, LIB_FIELD *aKiCadField) |
SCH_SYMBOL * | loadSchematicSymbol (const SYMBOL &aCadstarSymbol, const LIB_SYMBOL &aKiCadPart, EDA_ANGLE &aComponentOrientation) |
void | loadSymbolFieldAttribute (const ATTRIBUTE_LOCATION &aCadstarAttrLoc, const EDA_ANGLE &aComponentOrientation, bool aIsMirrored, SCH_FIELD *aKiCadField) |
int | getComponentOrientation (const EDA_ANGLE &aOrientAngle, EDA_ANGLE &aReturnedOrientation) |
POINT | getLocationOfNetElement (const NET_SCH &aNet, const NETELEMENT_ID &aNetElementID) |
wxString | getNetName (const NET_SCH &aNet) |
void | loadGraphicStaightSegment (const VECTOR2I &aStartPoint, const VECTOR2I &aEndPoint, const LINECODE_ID &aCadstarLineCodeID, const LAYER_ID &aCadstarSheetID, const SCH_LAYER_ID &aKiCadSchLayerID, const VECTOR2I &aMoveVector={ 0, 0 }, const EDA_ANGLE &aRotation=ANGLE_0, const double &aScalingFactor=1.0, const VECTOR2I &aTransformCentre={ 0, 0 }, const bool &aMirrorInvert=false) |
void | loadShapeVertices (const std::vector< VERTEX > &aCadstarVertices, LINECODE_ID aCadstarLineCodeID, LAYER_ID aCadstarSheetID, SCH_LAYER_ID aKiCadSchLayerID, const VECTOR2I &aMoveVector={ 0, 0 }, const EDA_ANGLE &aRotation=ANGLE_0, const double &aScalingFactor=1.0, const VECTOR2I &aTransformCentre={ 0, 0 }, const bool &aMirrorInvert=false) |
void | loadFigure (const FIGURE &aCadstarFigure, const LAYER_ID &aCadstarSheetIDOverride, SCH_LAYER_ID aKiCadSchLayerID, const VECTOR2I &aMoveVector={ 0, 0 }, const EDA_ANGLE &aRotation=ANGLE_0, const double &aScalingFactor=1.0, const VECTOR2I &aTransformCentre={ 0, 0 }, const bool &aMirrorInvert=false) |
void | applyTextSettings (EDA_TEXT *aKiCadTextItem, const TEXTCODE_ID &aCadstarTextCodeID, const ALIGNMENT &aCadstarAlignment, const JUSTIFICATION &aCadstarJustification, const long long aCadstarOrientAngle=0, bool aMirrored=false) |
SCH_TEXT * | getKiCadSchText (const TEXT &aCadstarTextElement) |
SYMDEF_ID | getSymDefFromName (const wxString &aSymdefName, const wxString &aSymDefAlternate) |
bool | isAttributeVisible (const ATTRIBUTE_ID &aCadstarAttributeID) |
int | getLineThickness (const LINECODE_ID &aCadstarLineCodeID) |
PLOT_DASH_TYPE | getLineStyle (const LINECODE_ID &aCadstarLineCodeID) |
PART | getPart (const PART_ID &aCadstarPartID) |
ROUTECODE | getRouteCode (const ROUTECODE_ID &aCadstarRouteCodeID) |
TEXTCODE | getTextCode (const TEXTCODE_ID &aCadstarTextCodeID) |
int | getTextHeightFromTextCode (const TEXTCODE_ID &aCadstarTextCodeID) |
wxString | getAttributeName (const ATTRIBUTE_ID &aCadstarAttributeID) |
PART::DEFINITION::PIN | getPartDefinitionPin (const PART &aCadstarPart, const GATE_ID &aGateID, const TERMINAL_ID &aTerminalID) |
ELECTRICAL_PINTYPE | getKiCadPinType (const PART::PIN_TYPE &aPinType) |
int | getKiCadUnitNumberFromGate (const GATE_ID &aCadstarGateID) |
TEXT_SPIN_STYLE | getSpinStyle (const long long &aCadstarOrientation, bool aMirror) |
TEXT_SPIN_STYLE | getSpinStyle (const EDA_ANGLE &aOrientation) |
ALIGNMENT | mirrorX (const ALIGNMENT &aCadstarAlignment) |
ALIGNMENT | rotate180 (const ALIGNMENT &aCadstarAlignment) |
LIB_SYMBOL * | getScaledLibPart (const LIB_SYMBOL *aSymbol, long long aScalingFactorNumerator, long long aScalingFactorDenominator) |
void | fixUpLibraryPins (LIB_SYMBOL *aSymbolToFix, int aGateNumber) |
std::pair< VECTOR2I, wxSize > | getFigureExtentsKiCad (const FIGURE &aCadstarFigure) |
VECTOR2I | getKiCadPoint (const VECTOR2I &aCadstarPoint) |
wxPoint | getKiCadLibraryPoint (const wxPoint &aCadstarPoint, const wxPoint &aCadstarCentre) |
VECTOR2I | applyTransform (const VECTOR2I &aPoint, const VECTOR2I &aMoveVector={ 0, 0 }, const EDA_ANGLE &aRotation=ANGLE_0, const double &aScalingFactor=1.0, const VECTOR2I &aTransformCentre={ 0, 0 }, const bool &aMirrorInvert=false) |
int | getKiCadLength (long long aCadstarLength) |
EDA_ANGLE | getAngle (const long long &aCadstarAngle) |
long long | getCadstarAngle (const EDA_ANGLE &aAngle) |
double | getPolarRadius (const VECTOR2I &aPoint) |
Private Attributes | |
REPORTER * | m_reporter |
SCHEMATIC * | m_schematic |
SCH_SHEET * | m_rootSheet |
SCH_PLUGIN::SCH_PLUGIN_RELEASER * | m_plugin |
wxFileName | m_libraryFileName |
wxPoint | m_designCenter |
Used for calculating the required offset to apply to the Cadstar design so that it fits in KiCad canvas. More... | |
std::map< LAYER_ID, SCH_SHEET * > | m_sheetMap |
Map between Cadstar and KiCad Sheets. More... | |
std::map< BLOCK_PIN_ID, SCH_HIERLABEL * > | m_sheetPinMap |
Map between Cadstar and KiCad Sheets Pins. More... | |
std::map< PART_ID, LIB_SYMBOL * > | m_partMap |
Map between Cadstar and KiCad Parts. More... | |
std::map< PART_GATE_ID, SYMDEF_ID > | m_partSymbolsMap |
Map holding the symbols loaded so far for a particular PART_ID and GATE_ID. More... | |
std::map< PART_ID, TERMINAL_TO_PINNUM_MAP > | m_pinNumsMap |
Map of pin numbers in CADSTAR parts. More... | |
std::map< wxString, LIB_SYMBOL * > | m_powerSymLibMap |
Map of KiCad Power Symbol Library items. More... | |
std::map< SYMBOL_ID, SCH_SYMBOL * > | m_powerSymMap |
Map between Cadstar and KiCad Power Symbols. More... | |
std::map< SYMBOL_ID, SCH_GLOBALLABEL * > | m_globalLabelsMap |
Map between Cadstar and KiCad Global Labels. More... | |
std::map< BUS_ID, std::shared_ptr< BUS_ALIAS > > | m_busesMap |
Map of Cadstar and KiCad Buses. More... | |
Definition at line 52 of file cadstar_sch_archive_loader.h.
|
inherited |
Definition at line 100 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 54 of file cadstar_sch_archive_parser.h.
|
private |
Definition at line 86 of file cadstar_sch_archive_loader.h.
|
inherited |
Definition at line 53 of file cadstar_sch_archive_parser.h.
|
inherited |
Definition at line 114 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 113 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 108 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 103 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 109 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 93 of file cadstar_archive_parser.h.
|
inherited |
ID of a Sheet (if schematic) or board Layer (if PCB)
Definition at line 98 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 92 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 111 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 95 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 112 of file cadstar_archive_parser.h.
|
inherited |
Pin identifier in the part definition.
Definition at line 105 of file cadstar_archive_parser.h.
|
private |
Definition at line 87 of file cadstar_sch_archive_loader.h.
|
inherited |
Definition at line 102 of file cadstar_archive_parser.h.
|
inherited |
Pin identifier in the part.
Definition at line 106 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 110 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 94 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 55 of file cadstar_sch_archive_parser.h.
|
inherited |
Definition at line 96 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 52 of file cadstar_sch_archive_parser.h.
|
inherited |
Definition at line 101 of file cadstar_archive_parser.h.
|
inherited |
Terminal is the pin identifier in the schematic.
Definition at line 104 of file cadstar_archive_parser.h.
|
private |
Map between a terminal ID in a symbol definition to the pin number that should be imported into KiCad.
Definition at line 93 of file cadstar_sch_archive_loader.h.
|
inherited |
Definition at line 51 of file cadstar_sch_archive_parser.h.
|
inherited |
Definition at line 107 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 97 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 99 of file cadstar_archive_parser.h.
|
stronginherited |
From CADSTAR Help: "Text Alignment enables you to define the position of an alignment origin for all text items in CADSTAR.
The alignment origin is a point on or within the text boundary and defines how the text is displayed.
For example, with an alignment of bottom-right the origin will be positioned at the bottom right of the text boundary. This makes it easier to right-align several text items regardless of the length of text displayed.
Text Alignment applies to all CADSTAR text. [...]
Note: Unaligned text operates in the way CADSTAR text always has. In most cases this behaves as Bottom Left alignment, but there are a few exceptions, e.g. pin names. Also unaligned multiline text has an origin Bottom Left of the first line."
See also JUSTIFICATION
Enumerator | |
---|---|
NO_ALIGNMENT | NO_ALIGNMENT has different meaning depending on the object type. |
TOPLEFT | |
TOPCENTER | |
TOPRIGHT | |
CENTERLEFT | |
CENTERCENTER | |
CENTERRIGHT | |
BOTTOMLEFT | |
BOTTOMCENTER | |
BOTTOMRIGHT |
Definition at line 576 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
DEGREES | |
RADIANS |
Definition at line 486 of file cadstar_archive_parser.h.
|
stronginherited |
Definition at line 630 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
BOTH | From CADSTAR Help: Assigned to both Schematic symbols and PCB components, and displayed on Schematic and PCB designs. |
COMPONENT | From CADSTAR Help: Assigned to PCB components and displayed on PCB designs. |
PART_DEFINITION | From CADSTAR Help: Assigned to Parts library Definitions and displayed by the Library searcher. |
PART_LIBRARY | From CADSTAR Help: Only used by non-Cadstar applications. |
SYMBOL | From CADSTAR Help: Assigned to Schematic Symbols and displayed on Schematic Designs. |
UNDEFINED | Note: It seems that some attribute have no "ATTRUSAGE" defined. It appears that the attributes that fall under this category are the ones associated with the design itself (i.e. not inherited from the library) |
Definition at line 653 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
FRACTIONALGRID | Param1 = Units, Param2 = Divisor. The grid is equal in X and Y dimensions with a step size equal to Param1/Param2 |
STEPGRID | Param1 = X Step, Param2 = Y Step. A standard x,y grid. |
Definition at line 496 of file cadstar_archive_parser.h.
|
stronginherited |
From CADSTAR Help: "Multi Line Text can also be justified as Left, Centre or Right.
This does not affect the text alignment. Note: Justification of single line text has no effect."
This only affects multiline text
See also ALIGNMENT
Enumerator | |
---|---|
LEFT | |
CENTER | |
RIGHT |
Definition at line 602 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
SOLID | |
DASH | |
DASHDOT | |
DASHDOTDOT | |
DOT |
Definition at line 280 of file cadstar_archive_parser.h.
|
stronginherited |
Sets the readability direction of text.
From CADSTAR Help: "Horizontal text will always be displayed from left to right (i.e. never upside down). Vertical text can be set as readable from either the left or right edge of the design."
I.e. Vertical text can either be rotated 90 degrees clockwise or 90 degrees anticlockwise from horizontal. This does not impact vertical text
Enumerator | |
---|---|
BOTTOM_TO_TOP | When text is vertical, show it rotated 90 degrees anticlockwise. |
TOP_TO_BOTTOM | When text is vertical, show it rotated 90 degrees clockwise. |
Definition at line 620 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
HUNDREDTH_MICRON |
Definition at line 242 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
OPENSHAPE | Unfilled open shape. Cannot have cutouts. |
OUTLINE | Unfilled closed shape. |
SOLID | Filled closed shape (solid fill). |
HATCHED | Filled closed shape (hatch fill). |
Definition at line 450 of file cadstar_archive_parser.h.
|
stronginherited |
Corresponds to "Display when" Item property.
From CADSTAR Help: "This parameter enables you to make the visibility of a component outline/area (or an area of component copper, or a string of component text) dependent on the current mirror status of the component. For example, you may require a string of component text to be displayed only when the component is mirrored."
Enumerator | |
---|---|
NO_SWAP | Display when Unmirrored. |
USE_SWAP_LAYER | Display when Mirrored. |
BOTH | Always display (Mirrored and Unmirrored) |
Definition at line 810 of file cadstar_archive_parser.h.
|
stronginherited |
Definition at line 58 of file cadstar_sch_archive_parser.h.
|
stronginherited |
These are special fields in text objects enclosed between the tokens '<@' and '>' such as <@[FIELD_NAME][FIELD_VALUE]>.
For example: "<@DESIGN TITLEProject [email protected]>"
Definition at line 135 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
DESIGN | Inherits from design units (assumed Assignments->Technology->Units) |
THOU | |
INCH | |
MICROMETRE | |
MM | |
CENTIMETER | |
METER |
Definition at line 471 of file cadstar_archive_parser.h.
|
stronginherited |
Enumerator | |
---|---|
POINT | |
CLOCKWISE_ARC | |
CLOCKWISE_SEMICIRCLE | |
ANTICLOCKWISE_ARC | |
ANTICLOCKWISE_SEMICIRCLE |
Definition at line 416 of file cadstar_archive_parser.h.
|
inlineexplicit |
Definition at line 58 of file cadstar_sch_archive_loader.h.
References m_designCenter, m_plugin, CADSTAR_ARCHIVE_PARSER::m_progressReporter, m_reporter, m_rootSheet, and m_schematic.
|
inline |
Definition at line 72 of file cadstar_sch_archive_loader.h.
|
private |
Definition at line 2621 of file cadstar_sch_archive_loader.cpp.
References PNS::angle(), ANGLE_HORIZONTAL, ANGLE_VERTICAL, TEXT_SPIN_STYLE::BOTTOM, CADSTAR_ARCHIVE_PARSER::BOTTOMCENTER, CADSTAR_ARCHIVE_PARSER::BOTTOMLEFT, CADSTAR_ARCHIVE_PARSER::BOTTOMRIGHT, CADSTAR_ARCHIVE_PARSER::CENTERCENTER, CADSTAR_ARCHIVE_PARSER::CENTERLEFT, CADSTAR_ARCHIVE_PARSER::CENTERRIGHT, CADSTAR_ARCHIVE_PARSER::FixTextPositionNoAlignment(), CADSTAR_ARCHIVE_PARSER::TEXTCODE::Font, CADSTAR_ARCHIVE_PARSER::FONT_BOLD, getAngle(), EDA_RECT::GetBottom(), EDA_ITEM::GetBoundingBox(), getKiCadLength(), EDA_RECT::GetLeft(), EDA_RECT::GetRight(), getSpinStyle(), EDA_TEXT::GetText(), EDA_TEXT::GetTextAngle(), getTextCode(), EDA_RECT::GetTop(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_TOP, CADSTAR_ARCHIVE_PARSER::HandleTextOverbar(), CADSTAR_ARCHIVE_PARSER::TEXTCODE::Height, CADSTAR_ARCHIVE_PARSER::FONT::Italic, KI_FALLTHROUGH, KiROUND(), TEXT_SPIN_STYLE::LEFT, LIB_FIELD_T, LIB_TEXT_T, CADSTAR_ARCHIVE_PARSER::TEXTCODE::LineWidth, mirrorX(), CADSTAR_ARCHIVE_PARSER::FONT::Modifier1, CADSTAR_ARCHIVE_PARSER::NO_ALIGNMENT, TEXT_SPIN_STYLE::RIGHT, rotate180(), SCH_FIELD_T, SCH_GLOBAL_LABEL_T, SCH_HIER_LABEL_T, SCH_LABEL_T, SCH_SHEET_PIN_T, SCH_TEXT_T, EDA_TEXT::SetBold(), EDA_TEXT::SetHorizJustify(), EDA_TEXT::SetItalic(), EDA_TEXT::SetText(), EDA_TEXT::SetTextAngle(), EDA_TEXT::SetTextHeight(), EDA_TEXT::SetTextPos(), EDA_TEXT::SetTextThickness(), EDA_TEXT::SetTextWidth(), EDA_TEXT::SetVertJustify(), CADSTAR_ARCHIVE_PARSER::TOPCENTER, CADSTAR_ARCHIVE_PARSER::TOPLEFT, CADSTAR_ARCHIVE_PARSER::TOPRIGHT, CADSTAR_ARCHIVE_PARSER::TXT_HEIGHT_RATIO, EDA_ITEM::Type(), TEXT_SPIN_STYLE::UP, and CADSTAR_ARCHIVE_PARSER::TEXTCODE::Width.
Referenced by applyToLibraryFieldAttribute(), getKiCadSchText(), loadBusses(), loadChildSheets(), loadNets(), loadSchematicSymbolInstances(), loadSymbolFieldAttribute(), and loadSymDefIntoLibrary().
|
private |
Definition at line 1702 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Alignment, applyTextSettings(), getKiCadLibraryPoint(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Justification, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Mirror, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::OrientAngle, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Position, EDA_TEXT::SetTextPos(), and CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::TextCodeID.
Referenced by loadSymDefIntoLibrary().
|
private |
Definition at line 3051 of file cadstar_sch_archive_loader.cpp.
References EDA_ANGLE::IsZero(), KiROUND(), MIRROR(), RotatePoint(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by loadDocumentationSymbols(), and loadGraphicStaightSegment().
|
staticinherited |
aNode |
IO_ERROR | if a child node was found |
Definition at line 2469 of file cadstar_archive_parser.cpp.
References XNODE::GetChildren(), and THROW_UNKNOWN_NODE_IO_ERROR.
Referenced by CADSTAR_ARCHIVE_PARSER::ATTRNAME::COLUMNORDER::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRNAME::COLUMNWIDTH::Parse(), CADSTAR_ARCHIVE_PARSER::REUSEBLOCKREF::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::PIN_EQUIVALENCE::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::SWAP_GATE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYERDEFS::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPACINGCODE::REASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_COPPER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_AREA::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PAD_EXITS::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::AREA::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::PIN::Parse().
|
staticinherited |
aNode |
IO_ERROR | if a node adjacent to aNode was found |
Definition at line 2476 of file cadstar_archive_parser.cpp.
References XNODE::GetNext(), XNODE::GetParent(), and THROW_UNKNOWN_NODE_IO_ERROR.
Referenced by CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL_SHAPE::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOLVARIANT::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::CADSTAR_PAD_SHAPE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PADREASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::VIAREASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYERPAIR::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TEXTFORMAT::Parse().
|
protectedinherited |
Updates m_progressReporter or throws if user cancelled.
Definition at line 2648 of file cadstar_archive_parser.cpp.
References _, PROGRESS_REPORTER::AdvanceProgress(), PROGRESS_REPORTER::KeepRefreshing(), CADSTAR_ARCHIVE_PARSER::m_progressReporter, and THROW_IO_ERROR.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::calculateZonePriorities(), Load(), CADSTAR_PCB_ARCHIVE_LOADER::loadCoppers(), loadPartsLibrary(), CADSTAR_SCH_ARCHIVE_PARSER::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::Parse().
|
private |
Definition at line 2297 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::AssocLayerID, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Blocks, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, CADSTAR_SCH_ARCHIVE_PARSER::SHEETS::SheetOrder, CADSTAR_SCH_ARCHIVE_PARSER::Sheets, and CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Type.
Referenced by loadSheets().
|
staticinherited |
Corrects the position of a text element that had NO_ALIGNMENT in CADSTAR.
Assumes that the provided text element has been initialised with a position and orientation.
aKiCadTextItem | a Kicad item to correct |
Definition at line 2621 of file cadstar_archive_parser.cpp.
References EDA_TEXT::GetInterline(), EDA_TEXT::GetText(), EDA_TEXT::GetTextAngle(), LIB_FIELD_T, LIB_TEXT_T, EDA_TEXT::Offset(), RotatePoint(), text, EDA_ITEM::Type(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::addAttribute(), applyTextSettings(), and CADSTAR_PCB_ARCHIVE_LOADER::drawCadstarText().
|
private |
Definition at line 2899 of file cadstar_sch_archive_loader.cpp.
References PNS::angle(), ANGLE_135, ANGLE_45, MULTIVECTOR< T, FIRST_TYPE_VAL, LAST_TYPE_VAL >::begin(), SHAPE_LINE_CHAIN::CPoint(), MULTIVECTOR< T, FIRST_TYPE_VAL, LAST_TYPE_VAL >::end(), VECTOR2< T >::EuclideanNorm(), LIB_SYMBOL::GetDrawItems(), LIB_SYMBOL::GetPins(), SHAPE_LINE_CHAIN::GetPointCount(), EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetShape(), LIB_ITEM::GetUnit(), LexicographicalCompare(), LIB_SHAPE_T, SHAPE_POLY_SET::Outline(), pin, POLY, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by loadSymDefIntoLibrary().
|
inlinestaticinherited |
Definition at line 1404 of file cadstar_archive_parser.h.
Referenced by loadSymDefIntoLibrary().
|
inlineprivate |
Definition at line 258 of file cadstar_sch_archive_loader.h.
References DEGREES_T, CADSTAR_ARCHIVE_PARSER::HEADER::Format, CADSTAR_SCH_ARCHIVE_PARSER::Header, TENTHS_OF_A_DEGREE_T, and CADSTAR_ARCHIVE_PARSER::FORMAT::Version.
Referenced by applyTextSettings(), getLocationOfNetElement(), getSpinStyle(), loadDocumentationSymbols(), loadNets(), loadSchematicSymbol(), loadSchematicSymbolInstances(), and loadSymbolFieldAttribute().
|
private |
Definition at line 2461 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_ARCHIVE_PARSER::CODEDEFS::AttributeNames, and CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Codedefs.
Referenced by loadSchematicSymbolInstances(), and loadSymDefIntoLibrary().
|
inlineprivate |
Definition at line 273 of file cadstar_sch_archive_loader.h.
References EDA_ANGLE::AsDegrees(), EDA_ANGLE::AsTenthsOfADegree(), CADSTAR_ARCHIVE_PARSER::HEADER::Format, CADSTAR_SCH_ARCHIVE_PARSER::Header, KiROUND(), and CADSTAR_ARCHIVE_PARSER::FORMAT::Version.
Referenced by loadSymbolFieldAttribute().
|
private |
Definition at line 1861 of file cadstar_sch_archive_loader.cpp.
References ANGLE_0, ANGLE_135, ANGLE_180, ANGLE_270, ANGLE_45, ANGLE_90, EDA_ANGLE::Normalize180(), SYM_ORIENT_0, SYM_ORIENT_180, SYM_ORIENT_270, and SYM_ORIENT_90.
Referenced by getLocationOfNetElement(), and loadSchematicSymbol().
|
private |
Definition at line 2981 of file cadstar_sch_archive_loader.cpp.
References std::abs(), CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_ARCHIVE_PARSER::SHAPE::Cutouts, CADSTAR_ARCHIVE_PARSER::SETTINGS::DesignLimit, CADSTAR_ARCHIVE_PARSER::VERTEX::End, getKiCadPoint(), CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Settings, CADSTAR_ARCHIVE_PARSER::FIGURE::Shape, CADSTAR_ARCHIVE_PARSER::SHAPE::Vertices, CADSTAR_ARCHIVE_PARSER::LONGPOINT::x, VECTOR2< T >::x, CADSTAR_ARCHIVE_PARSER::LONGPOINT::y, and VECTOR2< T >::y.
Referenced by loadChildSheets().
|
inlineprivate |
Definition at line 245 of file cadstar_sch_archive_loader.h.
References CADSTAR_SCH_ARCHIVE_PARSER::KiCadUnitDivider, and sign().
Referenced by applyTextSettings(), getKiCadLibraryPoint(), getKiCadPoint(), getLineThickness(), getTextHeightFromTextCode(), and Load().
|
private |
Definition at line 3039 of file cadstar_sch_archive_loader.cpp.
References getKiCadLength().
Referenced by applyToLibraryFieldAttribute(), loadLibrarySymbolShapeVertices(), loadSchematicSymbolInstances(), and loadSymDefIntoLibrary().
|
private |
Definition at line 2508 of file cadstar_sch_archive_loader.cpp.
References PT_BIDI, PT_INPUT, PT_OPENCOLLECTOR, PT_OUTPUT, PT_PASSIVE, PT_POWER_IN, and PT_UNSPECIFIED.
Referenced by loadSymDefIntoLibrary().
Definition at line 3028 of file cadstar_sch_archive_loader.cpp.
References getKiCadLength(), m_designCenter, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by getFigureExtentsKiCad(), getKiCadSchText(), loadBusses(), loadChildSheets(), loadDocumentationSymbols(), loadHierarchicalSheetPins(), loadNets(), loadSchematicSymbol(), loadSchematicSymbolInstances(), loadShapeVertices(), and loadSymbolFieldAttribute().
Definition at line 2799 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::TEXT::Alignment, applyTextSettings(), getKiCadPoint(), CADSTAR_ARCHIVE_PARSER::TEXT::Justification, m_schematic, CADSTAR_ARCHIVE_PARSER::TEXT::Mirror, CADSTAR_ARCHIVE_PARSER::TEXT::OrientAngle, CADSTAR_ARCHIVE_PARSER::TEXT::Position, EDA_ITEM::SetParent(), SCH_TEXT::SetPosition(), EDA_TEXT::SetText(), CADSTAR_ARCHIVE_PARSER::TEXT::Text, and CADSTAR_ARCHIVE_PARSER::TEXT::TextCodeID.
Referenced by loadDocumentationSymbols(), and loadTexts().
|
private |
Definition at line 2527 of file cadstar_sch_archive_loader.cpp.
Referenced by loadSchematicSymbol(), and loadSymDefIntoLibrary().
|
private |
Definition at line 2420 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Codedefs, CADSTAR_ARCHIVE_PARSER::DASH, DASH, CADSTAR_ARCHIVE_PARSER::DASHDOT, DASHDOT, CADSTAR_ARCHIVE_PARSER::DASHDOTDOT, DEFAULT, CADSTAR_ARCHIVE_PARSER::DOT, DOT, CADSTAR_ARCHIVE_PARSER::CODEDEFS::LineCodes, CADSTAR_ARCHIVE_PARSER::SOLID, and SOLID.
Referenced by loadGraphicStaightSegment().
|
private |
Definition at line 2410 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Codedefs, DEFAULT_WIRE_WIDTH_MILS, getKiCadLength(), and CADSTAR_ARCHIVE_PARSER::CODEDEFS::LineCodes.
Referenced by loadBusses(), loadGraphicStaightSegment(), loadNets(), and loadSymDefIntoLibrary().
|
private |
Definition at line 1895 of file cadstar_sch_archive_loader.cpp.
References _, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Blocks, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BlockTerminals, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BusTerminals, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Danglers, Format(), getAngle(), getComponentOrientation(), getNetName(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Junctions, CADSTAR_SCH_ARCHIVE_PARSER::Library, m_reporter, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Mirror, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::OrientAngle, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Origin, REPORTER::Report(), RotatePoint(), RPT_SEVERITY_ERROR, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ScaleRatioDenominator, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ScaleRatioNumerator, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, CADSTAR_SCH_ARCHIVE_PARSER::LIBRARY_SCM::SymbolDefinitions, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Symbols, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::SymdefID, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Terminals, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by loadNets().
|
private |
Definition at line 1999 of file cadstar_sch_archive_loader.cpp.
References Format(), CADSTAR_ARCHIVE_PARSER::NET::Name, and CADSTAR_ARCHIVE_PARSER::NET::SignalNum.
Referenced by getLocationOfNetElement().
|
staticinherited |
Definition at line 2579 of file cadstar_archive_parser.cpp.
References XNODE::GetChildren(), and XNODE::GetNext().
Referenced by CADSTAR_ARCHIVE_PARSER::GetNumberOfStepsForReporting().
|
staticinherited |
Definition at line 2591 of file cadstar_archive_parser.cpp.
References XNODE::GetChildren(), XNODE::GetNext(), and CADSTAR_ARCHIVE_PARSER::GetNumberOfChildNodes().
Referenced by CADSTAR_SCH_ARCHIVE_PARSER::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::Parse().
|
private |
Definition at line 2472 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::PARTS::PartDefinitions, and CADSTAR_SCH_ARCHIVE_PARSER::Parts.
Referenced by loadSchematicSymbolInstances().
|
private |
Definition at line 2492 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::PART::Definition, and CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::Pins.
Referenced by loadSymDefIntoLibrary().
|
private |
aPoint |
Definition at line 3082 of file cadstar_sch_archive_loader.cpp.
References VECTOR2< T >::x, and VECTOR2< T >::y.
|
private |
Definition at line 2481 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Codedefs, and CADSTAR_ARCHIVE_PARSER::CODEDEFS::RouteCodes.
|
private |
Definition at line 2818 of file cadstar_sch_archive_loader.cpp.
References ARC, SHAPE_LINE_CHAIN::CPoint(), LIB_SYMBOL::GetDrawItems(), EDA_SHAPE::GetEnd(), SHAPE_LINE_CHAIN::GetPointCount(), EDA_SHAPE::GetPolyShape(), LIB_SHAPE::GetPosition(), LIB_TEXT::GetPosition(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStart(), EDA_TEXT::GetTextSize(), LIB_PIN_T, LIB_SHAPE_T, LIB_TEXT_T, SHAPE_POLY_SET::Outline(), pin, POLY, EDA_SHAPE::SetEnd(), SHAPE_LINE_CHAIN::SetPoint(), LIB_ITEM::SetPosition(), LIB_SHAPE::SetPosition(), EDA_SHAPE::SetStart(), and EDA_TEXT::SetTextSize().
Referenced by loadSchematicSymbolInstances().
|
private |
Definition at line 2322 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::SHEETS::SheetOrder, and CADSTAR_SCH_ARCHIVE_PARSER::Sheets.
Referenced by loadSheetAndChildSheets(), and loadSheets().
|
private |
Definition at line 2552 of file cadstar_sch_archive_loader.cpp.
References ANGLE_135, ANGLE_45, TEXT_SPIN_STYLE::BOTTOM, TEXT_SPIN_STYLE::LEFT, EDA_ANGLE::Normalize180(), TEXT_SPIN_STYLE::RIGHT, and TEXT_SPIN_STYLE::UP.
|
private |
Definition at line 2536 of file cadstar_sch_archive_loader.cpp.
References getAngle(), getSpinStyle(), and TEXT_SPIN_STYLE::RotateCCW().
Referenced by applyTextSettings(), getSpinStyle(), loadHierarchicalSheetPins(), loadNets(), and loadSchematicSymbolInstances().
|
private |
Definition at line 2378 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::SYMDEF::Alternate, CADSTAR_SCH_ARCHIVE_PARSER::Library, CADSTAR_ARCHIVE_PARSER::SYMDEF::ReferenceName, and CADSTAR_SCH_ARCHIVE_PARSER::LIBRARY_SCM::SymbolDefinitions.
Referenced by loadPartsLibrary().
|
private |
Definition at line 2443 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::Assignments, CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Codedefs, and CADSTAR_ARCHIVE_PARSER::CODEDEFS::TextCodes.
Referenced by applyTextSettings(), and getTextHeightFromTextCode().
|
private |
Definition at line 2453 of file cadstar_sch_archive_loader.cpp.
References getKiCadLength(), getTextCode(), CADSTAR_ARCHIVE_PARSER::TEXTCODE::Height, KiROUND(), and CADSTAR_ARCHIVE_PARSER::TXT_HEIGHT_RATIO.
Referenced by loadSymDefIntoLibrary().
|
staticinherited |
aNode | |
aID | |
aIsRequired | Prevents exception throwing if false. |
IO_ERROR | if attribute does not exist |
Definition at line 2451 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), THROW_PARSING_IO_ERROR, and CADSTAR_ARCHIVE_PARSER::UNDEFINED_VALUE.
Referenced by CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::ROUTE_VERTEX::Parse(), CADSTAR_ARCHIVE_PARSER::FORMAT::Parse(), CADSTAR_ARCHIVE_PARSER::HATCH::Parse(), CADSTAR_ARCHIVE_PARSER::FONT::Parse(), CADSTAR_ARCHIVE_PARSER::TEXTCODE::Parse(), CADSTAR_ARCHIVE_PARSER::ROUTEREASSIGN::Parse(), CADSTAR_ARCHIVE_PARSER::ROUTECODE::Parse(), CADSTAR_ARCHIVE_PARSER::POINT::Parse(), CADSTAR_ARCHIVE_PARSER::LONGPOINT::Parse(), CADSTAR_ARCHIVE_PARSER::GRID::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRNAME::COLUMNORDER::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRNAME::COLUMNWIDTH::Parse(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), CADSTAR_ARCHIVE_PARSER::REUSEBLOCK::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::PIN::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::Parse(), CADSTAR_ARCHIVE_PARSER::PART::PART_PIN::Parse(), CADSTAR_ARCHIVE_PARSER::PART::Parse(), CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL_SHAPE::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::PIN_NUM_LABEL_LOC::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::TERMATTR::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMPINNAME_LABEL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::PIN_NUM::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::SYM_TERM::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BLOCK_TERM::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPREASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPPERCODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPACINGCODE::REASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPACINGCODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::CADSTAR_PAD_SHAPE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PADCODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::VIACODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYERPAIR::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPCCLASSSPACE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::TECHNOLOGY_SECTION::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_PAD::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::ARROW::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TEXTFORMAT::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::EXTENSION_LINE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::LINE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::AREA::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PIN_ATTRIBUTE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PADEXCEPTION::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::PIN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::COPPER_TERMINAL::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::TEMPLATE::POURING::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPPER::NETREF::COPPER_TERM::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DRILL_TABLE::Parse(), CADSTAR_ARCHIVE_PARSER::TEXT::Parse(), CADSTAR_ARCHIVE_PARSER::SETTINGS::ParseSubNode(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::ParseSubNode(), CADSTAR_ARCHIVE_PARSER::SYMDEF::ParseSubNode(), and CADSTAR_ARCHIVE_PARSER::NET::ParseSubNode().
|
staticinherited |
aNode | |
aID | |
aIsRequired | Prevents exception throwing if false. |
IO_ERROR | if attribute does not exist |
Definition at line 2432 of file cadstar_archive_parser.cpp.
References THROW_MISSING_PARAMETER_IO_ERROR.
Referenced by CADSTAR_ARCHIVE_PARSER::PART::GetPinType(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), CADSTAR_ARCHIVE_PARSER::FORMAT::Parse(), CADSTAR_ARCHIVE_PARSER::TIMESTAMP::Parse(), CADSTAR_ARCHIVE_PARSER::HEADER::Parse(), CADSTAR_ARCHIVE_PARSER::VARIANT::Parse(), CADSTAR_ARCHIVE_PARSER::LINECODE::Parse(), CADSTAR_ARCHIVE_PARSER::HATCHCODE::Parse(), CADSTAR_ARCHIVE_PARSER::FONT::Parse(), CADSTAR_ARCHIVE_PARSER::TEXTCODE::Parse(), CADSTAR_ARCHIVE_PARSER::ROUTEREASSIGN::Parse(), CADSTAR_ARCHIVE_PARSER::ROUTECODE::Parse(), CADSTAR_ARCHIVE_PARSER::EVALUE::Parse(), CADSTAR_ARCHIVE_PARSER::SHAPE::Parse(), CADSTAR_ARCHIVE_PARSER::GRID::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRNAME::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::Parse(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), CADSTAR_ARCHIVE_PARSER::CADSTAR_NETCLASS::Parse(), CADSTAR_ARCHIVE_PARSER::SPCCLASSNAME::Parse(), CADSTAR_ARCHIVE_PARSER::REUSEBLOCK::Parse(), CADSTAR_ARCHIVE_PARSER::REUSEBLOCKREF::Parse(), CADSTAR_ARCHIVE_PARSER::GROUP::Parse(), CADSTAR_ARCHIVE_PARSER::FIGURE::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::PIN::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::SWAP_GROUP::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::Parse(), CADSTAR_ARCHIVE_PARSER::PART::PART_PIN::Parse(), CADSTAR_ARCHIVE_PARSER::PART::Parse(), CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::Parse(), CADSTAR_ARCHIVE_PARSER::DFLTSETTINGS::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRCOL::Parse(), CADSTAR_ARCHIVE_PARSER::PARTNAMECOL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::TERMINALCODE::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::PIN_NUM_LABEL_LOC::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SHEETS::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::COMP::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::PARTREF::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMPINNAME_LABEL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOLVARIANT::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SIGNALREFERENCELINK::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::SIGLOC::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::BUS::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::JUNCTION_SCH::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::SYM_TERM::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BUS_TERM::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BLOCK_TERM::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::DANGLER::Parse(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::CONNECTION_SCH::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::MATERIAL::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYERDEFS::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPREASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPPERCODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPACINGCODE::REASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPACINGCODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PADREASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PADCODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::VIAREASSIGN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::VIACODE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYERPAIR::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::SPCCLASSSPACE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::RULESET::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_COPPER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_AREA::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_PAD::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::ARROW::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::TEXTFORMAT::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::EXTENSION_LINE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::LINE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::CADSTAR_BOARD::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::AREA::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PADEXCEPTION::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::TRUNK::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::PIN::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::JUNCTION_PCB::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::COPPER_TERMINAL::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::ROUTE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::CONNECTION_PCB::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::TEMPLATE::POURING::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::TEMPLATE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPPER::NETREF::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COPPER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DRILL_TABLE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYOUT::Parse(), CADSTAR_ARCHIVE_PARSER::TEXT::Parse(), CADSTAR_ARCHIVE_PARSER::ParseAlignment(), CADSTAR_ARCHIVE_PARSER::ParseAngunits(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::ParseIdentifiers(), CADSTAR_ARCHIVE_PARSER::SYMDEF::ParseIdentifiers(), CADSTAR_ARCHIVE_PARSER::NET::JUNCTION::ParseIdentifiers(), CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::ParseIdentifiers(), CADSTAR_ARCHIVE_PARSER::NET::ParseIdentifiers(), CADSTAR_ARCHIVE_PARSER::ParseJustification(), CADSTAR_ARCHIVE_PARSER::ParseReadability(), CADSTAR_ARCHIVE_PARSER::NET::JUNCTION::ParseSubNode(), CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::ParseSubNode(), CADSTAR_ARCHIVE_PARSER::NET::ParseSubNode(), CADSTAR_ARCHIVE_PARSER::ParseSwapRule(), CADSTAR_PCB_ARCHIVE_PARSER::ParseTestlandSide(), and CADSTAR_ARCHIVE_PARSER::ParseUnits().
|
staticinherited |
Convert a string with CADSTAR overbar characters to equivalent in KiCad.
aCadstarString | Input string |
Definition at line 2611 of file cadstar_archive_parser.cpp.
References ConvertToNewOverbarNotation().
Referenced by applyTextSettings(), loadBusses(), loadNets(), loadSchematicSymbol(), and loadSymDefIntoLibrary().
|
staticinherited |
Definition at line 2301 of file cadstar_archive_parser.cpp.
References Format().
Referenced by CADSTAR_ARCHIVE_PARSER::LoadArchiveFile().
|
private |
Definition at line 2398 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::AttrColors, and CADSTAR_ARCHIVE_PARSER::ATTRCOLORS::AttributeColors.
Referenced by loadSchematicSymbolInstances(), and loadSymDefIntoLibrary().
|
staticinherited |
aAttribute |
Definition at line 2426 of file cadstar_archive_parser.cpp.
Referenced by CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::PIN_EQUIVALENCE::Parse(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::SWAP_GATE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYERDEFS::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_COPPER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_AREA::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PAD_EXITS::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::AREA::Parse().
void CADSTAR_SCH_ARCHIVE_LOADER::Load | ( | SCHEMATIC * | aSchematic, |
SCH_SHEET * | aRootSheet, | ||
SCH_PLUGIN::SCH_PLUGIN_RELEASER * | aSchPlugin, | ||
const wxFileName & | aLibraryFileName | ||
) |
Loads a CADSTAR PCB Archive file into the KiCad BOARD object given.
aSchematic | Schematic to add the design onto |
aRootSheet | Root sheet to add the design onto |
Definition at line 54 of file cadstar_sch_archive_loader.cpp.
References _, CADSTAR_SCH_ARCHIVE_PARSER::Assignments, EE_RTREE::begin(), PROGRESS_REPORTER::BeginPhase(), EDA_RECT::Centre(), CADSTAR_ARCHIVE_PARSER::checkPoint(), CADSTAR_ARCHIVE_PARSER::SETTINGS::DesignLimit, EE_RTREE::end(), Format(), CADSTAR_ARCHIVE_PARSER::FRACTIONALGRID, SCH_SYMBOL::GetBodyAndPinsBoundingBox(), SCH_TEXT::GetBoundingBox(), SCH_SYMBOL::GetFields(), getKiCadLength(), SCH_SCREEN::GetPageSettings(), SCH_SHEET::GetScreen(), EDA_RECT::GetSize(), EDA_TEXT::GetText(), grid, CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Grids, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Groups, SCH_SCREEN::Items(), CADSTAR_SCH_ARCHIVE_PARSER::KiCadUnitDivider, loadBusses(), loadDocumentationSymbols(), loadFigures(), loadHierarchicalSheetPins(), loadNets(), loadPartsLibrary(), loadSchematicSymbolInstances(), loadSheets(), loadTexts(), loadTextVariables(), m_designCenter, m_libraryFileName, m_plugin, CADSTAR_ARCHIVE_PARSER::m_progressReporter, m_reporter, m_rootSheet, m_schematic, m_sheetMap, EDA_RECT::Merge(), CADSTAR_ARCHIVE_PARSER::GRID::Param1, CADSTAR_ARCHIVE_PARSER::GRID::Param2, CADSTAR_SCH_ARCHIVE_PARSER::Parse(), CADSTAR_ARCHIVE_PARSER::PARTS::PartDefinitions, CADSTAR_SCH_ARCHIVE_PARSER::Parts, REPORTER::Report(), CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::ReuseBlocks, RPT_SEVERITY_WARNING, SCH_IU_PER_MM, SCH_SYMBOL_T, SCH_TEXT_T, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, PAGE_INFO::SetHeightMils(), PROGRESS_REPORTER::SetMaxProgress(), PROGRESS_REPORTER::SetNumPhases(), SCH_SCREEN::SetPageSettings(), CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Settings, PAGE_INFO::SetWidthMils(), sign(), THROW_IO_ERROR, CADSTAR_ARCHIVE_PARSER::GRID::Type, SCH_SCREEN::Update(), CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::VariantHierarchy, CADSTAR_ARCHIVE_PARSER::VARIANT_HIERARCHY::Variants, CADSTAR_ARCHIVE_PARSER::GRIDS::WorkingGrid, CADSTAR_ARCHIVE_PARSER::LONGPOINT::x, VECTOR2< T >::x, CADSTAR_ARCHIVE_PARSER::LONGPOINT::y, and VECTOR2< T >::y.
Referenced by CADSTAR_SCH_ARCHIVE_PLUGIN::Load().
|
staticinherited |
Reads a CADSTAR Archive file (S-parameter format)
aFileName | |
aFileTypeIdentifier | Identifier of the first node in the file to check against. E.g. "CADSTARPCB" |
aProgressReporter | Pointer to a Progress Reporter to report progress to. |
IO_ERROR |
Definition at line 2322 of file cadstar_archive_parser.cpp.
References _, DSNLEXER::CurText(), DSN_EOF, DSN_LEFT, DSN_RIGHT, Format(), XNODE::GetParent(), CADSTAR_ARCHIVE_PARSER::InsertAttributeAtEnd(), PROGRESS_REPORTER::KeepRefreshing(), DSNLEXER::NextTok(), PROGRESS_REPORTER::SetCurrentProgress(), and THROW_IO_ERROR.
Referenced by CADSTAR_SCH_ARCHIVE_PARSER::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::Parse().
|
private |
Definition at line 727 of file cadstar_sch_archive_loader.cpp.
References SCH_SCREEN::AddBusAlias(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Alignment, SHAPE_LINE_CHAIN::Append(), SCH_SCREEN::Append(), applyTextSettings(), CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Buses, CADSTAR_SCH_ARCHIVE_PARSER::BUS::BusLabel, CADSTAR_ARCHIVE_PARSER::VERTEX::End, getKiCadPoint(), getLineThickness(), CADSTAR_ARCHIVE_PARSER::HandleTextOverbar(), CADSTAR_SCH_ARCHIVE_PARSER::BUS::HasBusLabel, CADSTAR_SCH_ARCHIVE_PARSER::BUS::ID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Justification, LAYER_BUS, CADSTAR_SCH_ARCHIVE_PARSER::BUS::LayerID, CADSTAR_SCH_ARCHIVE_PARSER::BUS::LineCodeID, m_busesMap, m_sheetMap, CADSTAR_SCH_ARCHIVE_PARSER::BUS::Name, SHAPE_LINE_CHAIN::NearestPoint(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Position, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, SCH_LINE::SetEndPoint(), SCH_ITEM::SetLayer(), SCH_LINE::SetLineWidth(), SCH_TEXT::SetPosition(), SCH_LINE::SetStartPoint(), EDA_TEXT::SetText(), EDA_TEXT::SetVisible(), CADSTAR_SCH_ARCHIVE_PARSER::BUS::Shape, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::TextCodeID, and CADSTAR_ARCHIVE_PARSER::SHAPE::Vertices.
Referenced by Load().
|
private |
Definition at line 2196 of file cadstar_sch_archive_loader.cpp.
References _, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Alignment, applyTextSettings(), CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::AssocLayerID, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::BlockLabel, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Blocks, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Figures, Format(), SCH_SHEET::GetFields(), getFigureExtentsKiCad(), getKiCadPoint(), CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::HasBlockLabel, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::ID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Justification, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::LayerID, loadItemOntoKiCadSheet(), loadSheetAndChildSheets(), m_reporter, m_schematic, m_sheetMap, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Mirror, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Name, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::OrientAngle, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Position, REPORTER::Report(), RPT_SEVERITY_ERROR, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, SCH_SHEET::SetFields(), EDA_ITEM::SetParent(), SCH_TEXT::SetPosition(), EDA_TEXT::SetText(), CADSTAR_SCH_ARCHIVE_PARSER::SHEETS::SheetNames, CADSTAR_SCH_ARCHIVE_PARSER::Sheets, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::TextCodeID, THROW_IO_ERROR, and CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Type.
Referenced by loadSheetAndChildSheets(), and loadSheets().
|
private |
Definition at line 1179 of file cadstar_sch_archive_loader.cpp.
References _, applyTransform(), CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::DocumentationSymbols, CADSTAR_ARCHIVE_PARSER::SYMDEF::Figures, Format(), getAngle(), getKiCadPoint(), getKiCadSchText(), SCH_TEXT::GetPosition(), EDA_TEXT::GetTextHeight(), EDA_TEXT::GetTextThickness(), EDA_TEXT::GetTextWidth(), CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::ID, KiROUND(), LAYER_NOTES, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::LayerID, CADSTAR_SCH_ARCHIVE_PARSER::Library, loadFigure(), loadItemOntoKiCadSheet(), m_reporter, CADSTAR_ARCHIVE_PARSER::TEXT::Mirror, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::Mirror, CADSTAR_ARCHIVE_PARSER::TEXT::OrientAngle, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::OrientAngle, CADSTAR_ARCHIVE_PARSER::SYMDEF::Origin, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::Origin, REPORTER::Report(), RPT_SEVERITY_ERROR, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::ScaleRatioDenominator, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::ScaleRatioNumerator, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, SCH_TEXT::SetPosition(), EDA_TEXT::SetTextHeight(), EDA_TEXT::SetTextThickness(), EDA_TEXT::SetTextWidth(), CADSTAR_SCH_ARCHIVE_PARSER::LIBRARY_SCM::SymbolDefinitions, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL::SymdefID, and CADSTAR_ARCHIVE_PARSER::SYMDEF::Texts.
Referenced by Load().
|
private |
Definition at line 2124 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::SHAPE::Cutouts, CADSTAR_ARCHIVE_PARSER::FIGURE::LineCodeID, loadShapeVertices(), CADSTAR_ARCHIVE_PARSER::FIGURE::Shape, CADSTAR_ARCHIVE_PARSER::CUTOUT::Vertices, and CADSTAR_ARCHIVE_PARSER::SHAPE::Vertices.
Referenced by loadDocumentationSymbols(), and loadFigures().
|
private |
Definition at line 1156 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Figures, LAYER_NOTES, CADSTAR_ARCHIVE_PARSER::FIGURE::LayerID, loadFigure(), and CADSTAR_SCH_ARCHIVE_PARSER::Schematic.
Referenced by Load().
|
private |
Definition at line 2010 of file cadstar_sch_archive_loader.cpp.
References applyTransform(), getLineStyle(), getLineThickness(), KiROUND(), loadItemOntoKiCadSheet(), SCH_LINE::SetEndPoint(), SCH_ITEM::SetLayer(), SCH_LINE::SetLineStyle(), SCH_LINE::SetLineWidth(), and SCH_LINE::SetStartPoint().
Referenced by loadShapeVertices().
|
private |
Definition at line 318 of file cadstar_sch_archive_loader.cpp.
References SCH_SHEET::AddPin(), SCH_SCREEN::Append(), CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::AssocLayerID, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Blocks, getKiCadPoint(), SCH_SHEET::GetScreen(), getSpinStyle(), CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::ID, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::ID, L_UNSPECIFIED, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::LayerID, m_sheetMap, m_sheetPinMap, name, CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::OrientAngle, CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::Position, SCH_SHEET_PIN_T, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, SCH_TEXT::SetPosition(), SCH_LABEL_BASE::SetShape(), EDA_TEXT::SetText(), SCH_HIERLABEL::SetTextSpinStyle(), CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Terminals, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK::Type, and EDA_ITEM::Type().
Referenced by Load().
|
private |
Definition at line 2338 of file cadstar_sch_archive_loader.cpp.
References SCH_ITEM::Duplicate(), m_sheetMap, CADSTAR_SCH_ARCHIVE_PARSER::SHEETS::SheetNames, and CADSTAR_SCH_ARCHIVE_PARSER::Sheets.
Referenced by loadChildSheets(), loadDocumentationSymbols(), loadGraphicStaightSegment(), and loadTexts().
|
private |
Definition at line 1628 of file cadstar_sch_archive_loader.cpp.
References LIB_SYMBOL::AddDrawItem(), LIB_SHAPE::AddPoint(), CADSTAR_ARCHIVE_PARSER::ANTICLOCKWISE_ARC, CADSTAR_ARCHIVE_PARSER::ANTICLOCKWISE_SEMICIRCLE, ARC, CADSTAR_ARCHIVE_PARSER::VERTEX::Center, CADSTAR_ARCHIVE_PARSER::CLOCKWISE_ARC, CADSTAR_ARCHIVE_PARSER::CLOCKWISE_SEMICIRCLE, CADSTAR_ARCHIVE_PARSER::VERTEX::End, getKiCadLibraryPoint(), KI_FALLTHROUGH, CADSTAR_ARCHIVE_PARSER::POINT, POLY, EDA_SHAPE::SetEnd(), LIB_SHAPE::SetPosition(), EDA_SHAPE::SetStart(), LIB_SHAPE::SetStroke(), LIB_ITEM::SetUnit(), SOLID, and CADSTAR_ARCHIVE_PARSER::VERTEX::Type.
Referenced by loadSymDefIntoLibrary().
|
private |
Definition at line 810 of file cadstar_sch_archive_loader.cpp.
References SHAPE_LINE_CHAIN::Append(), applyTextSettings(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BlockTerminals, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Buses, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BusTerminals, SCH_SHEET::ClassOf(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Connections, SHAPE_LINE_CHAIN::CPoints(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Danglers, SHAPE_LINE_CHAIN::FindSegment(), Format(), getAngle(), SCH_LINE::GetEndPoint(), getKiCadPoint(), getLineThickness(), getLocationOfNetElement(), EDA_ITEM::GetParent(), SCH_SHEET::GetPosition(), SCH_TEXT::GetPosition(), SCH_SHEET::GetSize(), getSpinStyle(), SCH_LINE::GetStartPoint(), CADSTAR_ARCHIVE_PARSER::HandleTextOverbar(), CADSTAR_ARCHIVE_PARSER::NET::ID, CADSTAR_SCH_ARCHIVE_PARSER::BUS::ID, SHAPE_LINE_CHAIN::Intersect(), CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Junctions, LAYER_WIRE, CADSTAR_SCH_ARCHIVE_PARSER::BUS::LayerID, m_busesMap, m_globalLabelsMap, m_powerSymMap, m_sheetMap, m_sheetPinMap, TEXT_SPIN_STYLE::MirrorX(), TEXT_SPIN_STYLE::MirrorY(), CADSTAR_ARCHIVE_PARSER::NET::Name, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Nets, SHAPE_LINE_CHAIN::Replace(), SHAPE_LINE_CHAIN::Reverse(), SCH_SHEET_PIN_T, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, EDA_TEXT::SetBold(), SCH_LINE::SetEndPoint(), SCH_ITEM::SetLayer(), SCH_LINE::SetLineWidth(), SCH_FIELD::SetPosition(), SCH_JUNCTION::SetPosition(), SCH_TEXT::SetPosition(), SCH_BUS_ENTRY_BASE::SetSize(), SCH_LINE::SetStartPoint(), EDA_TEXT::SetText(), EDA_TEXT::SetTextSize(), SCH_TEXT::SetTextSpinStyle(), SCH_HIERLABEL::SetTextSpinStyle(), EDA_TEXT::SetVisible(), CADSTAR_ARCHIVE_PARSER::NET::SignalNum, SMALL_LABEL_SIZE, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Symbols, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::Terminals, EDA_ITEM::Type(), CADSTAR_ARCHIVE_PARSER::UNDEFINED_VALUE, VALUE_FIELD, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by Load().
|
private |
Definition at line 366 of file cadstar_sch_archive_loader.cpp.
References _, CADSTAR_ARCHIVE_PARSER::checkPoint(), CTX_LIBID, CADSTAR_ARCHIVE_PARSER::PART::Definition, EscapeString(), Format(), CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GateSymbols, LIB_SYMBOL::GetName(), getSymDefFromName(), loadSymDefIntoLibrary(), m_libraryFileName, m_partMap, m_partSymbolsMap, m_reporter, CADSTAR_ARCHIVE_PARSER::PART::Name, CADSTAR_ARCHIVE_PARSER::PARTS::PartDefinitions, CADSTAR_SCH_ARCHIVE_PARSER::Parts, REPORTER::Report(), RPT_SEVERITY_WARNING, and LIB_SYMBOL::SetUnitCount().
Referenced by Load().
|
private |
Definition at line 1716 of file cadstar_sch_archive_loader.cpp.
References _, SCH_SCREEN::Append(), EDA_ANGLE::AsDegrees(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ComponentRef, CADSTAR_SCH_ARCHIVE_PARSER::COMP::Designator, Format(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::GateID, getAngle(), getComponentOrientation(), getKiCadPoint(), getKiCadUnitNumberFromGate(), SCH_SYMBOL::GetLibSymbolRef(), LIB_SYMBOL::GetName(), SCH_SHEET::GetScreen(), CADSTAR_ARCHIVE_PARSER::HandleTextOverbar(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::IsComponent, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::LayerID, SCH_SHEET::LocatePathOfScreen(), m_libraryFileName, m_pinNumsMap, m_reporter, m_rootSheet, m_sheetMap, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Mirror, EDA_ANGLE::Normalize180(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::OrientAngle, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Origin, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::PartRef, pin, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::PinNames, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::PinNumbers, CADSTAR_SCH_ARCHIVE_PARSER::PARTREF::RefID, REPORTER::Report(), RPT_SEVERITY_ERROR, LIB_PIN::SetNumber(), SCH_SYMBOL::SetOrientation(), SCH_SYMBOL::SetPosition(), SCH_SYMBOL::SetRef(), SYM_MIRROR_Y, and SCH_SYMBOL::UpdatePins().
Referenced by loadSchematicSymbolInstances().
|
private |
Definition at line 436 of file cadstar_sch_archive_loader.cpp.
References _, SCH_SYMBOL::AddField(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Alignment, CADSTAR_ARCHIVE_PARSER::SYMDEF::Alternate, ANGLE_0, ANGLE_180, SCH_SCREEN::Append(), applyTextSettings(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::AttributeID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::AttributeLocation, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::AttributeValues, CADSTAR_SCH_ARCHIVE_PARSER::COMP::AttrLoc, CADSTAR_SCH_ARCHIVE_PARSER::PARTREF::AttrLoc, SCH_LABEL_BASE::AutoplaceFields(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ComponentRef, copy, CTX_LIBID, CADSTAR_SCH_ARCHIVE_PARSER::COMP::Designator, EscapeString(), SCH_SYMBOL::FindField(), Format(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::GateID, getAngle(), getAttributeName(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetFieldCount(), getKiCadLibraryPoint(), getKiCadPoint(), SCH_FIELD::GetName(), getPart(), LIB_SYMBOL::GetReferenceField(), getScaledLibPart(), getSpinStyle(), EDA_TEXT::GetText(), LIB_SYMBOL::GetValueField(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::HasLocation, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::HasPartRef, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ID, isAttributeVisible(), CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::IsComponent, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::IsSymbolVariant, CADSTAR_ARCHIVE_PARSER::PARTNAMECOL::IsVisible, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Justification, L_BIDI, L_INPUT, L_OUTPUT, L_UNSPECIFIED, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::LayerID, CADSTAR_SCH_ARCHIVE_PARSER::Library, LINK_ORIGIN_ATTRID, loadSchematicSymbol(), loadSymbolFieldAttribute(), loadSymDefIntoLibrary(), m_globalLabelsMap, m_libraryFileName, m_partMap, m_partSymbolsMap, m_powerSymLibMap, m_powerSymMap, m_reporter, m_sheetMap, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Mirror, CADSTAR_ARCHIVE_PARSER::PART::Name, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::OrientAngle, CADSTAR_ARCHIVE_PARSER::SYMDEF::Origin, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::Origin, CADSTAR_ARCHIVE_PARSER::PARTS::PartDefinitions, PartNameFieldName, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::PartRef, CADSTAR_SCH_ARCHIVE_PARSER::Parts, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Position, CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL::Position, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOLVARIANT::Reference, REFERENCE_FIELD, CADSTAR_SCH_ARCHIVE_PARSER::PARTREF::RefID, REPORTER::Report(), RotatePoint(), RPT_SEVERITY_ERROR, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ScaleRatioDenominator, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::ScaleRatioNumerator, CADSTAR_SCH_ARCHIVE_PARSER::Schematic, LIB_ITEM::SetPosition(), SCH_TEXT::SetPosition(), LIB_SYMBOL::SetPower(), SCH_LABEL_BASE::SetShape(), EDA_TEXT::SetText(), EDA_TEXT::SetTextSize(), SCH_GLOBALLABEL::SetTextSpinStyle(), EDA_TEXT::SetVisible(), SIGNALNAME_ORIGIN_ATTRID, CADSTAR_SCH_ARCHIVE_PARSER::LIBRARY_SCM::SymbolDefinitions, CADSTAR_SCH_ARCHIVE_PARSER::SymbolPartNameColor, CADSTAR_SCH_ARCHIVE_PARSER::CADSTAR_SCHEMATIC::Symbols, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::SymbolVariant, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::SymdefID, CADSTAR_SCH_ARCHIVE_PARSER::SYMDEF_SCM::Terminals, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::TextCodeID, CADSTAR_ARCHIVE_PARSER::SYMDEF::TextLocations, THROW_IO_ERROR, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOLVARIANT::Type, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::Value, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::VariantID, and CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL::VariantParentSymbolID.
Referenced by Load().
|
private |
Definition at line 2040 of file cadstar_sch_archive_loader.cpp.
References SEG::A, CADSTAR_ARCHIVE_PARSER::ANTICLOCKWISE_ARC, CADSTAR_ARCHIVE_PARSER::ANTICLOCKWISE_SEMICIRCLE, SEG::B, CADSTAR_ARCHIVE_PARSER::VERTEX::Center, CADSTAR_ARCHIVE_PARSER::CLOCKWISE_ARC, CADSTAR_ARCHIVE_PARSER::CLOCKWISE_SEMICIRCLE, SHAPE_ARC::ConvertToPolyline(), CADSTAR_ARCHIVE_PARSER::VERTEX::End, getKiCadPoint(), KI_FALLTHROUGH, loadGraphicStaightSegment(), Millimeter2iu(), EDA_ANGLE::Normalize(), CADSTAR_ARCHIVE_PARSER::POINT, SHAPE_LINE_CHAIN::Segment(), SHAPE_LINE_CHAIN::SegmentCount(), and CADSTAR_ARCHIVE_PARSER::VERTEX::Type.
Referenced by loadFigure().
|
private |
Definition at line 2146 of file cadstar_sch_archive_loader.cpp.
References SCH_SHEET::AddInstance(), SCH_SCREEN::Append(), SCH_SHEET::AutoplaceFields(), CADSTAR_SCH_ARCHIVE_PARSER::Filename, Format(), SCH_SHEET::GetFields(), PROJECT::GetProjectPath(), SCH_SHEET::GetScreen(), getSheetNumber(), KiCadSchematicFileExtension, SCH_SHEET_PATH::Last(), loadChildSheets(), m_schematic, m_sheetMap, name, SCHEMATIC::Prj(), SCH_SHEET_PATH::push_back(), ReplaceIllegalFileNameChars(), SCH_SCREEN::SetFileName(), SCH_SHEET::SetPageNumber(), SCH_SHEET::SetScreen(), EDA_TEXT::SetText(), SHEETFILENAME, SHEETNAME, CADSTAR_SCH_ARCHIVE_PARSER::SHEETS::SheetNames, and CADSTAR_SCH_ARCHIVE_PARSER::Sheets.
Referenced by loadChildSheets(), and loadSheets().
|
private |
Definition at line 264 of file cadstar_sch_archive_loader.cpp.
References _, SCH_SHEET::AddInstance(), CADSTAR_SCH_ARCHIVE_PARSER::Filename, findOrphanSheets(), Format(), PROJECT::GetProjectPath(), SCH_SHEET::GetScreen(), getSheetNumber(), KiCadSchematicFileExtension, loadChildSheets(), loadSheetAndChildSheets(), m_rootSheet, m_schematic, m_sheetMap, SCHEMATIC::Prj(), SCH_SHEET_PATH::push_back(), ReplaceIllegalFileNameChars(), SCH_SCREEN::SetFileName(), SCH_SHEET::SetPageNumber(), and THROW_IO_ERROR.
Referenced by Load().
|
private |
Definition at line 1828 of file cadstar_sch_archive_loader.cpp.
References CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Alignment, applyTextSettings(), EDA_ANGLE::AsDegrees(), getAngle(), getCadstarAngle(), getKiCadPoint(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Justification, KiROUND(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Mirror, mirrorX(), CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::OrientAngle, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::Position, rotate180(), SCH_FIELD::SetPosition(), EDA_TEXT::SetVisible(), and CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION::TextCodeID.
Referenced by loadSchematicSymbolInstances().
|
private |
Definition at line 1303 of file cadstar_sch_archive_loader.cpp.