![]() |
KiCad PCB EDA Suite
|
#include <footprint_wizard.h>
Static Public Member Functions | |
static void | register_wizard (FOOTPRINT_WIZARD *aWizard) |
Function register_wizard 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 do nothing if n existing wizard with the same name exists, this existing wizard will be unregistered. More... | |
static bool | deregister_object (void *aObject) |
Function deregister_object Anyone calls this method to deregister an object which builds a wizard, it will lookup on the vector calling GetObject until find, then removed and deleted. More... | |
static FOOTPRINT_WIZARD * | GetWizard (const wxString &aName) |
Function GetWizard. More... | |
static FOOTPRINT_WIZARD * | GetWizard (int aIndex) |
Function GetWizard. More... | |
static int | GetWizardsCount () |
Function GetWizardsCount. More... | |
Static Private Attributes | |
static std::vector< FOOTPRINT_WIZARD * > | m_FootprintWizards |
FOOTPRINT_WIZARD system wide static list. More... | |
Definition at line 172 of file footprint_wizard.h.
|
static |
Function deregister_object Anyone calls this method to deregister an object which builds a wizard, it will lookup on the vector calling GetObject until find, then removed and deleted.
aObject | is the footprint wizard object to be deregistered |
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().
|
static |
Function GetWizard.
aName | is the footprint wizard name |
Definition at line 53 of file footprint_wizard.cpp.
References FOOTPRINT_WIZARD::GetName(), GetWizardsCount(), name, and NULL.
Referenced by deregister_object(), FOOTPRINT_WIZARD_FRAME::GetBuiltFootprint(), FOOTPRINT_WIZARD_FRAME::GetMyWizard(), DIALOG_FOOTPRINT_WIZARD_LIST::initLists(), DIALOG_FOOTPRINT_WIZARD_LIST::OnCellFpGeneratorClick(), and register_wizard().
|
static |
Function GetWizard.
aIndex | is the wizard index in list |
Definition at line 47 of file footprint_wizard.cpp.
References m_FootprintWizards.
|
static |
Function GetWizardsCount.
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().
|
static |
Function register_wizard 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 do nothing if n existing wizard with the same name exists, this existing wizard will be unregistered.
aWizard | is 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().
|
staticprivate |
FOOTPRINT_WIZARD system wide static list.
Definition at line 178 of file footprint_wizard.h.
Referenced by deregister_object(), GetWizard(), GetWizardsCount(), and register_wizard().