KiCad PCB EDA Suite
basepcbframe.cpp File Reference
#include <fctsys.h>
#include <kiface_i.h>
#include <wxstruct.h>
#include <confirm.h>
#include <dialog_helpers.h>
#include <kicad_device_context.h>
#include <wxBasePcbFrame.h>
#include <base_units.h>
#include <msgpanel.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 <view/view.h>
#include <math/vector2d.h>
#include <trigo.h>
#include <pcb_painter.h>
#include <tool/tool_manager.h>
#include <tool/tool_dispatcher.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 79 of file basepcbframe.cpp.

References INCHES.

100  :
101  EDA_DRAW_FRAME( aKiway, aParent, aFrameType, aTitle, aPos, aSize, aStyle, aFrameName )
102 {
103  m_Pcb = NULL;
104 
105  m_UserGridSize = wxRealPoint( 100.0, 100.0 );
106  m_UserGridUnit = INCHES;
107  m_Collector = new GENERAL_COLLECTOR();
108 
109  m_FastGrid1 = 0;
110  m_FastGrid2 = 0;
111 
112  m_auxiliaryToolBar = NULL;
113 
114  m_zoomLevelCoeff = 11.0 * IU_PER_MILS; // Adjusted to roughly displays zoom level = 1
115  // when the screen shows a 1:1 image
116  // obviously depends on the monitor,
117  // but this is an acceptable value
118 }
Class EDA_DRAW_FRAME is the base class for create windows for drawing purpose.
Definition: draw_frame.h:53
Definition: common.h:145
Class GENERAL_COLLECTOR is intended for use when the right click button is pressed, or when the plain "arrow" tool is in effect.
Definition: collectors.h:211

Variable Documentation

const wxChar DisplayModuleEdgeEntry[] = wxT( "DiModEd" )
static

Definition at line 72 of file basepcbframe.cpp.

Referenced by PCB_BASE_FRAME::LoadSettings(), and PCB_BASE_FRAME::SaveSettings().

const wxChar DisplayModuleTextEntry[] = wxT( "DiModTx" )
static

Definition at line 73 of file basepcbframe.cpp.

Referenced by PCB_BASE_FRAME::LoadSettings(), and PCB_BASE_FRAME::SaveSettings().

const wxChar DisplayPadFillEntry[] = wxT( "DiPadFi" )
static

Definition at line 69 of file basepcbframe.cpp.

Referenced by PCB_BASE_FRAME::LoadSettings(), and PCB_BASE_FRAME::SaveSettings().

const wxChar DisplayPadNumberEntry[] = wxT( "DiPadNu" )
static

Definition at line 71 of file basepcbframe.cpp.

Referenced by PCB_BASE_FRAME::LoadSettings(), and PCB_BASE_FRAME::SaveSettings().

const wxChar DisplayViaFillEntry[] = wxT( "DiViaFi" )
static

Definition at line 70 of file basepcbframe.cpp.

Referenced by PCB_BASE_FRAME::LoadSettings(), and PCB_BASE_FRAME::SaveSettings().

const wxChar FastGrid1Entry[] = wxT( "FastGrid1" )
static

Definition at line 74 of file basepcbframe.cpp.

Referenced by PCB_BASE_FRAME::LoadSettings(), and PCB_BASE_FRAME::SaveSettings().

const wxChar FastGrid2Entry[] = wxT( "FastGrid2" )
static

Definition at line 75 of file basepcbframe.cpp.

Referenced by PCB_BASE_FRAME::LoadSettings(), and PCB_BASE_FRAME::SaveSettings().

const wxChar UserGridSizeXEntry[] = wxT( "PcbUserGrid_X" )
static

Definition at line 66 of file basepcbframe.cpp.

Referenced by PCB_BASE_FRAME::LoadSettings(), and PCB_BASE_FRAME::SaveSettings().

const wxChar UserGridSizeYEntry[] = wxT( "PcbUserGrid_Y" )
static

Definition at line 67 of file basepcbframe.cpp.

Referenced by PCB_BASE_FRAME::LoadSettings(), and PCB_BASE_FRAME::SaveSettings().

const wxChar UserGridUnitsEntry[] = wxT( "PcbUserGrid_Unit" )
static

Definition at line 68 of file basepcbframe.cpp.

Referenced by PCB_BASE_FRAME::LoadSettings(), and PCB_BASE_FRAME::SaveSettings().