KiCad PCB EDA Suite
bitmap2cmp_main.cpp File Reference
#include "bitmap2cmp_gui.h"
#include <kiface_i.h>
#include <kiway.h>
#include <pgm_base.h>

Go to the source code of this file.

Classes

struct  BMP2CMP::IFACE
 

Namespaces

 BMP2CMP
 

Functions

BMP2CMP::IFACE KIFACE_I BMP2CMP::kiface ("BMP2CMP", KIWAY::FACE_BMP2CMP)
 
bool OnKifaceStart (PGM_BASE *aProgram, int aCtlBits) override
 
wxWindow * CreateWindow (wxWindow *aParent, int aClassId, KIWAY *aKiway, int aCtlBits=0) override
 
void * IfaceOrAddress (int aDataId) override
 Function IfaceOrAddress return a pointer to the requested object. More...
 
 IFACE (const char *aDSOname, KIWAY::FACE_T aType)
 
KIFACE_IKiface ()
 Global KIFACE_I "get" accessor. More...
 
KIFACEKIFACE_GETTER (int *aKIFACEversion, int aKIWAYversion, PGM_BASE *aProgram)
 No name mangling. Each KIFACE (DSO/DLL) will implement this once. More...
 

Variables

static PGM_BASEprocess
 

Function Documentation

◆ CreateWindow()

wxWindow* kiface::CreateWindow ( wxWindow *  aParent,
int  aClassId,
KIWAY aKiway,
int  aCtlBits = 0 
)
override

Definition at line 99 of file bitmap2cmp_main.cpp.

◆ IFACE()

kiface::IFACE ( const char *  aDSOname,
KIWAY::FACE_T  aType 
)

Definition at line 120 of file bitmap2cmp_main.cpp.

◆ IfaceOrAddress()

void* kiface::IfaceOrAddress ( int  aDataId)
override

Function IfaceOrAddress 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.

Parameters
aDataIdidentifies which object you want the address of.
Returns
void* - and must be cast into the know type.

Definition at line 115 of file bitmap2cmp_main.cpp.

◆ Kiface()

KIFACE_I& Kiface ( )

Global KIFACE_I "get" accessor.

Definition at line 72 of file bitmap2cmp_main.cpp.

73 {
74  return kiface;
75 }
BMP2CMP::IFACE KIFACE_I kiface("BMP2CMP", KIWAY::FACE_BMP2CMP)

Referenced by AUTOPLACER::AUTOPLACER(), CVPCB_MAINFRAME::buildEquivalenceList(), EDA_DRAW_FRAME::CommonSettingsChanged(), EDA_BASE_FRAME::config(), DIALOG_BOM::DIALOG_BOM(), DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_CHOOSE_FOOTPRINT::DIALOG_CHOOSE_FOOTPRINT(), DIALOG_CLEANUP_TRACKS_AND_VIAS::DIALOG_CLEANUP_TRACKS_AND_VIAS(), DIALOG_COPPER_ZONE::DIALOG_COPPER_ZONE(), DIALOG_DRC_CONTROL::DIALOG_DRC_CONTROL(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::DIALOG_EDIT_COMPONENT_IN_LIBRARY(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC(), DIALOG_EXPORT_3DFILE::DIALOG_EXPORT_3DFILE(), DIALOG_EXPORT_IDF3::DIALOG_EXPORT_IDF3(), DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP(), DIALOG_EXPORT_SVG::DIALOG_EXPORT_SVG(), DIALOG_FOOTPRINT_BOARD_EDITOR::DIALOG_FOOTPRINT_BOARD_EDITOR(), DIALOG_FOOTPRINT_FP_EDITOR::DIALOG_FOOTPRINT_FP_EDITOR(), DIALOG_FOOTPRINT_WIZARD_LIST::DIALOG_FOOTPRINT_WIZARD_LIST(), DIALOG_GENDRILL::DIALOG_GENDRILL(), DIALOG_IMPORT_GFX::DIALOG_IMPORT_GFX(), DIALOG_KEEPOUT_AREA_PROPERTIES::DIALOG_KEEPOUT_AREA_PROPERTIES(), DIALOG_LIB_EDIT_PIN_TABLE::DIALOG_LIB_EDIT_PIN_TABLE(), DIALOG_NETLIST::DIALOG_NETLIST(), DIALOG_PLOT::DIALOG_PLOT(), DIALOG_PLOT_SCHEMATIC::DIALOG_PLOT_SCHEMATIC(), DIALOG_PRINT_GERBVIEW::DIALOG_PRINT_GERBVIEW(), DIALOG_PRINT_PCBNEW::DIALOG_PRINT_PCBNEW(), DIALOG_RESCUE_EACH::DIALOG_RESCUE_EACH(), DIALOG_UPDATE_PCB::DIALOG_UPDATE_PCB(), FOOTPRINT_EDIT_FRAME::Export_Module(), PCB_EDIT_FRAME::FetchNetlistFromSchematic(), FOOTPRINT_PREVIEW_PANEL::FOOTPRINT_PREVIEW_PANEL(), EDA_BASE_FRAME::GetFileFromHistory(), EDA_BASE_FRAME::help_name(), FOOTPRINT_EDIT_FRAME::Import_Module(), DIALOG_PAGES_SETTINGS::initDialog(), DIALOG_GEN_FOOTPRINT_POSITION::initDialog(), DIALOG_ANNOTATE::InitValues(), LIB_TREE_MODEL_ADAPTER::LIB_TREE_MODEL_ADAPTER(), PART_LIBS::LibNamesAndPaths(), EDA_DRAW_FRAME::LoadCanvasTypeSetting(), SCH_EDIT_FRAME::LoadProjectFile(), CVPCB_MAINFRAME::LoadProjectFile(), PCB_EDIT_FRAME::LoadProjectSettings(), WS_DATA_MODEL::MakeFullFileName(), WS_DATA_MODEL::MakeShortFileName(), NETLIST_DIALOG::NETLIST_DIALOG(), FOOTPRINT_PREVIEW_PANEL::New(), SCH_EDIT_FRAME::OnCloseWindow(), SCH_EDIT_FRAME::OnExit(), LAYERS_MAP_DIALOG::OnGetSetup(), SCH_EDIT_FRAME::OnOpenPcbnew(), PCB_EDIT_FRAME::OnQuit(), LAYERS_MAP_DIALOG::OnStoreSetup(), SCH_EDIT_FRAME::OnUpdatePCB(), SCH_EDIT_FRAME::OpenProjectFiles(), SCH_EDIT_FRAME::Print(), SCH_EDIT_FRAME::ReCreateHToolbar(), PCB_EDIT_FRAME::ReCreateHToolbar(), GERBVIEW_FRAME::ReCreateMenuBar(), SCH_EDIT_FRAME::ReCreateMenuBar(), PCB_EDIT_FRAME::ReCreateMenuBar(), PCB_EDIT_FRAME::RunEeschema(), DRC::RunTests(), EDA_DRAW_FRAME::saveCanvasTypeSetting(), CVPCB_MAINFRAME::SaveProjectFile(), SCH_EDIT_FRAME::SaveProjectSettings(), PCB_EDIT_FRAME::SaveProjectSettings(), SCH_EDIT_FRAME::SendCrossProbeClearHighlight(), SCH_EDIT_FRAME::SendCrossProbeNetName(), PCB_EDIT_FRAME::SendCrossProbeNetName(), CVPCB_MAINFRAME::SendMessageToEESCHEMA(), PCB_EDIT_FRAME::SendMessageToEESCHEMA(), SCH_EDIT_FRAME::SendMessageToPCBNEW(), EDA_BASE_FRAME::sys_search(), DIALOG_NON_COPPER_ZONES_EDITOR::TransferDataFromWindow(), EDA_BASE_FRAME::UpdateFileHistory(), and DIALOG_PAGES_SETTINGS::~DIALOG_PAGES_SETTINGS().

◆ KIFACE_GETTER()

KIFACE* KIFACE_GETTER ( int *  aKIFACEversion,
int  aKIWAYversion,
PGM_BASE aProgram 
)

No name mangling. Each KIFACE (DSO/DLL) will implement this once.

Definition at line 80 of file bitmap2cmp_main.cpp.

81 {
83  return &kiface;
84 }
PGM_BASE keeps program (whole process) data for KiCad programs.
Definition: pgm_base.h:156
static PGM_BASE * process
int PGM_BASE * aProgram
Definition: cvpcb/cvpcb.cpp:95
BMP2CMP::IFACE KIFACE_I kiface("BMP2CMP", KIWAY::FACE_BMP2CMP)

References aProgram, BMP2CMP::kiface(), and process.

◆ OnKifaceStart()

bool kiface::OnKifaceStart ( PGM_BASE aProgram,
int  aCtlBits 
)
override

Definition at line 40 of file common_mocks.cpp.

40 {
41  static PGM_TEST_FRAME program;
42  return program;
43 }
PGM_SINGLE_TOP program

Variable Documentation

◆ process

PGM_BASE* process
static

Definition at line 70 of file bitmap2cmp_main.cpp.

Referenced by KIFACE_GETTER().