2012-02-16 20:03:33 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 20012 Jean-Pierre Charras, jaen-pierre.charras@gipsa-lab.inpg.com
|
|
|
|
* 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-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" ) );
|
2012-03-08 17:47:23 +00:00
|
|
|
const wxString FootprintLibFileExtension( wxT( "mod" ) );
|
2012-02-16 20:03:33 +00:00
|
|
|
const wxString ComponentFileExtension( wxT( "cmp" ) );
|
|
|
|
const wxString GerberFileExtension( wxT( "pho" ) );
|
|
|
|
const wxString PcbFileExtension( wxT( "brd" ) );
|
|
|
|
const wxString PdfFileExtension( wxT( "pdf" ) );
|
|
|
|
const wxString MacrosFileExtension( wxT( "mcr" ) );
|
|
|
|
const wxString DrillFileExtension( wxT( "drl" ) );
|
|
|
|
const wxString ReportFileExtension( wxT( "rpt" ) );
|
|
|
|
const wxString FootprintPlaceFileExtension( wxT( "pos" ) );
|
|
|
|
|
2012-03-08 17:47:23 +00:00
|
|
|
// These strings are wildcards for file selection dialogs.
|
|
|
|
// Because thes are static, one should explicitely call wxGetTranslation
|
|
|
|
// to display them translated.
|
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" ) );
|
2012-04-22 15:16:39 +00:00
|
|
|
const wxString PcbFileWildcard( _( "KiCad s-expr printed circuit board files (*.kicad_pcb)|*.kicad_pcb" ) );
|
2012-03-08 17:47:23 +00:00
|
|
|
const wxString FootprintLibFileWildcard( _( "KiCad footprint library file (*.mod)|*.mod" ) );
|
2012-02-16 20:03:33 +00:00
|
|
|
const wxString PdfFileWildcard( _( "Portable document format files (*.pdf)|*.pdf" ) );
|
|
|
|
const wxString MacrosFileWildcard( _( "KiCad recorded macros (*.mcr)|*.mcr" ) );
|
|
|
|
const wxString AllFilesWildcard( _( "All files (*)|*" ) );
|
|
|
|
|
|
|
|
// Wildcard for cvpcb component to footprint link file
|
|
|
|
const wxString ComponentFileWildcard( _( "KiCad cmp/footprint link files (*.cmp)|*.cmp" ) );
|
|
|
|
|
|
|
|
const wxString DrillFileWildcard( _( "Drill files (*.drl)|*.drl;*.DRL" ) );
|
|
|
|
const wxString ReportFileWildcard = _( "Report files (*.rpt)|*.rpt" );
|
|
|
|
const wxString FootprintPlaceFileWildcard = _( "Footprint place files (*.pos)|*.pos" );
|
2012-03-08 17:47:23 +00:00
|
|
|
const wxString VrmlFileWildcard( _( "Vrml files (*.wrl)|*.wrl" ) );
|