28#include <wx/filename.h>
36 const wxString ext = wxFileName( aPath ).GetExt().Lower();
56 if( aDocType == wxS(
"kicad_pcb" ) )
59 if( aDocType == wxS(
"kicad_sch" ) )
62 if( aDocType == wxS(
"kicad_sym" ) )
65 if( aDocType == wxS(
"pretty" ) )
static const std::string KiCadSchematicFileExtension
static const std::string KiCadSymbolLibFileExtension
static const std::string KiCadFootprintFileExtension
static const std::string KiCadPcbFileExtension
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.
DOC_KIND DocKindFromDocType(const wxString &aDocType)
Map a DOCUMENT_DIFF::docType tag written by the differs ("kicad_pcb", "kicad_sch",...
Definition of file extensions used in Kicad.