KiCad PCB EDA Suite
pcb_base_frame.cpp File Reference
#include <fctsys.h>
#include <kiface_i.h>
#include <eda_base_frame.h>
#include <confirm.h>
#include <dialog_helpers.h>
#include <kicad_device_context.h>
#include <pcb_base_frame.h>
#include <base_units.h>
#include <msgpanel.h>
#include <pgm_base.h>
#include <3d_viewer/eda_3d_viewer.h>
#include <pcbnew.h>
#include <fp_lib_table.h>
#include <pcbnew_id.h>
#include <class_board.h>
#include <class_track.h>
#include <class_module.h>
#include <class_drawsegment.h>
#include <collectors.h>
#include <class_drawpanel.h>
#include <pcb_draw_panel_gal.h>
#include <pcb_view.h>
#include <math/vector2d.h>
#include <trigo.h>
#include <pcb_painter.h>
#include <tool/tool_manager.h>
#include <tool/tool_dispatcher.h>
#include <tools/pcb_actions.h>

Go to the source code of this file.

Functions

 EVT_MENU_RANGE (ID_POPUP_PCB_ITEM_SELECTION_START, ID_POPUP_PCB_ITEM_SELECTION_END, PCB_BASE_FRAME::ProcessItemSelection) PCB_BASE_FRAME
 

Variables

static const wxChar UserGridSizeXEntry [] = wxT( "PcbUserGrid_X" )
 
static const wxChar UserGridSizeYEntry [] = wxT( "PcbUserGrid_Y" )
 
static const wxChar UserGridUnitsEntry [] = wxT( "PcbUserGrid_Unit" )
 
static const wxChar DisplayPadFillEntry [] = wxT( "DiPadFi" )
 
static const wxChar DisplayViaFillEntry [] = wxT( "DiViaFi" )
 
static const wxChar DisplayPadNumberEntry [] = wxT( "DiPadNu" )
 
static const wxChar DisplayModuleEdgeEntry [] = wxT( "DiModEd" )
 
static const wxChar DisplayModuleTextEntry [] = wxT( "DiModTx" )
 
static const wxChar FastGrid1Entry [] = wxT( "FastGrid1" )
 
static const wxChar FastGrid2Entry [] = wxT( "FastGrid2" )
 

Function Documentation

Definition at line 82 of file pcb_base_frame.cpp.

References IU_PER_MILS.

109  :
110  EDA_DRAW_FRAME( aKiway, aParent, aFrameType, aTitle, aPos, aSize, aStyle, aFrameName ),
111  m_Pcb( nullptr ),
112  m_configSettings( aFrameType )
113 {
114  m_UserGridSize = wxPoint( (int) 10 * IU_PER_MILS, (int) 10 * IU_PER_MILS );
115  m_Collector = new GENERAL_COLLECTOR();
116 
117  m_FastGrid1 = 0;
118  m_FastGrid2 = 0;
119 
120  m_zoomLevelCoeff = 11.0 * IU_PER_MILS; // Adjusted to roughly displays zoom level = 1
121  // when the screen shows a 1:1 image
122  // obviously depends on the monitor,
123  // but this is an acceptable value
124 }
The base class for create windows for drawing purpose.
Definition: draw_frame.h:78
Used when the right click button is pressed, or when the select tool is in effect.
Definition: collectors.h:245
#define IU_PER_MILS
Definition: plotter.cpp:134

Variable Documentation

const wxChar DisplayModuleEdgeEntry[] = wxT( "DiModEd" )
static
const wxChar DisplayModuleTextEntry[] = wxT( "DiModTx" )
static
const wxChar DisplayPadFillEntry[] = wxT( "DiPadFi" )
static
const wxChar DisplayPadNumberEntry[] = wxT( "DiPadNu" )
static
const wxChar DisplayViaFillEntry[] = wxT( "DiViaFi" )
static
const wxChar FastGrid1Entry[] = wxT( "FastGrid1" )
static
const wxChar FastGrid2Entry[] = wxT( "FastGrid2" )
static
const wxChar UserGridSizeXEntry[] = wxT( "PcbUserGrid_X" )
static
const wxChar UserGridSizeYEntry[] = wxT( "PcbUserGrid_Y" )
static
const wxChar UserGridUnitsEntry[] = wxT( "PcbUserGrid_Unit" )
static