34 bool aUseDesignRules )
45 new_width = constraint.
Opt();
46 else if( constraint.
Min() > 0 )
47 new_width = constraint.
Min();
51 constraint =
via->GetDrillConstraint();
54 new_drill = constraint.
Opt();
55 else if( constraint.
Min() > 0 )
56 new_drill = constraint.
Min();
77 if(
via && new_drill <= 0 )
78 new_drill =
via->GetDrillValue();
80 if( aItem->
GetWidth() != new_width || (
via &&
via->GetDrillValue() != new_drill ) )
84 aItemsListPicker->
PushItem( picker );
88 if(
via && new_drill > 0 )
89 via->SetDrill( new_drill );
97 int id =
event.GetId();
virtual NETCLASS * GetEffectiveNetClass() const
Return the NETCLASS for this item.
int GetCurrentViaSize() const
void SetViaSizeIndex(int aIndex)
Set the current via size list index to aIndex.
bool m_UseConnectedTrackWidth
bool m_TempOverrideTrackWidth
int GetCurrentTrackWidth() const
void SetTrackWidthIndex(int aIndex)
Set the current track width list index to aIndex.
int GetCurrentViaDrill() const
void SetLink(EDA_ITEM *aItem)
int GetuViaDiameter() const
static TOOL_ACTION trackViaSizeChanged
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
virtual BOARD_DESIGN_SETTINGS & GetDesignSettings() const
Return the BOARD_DESIGN_SETTINGS for the open project.
void ShowBoardSetupDialog(const wxString &aInitialPage=wxEmptyString, wxWindow *aParent=nullptr)
void SetTrackSegmentWidth(PCB_TRACK *aItem, PICKED_ITEMS_LIST *aItemsListPicker, bool aUseDesignRules)
Modify one track segment width or one via diameter (using DRC control).
wxChoice * m_SelViaSizeBox
void Tracks_and_Vias_Size_Event(wxCommandEvent &event)
wxChoice * m_SelTrackWidthBox
virtual EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
virtual MINOPTMAX< int > GetWidthConstraint(wxString *aSource=nullptr) const
virtual void SetWidth(int aWidth)
virtual int GetWidth() const
A holder to handle information on schematic or board items.
void PushItem(const ITEM_PICKER &aItem)
Push aItem to the top of the list.
ID_POPUP_PCB_SELECT_WIDTH8
@ ID_POPUP_PCB_SELECT_WIDTH14
@ ID_POPUP_PCB_SELECT_WIDTH9
@ ID_POPUP_PCB_SELECT_WIDTH1
@ ID_POPUP_PCB_SELECT_VIASIZE8
@ ID_POPUP_PCB_SELECT_VIASIZE9
@ ID_POPUP_PCB_SELECT_VIASIZE11
@ ID_POPUP_PCB_SELECT_WIDTH4
@ ID_POPUP_PCB_SELECT_WIDTH11
@ ID_POPUP_PCB_SELECT_VIASIZE15
@ ID_POPUP_PCB_SELECT_VIASIZE3
@ ID_POPUP_PCB_SELECT_VIASIZE7
@ ID_POPUP_PCB_SELECT_VIASIZE10
@ ID_POPUP_PCB_SELECT_WIDTH10
@ ID_POPUP_PCB_SELECT_VIASIZE13
@ ID_POPUP_PCB_SELECT_USE_NETCLASS_VALUES
@ ID_AUX_TOOLBAR_PCB_VIA_SIZE
@ ID_POPUP_PCB_SELECT_WIDTH16
@ ID_POPUP_PCB_SELECT_VIASIZE12
@ ID_POPUP_PCB_SELECT_AUTO_WIDTH
@ ID_POPUP_PCB_SELECT_WIDTH2
@ ID_POPUP_PCB_SELECT_WIDTH6
@ ID_POPUP_PCB_SELECT_WIDTH13
@ ID_POPUP_PCB_SELECT_VIASIZE1
@ ID_POPUP_PCB_SELECT_VIASIZE4
@ ID_POPUP_PCB_SELECT_WIDTH12
@ ID_POPUP_PCB_SELECT_VIASIZE5
@ ID_POPUP_PCB_SELECT_VIASIZE16
@ ID_POPUP_PCB_SELECT_WIDTH15
@ ID_POPUP_PCB_SELECT_WIDTH3
@ ID_POPUP_PCB_SELECT_VIASIZE2
@ ID_POPUP_PCB_SELECT_WIDTH7
@ ID_POPUP_PCB_SELECT_VIASIZE14
@ ID_AUX_TOOLBAR_PCB_TRACK_WIDTH
@ ID_POPUP_PCB_SELECT_WIDTH5
@ ID_POPUP_PCB_SELECT_VIASIZE6