KiCad PCB EDA Suite
|
Helper functions to do things like load schematics behind the scenes for special functions. More...
#include <eeschema_helpers.h>
Static Public Member Functions | |
static SETTINGS_MANAGER * | GetSettingsManager () |
static void | SetSchEditFrame (SCH_EDIT_FRAME *aSchEditFrame) |
static PROJECT * | GetDefaultProject () |
static SCHEMATIC * | LoadSchematic (wxString &aFileName) |
static SCHEMATIC * | LoadSchematic (wxString &aFileName, SCH_IO_MGR::SCH_FILE_T aFormat) |
Static Private Attributes | |
static SCH_EDIT_FRAME * | s_SchEditFrame = nullptr |
static SETTINGS_MANAGER * | s_SettingsManager = nullptr |
Helper functions to do things like load schematics behind the scenes for special functions.
Similar to the pcbnew scripting helpers, this is just to have one spot for these types of "hacky" solutions
Definition at line 41 of file eeschema_helpers.h.
|
static |
Definition at line 63 of file eeschema_helpers.cpp.
References dummy, SETTINGS_MANAGER::GetProject(), GetSettingsManager(), SETTINGS_MANAGER::LoadProject(), and project.
Referenced by LoadSchematic().
|
static |
Definition at line 45 of file eeschema_helpers.cpp.
References EDA_BASE_FRAME::GetSettingsManager(), s_SchEditFrame, and s_SettingsManager.
Referenced by GetDefaultProject(), and LoadSchematic().
|
static |
Definition at line 81 of file eeschema_helpers.cpp.
References KiCadSchematicFileExtension, LegacySchematicFileExtension, and LoadSchematic().
Referenced by EESCHEMA_JOBS_HANDLER::JobExportBom(), EESCHEMA_JOBS_HANDLER::JobExportNetlist(), EESCHEMA_JOBS_HANDLER::JobExportPlot(), EESCHEMA_JOBS_HANDLER::JobExportPythonBom(), EESCHEMA_JOBS_HANDLER::JobSchErc(), and LoadSchematic().
|
static |
Definition at line 93 of file eeschema_helpers.cpp.
References SCH_SHEET_LIST::AnnotatePowerSymbols(), EDA_TEXT::ClearBoundingBoxCache(), SCHEMATIC::ConnectionGraph(), dummy, SCH_SCREENS::FixLegacyPowerSymbolMismatches(), GetDefaultProject(), SCH_LABEL_BASE::GetFields(), SCH_SCREEN::GetFileFormatVersionAtLoad(), SCH_SCREENS::GetFirst(), SCH_SCREENS::GetNext(), SETTINGS_MANAGER::GetProject(), GetSettingsManager(), SCH_SCREEN::GetSheetInstances(), SCHEMATIC::GetSheets(), SCH_SCREEN::GetSymbolInstances(), SETTINGS_MANAGER::LoadProject(), SCH_PLUGIN::LoadSchematicFile(), Prj(), project, ProjectFileExtension, CONNECTION_GRAPH::Recalculate(), SCHEMATIC::RecomputeIntersheetRefs(), CONNECTION_GRAPH::Reset(), SCHEMATIC::Root(), SCHEMATIC::RootScreen(), s_SchEditFrame, SCH_EDIT_FRAME::Schematic(), SCHEMATIC::SetRoot(), SCHEMATIC::SetSheetNumberAndCount(), SCH_SHEET_LIST::UpdateSheetInstanceData(), and SCH_SHEET_LIST::UpdateSymbolInstanceData().
|
static |
Definition at line 39 of file eeschema_helpers.cpp.
References s_SchEditFrame.
Referenced by SCH::IFACE::CreateKiWindow().
|
staticprivate |
Definition at line 52 of file eeschema_helpers.h.
Referenced by GetSettingsManager(), LoadSchematic(), and SetSchEditFrame().
|
staticprivate |
Definition at line 53 of file eeschema_helpers.h.
Referenced by GetSettingsManager().