35#include <wx/filename.h>
61 _(
"KiCad Merge Tool" ), wxDefaultPosition,
62 wxWindow::FromDIP( wxSize( 400, 120 ), nullptr ),
63 wxDEFAULT_FRAME_STYLE | wxFRAME_NO_TASKBAR,
86 wxMessageBox( wxString::Format(
_(
"No mergetool handler for output '%s'.\n"
87 "Output extension must be .kicad_pcb, .kicad_sch, "
88 ".kicad_sym, or .kicad_mod." ),
90 _(
"KiCad Merge Tool" ), wxOK | wxICON_ERROR,
this );
106 wxFprintf( stderr, wxT(
"%s" ),
reporter.GetMessages() );
constexpr EDA_IU_SCALE unityScale
KIWAY & Kiway() const
Return a reference to the KIWAY that this object has an opportunity to participate in.
KIWAY_PLAYER(KIWAY *aKiway, wxWindow *aParent, FRAME_T aFrameType, const wxString &aTitle, const wxPoint &aPos, const wxSize &aSize, long aStyle, const wxString &aFrameName, const EDA_IU_SCALE &aIuScale)
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
A wrapper for reporting to a wxString object.
@ FRAME_MERGETOOL
Top-level host for the 3-way merge resolution dialog.
static const int ERR_ARGS
int DispatchMerge(KIWAY &aKiway, DOC_KIND aKind, const wxString &aAncestor, const wxString &aOurs, const wxString &aTheirs, const wxString &aOutput, bool aInteractive, bool aSingleFile, REPORTER *aReporter)
Run a 3-way document/library merge by calling the owning kiface's KIFACE_MERGE_DOCUMENT function expo...
DOC_KIND DocKindFromExtension(const wxString &aPath)
Map a path's extension to a DOC_KIND (.kicad_pcb -> PCB, .kicad_sch -> SCH, .kicad_sym -> SYM_LIB,...
DOC_KIND
Document type a diff/merge entry point should route to, derived from a file path's extension.
IbisParser parser & reporter
Definition of file extensions used in Kicad.