KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_drill_map.cpp File Reference
#include <pcb_drill_map.h>
#include <api/api_enums.h>
#include <api/api_utils.h>
#include <api/board/board_types.pb.h>
#include <base_units.h>
#include <board.h>
#include <board_design_settings.h>
#include <drill/drill_chart_template.h>
#include <drill/drill_enumerator.h>
#include <i18n_utility.h>
#include <properties/property_mgr.h>
#include <view/view.h>
#include <widgets/msgpanel.h>

Go to the source code of this file.

Classes

struct  PCB_DRILL_MAP_DESC
 

Functions

void RefreshDrillMapOutlines (const BOARD &aBoard, KIGFX::VIEW *aView)
 Repaint every drill map after an Edge.Cuts edit.
 

Variables

static struct PCB_DRILL_MAP_DESC _PCB_DRILL_MAP_DESC
 

Function Documentation

◆ RefreshDrillMapOutlines()

void RefreshDrillMapOutlines ( const BOARD & aBoard,
KIGFX::VIEW * aView )

Repaint every drill map after an Edge.Cuts edit.

A map draws the board outline displaced by its own offset, but it is not itself part of the commit that changed the edge cuts, so nothing else tells the view its geometry has moved.

Definition at line 145 of file pcb_drill_map.cpp.

References BOARD::Drawings(), KIGFX::GEOMETRY, PCB_DRILL_MAP_T, KIGFX::REPAINT, and KIGFX::VIEW::Update().

Referenced by BOARD_COMMIT::Push(), PCB_BASE_EDIT_FRAME::RestoreCopyFromRedoList(), PCB_BASE_EDIT_FRAME::RestoreCopyFromUndoList(), and PCB_BASE_EDIT_FRAME::RollbackFromUndo().

Variable Documentation

◆ _PCB_DRILL_MAP_DESC

struct PCB_DRILL_MAP_DESC _PCB_DRILL_MAP_DESC
static