Kicad Manager, project tree: use net file icon for spice netlist (.cir) files
Fixes #15777 https://gitlab.com/kicad/code/kicad/-/issues/15777
This commit is contained in:
parent
249b2e740e
commit
1bbe532021
|
@ -90,6 +90,7 @@ void PROJECT_TREE::LoadIcons()
|
||||||
m_imageList->Add( KiBitmap( BITMAPS::editor, size ) ); // TREE_TXT
|
m_imageList->Add( KiBitmap( BITMAPS::editor, size ) ); // TREE_TXT
|
||||||
m_imageList->Add( KiBitmap( BITMAPS::editor, size ) ); // TREE_MD
|
m_imageList->Add( KiBitmap( BITMAPS::editor, size ) ); // TREE_MD
|
||||||
m_imageList->Add( KiBitmap( BITMAPS::netlist, size ) ); // TREE_NET
|
m_imageList->Add( KiBitmap( BITMAPS::netlist, size ) ); // TREE_NET
|
||||||
|
m_imageList->Add( KiBitmap( BITMAPS::netlist, size ) ); // TREE_NET_SPICE
|
||||||
m_imageList->Add( KiBitmap( BITMAPS::unknown, size ) ); // TREE_UNKNOWN
|
m_imageList->Add( KiBitmap( BITMAPS::unknown, size ) ); // TREE_UNKNOWN
|
||||||
m_imageList->Add( KiBitmap( BITMAPS::directory, size ) ); // TREE_DIRECTORY
|
m_imageList->Add( KiBitmap( BITMAPS::directory, size ) ); // TREE_DIRECTORY
|
||||||
m_imageList->Add( KiBitmap( BITMAPS::icon_cvpcb_24, size ) ); // TREE_CMP_LINK
|
m_imageList->Add( KiBitmap( BITMAPS::icon_cvpcb_24, size ) ); // TREE_CMP_LINK
|
||||||
|
|
|
@ -310,6 +310,7 @@ wxString PROJECT_TREE_PANE::GetFileExt( TREE_FILE_TYPE type )
|
||||||
case TREE_FILE_TYPE::TXT: return TextFileExtension;
|
case TREE_FILE_TYPE::TXT: return TextFileExtension;
|
||||||
case TREE_FILE_TYPE::MD: return MarkdownFileExtension;
|
case TREE_FILE_TYPE::MD: return MarkdownFileExtension;
|
||||||
case TREE_FILE_TYPE::NET: return NetlistFileExtension;
|
case TREE_FILE_TYPE::NET: return NetlistFileExtension;
|
||||||
|
case TREE_FILE_TYPE::NET_SPICE: return SpiceFileExtension;
|
||||||
case TREE_FILE_TYPE::CMP_LINK: return FootprintAssignmentFileExtension;
|
case TREE_FILE_TYPE::CMP_LINK: return FootprintAssignmentFileExtension;
|
||||||
case TREE_FILE_TYPE::REPORT: return ReportFileExtension;
|
case TREE_FILE_TYPE::REPORT: return ReportFileExtension;
|
||||||
case TREE_FILE_TYPE::FP_PLACE: return FootprintPlaceFileExtension;
|
case TREE_FILE_TYPE::FP_PLACE: return FootprintPlaceFileExtension;
|
||||||
|
@ -323,8 +324,14 @@ wxString PROJECT_TREE_PANE::GetFileExt( TREE_FILE_TYPE type )
|
||||||
case TREE_FILE_TYPE::SEXPR_SYMBOL_LIB_FILE: return KiCadSymbolLibFileExtension;
|
case TREE_FILE_TYPE::SEXPR_SYMBOL_LIB_FILE: return KiCadSymbolLibFileExtension;
|
||||||
case TREE_FILE_TYPE::DESIGN_RULES: return DesignRulesFileExtension;
|
case TREE_FILE_TYPE::DESIGN_RULES: return DesignRulesFileExtension;
|
||||||
case TREE_FILE_TYPE::ZIP_ARCHIVE: return ArchiveFileExtension;
|
case TREE_FILE_TYPE::ZIP_ARCHIVE: return ArchiveFileExtension;
|
||||||
default: return wxEmptyString;
|
|
||||||
|
case TREE_FILE_TYPE::ROOT:
|
||||||
|
case TREE_FILE_TYPE::UNKNOWN:
|
||||||
|
case TREE_FILE_TYPE::MAX:
|
||||||
|
case TREE_FILE_TYPE::DIRECTORY: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return wxEmptyString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ enum class TREE_FILE_TYPE
|
||||||
TXT, // ascii text file (.txt)
|
TXT, // ascii text file (.txt)
|
||||||
MD, // markdown file (.md)
|
MD, // markdown file (.md)
|
||||||
NET, // netlist file (.net)
|
NET, // netlist file (.net)
|
||||||
|
NET_SPICE, // spice netlist file (.cir)
|
||||||
UNKNOWN,
|
UNKNOWN,
|
||||||
DIRECTORY,
|
DIRECTORY,
|
||||||
CMP_LINK, // cmp/footprint link file (.cmp)
|
CMP_LINK, // cmp/footprint link file (.cmp)
|
||||||
|
@ -62,7 +63,7 @@ enum class TREE_FILE_TYPE
|
||||||
SEXPR_SYMBOL_LIB_FILE, // s-expression symbol library file (.kicad_sym)
|
SEXPR_SYMBOL_LIB_FILE, // s-expression symbol library file (.kicad_sym)
|
||||||
DESIGN_RULES, // design rules (.kicad_dru)
|
DESIGN_RULES, // design rules (.kicad_dru)
|
||||||
ZIP_ARCHIVE, // .zip file
|
ZIP_ARCHIVE, // .zip file
|
||||||
MAX
|
MAX // Sentinel
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // TREE_FILE_TYPE_H
|
#endif // TREE_FILE_TYPE_H
|
||||||
|
|
Loading…
Reference in New Issue