KiCad PCB EDA Suite
class_pl_editor_screen.cpp File Reference
#include <fctsys.h>
#include <common.h>
#include <macros.h>
#include <class_pl_editor_screen.h>
#include <base_units.h>
#include <pl_editor_id.h>

Go to the source code of this file.

Macros

#define MM_GRID(x)   wxRealPoint( x * IU_PER_MM, x * IU_PER_MM )
 
#define ZOOM_FACTOR(x)   ( x * IU_PER_MM / 1000 )
 

Variables

static const double pl_editorZoomList []
 Default zoom values. More...
 
static GRID_TYPE pl_editorGridList []
 

Macro Definition Documentation

#define MM_GRID (   x)    wxRealPoint( x * IU_PER_MM, x * IU_PER_MM )

Definition at line 36 of file class_pl_editor_screen.cpp.

Referenced by PL_EDITOR_SCREEN::PL_EDITOR_SCREEN().

#define ZOOM_FACTOR (   x)    ( x * IU_PER_MM / 1000 )

Definition at line 37 of file class_pl_editor_screen.cpp.

Referenced by PL_EDITOR_SCREEN::PL_EDITOR_SCREEN().

Variable Documentation

const double pl_editorZoomList[]
static
Initial value:
=
{
ZOOM_FACTOR( 7.0 ),
ZOOM_FACTOR( 10.0 ),
ZOOM_FACTOR( 15.0 ),
ZOOM_FACTOR( 22.0 ),
ZOOM_FACTOR( 35.0 ),
ZOOM_FACTOR( 50.0 ),
ZOOM_FACTOR( 80.0 ),
ZOOM_FACTOR( 120.0 ),
ZOOM_FACTOR( 160.0 ),
ZOOM_FACTOR( 230.0 ),
ZOOM_FACTOR( 290.0 ),
ZOOM_FACTOR( 380.0 ),
ZOOM_FACTOR( 500.0 ),
ZOOM_FACTOR( 750.0 ),
ZOOM_FACTOR( 1000.0 ),
ZOOM_FACTOR( 1500.0 ),
ZOOM_FACTOR( 2000.0 ),
ZOOM_FACTOR( 3000.0 ),
}
#define ZOOM_FACTOR(x)

Default zoom values.

Roughly a 1.5 progression.

Definition at line 44 of file class_pl_editor_screen.cpp.

Referenced by PL_EDITOR_SCREEN::PL_EDITOR_SCREEN().