Add separate wildcard for OrCAD netlists
This commit is contained in:
parent
d9d0fe97de
commit
946f62d949
|
@ -132,6 +132,7 @@ const std::string LegacyProjectFileExtension( "pro" );
|
||||||
const std::string ProjectLocalSettingsFileExtension( "kicad_prl" );
|
const std::string ProjectLocalSettingsFileExtension( "kicad_prl" );
|
||||||
const std::string LegacySchematicFileExtension( "sch" );
|
const std::string LegacySchematicFileExtension( "sch" );
|
||||||
const std::string KiCadSchematicFileExtension( "kicad_sch" );
|
const std::string KiCadSchematicFileExtension( "kicad_sch" );
|
||||||
|
const std::string OrCadPcb2NetlistFileExtension( "net" );
|
||||||
const std::string NetlistFileExtension( "net" );
|
const std::string NetlistFileExtension( "net" );
|
||||||
const std::string FootprintAssignmentFileExtension( "cmp" );
|
const std::string FootprintAssignmentFileExtension( "cmp" );
|
||||||
const std::string GerberFileExtension( "gbr" );
|
const std::string GerberFileExtension( "gbr" );
|
||||||
|
@ -282,6 +283,13 @@ wxString EagleFilesWildcard()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
wxString OrCadPcb2NetlistFileWildcard()
|
||||||
|
{
|
||||||
|
return _( "OrcadPCB2 netlist files" )
|
||||||
|
+ AddFileExtListToFilter( { OrCadPcb2NetlistFileExtension } );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
wxString NetlistFileWildcard()
|
wxString NetlistFileWildcard()
|
||||||
{
|
{
|
||||||
return _( "KiCad netlist files" ) + AddFileExtListToFilter( { "net" } );
|
return _( "KiCad netlist files" ) + AddFileExtListToFilter( { "net" } );
|
||||||
|
|
|
@ -526,8 +526,12 @@ bool NETLIST_DIALOG::FilenamePrms( NETLIST_TYPE_ID aType, wxString * aExt, wxStr
|
||||||
fileWildcard = CadstarNetlistFileWildcard();
|
fileWildcard = CadstarNetlistFileWildcard();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NET_TYPE_PCBNEW:
|
|
||||||
case NET_TYPE_ORCADPCB2:
|
case NET_TYPE_ORCADPCB2:
|
||||||
|
fileExt = OrCadPcb2NetlistFileExtension;
|
||||||
|
fileWildcard = OrCadPcb2NetlistFileWildcard();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case NET_TYPE_PCBNEW:
|
||||||
fileExt = NetlistFileExtension;
|
fileExt = NetlistFileExtension;
|
||||||
fileWildcard = NetlistFileWildcard();
|
fileWildcard = NetlistFileWildcard();
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -121,6 +121,7 @@ extern const std::string LegacyProjectFileExtension;
|
||||||
extern const std::string ProjectLocalSettingsFileExtension;
|
extern const std::string ProjectLocalSettingsFileExtension;
|
||||||
extern const std::string LegacySchematicFileExtension;
|
extern const std::string LegacySchematicFileExtension;
|
||||||
extern const std::string KiCadSchematicFileExtension;
|
extern const std::string KiCadSchematicFileExtension;
|
||||||
|
extern const std::string OrCadPcb2NetlistFileExtension;
|
||||||
extern const std::string NetlistFileExtension;
|
extern const std::string NetlistFileExtension;
|
||||||
extern const std::string GerberFileExtension;
|
extern const std::string GerberFileExtension;
|
||||||
extern const std::string GerberJobFileExtension;
|
extern const std::string GerberJobFileExtension;
|
||||||
|
@ -193,6 +194,7 @@ extern wxString AllSchematicFilesWildcard();
|
||||||
extern wxString KiCadSchematicFileWildcard();
|
extern wxString KiCadSchematicFileWildcard();
|
||||||
extern wxString LegacySchematicFileWildcard();
|
extern wxString LegacySchematicFileWildcard();
|
||||||
extern wxString BoardFileWildcard();
|
extern wxString BoardFileWildcard();
|
||||||
|
extern wxString OrCadPcb2NetlistFileWildcard();
|
||||||
extern wxString NetlistFileWildcard();
|
extern wxString NetlistFileWildcard();
|
||||||
extern wxString GerberFileWildcard();
|
extern wxString GerberFileWildcard();
|
||||||
extern wxString HtmlFileWildcard();
|
extern wxString HtmlFileWildcard();
|
||||||
|
|
Loading…
Reference in New Issue