KiCad PCB EDA Suite
wildcards_and_files_ext.cpp File Reference

Definition of file extensions used in Kicad. More...

#include <regex>
#include <wildcards_and_files_ext.h>
#include <wx/filedlg.h>
#include <wx/regex.h>
#include <wx/translation.h>

Go to the source code of this file.

Functions

bool compareFileExtensions (const std::string &aExtension, const std::vector< std::string > &aReference, bool aCaseSensitive)
 Compare the given extension against the reference extensions to see if it matches any of the reference extensions. More...
 
wxString formatWildcardExt (const wxString &aWildcard)
 Format wildcard extension to support case sensitive file dialogs. More...
 
wxString AddFileExtListToFilter (const std::vector< std::string > &aExts)
 Build the wildcard extension file dialog wildcard filter to add to the base message dialog. More...
 
const std::string BackupFileSuffix ("-bak")
 
const std::string KiCadSymbolLibFileExtension ("kicad_sym")
 
const std::string SchematicSymbolFileExtension ("sym")
 
const std::string LegacySymbolLibFileExtension ("lib")
 
const std::string LegacySymbolDocumentFileExtension ("dcm")
 
const std::string VrmlFileExtension ("wrl")
 
const std::string ProjectFileExtension ("kicad_pro")
 
const std::string LegacyProjectFileExtension ("pro")
 
const std::string ProjectLocalSettingsFileExtension ("kicad_prl")
 
const std::string LegacySchematicFileExtension ("sch")
 
const std::string KiCadSchematicFileExtension ("kicad_sch")
 
const std::string NetlistFileExtension ("net")
 
const std::string FootprintAssignmentFileExtension ("cmp")
 
const std::string GerberFileExtension ("gbr")
 
const std::string GerberJobFileExtension ("gbrjob")
 
const std::string HtmlFileExtension ("html")
 
const std::string EquFileExtension ("equ")
 
const std::string HotkeyFileExtension ("hotkeys")
 
const std::string ArchiveFileExtension ("zip")
 
const std::string LegacyPcbFileExtension ("brd")
 
const std::string KiCadPcbFileExtension ("kicad_pcb")
 
const std::string DrawingSheetFileExtension ("kicad_wks")
 
const std::string DesignRulesFileExtension ("kicad_dru")
 
const std::string PdfFileExtension ("pdf")
 
const std::string MacrosFileExtension ("mcr")
 
const std::string DrillFileExtension ("drl")
 
const std::string SVGFileExtension ("svg")
 
const std::string ReportFileExtension ("rpt")
 
const std::string FootprintPlaceFileExtension ("pos")
 
const std::string KiCadFootprintLibPathExtension ("pretty")
 
const std::string LegacyFootprintLibPathExtension ("mod")
 
const std::string EagleFootprintLibPathExtension ("lbr")
 
const std::string GedaPcbFootprintLibFileExtension ("fp")
 
const std::string KiCadFootprintFileExtension ("kicad_mod")
 
const std::string SpecctraDsnFileExtension ("dsn")
 
const std::string SpecctraSessionFileExtension ("ses")
 
const std::string IpcD356FileExtension ("d356")
 
const std::string WorkbookFileExtension ("wbk")
 
const std::string PngFileExtension ("png")
 
const std::string JpegFileExtension ("jpg")
 
const std::string TextFileExtension ("txt")
 
bool IsProtelExtension (const wxString &ext)
 
wxString AllFilesWildcard ()
 
wxString SchematicSymbolFileWildcard ()
 
wxString KiCadSymbolLibFileWildcard ()
 
wxString LegacySymbolLibFileWildcard ()
 
wxString AllSymbolLibFilesWildcard ()
 
wxString ProjectFileWildcard ()
 
wxString LegacyProjectFileWildcard ()
 
wxString AllProjectFilesWildcard ()
 
wxString LegacySchematicFileWildcard ()
 
wxString KiCadSchematicFileWildcard ()
 
wxString AltiumSchematicFileWildcard ()
 
wxString CadstarSchematicArchiveFileWildcard ()
 
wxString CadstarArchiveFilesWildcard ()
 
wxString EagleSchematicFileWildcard ()
 
wxString EagleFilesWildcard ()
 
wxString NetlistFileWildcard ()
 
wxString GerberFileWildcard ()
 
wxString LegacyPcbFileWildcard ()
 
wxString EaglePcbFileWildcard ()
 
wxString CadstarPcbArchiveFileWildcard ()
 
wxString PCadPcbFileWildcard ()
 
wxString AltiumDesignerPcbFileWildcard ()
 
wxString AltiumCircuitStudioPcbFileWildcard ()
 
wxString AltiumCircuitMakerPcbFileWildcard ()
 
wxString FabmasterPcbFileWildcard ()
 
wxString PcbFileWildcard ()
 
wxString KiCadFootprintLibFileWildcard ()
 
wxString KiCadFootprintLibPathWildcard ()
 
wxString LegacyFootprintLibPathWildcard ()
 
wxString EagleFootprintLibPathWildcard ()
 
wxString GedaPcbFootprintLibFileWildcard ()
 
wxString DrawingSheetFileWildcard ()
 
wxString FootprintAssignmentFileWildcard ()
 
wxString DrillFileWildcard ()
 
wxString SVGFileWildcard ()
 
wxString HtmlFileWildcard ()
 
wxString CsvFileWildcard ()
 
wxString PdfFileWildcard ()
 
wxString PSFileWildcard ()
 
wxString ReportFileWildcard ()
 
wxString FootprintPlaceFileWildcard ()
 
wxString Shapes3DFileWildcard ()
 
wxString IDF3DFileWildcard ()
 
wxString TextFileWildcard ()
 
wxString ModLegacyExportFileWildcard ()
 
wxString ErcFileWildcard ()
 
wxString SpiceLibraryFileWildcard ()
 
wxString SpiceNetlistFileWildcard ()
 
wxString CadstarNetlistFileWildcard ()
 
wxString EquFileWildcard ()
 
wxString ZipFileWildcard ()
 
wxString GencadFileWildcard ()
 
wxString DxfFileWildcard ()
 
wxString GerberJobFileWildcard ()
 
wxString SpecctraDsnFileWildcard ()
 
wxString SpecctraSessionFileWildcard ()
 
wxString IpcD356FileWildcard ()
 
wxString WorkbookFileWildcard ()
 
wxString PngFileWildcard ()
 
wxString JpegFileWildcard ()
 
wxString HotkeyFileWildcard ()
 

Detailed Description

Definition of file extensions used in Kicad.

Definition in file wildcards_and_files_ext.cpp.

Function Documentation

◆ ArchiveFileExtension()

const std::string ArchiveFileExtension ( "zip"  )

◆ BackupFileSuffix()

const std::string BackupFileSuffix ( "-bak"  )

◆ DesignRulesFileExtension()

const std::string DesignRulesFileExtension ( "kicad_dru"  )

◆ DrawingSheetFileExtension()

const std::string DrawingSheetFileExtension ( "kicad_wks"  )

◆ DrillFileExtension()

const std::string DrillFileExtension ( "drl"  )

Referenced by DrillFileWildcard().

◆ EagleFootprintLibPathExtension()

const std::string EagleFootprintLibPathExtension ( "lbr"  )

◆ EquFileExtension()

const std::string EquFileExtension ( "equ"  )

◆ FootprintAssignmentFileExtension()

const std::string FootprintAssignmentFileExtension ( "cmp"  )

◆ FootprintPlaceFileExtension()

const std::string FootprintPlaceFileExtension ( "pos"  )

◆ GedaPcbFootprintLibFileExtension()

const std::string GedaPcbFootprintLibFileExtension ( "fp"  )

◆ GerberFileExtension()

const std::string GerberFileExtension ( "gbr"  )

◆ GerberJobFileExtension()

const std::string GerberJobFileExtension ( "gbrjob"  )

Referenced by GerberJobFileWildcard().

◆ HotkeyFileExtension()

const std::string HotkeyFileExtension ( "hotkeys"  )

Referenced by HotkeyFileWildcard().

◆ HtmlFileExtension()

const std::string HtmlFileExtension ( "html"  )

◆ IpcD356FileExtension()

const std::string IpcD356FileExtension ( "d356"  )

Referenced by IpcD356FileWildcard().

◆ JpegFileExtension()

const std::string JpegFileExtension ( "jpg"  )

◆ KiCadFootprintFileExtension()

const std::string KiCadFootprintFileExtension ( "kicad_mod"  )

◆ KiCadFootprintLibPathExtension()

const std::string KiCadFootprintLibPathExtension ( "pretty"  )

◆ KiCadPcbFileExtension()

const std::string KiCadPcbFileExtension ( "kicad_pcb"  )

Referenced by PcbFileWildcard().

◆ KiCadSchematicFileExtension()

const std::string KiCadSchematicFileExtension ( "kicad_sch"  )

◆ KiCadSymbolLibFileExtension()

const std::string KiCadSymbolLibFileExtension ( "kicad_sym"  )

◆ LegacyFootprintLibPathExtension()

const std::string LegacyFootprintLibPathExtension ( "mod"  )

◆ LegacyPcbFileExtension()

const std::string LegacyPcbFileExtension ( "brd"  )

◆ LegacyProjectFileExtension()

const std::string LegacyProjectFileExtension ( "pro"  )

◆ LegacySchematicFileExtension()

const std::string LegacySchematicFileExtension ( "sch"  )

◆ LegacySymbolDocumentFileExtension()

const std::string LegacySymbolDocumentFileExtension ( "dcm"  )

◆ LegacySymbolLibFileExtension()

const std::string LegacySymbolLibFileExtension ( "lib"  )

◆ MacrosFileExtension()

const std::string MacrosFileExtension ( "mcr"  )

◆ NetlistFileExtension()

const std::string NetlistFileExtension ( "net"  )

◆ PdfFileExtension()

const std::string PdfFileExtension ( "pdf"  )

◆ PngFileExtension()

const std::string PngFileExtension ( "png"  )

◆ ProjectFileExtension()

const std::string ProjectFileExtension ( "kicad_pro"  )

◆ ProjectLocalSettingsFileExtension()

const std::string ProjectLocalSettingsFileExtension ( "kicad_prl"  )

◆ ReportFileExtension()

const std::string ReportFileExtension ( "rpt"  )

◆ SchematicSymbolFileExtension()

const std::string SchematicSymbolFileExtension ( "sym"  )

◆ SpecctraDsnFileExtension()

const std::string SpecctraDsnFileExtension ( "dsn"  )

Referenced by SpecctraDsnFileWildcard().

◆ SpecctraSessionFileExtension()

const std::string SpecctraSessionFileExtension ( "ses"  )

◆ SVGFileExtension()

const std::string SVGFileExtension ( "svg"  )

Referenced by SVGFileWildcard().

◆ TextFileExtension()

const std::string TextFileExtension ( "txt"  )

◆ VrmlFileExtension()

const std::string VrmlFileExtension ( "wrl"  )

◆ WorkbookFileExtension()

const std::string WorkbookFileExtension ( "wbk"  )

Referenced by WorkbookFileWildcard().