KiCad PCB EDA Suite
cvpcb.cpp File Reference
#include <fctsys.h>
#include <macros.h>
#include <fp_lib_table.h>
#include <kiface_i.h>
#include <pgm_base.h>
#include <wxstruct.h>
#include <confirm.h>
#include <cvpcb.h>
#include <zones.h>
#include <cvpcb_mainframe.h>
#include <cvpcb_id.h>
#include <build_version.h>
#include <wx/snglinst.h>

Go to the source code of this file.

Classes

struct  CV::IFACE
 

Namespaces

 CV
 

Functions

const wxString EquFileExtension (wxT("equ"))
 
const wxString EquFilesWildcard (_("Component/footprint equ files (*.equ)|*.equ"))
 
CV::IFACE KIFACE_I CV::kiface ("cvpcb", KIWAY::FACE_CVPCB)
 
 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...
 
KIFACE_IKiface ()
 Global KIFACE_I "get" accessor. More...
 
 MY_API (KIFACE *) KIFACE_GETTER(int *aKIFACEversion
 
PGM_BASEPgm ()
 The global Program "get" accessor. More...
 

Variables

static PGM_BASEprocess = (PGM_BASE*) aProgram
 
int aKIWAYversion
 
return & kiface
 
FP_LIB_TABLE GFootprintTable
 !!!!!!!!!!!!!! This code is obsolete because of the merge into pcbnew, don't bother with it. More...
 

Function Documentation

wxWindow* kiface::CreateWindow ( wxWindow *  aParent,
int  aClassId,
KIWAY aKiway,
int  aCtlBits = 0 
)
override

Definition at line 197 of file cvpcb.cpp.

const wxString EquFileExtension ( wxT("equ")  )
const wxString EquFilesWildcard ( _("Component/footprint equ files (*.equ)|*.equ")  )
kiface::IFACE ( const char *  aName,
KIWAY::FACE_T  aType 
)

Definition at line 189 of file cvpcb.cpp.

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

Parameters
aDataIdidentifies which object you want the address of.
Returns
void* - and must be cast into the know type.

Definition at line 226 of file cvpcb.cpp.

KIFACE_I& Kiface ( )

Global KIFACE_I "get" accessor.

Definition at line 111 of file cvpcb.cpp.

References CV::kiface().

111 { return kiface; }
return & kiface
Definition: cvpcb.cpp:119
MY_API ( KIFACE )
void kiface::OnKifaceEnd ( )
override
bool kiface::OnKifaceStart ( PGM_BASE aProgram,
int  aCtlBits 
)
override
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 123 of file cvpcb.cpp.

References process.

124 {
125  wxASSERT( process ); // KIFACE_GETTER has already been called.
126  return *process;
127 }
static PGM_BASE * process
Definition: cvpcb.cpp:108

Variable Documentation

int aKIWAYversion

Definition at line 116 of file cvpcb.cpp.

FP_LIB_TABLE GFootprintTable

!!!!!!!!!!!!!! This code is obsolete because of the merge into pcbnew, don't bother with it.

The global footprint library table.

Definition at line 132 of file cvpcb.cpp.

return& kiface

Definition at line 119 of file cvpcb.cpp.

int PGM_BASE *aProgram process = (PGM_BASE*) aProgram
static

Definition at line 108 of file cvpcb.cpp.

Referenced by Pgm().