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

#include <headless_footprint_context.h>

Inheritance diagram for HEADLESS_FOOTPRINT_CONTEXT:
FOOTPRINT_CONTEXT BOARD_CONTEXT

Public Member Functions

 HEADLESS_FOOTPRINT_CONTEXT (std::unique_ptr< FOOTPRINT > aFootprint, const LIB_ID &aFPID, PROJECT *aProject, APP_SETTINGS_BASE *aSettings, KIWAY *aKiway=nullptr)
 
 ~HEADLESS_FOOTPRINT_CONTEXT () override
 
BOARDGetBoard () const override
 
PROJECTPrj () const override
 
TOOL_MANAGERGetToolManager () const override
 
KIWAYGetKiway () const override
 
bool CanAcceptApiCommands () const override
 
LIB_ID GetLoadedFPID () const override
 
bool SaveFootprint (FOOTPRINT *aFootprint) override
 
bool SaveFootprintInLibrary (FOOTPRINT *aFootprint, const wxString &aLibraryName) override
 

Private Attributes

std::unique_ptr< BOARDm_board
 
LIB_ID m_fpid
 
PROJECTm_project
 
KIWAYm_kiway
 
std::unique_ptr< TOOL_MANAGERm_toolManager
 

Detailed Description

Definition at line 36 of file headless_footprint_context.h.

Constructor & Destructor Documentation

◆ HEADLESS_FOOTPRINT_CONTEXT()

HEADLESS_FOOTPRINT_CONTEXT::HEADLESS_FOOTPRINT_CONTEXT ( std::unique_ptr< FOOTPRINT > aFootprint,
const LIB_ID & aFPID,
PROJECT * aProject,
APP_SETTINGS_BASE * aSettings,
KIWAY * aKiway = nullptr )

Definition at line 30 of file headless_footprint_context.cpp.

References FPHOLDER, m_board, m_fpid, m_kiway, m_project, and m_toolManager.

◆ ~HEADLESS_FOOTPRINT_CONTEXT()

HEADLESS_FOOTPRINT_CONTEXT::~HEADLESS_FOOTPRINT_CONTEXT ( )
overridedefault

Member Function Documentation

◆ CanAcceptApiCommands()

bool HEADLESS_FOOTPRINT_CONTEXT::CanAcceptApiCommands ( ) const
inlineoverridevirtual

Implements BOARD_CONTEXT.

Definition at line 53 of file headless_footprint_context.h.

◆ GetBoard()

BOARD * HEADLESS_FOOTPRINT_CONTEXT::GetBoard ( ) const
overridevirtual

Implements BOARD_CONTEXT.

Definition at line 55 of file headless_footprint_context.cpp.

References m_board.

◆ GetKiway()

KIWAY * HEADLESS_FOOTPRINT_CONTEXT::GetKiway ( ) const
inlineoverridevirtual

Implements BOARD_CONTEXT.

Definition at line 51 of file headless_footprint_context.h.

References m_kiway.

◆ GetLoadedFPID()

LIB_ID HEADLESS_FOOTPRINT_CONTEXT::GetLoadedFPID ( ) const
overridevirtual

Implements FOOTPRINT_CONTEXT.

Definition at line 74 of file headless_footprint_context.cpp.

References m_fpid.

◆ GetToolManager()

TOOL_MANAGER * HEADLESS_FOOTPRINT_CONTEXT::GetToolManager ( ) const
overridevirtual

Implements BOARD_CONTEXT.

Definition at line 68 of file headless_footprint_context.cpp.

References m_toolManager.

◆ Prj()

PROJECT & HEADLESS_FOOTPRINT_CONTEXT::Prj ( ) const
overridevirtual

Implements BOARD_CONTEXT.

Definition at line 61 of file headless_footprint_context.cpp.

References m_project.

◆ SaveFootprint()

bool HEADLESS_FOOTPRINT_CONTEXT::SaveFootprint ( FOOTPRINT * aFootprint)
overridevirtual

Implements FOOTPRINT_CONTEXT.

Definition at line 80 of file headless_footprint_context.cpp.

References m_fpid, and SaveFootprintInLibrary().

◆ SaveFootprintInLibrary()

bool HEADLESS_FOOTPRINT_CONTEXT::SaveFootprintInLibrary ( FOOTPRINT * aFootprint,
const wxString & aLibraryName )
overridevirtual

Member Data Documentation

◆ m_board

std::unique_ptr<BOARD> HEADLESS_FOOTPRINT_CONTEXT::m_board
private

Definition at line 62 of file headless_footprint_context.h.

Referenced by GetBoard(), and HEADLESS_FOOTPRINT_CONTEXT().

◆ m_fpid

LIB_ID HEADLESS_FOOTPRINT_CONTEXT::m_fpid
private

◆ m_kiway

KIWAY* HEADLESS_FOOTPRINT_CONTEXT::m_kiway
private

Definition at line 65 of file headless_footprint_context.h.

Referenced by GetKiway(), and HEADLESS_FOOTPRINT_CONTEXT().

◆ m_project

PROJECT* HEADLESS_FOOTPRINT_CONTEXT::m_project
private

◆ m_toolManager

std::unique_ptr<TOOL_MANAGER> HEADLESS_FOOTPRINT_CONTEXT::m_toolManager
private

Definition at line 66 of file headless_footprint_context.h.

Referenced by GetToolManager(), and HEADLESS_FOOTPRINT_CONTEXT().


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