51 void onWidthEdit( wxCommandEvent& aEvent )
override;
52 void onViaSelect( wxCommandEvent& aEvent )
override;
53 void onViaEdit( wxCommandEvent& aEvent )
override;
54 void onTrackEdit( wxCommandEvent& aEvent )
override;
DIALOG_TRACK_VIA_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Track & Via Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU)
UNIT_BINDER m_bottomPostMachineSize1
void onWidthEdit(wxCommandEvent &aEvent) override
const PCB_SELECTION & m_items
UNIT_BINDER m_bottomPostMachineSize2
bool TransferDataFromWindow() override
void onUnitsChanged(wxCommandEvent &aEvent)
UNIT_BINDER m_viaDiameter
void onNetSelector(wxCommandEvent &aEvent)
UNIT_BINDER m_trackMaskMargin
void afterPadstackModeChanged()
void onWidthSelect(wxCommandEvent &aEvent) override
UNIT_BINDER m_teardropWidthPercent
bool confirmShortingNets(int aNet, const std::set< int > &shortingNets)
UNIT_BINDER m_teardropLenPercent
UNIT_BINDER m_teardropMaxWidth
int copperOrdinal(PCB_LAYER_ID aLayer) const
Copper layers as ordinals, 0 for the front and the copper count minus one for the back.
void syncBackdrillControls(bool aFromUserEvent)
Enable the fields that depend on a choice, without touching the preview.
bool m_standalone
Dialog was constructed for a standalone via (via stitching.
void syncPostMachineControls(bool aFront, bool aFromUserEvent)
UNIT_BINDER m_topPostMachineSize1
bool m_backdrillFrontLayerMixed
A layer selector cannot hold a mixed state in its value, so the dialog remembers it.
void onTeardropsUpdateUi(wxUpdateUIEvent &event) override
void onPadstackModeChanged(wxCommandEvent &aEvent) override
void onBackdrillChange(wxCommandEvent &aEvent) override
void onViaEdit(wxCommandEvent &aEvent) override
std::map< int, PCB_LAYER_ID > m_editLayerCtrlMap
PCB_LAYER_ID copperLayer(int aOrdinal) const
void onProtectionFeaturesChange(wxCommandEvent &aEvent) override
UNIT_BINDER m_backdrillBackSize
PCB_LAYER_ID m_editLayer
The currently-shown copper layer of the edited via(s)
bool m_backdrillBackLayerMixed
UNIT_BINDER m_trackStartY
void onViaSelect(wxCommandEvent &aEvent) override
bool TransferDataToWindow() override
Get data from the PCB board and display it to dialog.
void updateViaMachiningControls()
void onBottomPostMachineChange(wxCommandEvent &aEvent) override
void onEditLayerChanged(wxCommandEvent &aEvent) override
void onTopPostMachineChange(wxCommandEvent &aEvent) override
PCB_BASE_EDIT_FRAME * m_frame
void onViaNotFreeClicked(wxCommandEvent &aEvent) override
void commonInit(PCB_BASE_EDIT_FRAME *aParent)
DIALOG_TRACK_VIA_PROPERTIES(PCB_BASE_EDIT_FRAME *aParent, const PCB_SELECTION &aItems)
std::unique_ptr< PADSTACK > m_viaStack
Temporary padstack of the edited via(s)
UNIT_BINDER m_backdrillFrontSize
UNIT_BINDER m_teardropMaxLen
UNIT_BINDER m_trackStartX
PCB_SELECTION m_viaStandaloneSelection
Used for standalone via mode to flow through the normal update logic.
UNIT_BINDER m_teardropHDPercent
bool confirmPadChange(const std::set< PAD * > &connectedPads)
POST_MACHINE_CONTROLS postMachineControls(bool aFront)
UNIT_BINDER m_topPostMachineSize2
void onMachiningEdit(wxCommandEvent &aEvent) override
~DIALOG_TRACK_VIA_PROPERTIES()
void onTrackEdit(wxCommandEvent &aEvent) override
A PADSTACK defines the characteristics of a single or multi-layer pad, in the IPC sense of the word.
Common, abstract interface for edit frames.
PCB_LAYER_ID
A quick note on layer IDs:
The controls of one post machining side.
wxStaticText * m_AngleOrDepthUnits
wxStaticText * m_SizeLabel
UNIT_BINDER & m_AngleOrDepth
wxStaticText * m_ModeLabel
wxStaticText * m_AngleOrDepthLabel
The copper layers the edited via spans, as read from the type and layer controls.
bool m_Through
the type control says through, or is mixed
int m_Top
ordinal of the first copper layer
int m_Bottom
ordinal of the last copper layer
bool m_ReachesBack
the span ends on the back copper
bool m_ReachesFront
the span starts on the front copper