From 8fad4bb34c274f2b0aadcfb26836daa13f2ada8c Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Wed, 30 Sep 2020 18:07:51 -0400 Subject: [PATCH] Remove ratsnest visibility from PcbNew preferences Ratsnest visibility is a quick toggle, not a preference Fixes https://gitlab.com/kicad/code/kicad/-/issues/5261 --- pcbnew/dialogs/panel_edit_options.cpp | 2 - pcbnew/dialogs/panel_edit_options_base.cpp | 3 - pcbnew/dialogs/panel_edit_options_base.fbp | 64 ---------------------- pcbnew/dialogs/panel_edit_options_base.h | 1 - 4 files changed, 70 deletions(-) diff --git a/pcbnew/dialogs/panel_edit_options.cpp b/pcbnew/dialogs/panel_edit_options.cpp index bb7f122773..f1c2bc355b 100644 --- a/pcbnew/dialogs/panel_edit_options.cpp +++ b/pcbnew/dialogs/panel_edit_options.cpp @@ -63,7 +63,6 @@ bool PANEL_EDIT_OPTIONS::TransferDataToWindow() { /* Set display options */ m_OptDisplayCurvedRatsnestLines->SetValue( displ_opts.m_DisplayRatsnestLinesCurved ); - m_showGlobalRatsnest->SetValue( displ_opts.m_ShowGlobalRatsnest ); m_showSelectedRatsnest->SetValue( displ_opts.m_ShowModuleRatsnest ); m_magneticPadChoice->SetSelection( static_cast( general_opts.m_MagneticItems.pads ) ); @@ -107,7 +106,6 @@ bool PANEL_EDIT_OPTIONS::TransferDataFromWindow() PCBNEW_SETTINGS& pcbnewSettings = m_Frame->Settings(); displ_opts.m_DisplayRatsnestLinesCurved = m_OptDisplayCurvedRatsnestLines->GetValue(); - displ_opts.m_ShowGlobalRatsnest = m_showGlobalRatsnest->GetValue(); displ_opts.m_ShowModuleRatsnest = m_showSelectedRatsnest->GetValue(); m_Frame->Settings().m_MagneticItems.pads = diff --git a/pcbnew/dialogs/panel_edit_options_base.cpp b/pcbnew/dialogs/panel_edit_options_base.cpp index 2463e9af70..2454f39e5d 100644 --- a/pcbnew/dialogs/panel_edit_options_base.cpp +++ b/pcbnew/dialogs/panel_edit_options_base.cpp @@ -142,9 +142,6 @@ PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE( wxWindow* parent, wxWindowID i wxStaticBoxSizer* sbSizer3; sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( pcbPage, wxID_ANY, _("Ratsnest") ), wxVERTICAL ); - m_showGlobalRatsnest = new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY, _("Show ratsnest"), wxDefaultPosition, wxDefaultSize, 0 ); - sbSizer3->Add( m_showGlobalRatsnest, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 ); - m_showSelectedRatsnest = new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY, _("Always show selected ratsnest"), wxDefaultPosition, wxDefaultSize, 0 ); sbSizer3->Add( m_showSelectedRatsnest, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 ); diff --git a/pcbnew/dialogs/panel_edit_options_base.fbp b/pcbnew/dialogs/panel_edit_options_base.fbp index 0a6fe21efe..18ed818f0d 100644 --- a/pcbnew/dialogs/panel_edit_options_base.fbp +++ b/pcbnew/dialogs/panel_edit_options_base.fbp @@ -1144,70 +1144,6 @@ wxVERTICAL 1 none - - 5 - wxBOTTOM|wxRIGHT|wxLEFT - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - Show ratsnest - - 0 - - - 0 - - 1 - m_showGlobalRatsnest - 1 - - - protected - 1 - - Resizable - 1 - - - ; ; forward_declare - 0 - - - wxFILTER_NONE - wxDefaultValidator - - - - - - 5 wxBOTTOM|wxRIGHT|wxLEFT diff --git a/pcbnew/dialogs/panel_edit_options_base.h b/pcbnew/dialogs/panel_edit_options_base.h index 5e9028223f..16dc85575d 100644 --- a/pcbnew/dialogs/panel_edit_options_base.h +++ b/pcbnew/dialogs/panel_edit_options_base.h @@ -57,7 +57,6 @@ class PANEL_EDIT_OPTIONS_BASE : public wxPanel wxChoice* m_magneticTrackChoice; wxStaticText* m_staticText211; wxChoice* m_magneticGraphicsChoice; - wxCheckBox* m_showGlobalRatsnest; wxCheckBox* m_showSelectedRatsnest; wxCheckBox* m_OptDisplayCurvedRatsnestLines; wxCheckBox* m_Show_Page_Limits;