Remove ratsnest visibility from PcbNew preferences
Ratsnest visibility is a quick toggle, not a preference Fixes https://gitlab.com/kicad/code/kicad/-/issues/5261
This commit is contained in:
parent
6f54a9982c
commit
8fad4bb34c
|
@ -63,7 +63,6 @@ bool PANEL_EDIT_OPTIONS::TransferDataToWindow()
|
||||||
{
|
{
|
||||||
/* Set display options */
|
/* Set display options */
|
||||||
m_OptDisplayCurvedRatsnestLines->SetValue( displ_opts.m_DisplayRatsnestLinesCurved );
|
m_OptDisplayCurvedRatsnestLines->SetValue( displ_opts.m_DisplayRatsnestLinesCurved );
|
||||||
m_showGlobalRatsnest->SetValue( displ_opts.m_ShowGlobalRatsnest );
|
|
||||||
m_showSelectedRatsnest->SetValue( displ_opts.m_ShowModuleRatsnest );
|
m_showSelectedRatsnest->SetValue( displ_opts.m_ShowModuleRatsnest );
|
||||||
|
|
||||||
m_magneticPadChoice->SetSelection( static_cast<int>( general_opts.m_MagneticItems.pads ) );
|
m_magneticPadChoice->SetSelection( static_cast<int>( general_opts.m_MagneticItems.pads ) );
|
||||||
|
@ -107,7 +106,6 @@ bool PANEL_EDIT_OPTIONS::TransferDataFromWindow()
|
||||||
PCBNEW_SETTINGS& pcbnewSettings = m_Frame->Settings();
|
PCBNEW_SETTINGS& pcbnewSettings = m_Frame->Settings();
|
||||||
|
|
||||||
displ_opts.m_DisplayRatsnestLinesCurved = m_OptDisplayCurvedRatsnestLines->GetValue();
|
displ_opts.m_DisplayRatsnestLinesCurved = m_OptDisplayCurvedRatsnestLines->GetValue();
|
||||||
displ_opts.m_ShowGlobalRatsnest = m_showGlobalRatsnest->GetValue();
|
|
||||||
displ_opts.m_ShowModuleRatsnest = m_showSelectedRatsnest->GetValue();
|
displ_opts.m_ShowModuleRatsnest = m_showSelectedRatsnest->GetValue();
|
||||||
|
|
||||||
m_Frame->Settings().m_MagneticItems.pads =
|
m_Frame->Settings().m_MagneticItems.pads =
|
||||||
|
|
|
@ -142,9 +142,6 @@ PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE( wxWindow* parent, wxWindowID i
|
||||||
wxStaticBoxSizer* sbSizer3;
|
wxStaticBoxSizer* sbSizer3;
|
||||||
sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( pcbPage, wxID_ANY, _("Ratsnest") ), wxVERTICAL );
|
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 );
|
m_showSelectedRatsnest = new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY, _("Always show selected ratsnest"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizer3->Add( m_showSelectedRatsnest, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
sbSizer3->Add( m_showSelectedRatsnest, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
|
@ -1144,70 +1144,6 @@
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
<property name="parent">1</property>
|
<property name="parent">1</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<object class="sizeritem" expanded="1">
|
|
||||||
<property name="border">5</property>
|
|
||||||
<property name="flag">wxBOTTOM|wxRIGHT|wxLEFT</property>
|
|
||||||
<property name="proportion">0</property>
|
|
||||||
<object class="wxCheckBox" expanded="1">
|
|
||||||
<property name="BottomDockable">1</property>
|
|
||||||
<property name="LeftDockable">1</property>
|
|
||||||
<property name="RightDockable">1</property>
|
|
||||||
<property name="TopDockable">1</property>
|
|
||||||
<property name="aui_layer"></property>
|
|
||||||
<property name="aui_name"></property>
|
|
||||||
<property name="aui_position"></property>
|
|
||||||
<property name="aui_row"></property>
|
|
||||||
<property name="best_size"></property>
|
|
||||||
<property name="bg"></property>
|
|
||||||
<property name="caption"></property>
|
|
||||||
<property name="caption_visible">1</property>
|
|
||||||
<property name="center_pane">0</property>
|
|
||||||
<property name="checked">0</property>
|
|
||||||
<property name="close_button">1</property>
|
|
||||||
<property name="context_help"></property>
|
|
||||||
<property name="context_menu">1</property>
|
|
||||||
<property name="default_pane">0</property>
|
|
||||||
<property name="dock">Dock</property>
|
|
||||||
<property name="dock_fixed">0</property>
|
|
||||||
<property name="docking">Left</property>
|
|
||||||
<property name="enabled">1</property>
|
|
||||||
<property name="fg"></property>
|
|
||||||
<property name="floatable">1</property>
|
|
||||||
<property name="font"></property>
|
|
||||||
<property name="gripper">0</property>
|
|
||||||
<property name="hidden">0</property>
|
|
||||||
<property name="id">wxID_ANY</property>
|
|
||||||
<property name="label">Show ratsnest</property>
|
|
||||||
<property name="max_size"></property>
|
|
||||||
<property name="maximize_button">0</property>
|
|
||||||
<property name="maximum_size"></property>
|
|
||||||
<property name="min_size"></property>
|
|
||||||
<property name="minimize_button">0</property>
|
|
||||||
<property name="minimum_size"></property>
|
|
||||||
<property name="moveable">1</property>
|
|
||||||
<property name="name">m_showGlobalRatsnest</property>
|
|
||||||
<property name="pane_border">1</property>
|
|
||||||
<property name="pane_position"></property>
|
|
||||||
<property name="pane_size"></property>
|
|
||||||
<property name="permission">protected</property>
|
|
||||||
<property name="pin_button">1</property>
|
|
||||||
<property name="pos"></property>
|
|
||||||
<property name="resize">Resizable</property>
|
|
||||||
<property name="show">1</property>
|
|
||||||
<property name="size"></property>
|
|
||||||
<property name="style"></property>
|
|
||||||
<property name="subclass">; ; forward_declare</property>
|
|
||||||
<property name="toolbar_pane">0</property>
|
|
||||||
<property name="tooltip"></property>
|
|
||||||
<property name="validator_data_type"></property>
|
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
|
||||||
<property name="validator_variable"></property>
|
|
||||||
<property name="window_extra_style"></property>
|
|
||||||
<property name="window_name"></property>
|
|
||||||
<property name="window_style"></property>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxBOTTOM|wxRIGHT|wxLEFT</property>
|
<property name="flag">wxBOTTOM|wxRIGHT|wxLEFT</property>
|
||||||
|
|
|
@ -57,7 +57,6 @@ class PANEL_EDIT_OPTIONS_BASE : public wxPanel
|
||||||
wxChoice* m_magneticTrackChoice;
|
wxChoice* m_magneticTrackChoice;
|
||||||
wxStaticText* m_staticText211;
|
wxStaticText* m_staticText211;
|
||||||
wxChoice* m_magneticGraphicsChoice;
|
wxChoice* m_magneticGraphicsChoice;
|
||||||
wxCheckBox* m_showGlobalRatsnest;
|
|
||||||
wxCheckBox* m_showSelectedRatsnest;
|
wxCheckBox* m_showSelectedRatsnest;
|
||||||
wxCheckBox* m_OptDisplayCurvedRatsnestLines;
|
wxCheckBox* m_OptDisplayCurvedRatsnestLines;
|
||||||
wxCheckBox* m_Show_Page_Limits;
|
wxCheckBox* m_Show_Page_Limits;
|
||||||
|
|
Loading…
Reference in New Issue