KiCad PCB EDA Suite
gerbview.cpp File Reference

GERBVIEW main file. More...

#include <fctsys.h>
#include <kiface_i.h>
#include <pgm_base.h>
#include <gerbview.h>
#include <gerbview_frame.h>

Go to the source code of this file.

Classes

struct  GERBV::IFACE
 

Namespaces

 GERBV
 

Functions

GERBV::IFACE KIFACE_I GERBV::kiface ("gerbview", KIWAY::FACE_GERBVIEW)
 
 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

const wxChar * g_GerberPageSizeList []
 List of page sizes. More...
 
static PGM_BASEprocess
 
int aKiwayVersion
 
int PGM_BASEaProgram
 
return & kiface
 

Detailed Description

GERBVIEW main file.

Definition in file gerbview.cpp.

Function Documentation

◆ CreateWindow()

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

Definition at line 140 of file gerbview.cpp.

◆ IFACE()

kiface::IFACE ( const char *  aName,
KIWAY::FACE_T  aType 
)

Definition at line 132 of file gerbview.cpp.

◆ IfaceOrAddress()

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 169 of file gerbview.cpp.

◆ Kiface()

KIFACE_I& Kiface ( )

Global KIFACE_I "get" accessor.

Definition at line 103 of file gerbview.cpp.

103 { return kiface; }
return & kiface
Definition: gerbview.cpp:111

References GERBV::kiface().

◆ MY_API()

MY_API ( KIFACE )

◆ OnKifaceEnd()

void kiface::OnKifaceEnd ( )
override

◆ OnKifaceStart()

bool kiface::OnKifaceStart ( PGM_BASE aProgram,
int  aCtlBits 
)
override

◆ Pgm()

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 115 of file gerbview.cpp.

116 {
117  wxASSERT( process ); // KIFACE_GETTER has already been called.
118  return *process;
119 }
static PGM_BASE * process
Definition: gerbview.cpp:101

References process.

Variable Documentation

◆ aKiwayVersion

int aKiwayVersion

Definition at line 108 of file gerbview.cpp.

◆ aProgram

int PGM_BASE* aProgram
Initial value:
{
int PGM_BASE * aProgram
Definition: gerbview.cpp:109
static PGM_BASE * process
Definition: gerbview.cpp:101

Definition at line 109 of file gerbview.cpp.

◆ g_GerberPageSizeList

const wxChar* g_GerberPageSizeList[]
Initial value:
=
{
wxT( "GERBER" ),
wxT( "A4" ),
wxT( "A3" ),
wxT( "A2" ),
wxT( "A" ),
wxT( "B" ),
wxT( "C" ),
}

List of page sizes.

Definition at line 35 of file gerbview.cpp.

Referenced by PANEL_GERBVIEW_SETTINGS::TransferDataFromWindow(), and PANEL_GERBVIEW_SETTINGS::TransferDataToWindow().

◆ kiface

return& kiface

Definition at line 111 of file gerbview.cpp.

◆ process

PGM_BASE* process
static

Definition at line 101 of file gerbview.cpp.

Referenced by Pgm().