diff --git a/common/wildcards_and_files_ext.cpp b/common/wildcards_and_files_ext.cpp index a6da68fc15..841a989ec3 100644 --- a/common/wildcards_and_files_ext.cpp +++ b/common/wildcards_and_files_ext.cpp @@ -132,6 +132,7 @@ const std::string LegacyProjectFileExtension( "pro" ); const std::string ProjectLocalSettingsFileExtension( "kicad_prl" ); const std::string LegacySchematicFileExtension( "sch" ); const std::string KiCadSchematicFileExtension( "kicad_sch" ); +const std::string OrCadPcb2NetlistFileExtension( "net" ); const std::string NetlistFileExtension( "net" ); const std::string FootprintAssignmentFileExtension( "cmp" ); const std::string GerberFileExtension( "gbr" ); @@ -282,6 +283,13 @@ wxString EagleFilesWildcard() } +wxString OrCadPcb2NetlistFileWildcard() +{ + return _( "OrcadPCB2 netlist files" ) + + AddFileExtListToFilter( { OrCadPcb2NetlistFileExtension } ); +} + + wxString NetlistFileWildcard() { return _( "KiCad netlist files" ) + AddFileExtListToFilter( { "net" } ); diff --git a/eeschema/dialogs/dialog_netlist.cpp b/eeschema/dialogs/dialog_netlist.cpp index 7ed6153fe0..fc547b8ecc 100644 --- a/eeschema/dialogs/dialog_netlist.cpp +++ b/eeschema/dialogs/dialog_netlist.cpp @@ -526,8 +526,12 @@ bool NETLIST_DIALOG::FilenamePrms( NETLIST_TYPE_ID aType, wxString * aExt, wxStr fileWildcard = CadstarNetlistFileWildcard(); break; - case NET_TYPE_PCBNEW: case NET_TYPE_ORCADPCB2: + fileExt = OrCadPcb2NetlistFileExtension; + fileWildcard = OrCadPcb2NetlistFileWildcard(); + break; + + case NET_TYPE_PCBNEW: fileExt = NetlistFileExtension; fileWildcard = NetlistFileWildcard(); break; diff --git a/include/wildcards_and_files_ext.h b/include/wildcards_and_files_ext.h index 537055ee4f..53a8d63bfb 100644 --- a/include/wildcards_and_files_ext.h +++ b/include/wildcards_and_files_ext.h @@ -121,6 +121,7 @@ extern const std::string LegacyProjectFileExtension; extern const std::string ProjectLocalSettingsFileExtension; extern const std::string LegacySchematicFileExtension; extern const std::string KiCadSchematicFileExtension; +extern const std::string OrCadPcb2NetlistFileExtension; extern const std::string NetlistFileExtension; extern const std::string GerberFileExtension; extern const std::string GerberJobFileExtension; @@ -193,6 +194,7 @@ extern wxString AllSchematicFilesWildcard(); extern wxString KiCadSchematicFileWildcard(); extern wxString LegacySchematicFileWildcard(); extern wxString BoardFileWildcard(); +extern wxString OrCadPcb2NetlistFileWildcard(); extern wxString NetlistFileWildcard(); extern wxString GerberFileWildcard(); extern wxString HtmlFileWildcard();