KiCad PCB EDA Suite
Loading...
Searching...
No Matches
EESCHEMA_HELPERS Class Reference

Helper functions to do things like load schematics behind the scenes for special functions. More...

#include <eeschema_helpers.h>

Static Public Member Functions

static void SetSchEditFrame (SCH_EDIT_FRAME *aSchEditFrame)
 
static SCHEMATICLoadSchematic (const wxString &aFileName, bool aSetActive, bool aForceDefaultProject, PROJECT *aProject=nullptr, bool aCalculateConnectivity=true)
 
static SCHEMATICLoadSchematic (const wxString &aFileName, SCH_IO_MGR::SCH_FILE_T aFormat, bool aSetActive, bool aForceDefaultProject, PROJECT *aProject=nullptr, bool aCalculateConnectivity=true)
 

Static Private Attributes

static SCH_EDIT_FRAMEs_SchEditFrame = nullptr
 

Detailed Description

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.

Member Function Documentation

◆ LoadSchematic() [1/2]

SCHEMATIC * EESCHEMA_HELPERS::LoadSchematic ( const wxString & aFileName,
bool aSetActive,
bool aForceDefaultProject,
PROJECT * aProject = nullptr,
bool aCalculateConnectivity = true )
static

◆ LoadSchematic() [2/2]

◆ SetSchEditFrame()

void EESCHEMA_HELPERS::SetSchEditFrame ( SCH_EDIT_FRAME * aSchEditFrame)
static

Definition at line 45 of file eeschema_helpers.cpp.

References s_SchEditFrame.

Referenced by SCH::IFACE::CreateKiWindow().

Member Data Documentation

◆ s_SchEditFrame

SCH_EDIT_FRAME * EESCHEMA_HELPERS::s_SchEditFrame = nullptr
staticprivate

Definition at line 56 of file eeschema_helpers.h.

Referenced by LoadSchematic(), and SetSchEditFrame().


The documentation for this class was generated from the following files: