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

#include <footprint_wizard.h>

Static Public Member Functions

static void register_wizard (FOOTPRINT_WIZARD *aWizard)
 A footprint wizard calls this static method when it wants to register itself into the system wizards.
 
static bool deregister_object (void *aObject)
 Unregister an object which builds a wizard.
 
static FOOTPRINT_WIZARDGetWizard (const wxString &aName)
 
static FOOTPRINT_WIZARDGetWizard (int aIndex)
 
static int GetWizardsCount ()
 

Static Private Attributes

static std::vector< FOOTPRINT_WIZARD * > m_FootprintWizards
 FOOTPRINT_WIZARD system wide static list.
 

Detailed Description

Definition at line 156 of file footprint_wizard.h.

Member Function Documentation

◆ deregister_object()

bool FOOTPRINT_WIZARD_LIST::deregister_object ( void *  aObject)
static

Unregister an object which builds a wizard.

Lookup in the vector calling GetObject until find, then removed and deleted.

Parameters
aObjectis the footprint wizard object to be unregistered.

Definition at line 103 of file footprint_wizard.cpp.

References FOOTPRINT_WIZARD::GetObject(), GetWizard(), GetWizardsCount(), and m_FootprintWizards.

Referenced by PYTHON_FOOTPRINT_WIZARD_LIST::deregister_wizard().

◆ GetWizard() [1/2]

FOOTPRINT_WIZARD * FOOTPRINT_WIZARD_LIST::GetWizard ( const wxString &  aName)
static

◆ GetWizard() [2/2]

FOOTPRINT_WIZARD * FOOTPRINT_WIZARD_LIST::GetWizard ( int  aIndex)
static
Parameters
aIndexis the wizard index in list.
Returns
a wizard object by it's number or NULL if it isn't available.

Definition at line 47 of file footprint_wizard.cpp.

References m_FootprintWizards.

◆ GetWizardsCount()

int FOOTPRINT_WIZARD_LIST::GetWizardsCount ( )
static
Returns
the number of wizards available into the system

Definition at line 71 of file footprint_wizard.cpp.

References m_FootprintWizards.

Referenced by deregister_object(), GetWizard(), DIALOG_FOOTPRINT_WIZARD_LIST::initLists(), and register_wizard().

◆ register_wizard()

void FOOTPRINT_WIZARD_LIST::register_wizard ( FOOTPRINT_WIZARD aWizard)
static

A footprint wizard calls this static method when it wants to register itself into the system wizards.

Note
If it is already registered, this function does nothing if an existing wizard with the same name exists, this existing wizard will be unregistered.
Parameters
aWizardis the footprint wizard to be registered.

Definition at line 77 of file footprint_wizard.cpp.

References FOOTPRINT_WIZARD::GetName(), GetWizard(), GetWizardsCount(), and m_FootprintWizards.

Referenced by FOOTPRINT_WIZARD::register_wizard().

Member Data Documentation

◆ m_FootprintWizards

std::vector< FOOTPRINT_WIZARD * > FOOTPRINT_WIZARD_LIST::m_FootprintWizards
staticprivate

FOOTPRINT_WIZARD system wide static list.

Definition at line 201 of file footprint_wizard.h.

Referenced by deregister_object(), GetWizard(), GetWizardsCount(), and register_wizard().


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