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
|
@ -85,11 +85,12 @@ void PROJECT_TREE::LoadIcons()
|
||||||
m_imageList->Add( KiBitmap( BITMAPS::icon_pcbnew_24, size ) ); // TREE_SEXPR_PCB
|
m_imageList->Add( KiBitmap( BITMAPS::icon_pcbnew_24, size ) ); // TREE_SEXPR_PCB
|
||||||
m_imageList->Add( KiBitmap( BITMAPS::icon_gerbview_24, size ) ); // TREE_GERBER
|
m_imageList->Add( KiBitmap( BITMAPS::icon_gerbview_24, size ) ); // TREE_GERBER
|
||||||
m_imageList->Add( KiBitmap( BITMAPS::file_gerber_job, size ) ); // TREE_GERBER_JOB_FILE (.gbrjob)
|
m_imageList->Add( KiBitmap( BITMAPS::file_gerber_job, size ) ); // TREE_GERBER_JOB_FILE (.gbrjob)
|
||||||
m_imageList->Add( KiBitmap( BITMAPS::file_html, size ) ); // TREE_HTML
|
m_imageList->Add( KiBitmap( BITMAPS::file_html, size ) ); // TREE_HTML
|
||||||
m_imageList->Add( KiBitmap( BITMAPS::file_pdf, size ) ); // TREE_PDF
|
m_imageList->Add( KiBitmap( BITMAPS::file_pdf, size ) ); // TREE_PDF
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -34,19 +34,20 @@
|
||||||
enum class TREE_FILE_TYPE
|
enum class TREE_FILE_TYPE
|
||||||
{
|
{
|
||||||
ROOT = 0,
|
ROOT = 0,
|
||||||
LEGACY_PROJECT, // Legacy project file (.pro)
|
LEGACY_PROJECT, // Legacy project file (.pro)
|
||||||
JSON_PROJECT, // JSON formatted project file (.kicad_pro)
|
JSON_PROJECT, // JSON formatted project file (.kicad_pro)
|
||||||
LEGACY_SCHEMATIC, // Schematic file (.sch)
|
LEGACY_SCHEMATIC, // Schematic file (.sch)
|
||||||
SEXPR_SCHEMATIC, // Schematic file (.kicad_sch)
|
SEXPR_SCHEMATIC, // Schematic file (.kicad_sch)
|
||||||
LEGACY_PCB, // board file (.brd) legacy format
|
LEGACY_PCB, // board file (.brd) legacy format
|
||||||
SEXPR_PCB, // board file (.kicad_brd) new s expression format
|
SEXPR_PCB, // board file (.kicad_brd) new s expression format
|
||||||
GERBER, // Gerber file (.pho, .g*)
|
GERBER, // Gerber file (.pho, .g*)
|
||||||
GERBER_JOB_FILE, // Gerber file (.gbrjob)
|
GERBER_JOB_FILE, // Gerber file (.gbrjob)
|
||||||
HTML, // HTML file (.htm, *.html)
|
HTML, // HTML file (.htm, *.html)
|
||||||
PDF, // PDF file (.pdf)
|
PDF, // PDF file (.pdf)
|
||||||
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