42 m_selectionTool( nullptr )
50 m_commit = std::make_unique<BOARD_COMMIT>(
this );
68 bool updateMode =
false;
69 bool currentMode =
false;
99 wxFAIL_MSG( wxT(
"ExchangeFootprints: unexpected action" ) );
110 std::map<PCB_LAYER_ID, PCB_LAYER_ID>& aLayerMap )
117 if( aLayerMap.count( original ) )
118 newLayers.
set( aLayerMap[ original ] );
120 newLayers.
set( original );
123 if( originalLayers.
Seq() != newLayers.
Seq() )
137 std::map<PCB_LAYER_ID, PCB_LAYER_ID> layerMap;
144 bool hasChanges =
false;
154 if(
via->GetViaType() == VIATYPE::THROUGH )
157 via->LayerPair( &top_layer, &bottom_layer );
159 if( layerMap[bottom_layer] != bottom_layer || layerMap[top_layer] != top_layer )
162 via->SetLayerPair( layerMap[top_layer], layerMap[bottom_layer] );
183 frame()->GetCanvas()->Refresh();
242 if( dialogResult == wxID_CANCEL )
#define SKIP_CONNECTIVITY
BASE_SET & set(size_t pos)
virtual void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Revert the commit by restoring the modified items state.
void SetDefaultZoneSettings(const ZONE_SETTINGS &aSettings)
ZONE_SETTINGS & GetDefaultZoneSettings()
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.
const ZONES & Zones() const
bool BuildConnectivity(PROGRESS_REPORTER *aReporter=nullptr)
Build or rebuild the board connectivity database for the board, especially the list of connected item...
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Create an undo entry for an item that has been already modified.
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.
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...
LSET is a set of PCB_LAYER_IDs.
LSEQ Seq(const LSEQ &aSequence) const
Return an LSEQ from the union of this LSET and a desired sequence.
static TOOL_ACTION editTracksAndVias
static TOOL_ACTION swapLayers
static TOOL_ACTION zonesManager
static TOOL_ACTION zoneFillAll
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
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.
void OnModify() override
Must be called after a board change to set the modified flag.
bool Empty() const
Checks if there is anything selected.
size_t CountType(KICAD_T aType) const
static bool GetRepourOnClose()
ZONE_SETTINGS handles zones parameters.
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
#define ZONE_MANAGER_REPOUR