Browse Source

pcb_calculator: expand treebook at start to show the full list of pages.

7.0
jean-pierre charras 4 years ago
parent
commit
ca8b96f247
  1. 6
      pcb_calculator/pcb_calculator_frame.cpp

6
pcb_calculator/pcb_calculator_frame.cpp

@ -2,7 +2,7 @@
* This program source code file is part of KICAD, a free EDA CAD application.
*
* Copyright (C) 1992-2015 jean-pierre.charras
* Copyright (C) 1992-2021 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 1992-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
@ -130,6 +130,10 @@ PCB_CALCULATOR_FRAME::PCB_CALCULATOR_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
if( m_framePos == wxDefaultPosition )
Centre();
// Expand treebook to show all options:
for( size_t pageId = 0; pageId < m_treebook->GetPageCount(); pageId++ )
m_treebook->ExpandNode( pageId );
// Connect Events
Bind( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( PCB_CALCULATOR_FRAME::OnClosePcbCalc ), this );
Bind( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PCB_CALCULATOR_FRAME::OnUpdateUI ), this );

Loading…
Cancel
Save