40 m_selectionTool( nullptr )
48 m_commit = std::make_unique<BOARD_COMMIT>(
this );
65 bool updateMode =
false;
66 bool currentMode =
false;
96 wxFAIL_MSG( wxT(
"ExchangeFootprints: unexpected action" ) );
130 if( dlg.ShowModal() != wxID_OK )
133 bool hasChanges =
false;
143 if(
via->GetViaType() == VIATYPE::THROUGH )
146 via->LayerPair( &top_layer, &bottom_layer );
148 if( layerMap[bottom_layer] != bottom_layer || layerMap[top_layer] != top_layer )
151 via->SetLayerPair( layerMap[top_layer], layerMap[bottom_layer] );
171 m_commit->Push( wxT(
"Layers moved" ) );
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
virtual void SetLayer(PCB_LAYER_ID aLayer)
Set the layer this item is on.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
Used when the right click button is pressed, or when the select tool is in effect.
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const override
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
static TOOL_ACTION editTracksAndVias
static TOOL_ACTION swapLayers
static TOOL_ACTION updateFootprint
static TOOL_ACTION cleanupTracksAndVias
static TOOL_ACTION editTextAndGraphics
static TOOL_ACTION globalDeletions
static TOOL_ACTION updateFootprints
static TOOL_ACTION removeUnusedPads
static TOOL_ACTION changeFootprints
static TOOL_ACTION changeFootprint
static TOOL_ACTION editTeardrops
static TOOL_ACTION cleanupGraphics
void OnModify() override
Must be called after a change in order to set the "modify" flag and update other data structures and ...
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
virtual KIGFX::PCB_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
The main frame for Pcbnew.
bool Empty() const
Checks if there is anything selected.
PCB_LAYER_ID
A quick note on layer IDs:
@ GEOMETRY
Position or shape has changed.
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)