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

COLORS_DESIGN_SETTINGS g_ColorsSettings
 
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 152 of file gerbview.cpp.

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

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

KIFACE_I& Kiface ( )

Global KIFACE_I "get" accessor.

Definition at line 110 of file gerbview.cpp.

References GERBV::kiface().

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

References process.

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

Variable Documentation

int aKiwayVersion

Definition at line 115 of file gerbview.cpp.

int PGM_BASE* aProgram
Initial value:
{
int PGM_BASE * aProgram
Definition: gerbview.cpp:116
static PGM_BASE * process
Definition: gerbview.cpp:108

Definition at line 116 of file gerbview.cpp.

COLORS_DESIGN_SETTINGS g_ColorsSettings

Definition at line 39 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 42 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 118 of file gerbview.cpp.

PGM_BASE* process
static

Definition at line 108 of file gerbview.cpp.

Referenced by Pgm().