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 ()
 
 IMPLEMENT_APP (APP_KICAD)
 
PROJECTPrj ()
 

Variables

static PGM_KICAD program
 

Detailed Description

Main KiCad Project manager file.

Definition in file kicad.cpp.

Function Documentation

IMPLEMENT_APP ( APP_KICAD  )
KIFACE_I& Kiface ( )

Global KIFACE_I "get" accessor.

Definition at line 52 of file kicad.cpp.

Referenced by AUTOPLACER::AUTOPLACER(), PCB_EDIT_FRAME::Begin_Zone(), CVPCB_MAINFRAME::buildEquivalenceList(), 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_EESCHEMA_CONFIG::DIALOG_EESCHEMA_CONFIG(), DIALOG_EXPORT_3DFILE::DIALOG_EXPORT_3DFILE(), DIALOG_EXPORT_IDF3::DIALOG_EXPORT_IDF3(), DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP(), DIALOG_FOOTPRINT_WIZARD_LIST::DIALOG_FOOTPRINT_WIZARD_LIST(), DIALOG_GENDRILL::DIALOG_GENDRILL(), DIALOG_KEEPOUT_AREA_PROPERTIES::DIALOG_KEEPOUT_AREA_PROPERTIES(), DIALOG_NETLIST::DIALOG_NETLIST(), DIALOG_PLOT::DIALOG_PLOT(), DIALOG_PLOT_SCHEMATIC::DIALOG_PLOT_SCHEMATIC(), DIALOG_PRINT_FOR_MODEDIT::DIALOG_PRINT_FOR_MODEDIT(), DIALOG_PRINT_USING_PRINTER::DIALOG_PRINT_USING_PRINTER(), DIALOG_RESCUE_EACH::DIALOG_RESCUE_EACH(), DIALOG_SVG_PRINT::DIALOG_SVG_PRINT(), EDA_DRAW_PANEL::EDA_DRAW_PANEL(), FOOTPRINT_EDIT_FRAME::Export_Module(), EDA_BASE_FRAME::GetFileFromHistory(), EDA_BASE_FRAME::help_name(), FOOTPRINT_EDIT_FRAME::Import_Module(), DIALOG_GEN_MODULE_POSITION::initDialog(), PCB_EDIT_FRAME::InstallNetlistFrame(), PART_LIBS::LibNamesAndPaths(), PCB_BASE_FRAME::LoadCanvasTypeSetting(), FP_LIB_TABLE::LoadGlobalTable(), SYMBOL_LIB_TABLE::LoadGlobalTable(), CVPCB_MAINFRAME::LoadProjectFile(), SCH_EDIT_FRAME::LoadProjectFile(), PCB_EDIT_FRAME::LoadProjectSettings(), WORKSHEET_LAYOUT::MakeFullFileName(), WORKSHEET_LAYOUT::MakeShortFileName(), NETLIST_DIALOG::NETLIST_DIALOG(), PL_EDITOR_FRAME::OnCloseWindow(), SCH_EDIT_FRAME::OnCloseWindow(), LAYERS_MAP_DIALOG::OnGetSetup(), DIALOG_NON_COPPER_ZONES_EDITOR::OnOkClick(), SCH_EDIT_FRAME::OnOpenPcbnew(), SCH_EDIT_FRAME::OnPrint(), LAYERS_MAP_DIALOG::OnStoreSetup(), SCH_EDIT_FRAME::OnUpdatePCB(), PCB_EDIT_FRAME::OnUpdatePCBFromSch(), SCH_EDIT_FRAME::OpenProjectFiles(), prepareFilesMenu(), SCH_EDIT_FRAME::Process_Config(), PCB_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(), PCB_BASE_FRAME::SaveCanvasTypeSetting(), CVPCB_MAINFRAME::SaveProjectFile(), SCH_EDIT_FRAME::SaveProjectSettings(), PCB_EDIT_FRAME::SaveProjectSettings(), CVPCB_MAINFRAME::SendMessageToEESCHEMA(), PCB_EDIT_FRAME::SendMessageToEESCHEMA(), SCH_EDIT_FRAME::SendMessageToPCBNEW(), EDA_BASE_FRAME::sys_search(), EDA_BASE_FRAME::UpdateFileHistory(), and EDA_DRAW_PANEL::~EDA_DRAW_PANEL().

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 65 of file kicad.cpp.

Referenced by TREEPROJECT_ITEM::Activate(), EDA_BASE_FRAME::AddMenuIconsOptions(), AddMenuItem(), WS_DRAW_ITEM_LIST::BuildFullText(), EDA_BASE_FRAME::CheckForAutoSaveFile(), DIALOG_BOM::choosePlugin(), PROJECT::ConfigSave(), CreateHeaderInfoData(), DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES(), DIALOG_MODULE_MODULE_EDITOR::DIALOG_MODULE_MODULE_EDITOR(), DIALOG_SHIM::DIALOG_SHIM(), PCB_EDIT_FRAME::DoGenFootprintsPositionFile(), PCB_EDIT_FRAME::DoGenFootprintsReport(), KIWAY::dso_search_path(), EVT_UPDATE_UI_RANGE(), FindKicadFile(), InitKiCadAboutNew(), KicadDatasPath(), S3D_PLUGIN_MANAGER::loadPlugins(), APP_KICAD::MacOpenFile(), WIZARD_FPLIB_TABLE::OnBrowseButtonClick(), NETLIST_DIALOG_ADD_PLUGIN::OnBrowsePlugins(), EDA_BASE_FRAME::OnChangeIconsOptions(), PCB_EDIT_FRAME::OnCloseWindow(), DLG_3D_PATH_CONFIG::OnConfigEnvVar(), CVPCB_MAINFRAME::OnConfigurePaths(), FOOTPRINT_EDIT_FRAME::OnConfigurePaths(), KICAD_MANAGER_FRAME::OnConfigurePaths(), PCB_EDIT_FRAME::OnConfigurePaths(), DIALOG_CONFIG_EQUFILES::OnEditEquFile(), DIALOG_BOM::OnEditPlugin(), KICAD_MANAGER_FRAME::OnOpenFileInTextEditor(), TREE_PROJECT_FRAME::OnOpenSelectedFileWithTextEditor(), KICAD_MANAGER_FRAME::OnOpenTextEditor(), KICAD_MANAGER_FRAME::OnSelectDefaultPdfBrowser(), EDA_BASE_FRAME::OnSelectPreferredEditor(), KICAD_MANAGER_FRAME::OnSelectPreferredPdfBrowser(), GERBVIEW_FRAME::OnShowGerberSourceFile(), KICAD_MANAGER_FRAME::OnUpdateDefaultPdfBrowser(), KICAD_MANAGER_FRAME::OnUpdatePreferredPdfBrowser(), OpenPDF(), preparePreferencesMenu(), PCB_EDIT_FRAME::Process_Special_Functions(), PyScriptingPath(), CVPCB_MAINFRAME::ReCreateMenuBar(), FOOTPRINT_EDIT_FRAME::ReCreateMenuBar(), PL_EDITOR_FRAME::ReCreateMenuBar(), LIB_EDIT_FRAME::ReCreateMenuBar(), KICAD_MANAGER_FRAME::ReCreateMenuBar(), GERBVIEW_FRAME::ReCreateMenuBar(), SearchHelpFileFullPath(), KIWAY::SetLanguage(), SystemDirsAppend(), DIALOG_ERC::TestErc(), WIZARD_3DSHAPE_LIBS_DOWNLOADER::WIZARD_3DSHAPE_LIBS_DOWNLOADER(), WIZARD_FPLIB_TABLE::WIZARD_FPLIB_TABLE(), wxBEGIN_EVENT_TABLE(), WIZARD_3DSHAPE_LIBS_DOWNLOADER::~WIZARD_3DSHAPE_LIBS_DOWNLOADER(), and WIZARD_FPLIB_TABLE::~WIZARD_FPLIB_TABLE().

66 {
67  return program;
68 }
static PGM_KICAD program
Definition: kicad.cpp:62

Variable Documentation

PGM_KICAD program
static

Definition at line 62 of file kicad.cpp.

Referenced by Pgm(), and PgmTop().