KiCad PCB EDA Suite
gerbview.cpp File Reference

GERBVIEW main file. More...

#include <fctsys.h>
#include <kiface_i.h>
#include <pgm_base.h>
#include <class_drawpanel.h>
#include <gerbview.h>
#include <hotkeys.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

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

Definition at line 148 of file gerbview.cpp.

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

Definition at line 140 of file gerbview.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 177 of file gerbview.cpp.

KIFACE_I& Kiface ( )

Global KIFACE_I "get" accessor.

Definition at line 106 of file gerbview.cpp.

References GERBV::kiface().

106 { return kiface; }
return & kiface
Definition: gerbview.cpp:114
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 118 of file gerbview.cpp.

References process.

119 {
120  wxASSERT( process ); // KIFACE_GETTER has already been called.
121  return *process;
122 }
static PGM_BASE * process
Definition: gerbview.cpp:104

Variable Documentation

int aKiwayVersion

Definition at line 111 of file gerbview.cpp.

int PGM_BASE* aProgram
Initial value:
{
int PGM_BASE * aProgram
Definition: gerbview.cpp:112
static PGM_BASE * process
Definition: gerbview.cpp:104

Definition at line 112 of file gerbview.cpp.

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

List of page sizes.

Definition at line 38 of file gerbview.cpp.

Referenced by DIALOG_PAGE_SHOW_PAGE_BORDERS::DIALOG_PAGE_SHOW_PAGE_BORDERS(), DIALOG_DISPLAY_OPTIONS::initOptDialog(), DIALOG_PAGE_SHOW_PAGE_BORDERS::OnOKBUttonClick(), and DIALOG_DISPLAY_OPTIONS::OnOKBUttonClick().

return& kiface

Definition at line 114 of file gerbview.cpp.

PGM_BASE* process
static

Definition at line 104 of file gerbview.cpp.

Referenced by Pgm().