![]() |
KiCad PCB EDA Suite
|
#include <pgm_base.h>
#include <kiface_base.h>
#include <settings/settings_manager.h>
#include "pcb_calculator_frame.h"
#include "pcb_calculator_settings.h"
Go to the source code of this file.
Classes | |
struct | PCBCALC::IFACE |
Namespaces | |
PCBCALC | |
Functions | |
const wxString | PcbCalcDataFileExt (wxT("pcbcalc")) |
PCBCALC::IFACE KIFACE_BASE | PCBCALC::kiface ("pcb_calculator", KIWAY::FACE_PCB_CALCULATOR) |
IFACE (const char *aName, KIWAY::FACE_T aType) | |
bool | OnKifaceStart (PGM_BASE *aProgram, int aCtlBits) override |
void | OnKifaceEnd () override |
wxWindow * | CreateWindow (wxWindow *aParent, int aClassId, KIWAY *aKiway, int aCtlBits=0) override |
void * | IfaceOrAddress (int aDataId) override |
Return a pointer to the requested object. More... | |
KIFACE_BASE & | Kiface () |
Global KIFACE_BASE "get" accessor. More... | |
MY_API (KIFACE *) KIFACE_GETTER(int *aKIFACEversion | |
PGM_BASE & | Pgm () |
The global Program "get" accessor. More... | |
PGM_BASE * | PgmOrNull () |
similar to PGM_BASE& Pgm(), but return a reference that can be nullptr when running a shared lib from a script, not from a kicad appl More... | |
Variables | |
static PGM_BASE * | process |
int | aKiwayVersion |
int PGM_BASE * | aProgram |
return & | kiface |
|
override |
Definition at line 124 of file pcb_calculator.cpp.
kiface::IFACE | ( | const char * | aName, |
KIWAY::FACE_T | aType | ||
) |
Definition at line 116 of file pcb_calculator.cpp.
|
override |
Return a pointer to the requested object.
The safest way to use this is to retrieve a pointer to a static instance of an interface, similar to how the KIFACE interface is exported. But if you know what you are doing use it to retrieve anything you want.
aDataId | identifies which object you want the address of. |
Definition at line 140 of file pcb_calculator.cpp.
KIFACE_BASE& Kiface | ( | ) |
Global KIFACE_BASE "get" accessor.
Definition at line 78 of file pcb_calculator.cpp.
References PCBCALC::kiface().
MY_API | ( | KIFACE * | ) |
|
override |
Definition at line 47 of file mocks_eeschema.cpp.
|
override |
Definition at line 40 of file common_mocks.cpp.
const wxString PcbCalcDataFileExt | ( | wxT("pcbcalc") | ) |
PGM_BASE& Pgm | ( | ) |
The global Program "get" accessor.
Implemented in: 1) common/single_top.cpp, 2) kicad/kicad.cpp, and 3) scripting/kiway.i
Definition at line 90 of file pcb_calculator.cpp.
References process.
PGM_BASE* PgmOrNull | ( | ) |
similar to PGM_BASE& Pgm(), but return a reference that can be nullptr when running a shared lib from a script, not from a kicad appl
Definition at line 98 of file pcb_calculator.cpp.
References process.
int aKiwayVersion |
Definition at line 83 of file pcb_calculator.cpp.
int PGM_BASE* aProgram |
Definition at line 84 of file pcb_calculator.cpp.
Referenced by PCBCALC::IFACE::OnKifaceStart().
return& kiface |
Definition at line 86 of file pcb_calculator.cpp.
|
static |
Definition at line 75 of file pcb_calculator.cpp.
Referenced by Pgm(), and PgmOrNull().