KiCad PCB EDA Suite
wildcards_and_files_ext.h
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 wanadoo.fr
5 * Copyright (C) 2007-2012 SoftPLC Corporation, Dick Hollenbeck <[email protected]>
6 * Copyright (C) 2008 Wayne Stambaugh <[email protected]>
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
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
22 * or you may search the http://www.gnu.org 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 */
26
32#ifndef INCLUDE_WILDCARDS_AND_FILES_EXT_H_
33#define INCLUDE_WILDCARDS_AND_FILES_EXT_H_
34
35#include <string>
36#include <vector>
37#include <wx/string.h>
38
68bool compareFileExtensions( const std::string& aExtension,
69 const std::vector<std::string>& aReference, bool aCaseSensitive = false );
70
89wxString AddFileExtListToFilter( const std::vector<std::string>& aExts );
90
109wxString formatWildcardExt( const wxString& aWildcard );
110
111extern const std::string BackupFileSuffix;
112
113extern const std::string SchematicSymbolFileExtension;
114extern const std::string LegacySymbolLibFileExtension;
115extern const std::string LegacySymbolDocumentFileExtension;
116extern const std::string SchematicBackupFileExtension;
117
118extern const std::string VrmlFileExtension;
119extern const std::string ProjectFileExtension;
120extern const std::string LegacyProjectFileExtension;
121extern const std::string ProjectLocalSettingsFileExtension;
122extern const std::string LegacySchematicFileExtension;
123extern const std::string EagleSchematicFileExtension;
124extern const std::string CadstarSchematicFileExtension;
125extern const std::string KiCadSchematicFileExtension;
126extern const std::string SpiceFileExtension;
127extern const std::string CadstarNetlistFileExtension;
128extern const std::string OrCadPcb2NetlistFileExtension;
129extern const std::string NetlistFileExtension;
130extern const std::string GerberFileExtension;
131extern const std::string GerberJobFileExtension;
132extern const std::string HtmlFileExtension;
133extern const std::string EquFileExtension;
134extern const std::string HotkeyFileExtension;
135extern const std::string DatabaseLibraryFileExtension;
136
137extern const std::string ArchiveFileExtension;
138
139extern const std::string LegacyPcbFileExtension;
140extern const std::string EaglePcbFileExtension;
141extern const std::string CadstarPcbFileExtension;
142extern const std::string KiCadPcbFileExtension;
143#define PcbFileExtension KiCadPcbFileExtension // symlink choice
144extern const std::string KiCadSymbolLibFileExtension;
145extern const std::string DrawingSheetFileExtension;
146extern const std::string DesignRulesFileExtension;
147
148extern const std::string LegacyFootprintLibPathExtension;
149extern const std::string PdfFileExtension;
150extern const std::string MacrosFileExtension;
151extern const std::string FootprintAssignmentFileExtension;
152extern const std::string DrillFileExtension;
153extern const std::string SVGFileExtension;
154extern const std::string ReportFileExtension;
155extern const std::string FootprintPlaceFileExtension;
156extern const std::string KiCadFootprintFileExtension;
157extern const std::string KiCadFootprintLibPathExtension;
158extern const std::string AltiumFootprintLibPathExtension;
159extern const std::string GedaPcbFootprintLibFileExtension;
160extern const std::string EagleFootprintLibPathExtension;
161extern const std::string DrawingSheetFileExtension;
162extern const std::string SpecctraDsnFileExtension;
163extern const std::string SpecctraSessionFileExtension;
164extern const std::string IpcD356FileExtension;
165extern const std::string WorkbookFileExtension;
166
167extern const std::string PngFileExtension;
168extern const std::string JpegFileExtension;
169extern const std::string TextFileExtension;
170extern const std::string MarkdownFileExtension;
171extern const std::string CsvFileExtension;
172extern const std::string XmlFileExtension;
173
174extern const wxString GerberFileExtensionsRegex;
175
176bool IsGerberFileExtension( const wxString& ext );
177
193extern wxString AllFilesWildcard();
194
195extern wxString FootprintAssignmentFileWildcard();
196extern wxString DrawingSheetFileWildcard();
197extern wxString SchematicSymbolFileWildcard();
198extern wxString KiCadSymbolLibFileWildcard();
199extern wxString LegacySymbolLibFileWildcard();
200extern wxString DatabaseLibFileWildcard();
201extern wxString AllSymbolLibFilesWildcard();
202extern wxString ProjectFileWildcard();
203extern wxString LegacyProjectFileWildcard();
204extern wxString AllProjectFilesWildcard();
205extern wxString AllSchematicFilesWildcard();
206extern wxString KiCadSchematicFileWildcard();
207extern wxString LegacySchematicFileWildcard();
208extern wxString BoardFileWildcard();
209extern wxString OrCadPcb2NetlistFileWildcard();
210extern wxString NetlistFileWildcard();
211extern wxString HtmlFileWildcard();
212extern wxString CsvFileWildcard();
213extern wxString LegacyPcbFileWildcard();
214extern wxString PcbFileWildcard();
215extern wxString EaglePcbFileWildcard();
216extern wxString AltiumSchematicFileWildcard();
218extern wxString CadstarArchiveFilesWildcard();
219extern wxString EagleSchematicFileWildcard();
220extern wxString EagleFilesWildcard();
221extern wxString PCadPcbFileWildcard();
222extern wxString CadstarPcbArchiveFileWildcard();
223extern wxString AltiumDesignerPcbFileWildcard();
224extern wxString AltiumCircuitStudioPcbFileWildcard();
225extern wxString AltiumCircuitMakerPcbFileWildcard();
226extern wxString FabmasterPcbFileWildcard();
227extern wxString PdfFileWildcard();
228extern wxString PSFileWildcard();
229extern wxString MacrosFileWildcard();
230extern wxString DrillFileWildcard();
231extern wxString SVGFileWildcard();
232extern wxString ReportFileWildcard();
233extern wxString FootprintPlaceFileWildcard();
234extern wxString Shapes3DFileWildcard();
235extern wxString IDF3DFileWildcard();
236extern wxString DocModulesFileName();
237extern wxString LegacyFootprintLibPathWildcard();
238extern wxString KiCadFootprintLibFileWildcard();
239extern wxString KiCadFootprintLibPathWildcard();
240extern wxString AltiumFootprintLibPathWildcard();
241extern wxString GedaPcbFootprintLibFileWildcard();
242extern wxString EagleFootprintLibPathWildcard();
243extern wxString TextFileWildcard();
244extern wxString ModLegacyExportFileWildcard();
245extern wxString ErcFileWildcard();
246extern wxString SpiceLibraryFileWildcard();
247extern wxString SpiceNetlistFileWildcard();
248extern wxString CadstarNetlistFileWildcard();
249extern wxString EquFileWildcard();
250extern wxString ZipFileWildcard();
251extern wxString GencadFileWildcard();
252extern wxString DxfFileWildcard();
253extern wxString GerberJobFileWildcard();
254extern wxString SpecctraDsnFileWildcard();
255extern wxString SpecctraSessionFileWildcard();
256extern wxString IpcD356FileWildcard();
257extern wxString WorkbookFileWildcard();
258extern wxString PngFileWildcard();
259extern wxString JpegFileWildcard();
260extern wxString HotkeyFileWildcard();
261
266#endif // INCLUDE_WILDCARDS_AND_FILES_EXT_H_
const std::string KiCadFootprintLibPathExtension
const std::string SpiceFileExtension
const std::string DatabaseLibraryFileExtension
const std::string LegacyPcbFileExtension
const std::string EagleFootprintLibPathExtension
const std::string CadstarPcbFileExtension
const std::string SpecctraDsnFileExtension
const std::string CadstarNetlistFileExtension
const std::string PdfFileExtension
const std::string AltiumFootprintLibPathExtension
const std::string BackupFileSuffix
const std::string KiCadSymbolLibFileExtension
const std::string LegacySchematicFileExtension
const std::string SpecctraSessionFileExtension
const std::string FootprintAssignmentFileExtension
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 WorkbookFileExtension
wxString formatWildcardExt(const wxString &aWildcard)
Format wildcard extension to support case sensitive file dialogs.
const std::string FootprintPlaceFileExtension
const std::string GerberJobFileExtension
const std::string SchematicBackupFileExtension
const std::string LegacySymbolDocumentFileExtension
const std::string DrillFileExtension
const std::string HotkeyFileExtension
const std::string JpegFileExtension
const wxString GerberFileExtensionsRegex
const std::string EagleSchematicFileExtension
const std::string KiCadFootprintFileExtension
const std::string LegacyProjectFileExtension
const std::string MarkdownFileExtension
const std::string KiCadPcbFileExtension
bool IsGerberFileExtension(const wxString &ext)
const std::string LegacyFootprintLibPathExtension
const std::string ProjectLocalSettingsFileExtension
const std::string SVGFileExtension
const std::string TextFileExtension
const std::string ProjectFileExtension
const std::string CsvFileExtension
const std::string MacrosFileExtension
const std::string NetlistFileExtension
const std::string OrCadPcb2NetlistFileExtension
const std::string EaglePcbFileExtension
const std::string DesignRulesFileExtension
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...
const std::string HtmlFileExtension
const std::string XmlFileExtension
const std::string VrmlFileExtension
const std::string CadstarSchematicFileExtension
const std::string PngFileExtension
const std::string IpcD356FileExtension
const std::string EquFileExtension
const std::string GedaPcbFootprintLibFileExtension
const std::string KiCadSchematicFileExtension
const std::string ReportFileExtension
const std::string DrawingSheetFileExtension
const std::string GerberFileExtension
const std::string ArchiveFileExtension
const std::string SchematicSymbolFileExtension
const std::string LegacySymbolLibFileExtension
wxString KiCadSchematicFileWildcard()
wxString IDF3DFileWildcard()
wxString NetlistFileWildcard()
wxString SpecctraDsnFileWildcard()
wxString EagleFootprintLibPathWildcard()
wxString DatabaseLibFileWildcard()
wxString ErcFileWildcard()
wxString DxfFileWildcard()
wxString AllProjectFilesWildcard()
wxString DocModulesFileName()
wxString IpcD356FileWildcard()
wxString LegacyProjectFileWildcard()
wxString ProjectFileWildcard()
wxString SpiceLibraryFileWildcard()
wxString KiCadFootprintLibPathWildcard()
wxString LegacyPcbFileWildcard()
wxString SchematicSymbolFileWildcard()
wxString FootprintPlaceFileWildcard()
wxString TextFileWildcard()
wxString LegacySymbolLibFileWildcard()
wxString DrillFileWildcard()
wxString AltiumFootprintLibPathWildcard()
wxString EagleFilesWildcard()
wxString SVGFileWildcard()
wxString CadstarPcbArchiveFileWildcard()
wxString SpecctraSessionFileWildcard()
wxString EquFileWildcard()
wxString ReportFileWildcard()
wxString LegacySchematicFileWildcard()
wxString Shapes3DFileWildcard()
wxString FootprintAssignmentFileWildcard()
wxString AltiumDesignerPcbFileWildcard()
wxString MacrosFileWildcard()
wxString PCadPcbFileWildcard()
wxString BoardFileWildcard()
wxString PdfFileWildcard()
wxString WorkbookFileWildcard()
wxString ModLegacyExportFileWildcard()
wxString OrCadPcb2NetlistFileWildcard()
wxString EaglePcbFileWildcard()
wxString FabmasterPcbFileWildcard()
wxString AltiumCircuitMakerPcbFileWildcard()
wxString CadstarNetlistFileWildcard()
wxString KiCadFootprintLibFileWildcard()
wxString PngFileWildcard()
wxString CadstarSchematicArchiveFileWildcard()
wxString DrawingSheetFileWildcard()
wxString HtmlFileWildcard()
wxString AllSchematicFilesWildcard()
wxString AltiumSchematicFileWildcard()
wxString LegacyFootprintLibPathWildcard()
wxString AltiumCircuitStudioPcbFileWildcard()
wxString PSFileWildcard()
wxString CadstarArchiveFilesWildcard()
wxString HotkeyFileWildcard()
wxString AllFilesWildcard()
wxString SpiceNetlistFileWildcard()
wxString PcbFileWildcard()
wxString GedaPcbFootprintLibFileWildcard()
wxString GerberJobFileWildcard()
wxString GencadFileWildcard()
wxString EagleSchematicFileWildcard()
wxString KiCadSymbolLibFileWildcard()
wxString ZipFileWildcard()
wxString AllSymbolLibFilesWildcard()
wxString JpegFileWildcard()
wxString CsvFileWildcard()