KiCad PCB EDA Suite
bitmap2cmp_main.cpp File Reference
#include <bitmap2cmp_gui.h>
#include <bitmap2cmp_settings.h>
#include <kiface_base.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_BASE 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
 Return a pointer to the requested object. More...
 
 IFACE (const char *aDSOname, KIWAY::FACE_T aType)
 
KIFACE_BASEKiface ()
 Global KIFACE_BASE "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 109 of file bitmap2cmp_main.cpp.

◆ IFACE()

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

Definition at line 132 of file bitmap2cmp_main.cpp.

◆ IfaceOrAddress()

void* kiface::IfaceOrAddress ( int  aDataId)
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.

Parameters
aDataIdidentifies which object you want the address of.
Returns
the object which must be cast into the known type.

Definition at line 127 of file bitmap2cmp_main.cpp.

◆ Kiface()

KIFACE_BASE& Kiface ( )

Global KIFACE_BASE "get" accessor.

Definition at line 75 of file bitmap2cmp_main.cpp.

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

Referenced by DIALOG_SYMBOL_FIELDS_TABLE::AddField(), AskSaveBoardFileName(), AUTOPLACER::AUTOPLACER(), CVPCB_MAINFRAME::buildEquivalenceList(), SCH_EDIT_FRAME::canCloseWindow(), EDA_BASE_FRAME::config(), DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE(), DIALOG_CHOOSE_SYMBOL::DIALOG_CHOOSE_SYMBOL(), DIALOG_COLOR_PICKER::DIALOG_COLOR_PICKER(), DIALOG_DRC::DIALOG_DRC(), DIALOG_ERC::DIALOG_ERC(), DIALOG_PRINT_GERBVIEW::DIALOG_PRINT_GERBVIEW(), DIALOG_PRINT_PCBNEW::DIALOG_PRINT_PCBNEW(), DIALOG_SHEET_PROPERTIES::DIALOG_SHEET_PROPERTIES(), DIALOG_SYMBOL_FIELDS_TABLE::DIALOG_SYMBOL_FIELDS_TABLE(), DIALOG_SYMBOL_PROPERTIES::DIALOG_SYMBOL_PROPERTIES(), PCB_EDIT_FRAME::doAutoSave(), SCH_EDIT_FRAME::doAutoSave(), PCB_BASE_EDIT_FRAME::doCloseWindow(), KIGFX::eeconfig(), EVT_UPDATE_UI_RANGE(), BACK_ANNOTATE::FetchNetlistFromPCB(), PCB_IO::FootprintSave(), get_instance_from_id(), DISPLAY_FOOTPRINTS_FRAME::GetMagneticItemsSettings(), DIALOG_PLOT_SCHEMATIC::getPlotOptions(), EDA_BASE_FRAME::help_name(), LAYERS_MAP_DIALOG::initDialog(), DIALOG_PLOT_SCHEMATIC::initDlg(), PCB_CALCULATOR_FRAME::initTrackWidthPanel(), DIALOG_ANNOTATE::InitValues(), DIALOG_DRC::initValues(), PCB_CALCULATOR_FRAME::initViaSizePanel(), NETLIST_DIALOG::InstallCustomPages(), LIB_TREE_MODEL_ADAPTER::LIB_TREE_MODEL_ADAPTER(), EDA_DRAW_FRAME::loadCanvasTypeSetting(), DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames(), DS_DATA_MODEL::MakeFullFileName(), DS_DATA_MODEL::MakeShortFileName(), DIALOG_SYMBOL_FIELDS_TABLE::OnAddField(), DIALOG_SYMBOL_FIELDS_TABLE::OnColumnItemToggled(), PL_EDITOR_FRAME::OnExit(), SCH_EDIT_FRAME::OnExit(), LAYERS_MAP_DIALOG::OnGetSetup(), SCH_EDIT_FRAME::OnImportProject(), DIALOG_RESCUE_EACH::OnNeverShowClick(), SCH_EDIT_FRAME::OnOpenPcbnew(), PCB_EDIT_FRAME::OnQuit(), HIERARCHY_NAVIG_DLG::onSelectSheetPath(), LAYERS_MAP_DIALOG::OnStoreSetup(), DIALOG_SYMBOL_FIELDS_TABLE::OnTableColSize(), DIALOG_EESCHEMA_PAGE_SETTINGS::onTransferDataToWindow(), SCH_EDIT_FRAME::OnUpdatePCB(), PCB_EDIT_FRAME::OpenProjectFiles(), SCH_EDIT_FRAME::OpenProjectFiles(), PCB_BASE_FRAME::PCB_BASE_FRAME(), TRANSLINE_IDENT::ReadConfig(), SCH_EDIT_FRAME::ReCreateHToolbar(), PCB_EDIT_FRAME::ReCreateHToolbar(), GERBVIEW_FRAME::ReCreateMenuBar(), PL_EDITOR_FRAME::ReCreateMenuBar(), SCH_EDIT_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(), PANEL_EESCHEMA_TEMPLATE_FIELDNAMES::TransferDataFromWindow(), BOARD_EDITOR_CONTROL::UpdateSchematicFromPCB(), TRANSLINE_IDENT::WriteConfig(), NETLIST_DIALOG::WriteCurrentNetlistSetup(), PCB_CALCULATOR_FRAME::writeTrackWidthConfig(), PCB_CALCULATOR_FRAME::writeViaSizeConfig(), DIALOG_ANNOTATE::~DIALOG_ANNOTATE(), DIALOG_CHOOSE_SYMBOL::~DIALOG_CHOOSE_SYMBOL(), DIALOG_COLOR_PICKER::~DIALOG_COLOR_PICKER(), DIALOG_DRC::~DIALOG_DRC(), DIALOG_EESCHEMA_PAGE_SETTINGS::~DIALOG_EESCHEMA_PAGE_SETTINGS(), DIALOG_ERC::~DIALOG_ERC(), DIALOG_SHEET_PROPERTIES::~DIALOG_SHEET_PROPERTIES(), DIALOG_SYMBOL_PROPERTIES::~DIALOG_SYMBOL_PROPERTIES(), 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 83 of file bitmap2cmp_main.cpp.

84 {
86  return &kiface;
87 }
Container for data for KiCad programs.
Definition: pgm_base.h:93
BMP2CMP::IFACE KIFACE_BASE kiface("BMP2CMP", KIWAY::FACE_BMP2CMP)
static PGM_BASE * process
int PGM_BASE * aProgram
Definition: cvpcb.cpp:110

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

Referenced by KIFACE_GETTER().