95 wxFileName pro = aFileName;
98 wxString projectPath = pro.GetFullPath();
108 if( wxFileExists( projectPath ) )
124 SCH_PLUGIN* plugin = SCH_IO_MGR::FindPlugin( aFormat );
131 schematic->
SetRoot( pi->
Load( aFileName, schematic ) );
142 screen->UpdateLocalLibSymbolLinks();
153 screen->MigrateSimModels();
163 field.ClearBoundingBoxCache();
170 sheet.UpdateAllScreenReferences();
171 sheet.LastScreen()->TestDanglingEnds(
nullptr,
nullptr );
void Recalculate(const SCH_SHEET_LIST &aSheetList, bool aUnconditional=false, std::function< void(SCH_ITEM *)> *aChangedItemHandler=nullptr)
Updates the connection graph for the given list of sheets.
SETTINGS_MANAGER * GetSettingsManager() const
virtual void ClearBoundingBoxCache()
static PROJECT * GetDefaultProject()
static SETTINGS_MANAGER * s_SettingsManager
static SCHEMATIC * LoadSchematic(wxString &aFileName)
static void SetSchEditFrame(SCH_EDIT_FRAME *aSchEditFrame)
static SETTINGS_MANAGER * GetSettingsManager()
static SCH_EDIT_FRAME * s_SchEditFrame
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
Container for project specific data.
Holds all the data relating to one schematic.
CONNECTION_GRAPH * ConnectionGraph() const override
SCH_SHEET_LIST GetSheets() const override
Builds and returns an updated schematic hierarchy TODO: can this be cached?
void SetRoot(SCH_SHEET *aRootSheet)
Initialize the schematic with a new root sheet.
SCH_SCREEN * RootScreen() const
Helper to retrieve the screen of the root sheet.
void RecomputeIntersheetRefs(const std::function< void(SCH_GLOBALLABEL *)> &aItemCallback)
Update the schematic's page reference map for all global labels, and refresh the labels so that they ...
void SetSheetNumberAndCount()
Set the m_ScreenNumber and m_NumberOfScreens members for screens.
Schematic editor (Eeschema) main window.
SCHEMATIC & Schematic() const
Instances are attached to a symbol or sheet and provide a place for the symbol's value,...
std::vector< SCH_FIELD > & GetFields()
Helper object to release a SCH_PLUGIN in the context of a potential thrown exception through its dest...
Base class that schematic file and library loading and saving plugins should derive from.
virtual SCH_SHEET * Load(const wxString &aFileName, SCHEMATIC *aSchematic, SCH_SHEET *aAppendToMe=nullptr, const STRING_UTF8_MAP *aProperties=nullptr)
Load information from some input file format that this SCH_PLUGIN implementation knows about,...
Container class that holds multiple SCH_SCREEN objects in a hierarchy.
void FixLegacyPowerSymbolMismatches()
Fix legacy power symbols that have mismatched value text fields and invisible power pin names.
const std::vector< SCH_SYMBOL_INSTANCE > & GetSymbolInstances() const
int GetFileFormatVersionAtLoad() const
const std::vector< SCH_SHEET_INSTANCE > & GetSheetInstances() const
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
void UpdateSheetInstanceData(const std::vector< SCH_SHEET_INSTANCE > &aSheetInstances)
Update all of the sheet instance information using aSheetInstances.
void AnnotatePowerSymbols()
Silently annotate the not yet annotated power symbols of the entire hierarchy of the sheet path list.
void UpdateSymbolInstanceData(const std::vector< SCH_SYMBOL_INSTANCE > &aSymbolInstances)
Update all of the symbol instance information using aSymbolInstances.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
bool LoadProject(const wxString &aFullPath, bool aSetActive=true)
Loads a project or sets up a new project with a specified path.
PROJECT * GetProject(const wxString &aFullPath) const
Retrieves a loaded project by name.
const std::string LegacySchematicFileExtension
const std::string ProjectFileExtension
const std::string KiCadSchematicFileExtension
std::vector< FAB_LAYER_COLOR > dummy
Definition of file extensions used in Kicad.