49 m_commit = std::make_unique<BOARD_COMMIT>(
this );
67 bool updateMode =
false;
68 bool currentMode =
false;
98 wxFAIL_MSG( wxT(
"ExchangeFootprints: unexpected action" ) );
115 if( aLayerMap.count( original ) )
116 newLayers.
set( aLayerMap[ original ] );
118 newLayers.
set( original );
121 if( originalLayers != newLayers )
135 std::map<PCB_LAYER_ID, PCB_LAYER_ID> layerMap;
142 bool hasChanges =
false;
155 via->LayerPair( &top_layer, &bottom_layer );
157 if( layerMap[bottom_layer] != bottom_layer || layerMap[top_layer] != top_layer )
160 via->SetLayerPair( layerMap[top_layer], layerMap[bottom_layer] );
184 frame()->GetCanvas()->Refresh();
252 if( dialogResult == wxID_CANCEL )
258 view->Hide( zone,
false );
270 view->Hide( zone,
false );
287 board->IncrementTimeStamp();
291 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 & Remove(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Remove a new item from the model.
void Unmodify(EDA_ITEM *aItem, BASE_SCREEN *aScreen)
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...
const std::vector< ZONE * > & GetZonesToDelete() const
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
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.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
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.
virtual KIGFX::PCB_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
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