|
|
|
@ -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 ); |
|
|
|
|