Browse Source
Kicad project manager: add .cmp, .drl .pos and .rpt files management.
Kicad project manager: add .cmp, .drl .pos and .rpt files management.
Code cleaning and other minor fixes.pull/1/head
33 changed files with 396 additions and 96 deletions
-
1common/CMakeLists.txt
-
2common/basicframe.cpp
-
19common/common.cpp
-
2common/projet_config.cpp
-
61common/wildcards_and_files_ext.cpp
-
1cvpcb/cfg.cpp
-
2cvpcb/cvframe.cpp
-
4cvpcb/cvpcb.cpp
-
2cvpcb/cvpcb.h
-
36cvpcb/dialogs/dialog_cvpcb_config.cpp
-
1cvpcb/readwrite_dlgs.cpp
-
1eeschema/eeschema.cpp
-
24eeschema/eeschema_config.cpp
-
1eeschema/files-io.cpp
-
3eeschema/netlist_control.cpp
-
1eeschema/schframe.cpp
-
1eeschema/sheet.cpp
-
31gerbview/files.cpp
-
26include/common.h
-
71include/wildcards_and_files_ext.h
-
6kicad/class_treeprojectfiles.cpp
-
28kicad/kicad.cpp
-
16kicad/kicad.h
-
27kicad/mainframe.cpp
-
25kicad/prjconfig.cpp
-
45kicad/tree_project_frame.cpp
-
1pcbnew/dialogs/dialog_netlist.cpp
-
36pcbnew/dialogs/dialog_pcbnew_config_libs_and_paths.cpp
-
1pcbnew/files.cpp
-
3pcbnew/gen_modules_placefile.cpp
-
10pcbnew/gendrill.cpp
-
1pcbnew/pcbnew.cpp
-
3pcbnew/pcbnew_config.cpp
@ -0,0 +1,61 @@ |
|||
/*
|
|||
* 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. |
|||
*/ |
|||
|
|||
const wxString ProjectFileExtension( wxT( "pro" ) ); |
|||
const wxString SchematicFileExtension( wxT( "sch" ) ); |
|||
const wxString NetlistFileExtension( wxT( "net" ) ); |
|||
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" ) ); |
|||
|
|||
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" ) ); |
|||
const wxString PcbFileWildcard( _( "KiCad printed circuit board files (*.brd)|*.brd" ) ); |
|||
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" ); |
|||
@ -0,0 +1,71 @@ |
|||
/* |
|||
* 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) 2007-2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.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 |
|||
*/ |
|||
|
|||
/** |
|||
* The common library |
|||
* @file wildcards_and_files_ext.h |
|||
*/ |
|||
|
|||
#ifndef INCLUDE_WILDCARDS_AND_FILES_EXT_H_ |
|||
#define INCLUDE_WILDCARDS_AND_FILES_EXT_H_ |
|||
|
|||
#include <wx/wx.h> |
|||
|
|||
/** |
|||
* File extension definitions. Please do not changes these. If a different |
|||
* file extension is needed, create a new definition in the application. |
|||
* Please note, just because they are defined as const doesn't guarantee |
|||
* that they cannot be changed. |
|||
* Mainly wild cards are most of time translated when displayed |
|||
*/ |
|||
extern const wxString ProjectFileExtension; |
|||
extern const wxString SchematicFileExtension; |
|||
extern const wxString NetlistFileExtension; |
|||
extern const wxString GerberFileExtension; |
|||
extern const wxString PcbFileExtension; |
|||
extern const wxString PdfFileExtension; |
|||
extern const wxString MacrosFileExtension; |
|||
extern const wxString ComponentFileExtension; |
|||
extern const wxString DrillFileExtension; |
|||
extern const wxString ReportFileExtension; |
|||
extern const wxString FootprintPlaceFileExtension; |
|||
|
|||
/// Proper wxFileDialog wild card definitions. |
|||
extern const wxString ProjectFileWildcard; |
|||
extern const wxString SchematicFileWildcard; |
|||
extern const wxString BoardFileWildcard; |
|||
extern const wxString NetlistFileWildcard; |
|||
extern const wxString GerberFileWildcard; |
|||
extern const wxString PcbFileWildcard; |
|||
extern const wxString PdfFileWildcard; |
|||
extern const wxString MacrosFileWildcard; |
|||
extern const wxString AllFilesWildcard; |
|||
extern const wxString ComponentFileWildcard; |
|||
extern const wxString DrillFileWildcard; |
|||
extern const wxString ReportFileWildcard; |
|||
extern const wxString FootprintPlaceFileWildcard; |
|||
|
|||
#endif // INCLUDE_WILDCARDS_AND_FILES_EXT_H_ |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue