KiCad PCB EDA Suite
|
#include "sch_easyeda_parser.h"
#include "sch_io_easyeda.h"
#include <font/fontconfig.h>
#include <kiplatform/environment.h>
#include <project_sch.h>
#include <sch_screen.h>
#include <sch_sheet.h>
#include <schematic.h>
#include <string_utils.h>
#include <wildcards_and_files_ext.h>
#include <wx/log.h>
#include <wx/stdstream.h>
#include <wx/zipstrm.h>
#include <nlohmann/json.hpp>
#include <core/map_helpers.h>
#include <wx/wfstream.h>
Go to the source code of this file.
Functions | |
static bool | FindSchFileInStream (const wxString &aName, wxInputStream &aStream, nlohmann::json &aOut, EASYEDA::DOCUMENT &aDoc, EASYEDA::DOC_TYPE &aDocType) |
LIB_SYMBOL * | loadSymbol (const wxString &aLibraryPath, nlohmann::json aFileData, const wxString &aAliasName, const std::map< std::string, UTF8 > *aProperties) |
static void | LoadSchematic (SCHEMATIC *aSchematic, SCH_SHEET *aRootSheet, const wxString &aFileName) |
|
static |
Definition at line 45 of file sch_io_easyeda.cpp.
References EASYEDA::HEAD::docType, EASYEDA::DOCUMENT::docType, FindSchFileInStream(), EASYEDA::DOCUMENT::head, name, EASYEDA::SCHEMATIC_LIST, EASYEDA::SCHEMATIC_SHEET, EASYEDA::SYMBOL, and zip.
Referenced by SCH_IO_EASYEDA::CanReadSchematicFile(), SCH_IO_EASYEDA::EnumerateSymbolLib(), FindSchFileInStream(), LoadSchematic(), SCH_IO_EASYEDA::LoadSymbol(), and loadSymbol().
|
static |
Definition at line 508 of file sch_io_easyeda.cpp.
References _, SCH_SCREEN::Append(), CTX_FILENAME, EASYEDA::DOCUMENT::dataStr, EASYEDA::HEAD::docType, EASYEDA::DOCUMENT::docType, EscapeString(), FindSchFileInStream(), SCH_SHEET::GetFileName(), SCH_SHEET::GetScreen(), EASYEDA::DOCUMENT::head, FILEEXT::KiCadSchematicFileExtension, EDA_IU_SCALE::MilsToIU(), SCH_EASYEDA_PARSER::ParseSchematic(), SCH_SHEET_PATH::push_back(), EASYEDA::SCHEMATIC_LIST, EASYEDA::SCHEMATIC_SHEET, EASYEDA::DOCUMENT_SCHEMATICS::schematics, schIUScale, SCHEMATIC::SetCurrentSheet(), SCH_SCREEN::SetFileName(), SCH_SHEET_PATH::SetPageNumber(), BASE_SCREEN::SetPageNumber(), EASYEDA::DOCUMENT::shape, THROW_IO_ERROR, EASYEDA::DOCUMENT::title, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_IO_EASYEDA::LoadSchematicFile().
LIB_SYMBOL * loadSymbol | ( | const wxString & | aLibraryPath, |
nlohmann::json | aFileData, | ||
const wxString & | aAliasName, | ||
const std::map< std::string, UTF8 > * | aProperties | ||
) |
Definition at line 132 of file sch_io_easyeda.cpp.
References _, EASYEDA::HEAD::c_para, EASYEDA::DOCUMENT_SYM::c_para, EASYEDA_PARSER_BASE::Convert(), EASYEDA::DOCUMENT::dataStr, EASYEDA::HEAD::docType, EASYEDA::DOCUMENT::docType, FindSchFileInStream(), get_def(), LIB_SYMBOL::GetReferenceField(), EDA_TEXT::GetText(), EASYEDA::DOCUMENT::head, SCH_EASYEDA_PARSER::ParseSymbol(), EASYEDA::SCHEMATIC_LIST, EASYEDA::SCHEMATIC_SHEET, EASYEDA::DOCUMENT_SCHEMATICS::schematics, SCH_FIELD::SetText(), EASYEDA::DOCUMENT::shape, EASYEDA::SYMBOL, THROW_IO_ERROR, EASYEDA::HEAD::x, and EASYEDA::HEAD::y.
Referenced by SCH_IO_EASYEDA::EnumerateSymbolLib(), SCH_IO_EASYEDAPRO::EnumerateSymbolLib(), SCH_IO_EASYEDA::LoadSymbol(), and SCH_IO_EASYEDAPRO::LoadSymbol().