Retire auto-delete-old-track from toolbar.
Also corrects the backwards-wording of the setting in the Preferences dialog. Fixes: lp:1754667 * https://bugs.launchpad.net/kicad/+bug/1754667
This commit is contained in:
parent
d9d9a54aa8
commit
c6ef0d57f1
|
@ -1,12 +1,10 @@
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
// C++ code generated with wxFormBuilder (version Oct 17 2016)
|
||||
// C++ code generated with wxFormBuilder (version Dec 30 2017)
|
||||
// http://www.wxformbuilder.org/
|
||||
//
|
||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "widgets/stepped_slider.h"
|
||||
|
||||
#include "dialog_general_options_BoardEditor_base.h"
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
@ -206,7 +204,7 @@ DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE::DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE(
|
|||
|
||||
bLegacyOptionsSizer->Add( m_DrcOn, 0, wxALL|wxEXPAND, 5 );
|
||||
|
||||
m_TrackAutodel = new wxCheckBox( bLegacyOptionsSizer->GetStaticBox(), wxID_TRACK_AUTODEL, _("&Delete unconnected tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_TrackAutodel = new wxCheckBox( bLegacyOptionsSizer->GetStaticBox(), wxID_TRACK_AUTODEL, _("Auto-delete old tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_TrackAutodel->SetValue(true);
|
||||
m_TrackAutodel->SetToolTip( _("Enable automatic track deletion when redrawing a track.") );
|
||||
|
||||
|
|
|
@ -2255,7 +2255,7 @@
|
|||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_TRACK_AUTODEL</property>
|
||||
<property name="label">&Delete unconnected tracks</property>
|
||||
<property name="label">Auto-delete old tracks</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
<property name="maximum_size"></property>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
// C++ code generated with wxFormBuilder (version Oct 17 2016)
|
||||
// C++ code generated with wxFormBuilder (version Dec 30 2017)
|
||||
// http://www.wxformbuilder.org/
|
||||
//
|
||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __DIALOG_GENERAL_OPTIONS_BOARDEDITOR_BASE_H__
|
||||
|
@ -11,9 +11,7 @@
|
|||
#include <wx/artprov.h>
|
||||
#include <wx/xrc/xmlres.h>
|
||||
#include <wx/intl.h>
|
||||
class DIALOG_SHIM;
|
||||
class STEPPED_SLIDER;
|
||||
|
||||
#include "widgets/stepped_slider.h"
|
||||
#include "dialog_shim.h"
|
||||
#include <wx/string.h>
|
||||
#include <wx/stattext.h>
|
||||
|
|
|
@ -235,8 +235,6 @@ BEGIN_EVENT_TABLE( PCB_EDIT_FRAME, PCB_BASE_FRAME )
|
|||
PCB_EDIT_FRAME::OnSelectOptionToolbar )
|
||||
EVT_TOOL( ID_TB_OPTIONS_SHOW_RATSNEST,
|
||||
PCB_EDIT_FRAME::OnSelectOptionToolbar )
|
||||
EVT_TOOL( ID_TB_OPTIONS_AUTO_DEL_TRACK,
|
||||
PCB_EDIT_FRAME::OnSelectOptionToolbar )
|
||||
EVT_TOOL( ID_TB_OPTIONS_SHOW_VIAS_SKETCH,
|
||||
PCB_EDIT_FRAME::OnSelectOptionToolbar )
|
||||
EVT_TOOL( ID_TB_OPTIONS_SHOW_TRACKS_SKETCH,
|
||||
|
@ -282,7 +280,6 @@ BEGIN_EVENT_TABLE( PCB_EDIT_FRAME, PCB_BASE_FRAME )
|
|||
EVT_UPDATE_UI( ID_TOOLBARH_PCB_SELECT_LAYER, PCB_EDIT_FRAME::OnUpdateLayerSelectBox )
|
||||
EVT_UPDATE_UI( ID_TB_OPTIONS_DRC_OFF, PCB_EDIT_FRAME::OnUpdateDrcEnable )
|
||||
EVT_UPDATE_UI( ID_TB_OPTIONS_SHOW_RATSNEST, PCB_EDIT_FRAME::OnUpdateShowBoardRatsnest )
|
||||
EVT_UPDATE_UI( ID_TB_OPTIONS_AUTO_DEL_TRACK, PCB_EDIT_FRAME::OnUpdateAutoDeleteTrack )
|
||||
EVT_UPDATE_UI( ID_TB_OPTIONS_SHOW_VIAS_SKETCH, PCB_EDIT_FRAME::OnUpdateViaDrawMode )
|
||||
EVT_UPDATE_UI( ID_TB_OPTIONS_SHOW_TRACKS_SKETCH, PCB_EDIT_FRAME::OnUpdateTraceDrawMode )
|
||||
EVT_UPDATE_UI( ID_TB_OPTIONS_SHOW_HIGH_CONTRAST_MODE,
|
||||
|
|
|
@ -326,7 +326,6 @@ public:
|
|||
void OnUpdateLayerSelectBox( wxUpdateUIEvent& aEvent );
|
||||
void OnUpdateDrcEnable( wxUpdateUIEvent& aEvent );
|
||||
void OnUpdateShowBoardRatsnest( wxUpdateUIEvent& aEvent );
|
||||
void OnUpdateAutoDeleteTrack( wxUpdateUIEvent& aEvent );
|
||||
void OnUpdateViaDrawMode( wxUpdateUIEvent& aEvent );
|
||||
void OnUpdateTraceDrawMode( wxUpdateUIEvent& aEvent );
|
||||
void OnUpdateHighContrastDisplayMode( wxUpdateUIEvent& aEvent );
|
||||
|
|
|
@ -315,7 +315,6 @@ enum pcbnew_ids
|
|||
ID_TB_OPTIONS_SHOW_ZONES_OUTLINES_ONLY,
|
||||
ID_TB_OPTIONS_DRC_OFF,
|
||||
ID_TB_OPTIONS_SHOW_RATSNEST,
|
||||
ID_TB_OPTIONS_AUTO_DEL_TRACK,
|
||||
ID_TB_OPTIONS_SHOW_VIAS_SKETCH,
|
||||
ID_TB_OPTIONS_SHOW_TRACKS_SKETCH,
|
||||
ID_TB_OPTIONS_SHOW_HIGH_CONTRAST_MODE,
|
||||
|
|
|
@ -390,12 +390,6 @@ void PCB_EDIT_FRAME::ReCreateOptToolbar()
|
|||
KiScaledBitmap( general_ratsnest_xpm, this ),
|
||||
_( "Show board ratsnest" ), wxITEM_CHECK );
|
||||
|
||||
KiScaledSeparator( m_optionsToolBar, this );
|
||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_AUTO_DEL_TRACK, wxEmptyString,
|
||||
KiScaledBitmap( auto_delete_track_xpm, this ),
|
||||
_( "Enable automatic track deletion" ),
|
||||
wxITEM_CHECK );
|
||||
|
||||
KiScaledSeparator( m_optionsToolBar, this );
|
||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_ZONES, wxEmptyString, KiScaledBitmap( show_zone_xpm, this ),
|
||||
_( "Show filled areas in zones" ), wxITEM_CHECK );
|
||||
|
@ -791,10 +785,6 @@ void PCB_EDIT_FRAME::OnSelectOptionToolbar( wxCommandEvent& event )
|
|||
m_canvas->Refresh();
|
||||
break;
|
||||
|
||||
case ID_TB_OPTIONS_AUTO_DEL_TRACK:
|
||||
Settings().m_legacyAutoDeleteOldTrack = state;
|
||||
break;
|
||||
|
||||
case ID_TB_OPTIONS_SHOW_ZONES:
|
||||
displ_opts->m_DisplayZonesMode = 0;
|
||||
m_canvas->Refresh();
|
||||
|
|
|
@ -143,16 +143,6 @@ void PCB_EDIT_FRAME::OnUpdateShowBoardRatsnest( wxUpdateUIEvent& aEvent )
|
|||
}
|
||||
|
||||
|
||||
void PCB_EDIT_FRAME::OnUpdateAutoDeleteTrack( wxUpdateUIEvent& aEvent )
|
||||
{
|
||||
aEvent.Check( Settings().m_legacyAutoDeleteOldTrack );
|
||||
m_optionsToolBar->SetToolShortHelp( ID_TB_OPTIONS_AUTO_DEL_TRACK,
|
||||
Settings().m_legacyAutoDeleteOldTrack ?
|
||||
_( "Disable auto delete old track" ) :
|
||||
_( "Enable auto delete old track" ) );
|
||||
}
|
||||
|
||||
|
||||
void PCB_EDIT_FRAME::OnUpdateViaDrawMode( wxUpdateUIEvent& aEvent )
|
||||
{
|
||||
auto displ_opts = (PCB_DISPLAY_OPTIONS*)GetDisplayOptions();
|
||||
|
|
Loading…
Reference in New Issue