53 m_commit = std::make_unique<BOARD_COMMIT>(
this );
71 bool updateMode =
false;
72 bool currentMode =
false;
102 wxFAIL_MSG( wxT(
"ExchangeFootprints: unexpected action" ) );
119 if( aLayerMap.count( original ) )
120 newLayers.
set( aLayerMap[ original ] );
122 newLayers.
set( original );
125 if( originalLayers != newLayers )
139 std::map<PCB_LAYER_ID, PCB_LAYER_ID> layerMap;
146 bool hasChanges =
false;
159 via->LayerPair( &top_layer, &bottom_layer );
161 if( layerMap[bottom_layer] != bottom_layer || layerMap[top_layer] != top_layer )
164 via->SetLayerPair( layerMap[top_layer], layerMap[bottom_layer] );
188 frame()->GetCanvas()->Refresh();
256 if( dialogResult == wxID_CANCEL )
269 board->IncrementTimeStamp();
273 board->BuildConnectivity();
#define SKIP_CONNECTIVITY
BASE_SET & set(size_t pos)
virtual void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Execute the changes.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
virtual void SetLayerSet(const LSET &aLayers)
virtual LSET GetLayerSet() const
Return a std::bitset of all layers on which the item physically resides.
Information pertinent to a Pcbnew printed circuit board.
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr, RECURSE_MODE aRecurse=RECURSE_MODE::NO_RECURSE)
Modify a given item in the model.
Dialog that offers to migrate obsolete WRL 3D model references on a loaded board to current STEP mode...
static const TOOL_EVENT ConnectivityChangedEvent
Selected item had a property changed (except movement)
Used when the right click button is pressed, or when the select tool is in effect.
LSET is a set of PCB_LAYER_IDs.
static TOOL_ACTION editTracksAndVias
static TOOL_ACTION swapLayers
static TOOL_ACTION zonesManager
static TOOL_ACTION zoneFillAll
static TOOL_ACTION updateFootprint
static TOOL_ACTION migrate3DModels
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
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
void RedrawRatsnest()
Return the bounding box of the view that should be used if model is not valid.
The main frame for Pcbnew.
Handle a list of polygons defining a copper zone.
PCB_LAYER_ID
A quick note on layer IDs:
@ GEOMETRY
Position or shape has changed.
std::vector< FAB_LAYER_COLOR > dummy
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
@ PCB_FOOTPRINT_T
class FOOTPRINT, a footprint
VECTOR2< int32_t > VECTOR2I
#define ZONE_MANAGER_REPOUR