29#include <wx/filename.h>
43 Kiface().KifaceSettings(),
nullptr );
101 if( fileName.IsEmpty() || !wxFileExists( fileName ) )
111 m_toolManager->SetEnvironment( reloaded,
nullptr,
nullptr,
Kiface().KifaceSettings(),
nullptr );
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
static SCHEMATIC * LoadSchematic(const wxString &aFileName, bool aSetActive, bool aForceDefaultProject, PROJECT *aProject=nullptr, bool aCalculateConnectivity=true, REPORTER *aRootReporter=nullptr)
SCHEMATIC * GetSchematic() const override
~HEADLESS_SCH_CONTEXT() override
PROJECT & Prj() const override
TOOL_MANAGER * GetToolManager() const override
bool RevertToSaved() override
SCHEMATIC ** m_schematicSlot
wxString GetCurrentFileName() const override
bool SaveSchematicCopy(const wxString &aFileName, bool aCreateProject) override
bool SaveSchematic() override
HEADLESS_SCH_CONTEXT(SCHEMATIC **aSchematicSlot, PROJECT *aProject, KIWAY *aKiway=nullptr)
std::unique_ptr< TOOL_MANAGER > m_toolManager
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
Container for project specific data.
Holds all the data relating to one schematic.
wxString GetFileName() const
Helper to retrieve the filename from the root sheet screen.
bool SaveSchematic(SCHEMATIC &aSchematic, PROJECT &aProject)
Save every screen in the hierarchy to its current path, then update the project file.
bool SaveSchematicCopy(SCHEMATIC &aSchematic, PROJECT &aProject, const wxString &aFileName, bool aCreateProject)
Save the root schematic to aFileName without changing the open document.