85 void SetLayerPairs( std::span<const LAYER_PAIR_INFO> aPairs );
All information about a layer pair as stored in the layer pair store.
Management class for layer pairs in a PCB.
std::vector< LAYER_PAIR_INFO > m_pairs
std::vector< LAYER_PAIR_INFO > GetEnabledLayerPairs(int &aCurrentIndex) const
Get a vector of all enabled layer pairs, in order.
bool removeLayerPairInternal(const LAYER_PAIR &aPair)
bool AddLayerPair(LAYER_PAIR_INFO aPair)
std::span< const LAYER_PAIR_INFO > GetLayerPairs() const
Returns a span of all stored layer pairs.
std::optional< LAYER_PAIR > m_lastManualPair
void SetCurrentLayerPair(const LAYER_PAIR &aPair)
Set the "active" layer pair.
void SetLayerPairs(std::span< const LAYER_PAIR_INFO > aPairs)
Replace the stored layer pairs with the given list.
bool RemoveLayerPair(const LAYER_PAIR &aPair)
Remove the matching layer pair from the store, if present.
bool addLayerPairInternal(LAYER_PAIR_INFO aPair)
LAYER_PAIR_SETTINGS()
Construct a new layer pair manager.
const LAYER_PAIR & GetCurrentLayerPair() const
wxDECLARE_EVENT(PCB_LAYER_PAIR_PRESETS_CHANGED, wxCommandEvent)