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 <dick@softplc.com>
6  * Copyright (C) 2008 Wayne Stambaugh <stambaughw@gmail.com>
7  * Copyright (C) 1992-2018 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 <wx/wx.h>
36 
37 #include <string>
38 #include <vector>
39 
70 wxString AddFileExtListToFilter( const std::vector<std::string>& aExts );
71 
72 
73 // Do NOT use wxString for these. wxStrings are not thread-safe, even when const. (For the
74 // curious the UTF8 cacheing strategy puts iterators in a linked list. Insertion and removal
75 // from the linked list is not thread-safe.)
76 
77 extern const std::string SchematicSymbolFileExtension;
78 extern const std::string SchematicLibraryFileExtension;
79 extern const std::string SchematicBackupFileExtension;
80 
81 extern const std::string VrmlFileExtension;
82 extern const std::string ProjectFileExtension;
83 extern const std::string SchematicFileExtension;
84 extern const std::string NetlistFileExtension;
85 extern const std::string GerberFileExtension;
86 extern const std::string GerberJobFileExtension;
87 extern const std::string HtmlFileExtension;
88 
89 extern const std::string LegacyPcbFileExtension;
90 extern const std::string KiCadPcbFileExtension;
91 #define PcbFileExtension KiCadPcbFileExtension // symlink choice
92 extern const std::string PageLayoutDescrFileExtension;
93 
94 extern const std::string LegacyFootprintLibPathExtension;
95 extern const std::string PdfFileExtension;
96 extern const std::string MacrosFileExtension;
97 extern const std::string ComponentFileExtension;
98 extern const std::string DrillFileExtension;
99 extern const std::string SVGFileExtension;
100 extern const std::string ReportFileExtension;
101 extern const std::string FootprintPlaceFileExtension;
102 extern const std::string KiCadFootprintFileExtension;
103 extern const std::string KiCadFootprintLibPathExtension;
104 extern const std::string GedaPcbFootprintLibFileExtension;
105 extern const std::string EagleFootprintLibPathExtension;
106 extern const std::string ComponentFileExtension;
107 extern const std::string PageLayoutDescrFileExtension;
108 extern const std::string KiCadLib3DShapesPathExtension;
109 extern const std::string SpecctraDsnFileExtension;
110 extern const std::string IpcD356FileExtension;
111 
112 extern const std::string PngFileExtension;
113 extern const std::string JpegFileExtension;
114 
130 extern wxString AllFilesWildcard();
131 
132 extern wxString ComponentFileWildcard();
133 extern wxString PageLayoutDescrFileWildcard();
134 extern wxString SchematicSymbolFileWildcard();
135 extern wxString SchematicLibraryFileWildcard();
136 extern wxString ProjectFileWildcard();
137 extern wxString SchematicFileWildcard();
138 extern wxString BoardFileWildcard();
139 extern wxString NetlistFileWildcard();
140 extern wxString GerberFileWildcard();
141 extern wxString HtmlFileWildcard();
142 extern wxString CsvFileWildcard();
143 extern wxString LegacyPcbFileWildcard();
144 extern wxString PcbFileWildcard();
145 extern wxString EaglePcbFileWildcard();
146 extern wxString EagleSchematicFileWildcard();
147 extern wxString EagleFilesWildcard();
148 extern wxString PCadPcbFileWildcard();
149 extern wxString PdfFileWildcard();
150 extern wxString PSFileWildcard();
151 extern wxString MacrosFileWildcard();
152 extern wxString ComponentFileWildcard();
153 extern wxString DrillFileWildcard();
154 extern wxString SVGFileWildcard();
155 extern wxString ReportFileWildcard();
156 extern wxString FootprintPlaceFileWildcard();
157 extern wxString Shapes3DFileWildcard();
158 extern wxString IDF3DFileWildcard();
159 extern wxString DocModulesFileName();
160 extern wxString LegacyFootprintLibPathWildcard();
161 extern wxString KiCadFootprintLibFileWildcard();
162 extern wxString KiCadFootprintLibPathWildcard();
163 extern wxString GedaPcbFootprintLibFileWildcard();
164 extern wxString EagleFootprintLibPathWildcard();
165 extern wxString TextFileWildcard();
166 extern wxString ModLegacyExportFileWildcard();
167 extern wxString ErcFileWildcard();
168 extern wxString SpiceLibraryFileWildcard();
169 extern wxString SpiceNetlistFileWildcard();
170 extern wxString CadstarNetlistFileWildcard();
171 extern wxString EquFileWildcard();
172 extern wxString ZipFileWildcard();
173 extern wxString GencadFileWildcard();
174 extern wxString DxfFileWildcard();
175 extern wxString GerberJobFileWildcard();
176 extern wxString SpecctraDsnFileWildcard();
177 extern wxString IpcD356FileWildcard();
178 extern wxString WorkbookFileWildcard();
179 extern wxString PngFileWildcard();
180 extern wxString JpegFileWildcard();
181 
186 #endif // INCLUDE_WILDCARDS_AND_FILES_EXT_H_
const std::string SchematicBackupFileExtension
const std::string NetlistFileExtension
wxString GerberFileWildcard()
wxString SchematicSymbolFileWildcard()
wxString PageLayoutDescrFileWildcard()
const std::string LegacyFootprintLibPathExtension
wxString SchematicFileWildcard()
wxString EaglePcbFileWildcard()
wxString EagleFootprintLibPathWildcard()
const std::string VrmlFileExtension
wxString SVGFileWildcard()
const std::string JpegFileExtension
wxString ComponentFileWildcard()
const std::string KiCadFootprintFileExtension
wxString SpiceNetlistFileWildcard()
const std::string ProjectFileExtension
wxString PdfFileWildcard()
const std::string LegacyPcbFileExtension
wxString DxfFileWildcard()
wxString SchematicLibraryFileWildcard()
wxString ZipFileWildcard()
const std::string SchematicSymbolFileExtension
const std::string EagleFootprintLibPathExtension
wxString CsvFileWildcard()
const std::string ComponentFileExtension
wxString JpegFileWildcard()
const std::string GerberFileExtension
const std::string KiCadPcbFileExtension
const std::string MacrosFileExtension
wxString LegacyFootprintLibPathWildcard()
wxString AllFilesWildcard()
wxString EquFileWildcard()
wxString DocModulesFileName()
const std::string HtmlFileExtension
wxString LegacyPcbFileWildcard()
wxString PSFileWildcard()
wxString GencadFileWildcard()
wxString ReportFileWildcard()
const std::string SchematicLibraryFileExtension
wxString NetlistFileWildcard()
wxString HtmlFileWildcard()
const std::string SchematicFileExtension
wxString ModLegacyExportFileWildcard()
const std::string GerberJobFileExtension
wxString BoardFileWildcard()
const std::string IpcD356FileExtension
const std::string PdfFileExtension
wxString DrillFileWildcard()
const std::string SpecctraDsnFileExtension
const std::string PageLayoutDescrFileExtension
wxString IpcD356FileWildcard()
wxString PngFileWildcard()
wxString ProjectFileWildcard()
wxString ErcFileWildcard()
wxString KiCadFootprintLibPathWildcard()
wxString GerberJobFileWildcard()
wxString EagleSchematicFileWildcard()
const std::string ReportFileExtension
wxString FootprintPlaceFileWildcard()
wxString Shapes3DFileWildcard()
wxString SpiceLibraryFileWildcard()
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 WorkbookFileWildcard()
wxString PCadPcbFileWildcard()
const std::string KiCadFootprintLibPathExtension
wxString KiCadFootprintLibFileWildcard()
const std::string KiCadLib3DShapesPathExtension
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...