KiCad PCB EDA Suite
|
#include <pgm_base.h>
#include <kiface_base.h>
#include <confirm.h>
#include <gestfich.h>
#include <eda_dde.h>
#include "eeschema_jobs_handler.h"
#include "eeschema_helpers.h"
#include <eeschema_settings.h>
#include <sch_edit_frame.h>
#include <symbol_edit_frame.h>
#include <symbol_viewer_frame.h>
#include <transform.h>
#include <symbol_lib_table.h>
#include <dialogs/dialog_global_sym_lib_table_config.h>
#include <dialogs/panel_sym_lib_table.h>
#include <kiway.h>
#include <settings/settings_manager.h>
#include <symbol_editor_settings.h>
#include <sexpr/sexpr.h>
#include <sexpr/sexpr_parser.h>
#include <kiface_ids.h>
#include <netlist_exporters/netlist_exporter_kicad.h>
#include <wx/ffile.h>
#include <wildcards_and_files_ext.h>
#include <schematic.h>
#include <connection_graph.h>
#include <panel_template_fieldnames.h>
#include <panel_eeschema_color_settings.h>
#include <panel_sym_color_settings.h>
#include <panel_eeschema_editing_options.h>
#include <panel_eeschema_annotation_options.h>
#include <panel_sym_editing_options.h>
#include <dialogs/panel_gal_display_options.h>
#include <panel_eeschema_display_options.h>
#include <panel_sym_display_options.h>
#include <sim/sim_plot_frame.h>
#include <wx/crt.h>
Go to the source code of this file.
Classes | |
struct | SCH::IFACE |
Namespaces | |
namespace | SCH |
Functions | |
static std::unique_ptr< SCHEMATIC > | SCH::readSchematicFromFile (const std::string &aFilename) |
bool | SCH::generateSchematicNetlist (const wxString &aFilename, wxString &aNetlist) |
SCH::IFACE KIFACE_BASE, UNITS_PROVIDER | SCH::kiface ("eeschema", KIWAY::FACE_SCH) |
IFACE (const char *aName, KIWAY::FACE_T aType) | |
bool | OnKifaceStart (PGM_BASE *aProgram, int aCtlBits) override |
void | OnKifaceEnd () override |
wxWindow * | CreateKiWindow (wxWindow *aParent, int aClassId, KIWAY *aKiway, int aCtlBits=0) override |
void * | IfaceOrAddress (int aDataId) override |
Return a pointer to the requested object. More... | |
void | SaveFileAs (const wxString &aProjectBasePath, const wxString &aProjectName, const wxString &aNewProjectBasePath, const wxString &aNewProjectName, const wxString &aSrcFilePath, wxString &aErrors) override |
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... | |
int | HandleJob (JOB *aJob) override |
KIFACE_BASE & | Kiface () |
Global KIFACE_BASE "get" accessor. More... | |
MY_API (KIFACE *) KIFACE_GETTER(int *aKIFACEversion | |
PGM_BASE & | Pgm () |
The global Program "get" accessor. More... | |
PGM_BASE * | PgmOrNull () |
similar to PGM_BASE& Pgm(), but return a reference that can be nullptr when running a shared lib from a script, not from a kicad appl More... | |
static void | traverseSEXPR (SEXPR::SEXPR *aNode, const std::function< void(SEXPR::SEXPR *)> &aVisitor) |
Variables | |
SCH_SHEET * | g_RootSheet = nullptr |
std::unique_ptr< EESCHEMA_JOBS_HANDLER > | m_jobHandler |
static PGM_BASE * | process |
int | aKiwayVersion |
int PGM_BASE * | aProgram |
return & | kiface |
|
override |
Definition at line 11 of file eeschema.cpp.
|
override |
kiface::IFACE | ( | const char * | aName, |
KIWAY::FACE_T | aType | ||
) |
Definition at line 2 of file eeschema.cpp.
|
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.
aDataId | identifies which object you want the address of. |
Definition at line 136 of file eeschema.cpp.
KIFACE_BASE & Kiface | ( | ) |
Global KIFACE_BASE "get" accessor.
Definition at line 300 of file eeschema.cpp.
References kiface.
Referenced by SCH::IFACE::CreateKiWindow().
MY_API | ( | KIFACE * | ) |
|
override |
Definition at line 11 of file test_app_main.cpp.
|
override |
Definition at line 6 of file test_app_main.cpp.
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 312 of file eeschema.cpp.
References process.
Referenced by SCH::readSchematicFromFile().
PGM_BASE * PgmOrNull | ( | ) |
|
override |
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).
References KIWAY_PLAYER::CreateServer(), and KICAD_SCH_PORT_SERVICE_NUMBER.
|
static |
Definition at line 381 of file eeschema.cpp.
References SEXPR::SEXPR::GetChild(), SEXPR::SEXPR::GetNumberOfChildren(), SEXPR::SEXPR::IsList(), and traverseSEXPR().
Referenced by SCH::IFACE::SaveFileAs(), and traverseSEXPR().
int aKiwayVersion |
Definition at line 305 of file eeschema.cpp.
int PGM_BASE* aProgram |
Definition at line 305 of file eeschema.cpp.
Referenced by SCH::IFACE::OnKifaceStart().
SCH_SHEET* g_RootSheet = nullptr |
Definition at line 67 of file eeschema.cpp.
return& kiface |
Definition at line 308 of file eeschema.cpp.
Referenced by Kiface().
|
private |
Definition at line 160 of file eeschema.cpp.
|
static |
Definition at line 297 of file eeschema.cpp.
Referenced by Pgm(), and PgmOrNull().