51 return m_frame->GetToolManager();
61 return m_frame->GetScreen()->IsContentModified();
66 m_frame->GetScreen()->SetContentModified( aModified );
71 return m_frame->GetCurrentFileName();
76 return m_frame->CanAcceptApiCommands();
84 bool SavePcbCopy(
const wxString& aFileName,
bool aCreateProject,
bool aHeadless )
override
86 return m_frame->SavePcbCopy( aFileName, aCreateProject, aHeadless );
91 return m_frame->ReadNetlistFromFile( aFilename, aNetlist, aReporter );
101 bool runDragCommand =
false;
102 m_frame->OnNetlistChanged( aUpdater, &runDragCommand );
107 wxFileName fn =
m_frame->Prj().AbsolutePath(
m_frame->GetBoard()->GetFileName() );
109 m_frame->GetScreen()->SetContentModified(
false );
123 return std::make_shared<PCB_EDIT_FRAME_CONTEXT>( aFrame );
Update the BOARD with a new netlist.
Information pertinent to a Pcbnew printed circuit board.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
Store information read from a netlist along with the flags used to update the NETLIST in the BOARD.
PCB-editor-specific context; extends BOARD_CONTEXT with save/filename operations.
TOOL_MANAGER * GetToolManager() const override
bool SavePcbCopy(const wxString &aFileName, bool aCreateProject, bool aHeadless) override
bool IsContentModified() const override
std::unique_ptr< BOARD_NETLIST_UPDATER > MakeNetlistUpdater() override
Create a netlist updater bound to this context's board.
wxString GetCurrentFileName() const override
bool SaveBoard() override
PROJECT & Prj() const override
bool CanAcceptApiCommands() const override
bool ReadNetlistFromFile(const wxString &aFilename, NETLIST &aNetlist, REPORTER &aReporter) override
Read a netlist file and preload component footprints.
PCB_EDIT_FRAME_CONTEXT(PCB_EDIT_FRAME *aFrame)
void OnNetlistChanged(BOARD_NETLIST_UPDATER &aUpdater) override
Post-import board sync (nets, classes, DRC, ratsnest, new footprint placement).
bool RevertToSaved() override
KIWAY * GetKiway() const override
void SetContentModified(bool aModified=true) override
BOARD * GetBoard() const override
The main frame for Pcbnew.
Container for project specific data.
A pure virtual class used to derive REPORTER objects from.
#define KICTL_REVERT
reverting to a previously-saved (KiCad) file.
std::shared_ptr< PCB_CONTEXT > CreatePcbFrameContext(PCB_EDIT_FRAME *aFrame)