Kicad: fix project tree icon list after changes in commit a9877ab1.

The icon list and the file types list must be synchronized.
This commit is contained in:
jean-pierre charras 2022-09-11 11:08:37 +02:00
parent cc4e34ef49
commit c414dcf967
2 changed files with 6 additions and 4 deletions

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2004-2012 Jean-Pierre Charras
* Copyright (C) 2004-2020 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2004-2022 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -88,6 +88,7 @@ void PROJECT_TREE::LoadIcons()
m_imageList->Add( KiBitmap( BITMAPS::file_html ) ); // TREE_HTML
m_imageList->Add( KiBitmap( BITMAPS::file_pdf ) ); // TREE_PDF
m_imageList->Add( KiBitmap( BITMAPS::editor ) ); // TREE_TXT
m_imageList->Add( KiBitmap( BITMAPS::editor ) ); // TREE_MD
m_imageList->Add( KiBitmap( BITMAPS::netlist ) ); // TREE_NET
m_imageList->Add( KiBitmap( BITMAPS::unknown ) ); // TREE_UNKNOWN
m_imageList->Add( KiBitmap( BITMAPS::directory ) ); // TREE_DIRECTORY

View File

@ -1,7 +1,7 @@
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2020 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2022 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -28,8 +28,9 @@
// Identify the type of files handled by KiCad manager
//
// When changing this enum please verify (and perhaps update)
// PROJECT_TREE_PANE::GetFileExt(),
// s_AllowedExtensionsToList[]
// PROJECT_TREE_PANE::GetFileExt(), s_AllowedExtensionsToList[]
// and the list of images in PROJECT_TREE::LoadIcons(). This icons must me in the same
// order as TREE_FILE_TYPE
enum class TREE_FILE_TYPE
{
ROOT = 0,