35 bool aUseNetclassValue )
39 int initial_drill = -1;
42 initial_width = aTrackItem->
GetWidth();
44 if( aUseNetclassValue )
54 initial_drill =
via->GetDrillValue();
61 else if( aUseNetclassValue )
75 if(
via->GetDrill() <= 0 )
79 if( initial_width != new_width || initial_drill != new_drill )
81 if( aItemsListPicker )
83 aTrackItem->
SetWidth( initial_width );
86 aItemsListPicker->
PushItem( picker );
95 via->SetDrill( new_drill );
97 via->SetDrillDefault();
107 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
KICAD_T Type() const
Returns the type of object.
void SetLink(EDA_ITEM *aItem)
int GetViaDiameter() const
int GetuViaDiameter() const
int GetTrackWidth() 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 *aTrackItem, PICKED_ITEMS_LIST *aItemsListPicker, bool aUseNetclassValue)
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
void SetWidth(int aWidth)
virtual EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
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
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)