Use text file icon for design rules

I'm not sure we need a custom icon for this as we don't
have an editor action that happens when you double-click
one of these files.  Someone's welcome to revisit this
later, though.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7314
This commit is contained in:
Jon Evans 2021-01-28 21:08:37 -05:00
parent 43fd416d13
commit 73b8ae18f4
3 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,7 @@ PROJECT_TREE::PROJECT_TREE( PROJECT_TREE_PANE* parent ) :
m_imageList->Add( KiBitmap( module_xpm ) ); // TREE_FOOTPRINT_FILE
m_imageList->Add( KiBitmap( library_xpm ) ); // TREE_SCHEMATIC_LIBFILE
m_imageList->Add( KiBitmap( library_xpm ) ); // TREE_SEXPR_SYMBOL_LIB_FILE
m_imageList->Add( KiBitmap( editor_xpm ) ); // DESIGN_RULES
SetImageList( m_imageList );
}

View File

@ -285,6 +285,7 @@ wxString PROJECT_TREE_PANE::GetFileExt( TREE_FILE_TYPE type )
case TREE_FILE_TYPE::FOOTPRINT_FILE: return KiCadFootprintFileExtension;
case TREE_FILE_TYPE::SCHEMATIC_LIBFILE: return LegacySymbolLibFileExtension;
case TREE_FILE_TYPE::SEXPR_SYMBOL_LIB_FILE: return KiCadSymbolLibFileExtension;
case TREE_FILE_TYPE::DESIGN_RULES: return DesignRulesFileExtension;
default: return wxEmptyString;
}
}

View File

@ -58,6 +58,7 @@ enum class TREE_FILE_TYPE
FOOTPRINT_FILE, // footprint file (.kicad_mod)
SCHEMATIC_LIBFILE, // schematic library file (.lib)
SEXPR_SYMBOL_LIB_FILE, // s-expression symbol library file (.kicad_sym)
DESIGN_RULES, // design rules (.kicad_dru)
MAX
};