KiCad PCB EDA Suite
kicad.cpp File Reference

Main KiCad Project manager file. More...

#include <wx/filename.h>
#include <wx/log.h>
#include <wx/stdpaths.h>
#include <wx/string.h>
#include <common.h>
#include <hotkeys_basic.h>
#include <kiway.h>
#include <richio.h>
#include <wildcards_and_files_ext.h>
#include <systemdirsappend.h>
#include <stdexcept>
#include "pgm_kicad.h"
#include "kicad.h"
#include <kiface_i.h>

Go to the source code of this file.

Classes

struct  APP_KICAD
 Struct APP_KICAD is not publicly visible because most of the action is in PGM_KICAD these days. More...
 

Functions

KIFACE_IKiface ()
 Global KIFACE_I "get" accessor. More...
 
PGM_BASEPgm ()
 The global Program "get" accessor. More...
 
PGM_KICADPgmTop ()
 
PROJECTPrj ()
 

Variables

static PGM_KICAD program
 

Detailed Description

Main KiCad Project manager file.

Definition in file kicad.cpp.

Function Documentation

KIFACE_I& Kiface ( )

Global KIFACE_I "get" accessor.

Definition at line 52 of file kicad.cpp.

Referenced by add_search_paths(), AUTOPLACER::AUTOPLACER(), PCB_EDIT_FRAME::Begin_Zone(), CVPCB_MAINFRAME::buildEquivalenceList(), EDA_DRAW_FRAME::CommonSettingsChanged(), EDA_BASE_FRAME::config(), DIALOG_BOM::DIALOG_BOM(), DIALOG_COPPER_ZONE::DIALOG_COPPER_ZONE(), DIALOG_DRC_CONTROL::DIALOG_DRC_CONTROL(), DIALOG_DXF_IMPORT::DIALOG_DXF_IMPORT(), 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_GLOBAL_SYM_LIB_TABLE_CONFIG::DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG(), 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(), PCB_EDIT_FRAME::DoShowBoardSetupDialog(), SCH_EDIT_FRAME::doUpdatePcb(), EDA_DRAW_PANEL::EDA_DRAW_PANEL(), FOOTPRINT_EDIT_FRAME::Export_Module(), FOOTPRINT_PREVIEW_PANEL::FOOTPRINT_PREVIEW_PANEL(), EDA_BASE_FRAME::GetFileFromHistory(), EDA_BASE_FRAME::help_name(), FOOTPRINT_EDIT_FRAME::Import_Module(), DIALOG_GEN_FOOTPRINT_POSITION::initDialog(), DIALOG_ANNOTATE::InitValues(), PCB_EDIT_FRAME::InstallNetlistFrame(), PART_LIBS::LibNamesAndPaths(), EDA_DRAW_FRAME::LoadCanvasTypeSetting(), SYMBOL_LIB_TABLE::LoadGlobalTable(), FP_LIB_TABLE::LoadGlobalTable(), CVPCB_MAINFRAME::LoadProjectFile(), SCH_EDIT_FRAME::LoadProjectFile(), PCB_EDIT_FRAME::LoadProjectSettings(), WORKSHEET_LAYOUT::MakeFullFileName(), WORKSHEET_LAYOUT::MakeShortFileName(), NETLIST_DIALOG::NETLIST_DIALOG(), FOOTPRINT_PREVIEW_PANEL::New(), PL_EDITOR_FRAME::OnCloseWindow(), SCH_EDIT_FRAME::OnCloseWindow(), LAYERS_MAP_DIALOG::OnGetSetup(), SCH_EDIT_FRAME::OnOpenPcbnew(), SCH_EDIT_FRAME::OnPrint(), PCB_EDIT_FRAME::OnRunEeschema(), LAYERS_MAP_DIALOG::OnStoreSetup(), PCB_EDIT_FRAME::OnUpdatePCBFromSch(), SCH_EDIT_FRAME::OpenProjectFiles(), prepareFilesMenu(), SCH_EDIT_FRAME::Process_Config(), PCB_EDIT_FRAME::Process_Special_Functions(), SCH_EDIT_FRAME::ReCreateHToolbar(), PCB_EDIT_FRAME::ReCreateHToolbar(), PL_EDITOR_FRAME::ReCreateMenuBar(), GERBVIEW_FRAME::ReCreateMenuBar(), SCH_EDIT_FRAME::ReCreateMenuBar(), PCB_EDIT_FRAME::ReCreateMenuBar(), EDA_DRAW_FRAME::saveCanvasTypeSetting(), CVPCB_MAINFRAME::SaveProjectFile(), SCH_EDIT_FRAME::SaveProjectSettings(), PCB_EDIT_FRAME::SaveProjectSettings(), 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(), and EDA_BASE_FRAME::UpdateFileHistory().

53 {
54  // This function should never be called. It is only referenced from
55  // EDA_BASE_FRAME::config() and this is only provided to satisfy the linker,
56  // not to be actually called.
57  wxLogFatalError( wxT( "Unexpected call to Kiface() in kicad/kicad.cpp" ) );
58 
59  throw std::logic_error( "Unexpected call to Kiface() in kicad/kicad.cpp" );
60 }
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 66 of file kicad.cpp.

Referenced by TREEPROJECT_ITEM::Activate(), add_search_paths(), PCB_BASE_EDIT_FRAME::AddLibrary(), LIB_MANAGER::addLibrary(), AddMenuItem(), CONTEXT_MENU::appendCopy(), PANEL_SYM_LIB_TABLE::browseLibrariesHandler(), PANEL_FP_LIB_TABLE::browseLibrariesHandler(), WS_DRAW_ITEM_LIST::BuildFullText(), buildKicadAboutBanner(), EDA_BASE_FRAME::CheckForAutoSaveFile(), DIALOG_BOM::choosePlugin(), EDA_DRAW_FRAME::CommonSettingsChanged(), KICAD_MANAGER_FRAME::CommonSettingsChanged(), PCB_BASE_FRAME::CommonSettingsChanged(), PROJECT::ConfigSave(), CreateHeaderInfoData(), DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable(), PGM_KICAD::Destroy(), DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES(), DIALOG_FOOTPRINT_BOARD_EDITOR::DIALOG_FOOTPRINT_BOARD_EDITOR(), DIALOG_FOOTPRINT_FP_EDITOR::DIALOG_FOOTPRINT_FP_EDITOR(), DIALOG_SHIM::DIALOG_SHIM(), PCB_EDIT_FRAME::DoGenFootprintsPositionFile(), PCB_EDIT_FRAME::DoGenFootprintsReport(), KIWAY::dso_search_path(), EDA_3D_VIEWER::EDA_3D_VIEWER(), EDA_DRAW_PANEL::EDA_DRAW_PANEL(), FindKicadFile(), NETLIST_EXPORTER_PSPICE::Format(), GERBVIEW_FRAME::GERBVIEW_FRAME(), get_scale_factor(), TEMPLATE_FIELDNAME::GetDefaultFieldName(), BIN_MOD::Init(), DIALOG_BOM::installPluginsList(), KicadDatasPath(), LIB_TREE_NODE_UNIT::LIB_TREE_NODE_UNIT(), SCH_LEGACY_PLUGIN_CACHE::Load(), S3D_PLUGIN_MANAGER::loadPlugins(), EDA_DRAW_FRAME::LoadSettings(), APP_KICAD::MacOpenFile(), FOOTPRINT_PREVIEW_PANEL::New(), NETLIST_DIALOG_ADD_PLUGIN::OnBrowsePlugins(), PCB_EDIT_FRAME::OnCloseWindow(), KICAD_MANAGER_FRAME::OnCreateProjectFromTemplate(), DIALOG_CONFIG_EQUFILES::OnEditEquFile(), DIALOG_BOM::OnEditPlugin(), KICAD_MANAGER_FRAME::OnOpenFileInTextEditor(), TREE_PROJECT_FRAME::OnOpenSelectedFileWithTextEditor(), KICAD_MANAGER_FRAME::OnOpenTextEditor(), PANEL_COMMON_SETTINGS::OnPDFViewerClick(), GERBVIEW_FRAME::OnShowGerberSourceFile(), PANEL_COMMON_SETTINGS::OnTextEditorClick(), OpenPDF(), PANEL_PREV_3D::PANEL_PREV_3D(), PCB_EDIT_FRAME::PCB_EDIT_FRAME(), pcbnewInitPythonScripting(), PCB_EDIT_FRAME::PrepareLayerIndicator(), preparePreferencesMenu(), PCB_EDIT_FRAME::Process_Special_Functions(), PyScriptingPath(), CVPCB_MAINFRAME::ReCreateMenuBar(), FOOTPRINT_EDIT_FRAME::ReCreateMenuBar(), PL_EDITOR_FRAME::ReCreateMenuBar(), KICAD_MANAGER_FRAME::ReCreateMenuBar(), LIB_EDIT_FRAME::ReCreateMenuBar(), GERBVIEW_FRAME::ReCreateMenuBar(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), SearchHelpFileFullPath(), set_wxMenuIcon(), KIWAY::SetLanguage(), SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET(), SystemDirsAppend(), DIALOG_ERC::TestErc(), PANEL_COMMON_SETTINGS::TransferDataFromWindow(), DIALOG_CONFIGURE_PATHS::TransferDataFromWindow(), PANEL_COMMON_SETTINGS::TransferDataToWindow(), DIALOG_CONFIGURE_PATHS::TransferDataToWindow(), WIZARD_3DSHAPE_LIBS_DOWNLOADER::WIZARD_3DSHAPE_LIBS_DOWNLOADER(), CACHE_WRAPPER::~CACHE_WRAPPER(), and WIZARD_3DSHAPE_LIBS_DOWNLOADER::~WIZARD_3DSHAPE_LIBS_DOWNLOADER().

67 {
68  return program;
69 }
static PGM_KICAD program
Definition: kicad.cpp:63

Variable Documentation

PGM_KICAD program
static

Definition at line 63 of file kicad.cpp.

Referenced by Pgm(), and PgmTop().