KiCad PCB EDA Suite
bitmap2cmp_main.cpp File Reference
#include <bitmap2cmp_gui.h>
#include <bitmap2cmp_settings.h>
#include <kiface_i.h>
#include <kiway.h>
#include <pgm_base.h>
#include <settings/settings_manager.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 103 of file bitmap2cmp_main.cpp.

◆ IFACE()

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

Definition at line 126 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 121 of file bitmap2cmp_main.cpp.

◆ Kiface()

KIFACE_I& Kiface ( )

Global KIFACE_I "get" accessor.

Definition at line 76 of file bitmap2cmp_main.cpp.

77 {
78  return kiface;
79 }
BMP2CMP::IFACE KIFACE_I kiface("BMP2CMP", KIWAY::FACE_BMP2CMP)

Referenced by DIALOG_FIELDS_EDITOR_GLOBAL::AddField(), AskSaveBoardFileName(), AUTOPLACER::AUTOPLACER(), CVPCB_MAINFRAME::buildEquivalenceList(), SCH_EDIT_FRAME::canCloseWindow(), EDA_BASE_FRAME::config(), DIALOG_CHOOSE_COMPONENT::ConstructRightPanel(), DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE(), DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_COLOR_PICKER::DIALOG_COLOR_PICKER(), DIALOG_DRC::DIALOG_DRC(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC(), DIALOG_ERC::DIALOG_ERC(), DIALOG_FIELDS_EDITOR_GLOBAL::DIALOG_FIELDS_EDITOR_GLOBAL(), DIALOG_PRINT_GERBVIEW::DIALOG_PRINT_GERBVIEW(), DIALOG_PRINT_PCBNEW::DIALOG_PRINT_PCBNEW(), DIALOG_SCH_SHEET_PROPS::DIALOG_SCH_SHEET_PROPS(), SCH_EDIT_FRAME::doAutoSave(), PCB_EDIT_FRAME::doAutoSave(), PCB_BASE_EDIT_FRAME::doCloseWindow(), KIGFX::eeconfig(), BACK_ANNOTATE::FetchNetlistFromPCB(), PCB_IO::FootprintSave(), DISPLAY_FOOTPRINTS_FRAME::GetMagneticItemsSettings(), DIALOG_PLOT_SCHEMATIC::getPlotOptions(), EDA_BASE_FRAME::help_name(), LAYERS_MAP_DIALOG::initDialog(), DIALOG_PAGES_SETTINGS::initDialog(), DIALOG_PLOT_SCHEMATIC::initDlg(), DIALOG_ANNOTATE::InitValues(), DIALOG_DRC::initValues(), NETLIST_DIALOG::InstallCustomPages(), DIALOG_BOM::installGeneratorsList(), LIB_TREE_MODEL_ADAPTER::LIB_TREE_MODEL_ADAPTER(), EDA_DRAW_FRAME::LoadCanvasTypeSetting(), DIALOG_FIELDS_EDITOR_GLOBAL::LoadFieldNames(), WS_DATA_MODEL::MakeFullFileName(), WS_DATA_MODEL::MakeShortFileName(), DIALOG_FIELDS_EDITOR_GLOBAL::OnAddField(), DIALOG_FIELDS_EDITOR_GLOBAL::OnColumnItemToggled(), PL_EDITOR_FRAME::OnExit(), SCH_EDIT_FRAME::OnExit(), LAYERS_MAP_DIALOG::OnGetSetup(), DIALOG_RESCUE_EACH::OnNeverShowClick(), SCH_EDIT_FRAME::OnOpenPcbnew(), PCB_EDIT_FRAME::OnQuit(), HIERARCHY_NAVIG_DLG::onSelectSheetPath(), LAYERS_MAP_DIALOG::OnStoreSetup(), DIALOG_FIELDS_EDITOR_GLOBAL::OnTableColSize(), SCH_EDIT_FRAME::OnUpdatePCB(), SCH_EDIT_FRAME::OpenProjectFiles(), PCB_EDIT_FRAME::OpenProjectFiles(), PCB_BASE_FRAME::PCB_BASE_FRAME(), TRANSLINE_IDENT::ReadConfig(), SCH_EDIT_FRAME::ReCreateHToolbar(), PCB_EDIT_FRAME::ReCreateHToolbar(), PL_EDITOR_FRAME::ReCreateMenuBar(), SCH_EDIT_FRAME::ReCreateMenuBar(), GERBVIEW_FRAME::ReCreateMenuBar(), PCB_EDIT_FRAME::ReCreateMenuBar(), PCB_EDIT_FRAME::RunEeschema(), DRC_TOOL::RunTests(), EDA_DRAW_FRAME::saveCanvasTypeSetting(), LIB_TREE_MODEL_ADAPTER::SaveColWidths(), PCB_EDIT_FRAME::SavePcbFile(), SCH_EDIT_FRAME::SaveProject(), PCB_CALCULATOR_FRAME::SaveSettings(), SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS(), SCH_EDIT_FRAME::SendCrossProbeClearHighlight(), SCH_EDIT_FRAME::SendCrossProbeNetName(), PCB_EDIT_FRAME::SendCrossProbeNetName(), CVPCB_MAINFRAME::SendMessageToEESCHEMA(), PCB_EDIT_FRAME::SendMessageToEESCHEMA(), SCH_EDIT_FRAME::SendMessageToPCBNEW(), SCH_EDIT_FRAME::SetCrossProbeConnection(), EDA_BASE_FRAME::sys_search(), PCB_EDIT_FRAME::TestStandalone(), PANEL_PCBNEW_ACTION_PLUGINS::TransferDataFromWindow(), PCB_CALCULATOR_FRAME::TW_Init(), PCB_CALCULATOR_FRAME::TW_WriteConfig(), PCB_EDITOR_CONTROL::UpdateSchematicFromPCB(), PCB_CALCULATOR_FRAME::VS_Init(), PCB_CALCULATOR_FRAME::VS_WriteConfig(), TRANSLINE_IDENT::WriteConfig(), NETLIST_DIALOG::WriteCurrentNetlistSetup(), DIALOG_ANNOTATE::~DIALOG_ANNOTATE(), DIALOG_BOM::~DIALOG_BOM(), DIALOG_CHOOSE_COMPONENT::~DIALOG_CHOOSE_COMPONENT(), DIALOG_COLOR_PICKER::~DIALOG_COLOR_PICKER(), DIALOG_DRC::~DIALOG_DRC(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::~DIALOG_EDIT_COMPONENT_IN_SCHEMATIC(), DIALOG_ERC::~DIALOG_ERC(), DIALOG_PAGES_SETTINGS::~DIALOG_PAGES_SETTINGS(), DIALOG_SCH_SHEET_PROPS::~DIALOG_SCH_SHEET_PROPS(), and SCH_EDIT_FRAME::~SCH_EDIT_FRAME().

◆ 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 84 of file bitmap2cmp_main.cpp.

85 {
87  return &kiface;
88 }
PGM_BASE keeps program (whole process) data for KiCad programs.
Definition: pgm_base.h:137
static PGM_BASE * process
int PGM_BASE * aProgram
Definition: cvpcb/cvpcb.cpp:97
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 74 of file bitmap2cmp_main.cpp.

Referenced by KIFACE_GETTER().