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( wxT( ".((gbr|(gb|gt)[alops])|pho)" ) );
46 const wxString HtmlFileExtension( wxT( "html" ) );
47 
48 const wxString LegacyPcbFileExtension( wxT( "brd" ) );
49 const wxString KiCadPcbFileExtension( wxT( "kicad_pcb" ) );
50 const wxString PageLayoutDescrFileExtension( wxT( "kicad_wks" ) );
51 
52 const wxString PdfFileExtension( wxT( "pdf" ) );
53 const wxString MacrosFileExtension( wxT( "mcr" ) );
54 const wxString DrillFileExtension( wxT( "drl" ) );
55 const wxString SVGFileExtension( wxT( "svg" ) );
56 const wxString ReportFileExtension( wxT( "rpt" ) );
57 const wxString FootprintPlaceFileExtension( wxT( "pos" ) );
58 const wxString KiCadLib3DShapesPathExtension( wxT( "3dshapes" ) );
59 
60 const wxString KiCadFootprintLibPathExtension( wxT( "pretty" ) );
61 const wxString LegacyFootprintLibPathExtension( wxT( "mod" ) );
62 const wxString EagleFootprintLibPathExtension( wxT( "lbr" ) );
63 
64 const wxString KiCadFootprintFileExtension( wxT( "kicad_mod" ) );
65 const wxString GedaPcbFootprintLibFileExtension( wxT( "fp" ) );
66 
67 // These strings are wildcards for file selection dialogs.
68 // Because these are static, one should explicitly call wxGetTranslation
69 // to display them as translated.
70 const wxString SchematicSymbolFileWildcard( _( "KiCad drawing symbol file (*.sym)|*.sym" ) );
71 const wxString SchematicLibraryFileWildcard( _( "KiCad component library file (*.lib)|*.lib" ) );
72 const wxString ProjectFileWildcard( _( "KiCad project files (*.pro)|*.pro" ) );
73 const wxString SchematicFileWildcard( _( "KiCad schematic files (*.sch)|*.sch" ) );
74 const wxString NetlistFileWildcard( _( "KiCad netlist files (*.net)|*.net" ) );
75 const wxString GerberFileWildcard( _( "Gerber files (*.pho)|*.pho" ) );
76 const wxString LegacyPcbFileWildcard( _( "KiCad printed circuit board files (*.brd)|*.brd" ) );
77 const wxString EaglePcbFileWildcard( _( "Eagle ver. 6.x XML PCB files (*.brd)|*.brd" ) );
78 const wxString PCadPcbFileWildcard( _( "P-Cad 200x ASCII PCB files (*.pcb)|*.pcb" ) );
79 const wxString PcbFileWildcard( _( "KiCad s-expr printed circuit board files (*.kicad_pcb)|*.kicad_pcb" ) );
80 const wxString KiCadFootprintLibFileWildcard( _( "KiCad footprint s-expre file (*.kicad_mod)|*.kicad_mod" ) );
81 const wxString KiCadFootprintLibPathWildcard( _( "KiCad footprint s-expre library path (*.pretty)|*.pretty" ) );
82 const wxString LegacyFootprintLibPathWildcard( _( "Legacy footprint library file (*.mod)|*.mod" ) );
83 const wxString EagleFootprintLibPathWildcard( _( "Eagle ver. 6.x XML library files (*.lbr)|*.lbr" ) );
84 const wxString GedaPcbFootprintLibFileWildcard( _( "Geda PCB footprint library file (*.fp)|*.fp" ) );
85 const wxString ComponentFileExtensionWildcard( _( "Component-footprint link file (*.cmp)|*cmp" ) );
86 const wxString PageLayoutDescrFileWildcard( _( "Page layout descr file (*.kicad_wks)|*kicad_wks" ) );
87 // generic:
88 const wxString AllFilesWildcard( _( "All files (*)|*" ) );
89 
90 // Wildcard for cvpcb component to footprint link file
91 const wxString ComponentFileWildcard( _( "KiCad cmp/footprint link files (*.cmp)|*.cmp" ) );
92 
93 // Wildcard for reports and fabrication documents
94 const wxString DrillFileWildcard( _( "Drill files (*.drl)|*.drl;*.DRL" ) );
95 const wxString SVGFileWildcard( _( "SVG files (*.svg)|*.svg;*.SVG" ) );
96 const wxString HtmlFileWildcard( _( "HTML files (*.html)|*.htm;*.html" ) );
97 const wxString PdfFileWildcard( _( "Portable document format files (*.pdf)|*.pdf" ) );
98 const wxString PSFileWildcard( _( "PostScript files (.ps)|*.ps" ) );
99 const wxString ReportFileWildcard = _( "Report files (*.rpt)|*.rpt" );
100 const wxString FootprintPlaceFileWildcard = _( "Footprint place files (*.pos)|*.pos" );
101 const wxString Shapes3DFileWildcard( _( "Vrml and x3d files (*.wrl *.x3d)|*.wrl;*.x3d" ) );
102 const wxString IDF3DFileWildcard( _( "IDFv3 component files (*.idf)|*.idf" ) );
103 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 GerberFileExtension(wxT(".((gbr|(gb|gt)[alops])|pho)"))
const wxString PSFileWildcard(_("PostScript files (.ps)|*.ps"))
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 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 KiCadFootprintLibFileWildcard(_("KiCad footprint s-expre file (*.kicad_mod)|*.kicad_mod"))
const wxString EagleFootprintLibPathExtension(wxT("lbr"))
const wxString PageLayoutDescrFileWildcard(_("Page layout descr file (*.kicad_wks)|*kicad_wks"))
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 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 GerberFileWildcard(_("Gerber files (*.pho)|*.pho"))
const wxString SchematicSymbolFileWildcard(_("KiCad drawing symbol file (*.sym)|*.sym"))
const wxString KiCadFootprintFileExtension(wxT("kicad_mod"))