203 wxArrayString netclassNames;
209 netclassNames.push_back( nc->second->GetName() );
225 #define SET_NETCLASS_VALUE( row, col, val ) \ 226 m_netclassGrid->SetCellValue( row, col, StringFromValue( m_parent->GetUserUnits(), val, true ) ) 247 for(
const std::pair<
const wxString, std::shared_ptr<NETCLASS>>& netclass : netclasses )
316 if( ( isArc || isTrack )
322 if( trackWidthIndex >= 0 )
334 if( viaSizeIndex >= 0 )
344 if( aUndoList->
FindItem( aItem ) < 0 )
418 if( itemsListPicker.
GetCount() > 0 )
void visitItem(PICKED_ITEMS_LIST *aUndoList, PCB_TRACK *aItem)
PCB_GROUP * GetParentGroup() const
NETINFO_ITEM * FindNet(int aNetcode) const
Search for a net with the given netcode.
void OnModify() override
Must be called after a board change to set the modified flag.
std::vector< BOARD_ITEM * > m_items_changed
void SetTrackWidthIndex(unsigned aIndex)
Set the current track width list index to aIndex.
void SaveCopyInUndoList(EDA_ITEM *aItemToCopy, UNDO_REDO aTypeCommand) override
Create a new entry in undo list of commands.
int FindItem(const EDA_ITEM *aItem) const
wxCheckBox * m_layerFilterOpt
virtual EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
wxRadioButton * m_setToSpecifiedValues
virtual void SetLayer(PCB_LAYER_ID aLayer)
Set the layer this item is on.
wxString GetNetClassName() const
void SetNotAllowedLayerSet(LSET aMask)
NETINFO_ITEM * GetNet() const
Return #NET_INFO object for a given item.
A set of BOARD_ITEMs (i.e., without duplicates).
static LAYER_NUM g_layerFilter
void SetBoard(BOARD *aBoard)
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
static LSET AllNonCuMask()
Return a mask holding all layer minus CU layers.
wxFont GetInfoFont(wxWindow *aWindow)
wxChoice * m_viaSizesSelectBox
class PCB_ARC, an arc track segment on a copper layer
static wxString g_netclassFilter
int LAYER_NUM
This can be replaced with int and removed.
void OnNetFilterSelect(wxCommandEvent &event)
PCB_EDIT_FRAME * m_parent
const NETINFO_LIST & GetNetInfo() const
void PushItem(const ITEM_PICKER &aItem)
Push aItem to the top of the list.
void SetBoardFrame(PCB_BASE_FRAME *aFrame)
NET_SELECTOR * m_netFilter
static bool g_filterSelected
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
void SetLink(EDA_ITEM *aItem)
wxString GetSelectedNetname()
void OnNetclassFilterSelect(wxCommandEvent &event) override
unsigned GetCount() const
NETCLASS_MAP::const_iterator const_iterator
virtual wxString GetNetClassName() const
Returns the netclass of the zone.
void SetTrackSegmentWidth(PCB_TRACK *aTrackItem, PICKED_ITEMS_LIST *aItemsListPicker, bool aUseNetclassValue)
Modify one track segment width or one via diameter (using DRC control).
class PCB_TRACK, a track segment (segment on a copper layer)
static bool g_modifyTracks
static LIB_SYMBOL * dummy()
Used to draw a dummy shape when a LIB_SYMBOL is not found in library.
void buildNetclassesGrid()
virtual PCB_LAYER_ID GetActiveLayer() const
void UpdateTrackWidthSelectBox(wxChoice *aTrackWidthSelectBox, bool aEdit=true)
void SetViaSizeIndex(unsigned aIndex)
Set the current via size list index to aIndex.
LAYER_NUM GetLayerSelection() const
PCB_LAYER_BOX_SELECTOR * m_layerFilter
wxCheckBox * m_selectedItemsFilter
int GetTrackWidth() const
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...
PCB_SELECTION m_selection
int * m_originalColWidths
wxCheckBox * m_netclassFilterOpt
A container for NETCLASS instances.
#define SET_NETCLASS_VALUE(row, col, val)
const wxString & GetCurrentNetClassName() const
unsigned GetViaSizeIndex() const
A collection of nets and the parameters used to route or test these nets.
void SetSelectedNetcode(int aNetcode)
unsigned GetTrackWidthIndex() const
std::shared_ptr< CONNECTIVITY_DATA > GetConnectivity() const
Return a list of missing connections between components/tracks.
DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS(PCB_EDIT_FRAME *aParent)
bool TransferDataFromWindow() override
static bool g_filterByNetclass
void OnItemsChanged(std::vector< BOARD_ITEM * > &aItems)
Notify the board and its listeners that an item on the board has been modified in some way.
int SetLayerSelection(LAYER_NUM layer)
NETCLASSES & GetNetClasses() const
void OnLayerFilterSelect(wxCommandEvent &event) override
int GetuViaDiameter() const
static bool g_filterByLayer
void SetNetInfo(NETINFO_LIST *aNetInfoList)
A holder to handle information on schematic or board items.
NETCLASS * GetDefaultPtr() const
bool SetLayersHotkeys(bool value)
static wxString g_netFilter
void onSpecifiedValuesUpdateUi(wxUpdateUIEvent &event) override
virtual KIGFX::PCB_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
void SetUndefinedLayerName(const wxString &aName)
const std::set< int > & GetHighLightNetCodes() const
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
static bool g_filterByNet
Class DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS_BASE.
const wxString GetName() const
wxCheckBox * m_netFilterOpt
void AdjustNetclassGridColumns(int aWidth)
bool TransferDataToWindow() override
Information pertinent to a Pcbnew printed circuit board.
NETCLASS * GetDefault() const
The main frame for Pcbnew.
void SetSelectedNet(const wxString &aNetname)
PCB_LAYER_BOX_SELECTOR * m_layerBox
int GetViaDiameter() const
unsigned GetCount() const
class PCB_VIA, a via (like a track segment on a copper layer)
void processItem(PICKED_ITEMS_LIST *aUndoList, PCB_TRACK *aItem)
void UpdateViaSizeSelectBox(wxChoice *aViaSizeSelectBox, bool aEdit=true)
~DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS() override
wxChoice * m_netclassFilter
void OnSizeNetclassGrid(wxSizeEvent &event) override
wxChoice * m_trackWidthSelectBox
#define INDETERMINATE_ACTION
void onUnitsChanged(wxCommandEvent &aEvent)
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
PCB_LAYER_ID ToLAYER_ID(int aLayer)
KICAD_T Type() const
Returns the type of object.
Container for design settings for a BOARD object.