From d18b12c1a373c49b07ea9c670a2de6e9f2fea658 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 14 Apr 2019 14:53:07 -0400 Subject: [PATCH] Hide simulator settings tabs that aren't implemented yet Calling Hide() is apparently not enough in Windows (cherry picked from commit 895d4c9e1a10caf4730dbeeb1d4d4ad5b2955afd) --- eeschema/dialogs/dialog_sim_settings.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eeschema/dialogs/dialog_sim_settings.cpp b/eeschema/dialogs/dialog_sim_settings.cpp index f88ba32913..61b848c09d 100644 --- a/eeschema/dialogs/dialog_sim_settings.cpp +++ b/eeschema/dialogs/dialog_sim_settings.cpp @@ -63,6 +63,15 @@ DIALOG_SIM_SETTINGS::DIALOG_SIM_SETTINGS( wxWindow* aParent ) m_transFinal->SetValidator( m_spiceValidator ); m_transInitial->SetValidator( m_spiceEmptyValidator ); + // Hide pages that aren't fully implemented yet + // wxPanel::Hide() isn't enough on some platforms + m_simPages->RemovePage( m_simPages->FindPage( m_pgDistortion ) ); + m_simPages->RemovePage( m_simPages->FindPage( m_pgNoise ) ); + m_simPages->RemovePage( m_simPages->FindPage( m_pgOP ) ); + m_simPages->RemovePage( m_simPages->FindPage( m_pgPoleZero ) ); + m_simPages->RemovePage( m_simPages->FindPage( m_pgSensitivity ) ); + m_simPages->RemovePage( m_simPages->FindPage( m_pgTransferFunction ) ); + m_sdbSizerOK->SetDefault(); updateNetlistOpts();