24#ifndef DIALOG_KICAD_MERGE_3WAY_H
25#define DIALOG_KICAD_MERGE_3WAY_H
85 void OnClose( wxCloseEvent& aEvent )
override;
88 void OnApply( wxCommandEvent& aEvent )
override;
89 void OnCancel( wxCommandEvent& aEvent )
override;
DIALOG_KICAD_MERGE_3WAY_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Resolve Merge Conflicts"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(950, 700), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
const KICAD_DIFF::MERGE_PLAN & GetResolvedPlan() const
Returns the plan with the user's resolutions applied.
void OnConflictSelected(wxCommandEvent &aEvent) override
DIALOG_KICAD_MERGE_3WAY(wxWindow *aParent, const KICAD_DIFF::MERGE_PLAN &aPlan, CONFLICT_CONTEXT aContext={})
void OnApply(wxCommandEvent &aEvent) override
void OnCancel(wxCommandEvent &aEvent) override
void rebuildCanvas()
Rebuild the canvas scene from the current side (per radio) and the active conflict's bbox.
void OnClose(wxCloseEvent &aEvent) override
WIDGET_DIFF_CANVAS * m_canvas
GAL-backed conflict viewer injected into the resolution panel.
KICAD_DIFF::MERGE_PLAN m_plan
int m_currentConflict
Currently-displayed conflict (index into m_conflictActionIndex), -1 if none.
CONFLICT_CONTEXT m_context
void showConflict(int aIndex)
Update the detail panel for the selected conflict.
void buildList()
Populate the conflict list from the plan's unresolved items.
SIDE
Which side's geometry the canvas should currently display.
void OnResolutionChanged(wxCommandEvent &aEvent) override
~DIALOG_KICAD_MERGE_3WAY() override=default
std::vector< std::size_t > m_conflictActionIndex
Indices into m_plan.actions matching the order of m_listConflicts.
Phase 8 context for the conflict canvas.
std::map< KIID_PATH, BOX2I > ancestorBBoxes
Per-side bbox of each conflicting item.
KICAD_DIFF::DOCUMENT_GEOMETRY ancestorGeometry
std::map< KIID_PATH, BOX2I > theirsBBoxes
KICAD_DIFF::DOCUMENT_GEOMETRY oursGeometry
std::map< KIID_PATH, BOX2I > oursBBoxes
KICAD_DIFF::DOCUMENT_GEOMETRY theirsGeometry
Aggregate of background geometry extracted from one source document.
Result of planning a 3-way merge.