63 void OnCancel( wxCommandEvent& event )
override;
64 void OnUpdateUI( wxUpdateUIEvent& event )
override;
DIALOG_VIA_STITCH_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_DIALOG_EDIT_PAD, const wxString &title=_("Via Stitch Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
void OnCancel(wxCommandEvent &event) override
std::unique_ptr< UNIT_BINDER > m_posYBinder
std::vector< std::unique_ptr< PCB_VIA > > m_previewVias
Vias currently in the preview canvas, used for both Guard and Stitch mode previews.
KIGFX::ORIGIN_VIEWITEM * m_axisOrigin
DIALOG_VIA_STITCH_PROPERTIES(PCB_BASE_EDIT_FRAME *aFrame, PCB_VIA_STITCH *aStitch)
std::unique_ptr< PCB_VIA_STITCH > m_workingCopy
Off-board clone of m_stitch used to drive the preview without touching the board.
void OnUpdateUI(wxUpdateUIEvent &event) override
PCB_BASE_EDIT_FRAME * m_frame
int m_previewExtent
Side length of the tile drawn by the last redrawPreview(), in IU; 0 if nothing is currently drawn.
int buildStitchPreview(std::vector< VECTOR2I > &aSamples)
Builds a preview for stitch mode.
~DIALOG_VIA_STITCH_PROPERTIES() override
int buildGuardPreview(std::vector< VECTOR2I > &aSamples)
Builds a preview for guard mode.
void OnViaConfigureClicked(wxCommandEvent &event) override
std::vector< std::unique_ptr< PCB_TRACK > > m_previewTracks
Tracks currently in the preview canvas, only used for Guard mode preview.
void redrawPreview()
Push the GAL preview to reflect the current m_workingCopy state.
std::unique_ptr< UNIT_BINDER > m_pitchBinder
PCB_VIA_STITCH * m_stitch
The live generator being edited. Only written back on OK.
void OnValuesChanged(wxCommandEvent &event) override
void prepareCanvas()
First-time set-up of m_panelShowPreview — colors, view layers, board attachment.
void updateWorkingCopyFromUI()
Pull values out of UI controls into m_workingCopy, regenerate its children, and re-zoom the preview c...
bool TransferDataFromWindow() override
bool TransferDataToWindow() override
std::unique_ptr< UNIT_BINDER > m_posXBinder
void fitPreview()
Autozoom the preview canvas onto the last-rendered tile.
Common, abstract interface for edit frames.
The Cairo implementation of the graphics abstraction layer.