2012-02-16 20:03:33 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2013-04-25 16:29:35 +00:00
|
|
|
* Copyright (C) 2012 Jean-Pierre Charras, jaen-pierre.charras@gipsa-lab.inpg.com
|
2012-02-16 20:03:33 +00:00
|
|
|
* Copyright (C) 2008-2012 Wayne Stambaugh <stambaughw@verizon.net>
|
|
|
|
* Copyright (C) 1992-2012 KiCad Developers, see AUTHORS.txt for contributors.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file wildcards_and_files_ext.cpp
|
|
|
|
*/
|
|
|
|
#include <wildcards_and_files_ext.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* file extensions and wildcards used in kicad.
|
|
|
|
*/
|
|
|
|
|
2012-09-28 17:47:41 +00:00
|
|
|
const wxString SchematicSymbolFileExtension( wxT( "sym" ) );
|
|
|
|
const wxString SchematicLibraryFileExtension( wxT( "lib" ) );
|
|
|
|
const wxString SchematicBackupFileExtension( wxT( "bak" ) );
|
|
|
|
|
2012-03-08 17:47:23 +00:00
|
|
|
const wxString VrmlFileExtension( wxT( "wrl" ) );
|
|
|
|
|
2012-02-16 20:03:33 +00:00
|
|
|
const wxString ProjectFileExtension( wxT( "pro" ) );
|
|
|
|
const wxString SchematicFileExtension( wxT( "sch" ) );
|
|
|
|
const wxString NetlistFileExtension( wxT( "net" ) );
|
|
|
|
const wxString ComponentFileExtension( wxT( "cmp" ) );
|
2014-03-06 21:44:48 +00:00
|
|
|
const wxString GerberFileExtension( wxT( ".((gbr|(gb|gt)[alops])|pho)" ) );
|
2015-06-24 19:30:35 +00:00
|
|
|
const wxString HtmlFileExtension( wxT( "html" ) );
|
2012-12-14 16:54:54 +00:00
|
|
|
|
|
|
|
const wxString LegacyPcbFileExtension( wxT( "brd" ) );
|
|
|
|
const wxString KiCadPcbFileExtension( wxT( "kicad_pcb" ) );
|
2013-07-19 18:27:22 +00:00
|
|
|
const wxString PageLayoutDescrFileExtension( wxT( "kicad_wks" ) );
|
2012-12-14 16:54:54 +00:00
|
|
|
|
2012-02-16 20:03:33 +00:00
|
|
|
const wxString PdfFileExtension( wxT( "pdf" ) );
|
|
|
|
const wxString MacrosFileExtension( wxT( "mcr" ) );
|
|
|
|
const wxString DrillFileExtension( wxT( "drl" ) );
|
2012-08-29 12:40:09 +00:00
|
|
|
const wxString SVGFileExtension( wxT( "svg" ) );
|
2012-02-16 20:03:33 +00:00
|
|
|
const wxString ReportFileExtension( wxT( "rpt" ) );
|
|
|
|
const wxString FootprintPlaceFileExtension( wxT( "pos" ) );
|
2015-04-09 18:53:36 +00:00
|
|
|
const wxString KiCadLib3DShapesPathExtension( wxT( "3dshapes" ) ); ///< 3D shapes default libpath
|
2012-11-19 16:19:38 +00:00
|
|
|
|
2015-04-09 18:53:36 +00:00
|
|
|
const wxString KiCadFootprintLibPathExtension( wxT( "pretty" ) ); ///< KICAD PLUGIN libpath
|
2013-01-03 16:33:22 +00:00
|
|
|
const wxString LegacyFootprintLibPathExtension( wxT( "mod" ) );
|
|
|
|
const wxString EagleFootprintLibPathExtension( wxT( "lbr" ) );
|
|
|
|
|
2012-11-19 16:19:38 +00:00
|
|
|
const wxString KiCadFootprintFileExtension( wxT( "kicad_mod" ) );
|
2012-12-28 20:52:12 +00:00
|
|
|
const wxString GedaPcbFootprintLibFileExtension( wxT( "fp" ) );
|
2012-02-16 20:03:33 +00:00
|
|
|
|
2012-03-08 17:47:23 +00:00
|
|
|
// These strings are wildcards for file selection dialogs.
|
2012-11-19 16:19:38 +00:00
|
|
|
// Because these are static, one should explicitly call wxGetTranslation
|
|
|
|
// to display them as translated.
|
2012-09-28 17:47:41 +00:00
|
|
|
const wxString SchematicSymbolFileWildcard( _( "KiCad drawing symbol file (*.sym)|*.sym" ) );
|
|
|
|
const wxString SchematicLibraryFileWildcard( _( "KiCad component library file (*.lib)|*.lib" ) );
|
2012-02-16 20:03:33 +00:00
|
|
|
const wxString ProjectFileWildcard( _( "KiCad project files (*.pro)|*.pro" ) );
|
|
|
|
const wxString SchematicFileWildcard( _( "KiCad schematic files (*.sch)|*.sch" ) );
|
|
|
|
const wxString NetlistFileWildcard( _( "KiCad netlist files (*.net)|*.net" ) );
|
|
|
|
const wxString GerberFileWildcard( _( "Gerber files (*.pho)|*.pho" ) );
|
2012-04-07 18:05:56 +00:00
|
|
|
const wxString LegacyPcbFileWildcard( _( "KiCad printed circuit board files (*.brd)|*.brd" ) );
|
2012-05-30 14:14:42 +00:00
|
|
|
const wxString EaglePcbFileWildcard( _( "Eagle ver. 6.x XML PCB files (*.brd)|*.brd" ) );
|
2013-06-12 19:43:22 +00:00
|
|
|
const wxString PCadPcbFileWildcard( _( "P-Cad 200x ASCII PCB files (*.pcb)|*.pcb" ) );
|
2012-04-22 15:16:39 +00:00
|
|
|
const wxString PcbFileWildcard( _( "KiCad s-expr printed circuit board files (*.kicad_pcb)|*.kicad_pcb" ) );
|
2014-08-22 10:24:14 +00:00
|
|
|
const wxString KiCadFootprintLibFileWildcard( _( "KiCad footprint s-expre file (*.kicad_mod)|*.kicad_mod" ) );
|
2012-11-19 16:19:38 +00:00
|
|
|
const wxString KiCadFootprintLibPathWildcard( _( "KiCad footprint s-expre library path (*.pretty)|*.pretty" ) );
|
|
|
|
const wxString LegacyFootprintLibPathWildcard( _( "Legacy footprint library file (*.mod)|*.mod" ) );
|
2013-01-03 16:33:22 +00:00
|
|
|
const wxString EagleFootprintLibPathWildcard( _( "Eagle ver. 6.x XML library files (*.lbr)|*.lbr" ) );
|
2012-12-28 20:52:12 +00:00
|
|
|
const wxString GedaPcbFootprintLibFileWildcard( _( "Geda PCB footprint library file (*.fp)|*.fp" ) );
|
2013-02-02 17:39:59 +00:00
|
|
|
const wxString ComponentFileExtensionWildcard( _( "Component-footprint link file (*.cmp)|*cmp" ) );
|
2013-07-19 18:27:22 +00:00
|
|
|
const wxString PageLayoutDescrFileWildcard( _( "Page layout descr file (*.kicad_wks)|*kicad_wks" ) );
|
2012-10-13 18:54:33 +00:00
|
|
|
// generic:
|
2012-02-16 20:03:33 +00:00
|
|
|
const wxString AllFilesWildcard( _( "All files (*)|*" ) );
|
|
|
|
|
|
|
|
// Wildcard for cvpcb component to footprint link file
|
|
|
|
const wxString ComponentFileWildcard( _( "KiCad cmp/footprint link files (*.cmp)|*.cmp" ) );
|
|
|
|
|
2012-10-05 12:25:12 +00:00
|
|
|
// Wildcard for reports and fabrication documents
|
2012-02-16 20:03:33 +00:00
|
|
|
const wxString DrillFileWildcard( _( "Drill files (*.drl)|*.drl;*.DRL" ) );
|
2012-08-29 12:40:09 +00:00
|
|
|
const wxString SVGFileWildcard( _( "SVG files (*.svg)|*.svg;*.SVG" ) );
|
2015-06-24 19:30:35 +00:00
|
|
|
const wxString HtmlFileWildcard( _( "HTML files (*.html)|*.htm;*.html" ) );
|
2012-10-13 18:54:33 +00:00
|
|
|
const wxString PdfFileWildcard( _( "Portable document format files (*.pdf)|*.pdf" ) );
|
|
|
|
const wxString PSFileWildcard( _( "PostScript files (.ps)|*.ps" ) );
|
2012-02-16 20:03:33 +00:00
|
|
|
const wxString ReportFileWildcard = _( "Report files (*.rpt)|*.rpt" );
|
|
|
|
const wxString FootprintPlaceFileWildcard = _( "Footprint place files (*.pos)|*.pos" );
|
2013-03-27 18:34:23 +00:00
|
|
|
const wxString Shapes3DFileWildcard( _( "Vrml and x3d files (*.wrl *.x3d)|*.wrl;*.x3d" ) );
|
2014-01-25 12:23:29 +00:00
|
|
|
const wxString IDF3DFileWildcard( _( "IDFv3 component files (*.idf)|*.idf" ) );
|
2013-04-25 16:29:35 +00:00
|
|
|
const wxString TextWildcard( _( "Text files (*.txt)|*.txt" ) );
|