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();
59 else if(
via &&
via->GetViaType() == VIATYPE::MICROVIA )
77 if(
via && new_drill <= 0 )
78 new_drill =
via->GetDrillValue();
80 if( aItem->
GetWidth() != new_width || (
via &&
via->GetDrillValue() != new_drill ) )
82 ITEM_PICKER picker(
nullptr, aItem, UNDO_REDO::CHANGED );
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.
void UseCustomTrackViaSize(bool aEnabled)
Enables/disables custom track/via size settings.
int GetCurrentViaSize() const
bool m_UseConnectedTrackWidth
bool m_TempOverrideTrackWidth
void SetTrackWidthIndex(unsigned aIndex)
Set the current track width list index to aIndex.
void SetViaSizeIndex(unsigned aIndex)
Set the current via size list index to aIndex.
int GetCurrentTrackWidth() const
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
Returns the BOARD_DESIGN_SETTINGS for the open project.
void ShowBoardSetupDialog(const wxString &aInitialPage=wxEmptyString)
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_AUX_TOOLBAR_PCB_SELECT_AUTO_WIDTH
@ 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