From c414dcf967a77dbcd5ba422b921b83042c26ab5b Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 11 Sep 2022 11:08:37 +0200 Subject: [PATCH] Kicad: fix project tree icon list after changes in commit a9877ab1. The icon list and the file types list must be synchronized. --- kicad/project_tree.cpp | 3 ++- kicad/tree_file_type.h | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/kicad/project_tree.cpp b/kicad/project_tree.cpp index dc05715ce1..148c306b56 100644 --- a/kicad/project_tree.cpp +++ b/kicad/project_tree.cpp @@ -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 diff --git a/kicad/tree_file_type.h b/kicad/tree_file_type.h index b4d5179614..e9d06c42f8 100644 --- a/kicad/tree_file_type.h +++ b/kicad/tree_file_type.h @@ -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,