KiCad PCB EDA Suite
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KiCad, a free EDA CAD application.
3  *
4  * Copyright (C) 2018 Jean-Pierre Charras, jp.charras at
5  * Copyright (C) 2007-2012 SoftPLC Corporation, Dick Hollenbeck <>
6  * Copyright (C) 2008 Wayne Stambaugh <>
7  * Copyright (C) 1992-2020 KiCad Developers, see AUTHORS.txt for contributors.
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, you may find one here:
21  *
22  * or you may search the website for the version 2 license,
23  * or you may write to the Free Software Foundation, Inc.,
24  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
25  */
35 #include <wx/wx.h>
37 #include <string>
38 #include <vector>
69 bool compareFileExtensions( const std::string& aExtension,
70  const std::vector<std::string>& aReference, bool aCaseSensitive = false );
90 wxString AddFileExtListToFilter( const std::vector<std::string>& aExts );
110 wxString formatWildcardExt( const wxString& aWildcard );
112 extern const std::string BackupFileSuffix;
114 extern const std::string SchematicSymbolFileExtension;
115 extern const std::string LegacySymbolLibFileExtension;
116 extern const std::string LegacySymbolDocumentFileExtension;
117 extern const std::string SchematicBackupFileExtension;
119 extern const std::string VrmlFileExtension;
120 extern const std::string ProjectFileExtension;
121 extern const std::string LegacyProjectFileExtension;
122 extern const std::string ProjectLocalSettingsFileExtension;
123 extern const std::string LegacySchematicFileExtension;
124 extern const std::string KiCadSchematicFileExtension;
125 extern const std::string NetlistFileExtension;
126 extern const std::string GerberFileExtension;
127 extern const std::string GerberJobFileExtension;
128 extern const std::string HtmlFileExtension;
129 extern const std::string EquFileExtension;
131 extern const std::string ArchiveFileExtension;
133 extern const std::string LegacyPcbFileExtension;
134 extern const std::string KiCadPcbFileExtension;
135 #define PcbFileExtension KiCadPcbFileExtension // symlink choice
136 extern const std::string KiCadSymbolLibFileExtension;
137 extern const std::string PageLayoutDescrFileExtension;
138 extern const std::string DesignRulesFileExtension;
140 extern const std::string LegacyFootprintLibPathExtension;
141 extern const std::string PdfFileExtension;
142 extern const std::string MacrosFileExtension;
143 extern const std::string ComponentFileExtension;
144 extern const std::string DrillFileExtension;
145 extern const std::string SVGFileExtension;
146 extern const std::string ReportFileExtension;
147 extern const std::string FootprintPlaceFileExtension;
148 extern const std::string KiCadFootprintFileExtension;
149 extern const std::string KiCadFootprintLibPathExtension;
150 extern const std::string GedaPcbFootprintLibFileExtension;
151 extern const std::string EagleFootprintLibPathExtension;
152 extern const std::string ComponentFileExtension;
153 extern const std::string PageLayoutDescrFileExtension;
154 extern const std::string SpecctraDsnFileExtension;
155 extern const std::string IpcD356FileExtension;
157 extern const std::string PngFileExtension;
158 extern const std::string JpegFileExtension;
161 bool IsProtelExtension( const wxString& ext );
178 extern wxString AllFilesWildcard();
180 extern wxString ComponentFileWildcard();
181 extern wxString PageLayoutDescrFileWildcard();
182 extern wxString SchematicSymbolFileWildcard();
183 extern wxString KiCadSymbolLibFileWildcard();
184 extern wxString LegacySymbolLibFileWildcard();
185 extern wxString AllSymbolLibFilesWildcard();
186 extern wxString ProjectFileWildcard();
187 extern wxString LegacyProjectFileWildcard();
188 extern wxString AllProjectFilesWildcard();
189 extern wxString KiCadSchematicFileWildcard();
190 extern wxString LegacySchematicFileWildcard();
191 extern wxString BoardFileWildcard();
192 extern wxString NetlistFileWildcard();
193 extern wxString GerberFileWildcard();
194 extern wxString HtmlFileWildcard();
195 extern wxString CsvFileWildcard();
196 extern wxString LegacyPcbFileWildcard();
197 extern wxString PcbFileWildcard();
198 extern wxString EaglePcbFileWildcard();
199 extern wxString AltiumSchematicFileWildcard();
200 extern wxString CadstarSchematicArchiveFileWildcard();
201 extern wxString CadstarArchiveFilesWildcard();
202 extern wxString EagleSchematicFileWildcard();
203 extern wxString EagleFilesWildcard();
204 extern wxString PCadPcbFileWildcard();
205 extern wxString CadstarPcbArchiveFileWildcard();
206 extern wxString AltiumDesignerPcbFileWildcard();
207 extern wxString AltiumCircuitStudioPcbFileWildcard();
208 extern wxString AltiumCircuitMakerPcbFileWildcard();
209 extern wxString FabmasterPcbFileWildcard();
210 extern wxString PdfFileWildcard();
211 extern wxString PSFileWildcard();
212 extern wxString MacrosFileWildcard();
213 extern wxString ComponentFileWildcard();
214 extern wxString DrillFileWildcard();
215 extern wxString SVGFileWildcard();
216 extern wxString ReportFileWildcard();
217 extern wxString FootprintPlaceFileWildcard();
218 extern wxString Shapes3DFileWildcard();
219 extern wxString IDF3DFileWildcard();
220 extern wxString DocModulesFileName();
221 extern wxString LegacyFootprintLibPathWildcard();
222 extern wxString KiCadFootprintLibFileWildcard();
223 extern wxString KiCadFootprintLibPathWildcard();
224 extern wxString GedaPcbFootprintLibFileWildcard();
225 extern wxString EagleFootprintLibPathWildcard();
226 extern wxString TextFileWildcard();
227 extern wxString ModLegacyExportFileWildcard();
228 extern wxString ErcFileWildcard();
229 extern wxString SpiceLibraryFileWildcard();
230 extern wxString SpiceNetlistFileWildcard();
231 extern wxString CadstarNetlistFileWildcard();
232 extern wxString EquFileWildcard();
233 extern wxString ZipFileWildcard();
234 extern wxString GencadFileWildcard();
235 extern wxString DxfFileWildcard();
236 extern wxString GerberJobFileWildcard();
237 extern wxString SpecctraDsnFileWildcard();
238 extern wxString IpcD356FileWildcard();
239 extern wxString WorkbookFileWildcard();
240 extern wxString PngFileWildcard();
241 extern wxString JpegFileWildcard();
const std::string SchematicBackupFileExtension
const std::string NetlistFileExtension
wxString AllProjectFilesWildcard()
wxString GerberFileWildcard()
wxString SchematicSymbolFileWildcard()
wxString PageLayoutDescrFileWildcard()
wxString LegacySchematicFileWildcard()
wxString AllSymbolLibFilesWildcard()
const std::string LegacyFootprintLibPathExtension
wxString EaglePcbFileWildcard()
wxString EagleFootprintLibPathWildcard()
const std::string VrmlFileExtension
wxString SVGFileWildcard()
const std::string JpegFileExtension
wxString LegacyProjectFileWildcard()
wxString ComponentFileWildcard()
const std::string KiCadFootprintFileExtension
wxString SpiceNetlistFileWildcard()
const std::string ProjectFileExtension
wxString PdfFileWildcard()
const std::string LegacyPcbFileExtension
const std::string LegacySymbolLibFileExtension
const std::string BackupFileSuffix
const std::string DesignRulesFileExtension
wxString KiCadSchematicFileWildcard()
wxString DxfFileWildcard()
wxString ZipFileWildcard()
const std::string SchematicSymbolFileExtension
const std::string EagleFootprintLibPathExtension
wxString CsvFileWildcard()
const std::string ComponentFileExtension
wxString JpegFileWildcard()
const std::string GerberFileExtension
wxString AltiumCircuitMakerPcbFileWildcard()
const std::string KiCadPcbFileExtension
const std::string MacrosFileExtension
wxString LegacyFootprintLibPathWildcard()
wxString AllFilesWildcard()
bool IsProtelExtension(const wxString &ext)
wxString EquFileWildcard()
const std::string ProjectLocalSettingsFileExtension
wxString DocModulesFileName()
const std::string HtmlFileExtension
wxString FabmasterPcbFileWildcard()
wxString LegacyPcbFileWildcard()
wxString CadstarSchematicArchiveFileWildcard()
wxString PSFileWildcard()
wxString GencadFileWildcard()
wxString ReportFileWildcard()
wxString NetlistFileWildcard()
wxString HtmlFileWildcard()
const std::string LegacySymbolDocumentFileExtension
wxString ModLegacyExportFileWildcard()
const std::string GerberJobFileExtension
wxString formatWildcardExt(const wxString &aWildcard)
Format wildcard extension to support case sensitive file dialogs.
wxString KiCadSymbolLibFileWildcard()
wxString BoardFileWildcard()
wxString LegacySymbolLibFileWildcard()
const std::string LegacyProjectFileExtension
const std::string IpcD356FileExtension
const std::string PdfFileExtension
wxString DrillFileWildcard()
const std::string LegacySchematicFileExtension
const std::string SpecctraDsnFileExtension
const std::string PageLayoutDescrFileExtension
wxString AltiumDesignerPcbFileWildcard()
wxString IpcD356FileWildcard()
wxString PngFileWildcard()
const std::string EquFileExtension
wxString ProjectFileWildcard()
wxString AltiumCircuitStudioPcbFileWildcard()
wxString ErcFileWildcard()
wxString KiCadFootprintLibPathWildcard()
wxString GerberJobFileWildcard()
wxString EagleSchematicFileWildcard()
const std::string ReportFileExtension
wxString FootprintPlaceFileWildcard()
wxString Shapes3DFileWildcard()
wxString SpiceLibraryFileWildcard()
const std::string KiCadSchematicFileExtension
const std::string SVGFileExtension
const std::string PngFileExtension
wxString PcbFileWildcard()
wxString TextFileWildcard()
const std::string GedaPcbFootprintLibFileExtension
wxString SpecctraDsnFileWildcard()
wxString IDF3DFileWildcard()
const std::string FootprintPlaceFileExtension
wxString EagleFilesWildcard()
wxString MacrosFileWildcard()
wxString CadstarPcbArchiveFileWildcard()
wxString WorkbookFileWildcard()
wxString PCadPcbFileWildcard()
const std::string KiCadFootprintLibPathExtension
wxString AltiumSchematicFileWildcard()
wxString KiCadFootprintLibFileWildcard()
bool compareFileExtensions(const std::string &aExtension, const std::vector< std::string > &aReference, bool aCaseSensitive=false)
Compare the given extension against the reference extensions to see if it matches any of the referenc...
wxString CadstarArchiveFilesWildcard()
wxString GedaPcbFootprintLibFileWildcard()
const std::string DrillFileExtension
wxString CadstarNetlistFileWildcard()
wxString AddFileExtListToFilter(const std::vector< std::string > &aExts)
Build the wildcard extension file dialog wildcard filter to add to the base message dialog.
const std::string ArchiveFileExtension
const std::string KiCadSymbolLibFileExtension