KiCad PCB EDA Suite
wildcards_and_files_ext.cpp
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) 2012 Jean-Pierre Charras, jaen-pierre.charras@gipsa-lab.inpg.com
5  * Copyright (C) 2008-2012 Wayne Stambaugh <stambaughw@verizon.net>
6  * Copyright (C) 1992-2012 KiCad Developers, see AUTHORS.txt for contributors.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, you may find one here:
20  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21  * or you may search the http://www.gnu.org website for the version 2 license,
22  * or you may write to the Free Software Foundation, Inc.,
23  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24  */
25 
30 
35 const wxString SchematicSymbolFileExtension( wxT( "sym" ) );
36 const wxString SchematicLibraryFileExtension( wxT( "lib" ) );
37 const wxString SchematicBackupFileExtension( wxT( "bak" ) );
38 
39 const wxString VrmlFileExtension( wxT( "wrl" ) );
40 
41 const wxString ProjectFileExtension( wxT( "pro" ) );
42 const wxString SchematicFileExtension( wxT( "sch" ) );
43 const wxString NetlistFileExtension( wxT( "net" ) );
44 const wxString ComponentFileExtension( wxT( "cmp" ) );
45 const wxString GerberFileExtension( "gbr" );
46 const wxString GerberJobFileExtension( "gbrjob" );
47 const wxString HtmlFileExtension( wxT( "html" ) );
48 
49 const wxString LegacyPcbFileExtension( wxT( "brd" ) );
50 const wxString KiCadPcbFileExtension( wxT( "kicad_pcb" ) );
51 const wxString PageLayoutDescrFileExtension( wxT( "kicad_wks" ) );
52 
53 const wxString PdfFileExtension( wxT( "pdf" ) );
54 const wxString MacrosFileExtension( wxT( "mcr" ) );
55 const wxString DrillFileExtension( wxT( "drl" ) );
56 const wxString SVGFileExtension( wxT( "svg" ) );
57 const wxString ReportFileExtension( wxT( "rpt" ) );
58 const wxString FootprintPlaceFileExtension( wxT( "pos" ) );
59 const wxString KiCadLib3DShapesPathExtension( wxT( "3dshapes" ) );
60 
61 const wxString KiCadFootprintLibPathExtension( wxT( "pretty" ) );
62 const wxString LegacyFootprintLibPathExtension( wxT( "mod" ) );
63 const wxString EagleFootprintLibPathExtension( wxT( "lbr" ) );
64 
65 const wxString KiCadFootprintFileExtension( wxT( "kicad_mod" ) );
66 const wxString GedaPcbFootprintLibFileExtension( wxT( "fp" ) );
67 
68 // These strings are wildcards for file selection dialogs.
69 // Because these are static, one should explicitly call wxGetTranslation
70 // to display them as translated.
71 const wxString SchematicSymbolFileWildcard( _( "KiCad drawing symbol file (*.sym)|*.sym" ) );
72 const wxString SchematicLibraryFileWildcard( _( "KiCad component library file (*.lib)|*.lib" ) );
73 const wxString ProjectFileWildcard( _( "KiCad project files (*.pro)|*.pro" ) );
74 const wxString SchematicFileWildcard( _( "KiCad schematic files (*.sch)|*.sch" ) );
75 const wxString EagleSchematicFileWildcard( _( "Eagle XML schematic file (*.sch)|*.sch" ) );
76 const wxString EagleFilesWildcard( _( "Eagle XML files (*.sch *.brd)|*.sch;*.brd" ) );
77 const wxString NetlistFileWildcard( _( "KiCad netlist files (*.net)|*.net" ) );
78 const wxString GerberFileWildcard( _( "Gerber files (*.pho)|*.pho" ) );
79 const wxString LegacyPcbFileWildcard( _( "KiCad printed circuit board files (*.brd)|*.brd" ) );
80 const wxString EaglePcbFileWildcard( _( "Eagle ver. 6.x XML PCB files (*.brd)|*.brd" ) );
81 const wxString PCadPcbFileWildcard( _( "P-Cad 200x ASCII PCB files (*.pcb)|*.pcb" ) );
82 const wxString PcbFileWildcard( _( "KiCad s-expr printed circuit board files (*.kicad_pcb)|*.kicad_pcb" ) );
83 const wxString KiCadFootprintLibFileWildcard( _( "KiCad footprint s-expre file (*.kicad_mod)|*.kicad_mod" ) );
84 const wxString KiCadFootprintLibPathWildcard( _( "KiCad footprint s-expre library path (*.pretty)|*.pretty" ) );
85 const wxString LegacyFootprintLibPathWildcard( _( "Legacy footprint library file (*.mod)|*.mod" ) );
86 const wxString EagleFootprintLibPathWildcard( _( "Eagle ver. 6.x XML library files (*.lbr)|*.lbr" ) );
87 const wxString GedaPcbFootprintLibFileWildcard( _( "Geda PCB footprint library file (*.fp)|*.fp" ) );
88 const wxString ComponentFileExtensionWildcard( _( "Component-footprint link file (*.cmp)|*cmp" ) );
89 const wxString PageLayoutDescrFileWildcard( _( "Page layout design file (*.kicad_wks)|*kicad_wks" ) );
90 // generic:
91 const wxString AllFilesWildcard( _( "All files (*)|*" ) );
92 
93 // Wildcard for cvpcb component to footprint link file
94 const wxString ComponentFileWildcard( _( "KiCad cmp/footprint link files (*.cmp)|*.cmp" ) );
95 
96 // Wildcard for reports and fabrication documents
97 const wxString DrillFileWildcard( _( "Drill files (*.drl)|*.drl;*.DRL" ) );
98 const wxString SVGFileWildcard( _( "SVG files (*.svg)|*.svg;*.SVG" ) );
99 const wxString HtmlFileWildcard( _( "HTML files (*.html)|*.htm;*.html" ) );
100 const wxString CsvFileWildcard( _( "CSV Files (*.csv)|*.csv" ) );
101 const wxString PdfFileWildcard( _( "Portable document format files (*.pdf)|*.pdf" ) );
102 const wxString PSFileWildcard( _( "PostScript files (.ps)|*.ps" ) );
103 const wxString ReportFileWildcard = _( "Report files (*.rpt)|*.rpt" );
104 const wxString FootprintPlaceFileWildcard = _( "Footprint place files (*.pos)|*.pos" );
105 const wxString Shapes3DFileWildcard( _( "Vrml and x3d files (*.wrl *.x3d)|*.wrl;*.x3d" ) );
106 const wxString IDF3DFileWildcard( _( "IDFv3 component files (*.idf)|*.idf" ) );
107 const wxString TextWildcard( _( "Text files (*.txt)|*.txt" ) );
const wxString SchematicLibraryFileWildcard(_("KiCad component library file (*.lib)|*.lib"))
const wxString EagleFootprintLibPathWildcard(_("Eagle ver. 6.x XML library files (*.lbr)|*.lbr"))
const wxString NetlistFileWildcard(_("KiCad netlist files (*.net)|*.net"))
const wxString SchematicLibraryFileExtension(wxT("lib"))
const wxString SchematicBackupFileExtension(wxT("bak"))
const wxString EaglePcbFileWildcard(_("Eagle ver. 6.x XML PCB files (*.brd)|*.brd"))
const wxString PSFileWildcard(_("PostScript files (.ps)|*.ps"))
const wxString GerberFileExtension("gbr")
const wxString KiCadFootprintLibPathExtension(wxT("pretty"))
KICAD PLUGIN libpath.
const wxString LegacyPcbFileWildcard(_("KiCad printed circuit board files (*.brd)|*.brd"))
const wxString KiCadFootprintLibPathWildcard(_("KiCad footprint s-expre library path (*.pretty)|*.pretty"))
const wxString AllFilesWildcard(_("All files (*)|*"))
const wxString ProjectFileWildcard(_("KiCad project files (*.pro)|*.pro"))
const wxString GedaPcbFootprintLibFileExtension(wxT("fp"))
const wxString SVGFileExtension(wxT("svg"))
const wxString LegacyFootprintLibPathWildcard(_("Legacy footprint library file (*.mod)|*.mod"))
const wxString DrillFileExtension(wxT("drl"))
const wxString KiCadPcbFileExtension(wxT("kicad_pcb"))
const wxString LegacyPcbFileExtension(wxT("brd"))
const wxString ProjectFileExtension(wxT("pro"))
const wxString PageLayoutDescrFileWildcard(_("Page layout design file (*.kicad_wks)|*kicad_wks"))
const wxString HtmlFileWildcard(_("HTML files (*.html)|*.htm;*.html"))
const wxString ComponentFileExtensionWildcard(_("Component-footprint link file (*.cmp)|*cmp"))
const wxString TextWildcard(_("Text files (*.txt)|*.txt"))
const wxString MacrosFileExtension(wxT("mcr"))
const wxString VrmlFileExtension(wxT("wrl"))
The common library.
const wxString PageLayoutDescrFileExtension(wxT("kicad_wks"))
const wxString ComponentFileWildcard(_("KiCad cmp/footprint link files (*.cmp)|*.cmp"))
const wxString GerberJobFileExtension("gbrjob")
const wxString KiCadFootprintLibFileWildcard(_("KiCad footprint s-expre file (*.kicad_mod)|*.kicad_mod"))
const wxString EagleFilesWildcard(_("Eagle XML files (*.sch *.brd)|*.sch;*.brd"))
const wxString EagleFootprintLibPathExtension(wxT("lbr"))
const wxString PdfFileExtension(wxT("pdf"))
const wxString IDF3DFileWildcard(_("IDFv3 component files (*.idf)|*.idf"))
const wxString Shapes3DFileWildcard(_("Vrml and x3d files (*.wrl *.x3d)|*.wrl;*.x3d"))
const wxString ComponentFileExtension(wxT("cmp"))
const wxString DrillFileWildcard(_("Drill files (*.drl)|*.drl;*.DRL"))
const wxString SchematicFileExtension(wxT("sch"))
const wxString FootprintPlaceFileExtension(wxT("pos"))
const wxString NetlistFileExtension(wxT("net"))
const wxString HtmlFileExtension(wxT("html"))
const wxString SVGFileWildcard(_("SVG files (*.svg)|*.svg;*.SVG"))
const wxString LegacyFootprintLibPathExtension(wxT("mod"))
const wxString PCadPcbFileWildcard(_("P-Cad 200x ASCII PCB files (*.pcb)|*.pcb"))
const wxString EagleSchematicFileWildcard(_("Eagle XML schematic file (*.sch)|*.sch"))
const wxString PdfFileWildcard(_("Portable document format files (*.pdf)|*.pdf"))
const wxString KiCadLib3DShapesPathExtension(wxT("3dshapes"))
3D shapes default libpath
const wxString SchematicFileWildcard(_("KiCad schematic files (*.sch)|*.sch"))
const wxString GedaPcbFootprintLibFileWildcard(_("Geda PCB footprint library file (*.fp)|*.fp"))
const wxString FootprintPlaceFileWildcard
const wxString ReportFileWildcard
const wxString SchematicSymbolFileExtension(wxT("sym"))
file extensions and wildcards used in kicad.
const wxString ReportFileExtension(wxT("rpt"))
const wxString PcbFileWildcard(_("KiCad s-expr printed circuit board files (*.kicad_pcb)|*.kicad_pcb"))
const wxString CsvFileWildcard(_("CSV Files (*.csv)|*.csv"))
const wxString GerberFileWildcard(_("Gerber files (*.pho)|*.pho"))
const wxString SchematicSymbolFileWildcard(_("KiCad drawing symbol file (*.sym)|*.sym"))
const wxString KiCadFootprintFileExtension(wxT("kicad_mod"))