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 SETTINGS_MANAGERGetSettingsManager ()
 
static void SetSchEditFrame (SCH_EDIT_FRAME *aSchEditFrame)
 
static PROJECTGetDefaultProject ()
 
static SCHEMATICLoadSchematic (wxString &aFileName, bool aSetActive)
 
static SCHEMATICLoadSchematic (wxString &aFileName, SCH_IO_MGR::SCH_FILE_T aFormat, bool aSetActive)
 

Static Private Attributes

static SCH_EDIT_FRAMEs_SchEditFrame = nullptr
 
static SETTINGS_MANAGERs_SettingsManager = 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

◆ GetDefaultProject()

PROJECT * EESCHEMA_HELPERS::GetDefaultProject ( )
static

◆ GetSettingsManager()

SETTINGS_MANAGER * EESCHEMA_HELPERS::GetSettingsManager ( )
static

◆ LoadSchematic() [1/2]

◆ LoadSchematic() [2/2]

◆ SetSchEditFrame()

void EESCHEMA_HELPERS::SetSchEditFrame ( SCH_EDIT_FRAME aSchEditFrame)
static

Definition at line 39 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 53 of file eeschema_helpers.h.

Referenced by GetSettingsManager(), LoadSchematic(), and SetSchEditFrame().

◆ s_SettingsManager

SETTINGS_MANAGER * EESCHEMA_HELPERS::s_SettingsManager = nullptr
staticprivate

Definition at line 54 of file eeschema_helpers.h.

Referenced by GetSettingsManager().


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