![]() |
KiCad PCB EDA Suite
|
Pcbnew main program. More...
#include <pgm_base.h>
#include <kiface_i.h>
#include <kiface_ids.h>
#include <confirm.h>
#include <pcb_edit_frame.h>
#include <eda_dde.h>
#include <wx/file.h>
#include <wx/log.h>
#include <wx/snglinst.h>
#include <gestfich.h>
#include <pcbnew.h>
#include <pcbnew_settings.h>
#include <settings/settings_manager.h>
#include <board.h>
#include <class_draw_panel_gal.h>
#include <fp_lib_table.h>
#include <footprint_edit_frame.h>
#include <footprint_viewer_frame.h>
#include <footprint_wizard_frame.h>
#include <footprint_preview_panel.h>
#include <footprint_info_impl.h>
#include <dialogs/dialog_configure_paths.h>
#include <paths.h>
#include "invoke_pcb_dialog.h"
#include "dialog_global_fp_lib_table_config.h"
#include <wildcards_and_files_ext.h>
Go to the source code of this file.
Classes | |
struct | PCB::IFACE |
Namespaces | |
PCB | |
Functions | |
PCB::IFACE KIFACE_I | PCB::kiface ("pcbnew", KIWAY::FACE_PCB) |
IFACE (const char *aName, KIWAY::FACE_T aType) | |
bool | OnKifaceStart (PGM_BASE *aProgram, int aCtlBits) override |
void | OnKifaceEnd () 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... | |
void | SaveFileAs (const wxString &aProjectBasePath, const wxString &aSrcProjectName, const wxString &aNewProjectBasePath, const wxString &aNewProjectName, const wxString &aSrcFilePath, wxString &aErrors) override |
Function SaveFileAs Saving a file under a different name is delegated to the various KIFACEs because the project doesn't know the internal format of the various files (which may have paths in them that need updating). More... | |
KIFACE_I & | Kiface () |
Global KIFACE_I "get" accessor. More... | |
MY_API (KIFACE *) KIFACE_GETTER(int *aKIFACEversion | |
void | PythonPluginsReloadBase () |
Helper function PythonPluginsReloadBase Reload Python plugins if they are newer than the already loaded, and load new plugins if any It calls the LoadPlugins(bundlepath) Python method see kicadplugins.i. More... | |
Variables | |
static PGM_BASE * | process |
int | aKiwayVersion |
int PGM_BASE * | aProgram |
return & | kiface |
FP_LIB_TABLE | GFootprintTable |
The global footprint library table. More... | |
FOOTPRINT_LIST_IMPL | GFootprintList |
The global footprint info table. More... | |
Pcbnew main program.
Definition in file pcbnew.cpp.
|
override |
Definition at line 411 of file pcbnew.cpp.
References KiCopyFile().
kiface::IFACE | ( | const char * | aName, |
KIWAY::FACE_T | aType | ||
) |
Definition at line 403 of file pcbnew.cpp.
|
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.
aDataId | identifies which object you want the address of. |
Definition at line 482 of file pcbnew.cpp.
KIFACE_I& Kiface | ( | ) |
Global KIFACE_I "get" accessor.
Definition at line 189 of file pcbnew.cpp.
References PCB::kiface().
Referenced by PCB::IFACE::CreateWindow().
MY_API | ( | KIFACE * | ) |
|
override |
Definition at line 47 of file mocks_eeschema.cpp.
|
override |
Definition at line 40 of file common_mocks.cpp.
References program.
void PythonPluginsReloadBase | ( | ) |
Helper function PythonPluginsReloadBase Reload Python plugins if they are newer than the already loaded, and load new plugins if any It calls the LoadPlugins(bundlepath) Python method see kicadplugins.i.
Definition at line 303 of file pcbnew.cpp.
References PyScriptingPath(), and TO_UTF8.
Referenced by PCB_EDIT_FRAME::PythonPluginsReload().
|
override |
Function SaveFileAs Saving a file under a different name is delegated to the various KIFACEs because the project doesn't know the internal format of the various files (which may have paths in them that need updating).
int aKiwayVersion |
Definition at line 194 of file pcbnew.cpp.
int PGM_BASE* aProgram |
Definition at line 195 of file pcbnew.cpp.
Referenced by PCB::IFACE::OnKifaceStart().
FOOTPRINT_LIST_IMPL GFootprintList |
The global footprint info table.
This is performance-intensive to build so we keep a hash-stamped global version. Any deviation from the request vs. stored hash will result in it being rebuilt.
Definition at line 332 of file pcbnew.cpp.
Referenced by PCB_BASE_EDIT_FRAME::doCloseWindow(), FOOTPRINT_EDIT_FRAME::doCloseWindow(), FP_TREE_MODEL_ADAPTER::getFootprints(), PCB::IFACE::IfaceOrAddress(), FOOTPRINT_EDIT_FRAME::initLibraryTree(), PCB_EDIT_FRAME::OpenProjectFiles(), PCB_BASE_FRAME::SelectFootprintFromLibTree(), and FOOTPRINT_EDIT_FRAME::SyncLibraryTree().
FP_LIB_TABLE GFootprintTable |
The global footprint library table.
!!!!!!!!!!!!!! This code is obsolete because of the merge into pcbnew, don't bother with it.
This is not dynamically allocated because in a multiple project environment we must keep its address constant (since it is the fallback table for multiple projects).
Definition at line 327 of file pcbnew.cpp.
Referenced by PCB::IFACE::IfaceOrAddress(), and PCB::IFACE::OnKifaceStart().
return& kiface |
Definition at line 197 of file pcbnew.cpp.
|
static |
Definition at line 186 of file pcbnew.cpp.