Add separate wildcard for OrCAD netlists

This commit is contained in:
Werni 2022-02-11 09:24:20 +00:00 committed by Ian McInerney
parent d9d0fe97de
commit 946f62d949
3 changed files with 15 additions and 1 deletions

View File

@ -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" } );

View File

@ -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;

View File

@ -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();