From 73402d733e9aefce4ea9103a1f71997506d914dd Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 8 Aug 2022 11:31:16 +0100 Subject: [PATCH] Add labels for icon buttons. (They're used by screen readers.) Also fixes a bunch of annoying wxWidgets asserts. --- .../panel_setup_tracks_and_vias_base.cpp | 8 +++---- .../panel_setup_tracks_and_vias_base.fbp | 24 +++++++++---------- .../panel_setup_tracks_and_vias_base.h | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/pcbnew/dialogs/panel_setup_tracks_and_vias_base.cpp b/pcbnew/dialogs/panel_setup_tracks_and_vias_base.cpp index 287c08ce0e..4247a24387 100644 --- a/pcbnew/dialogs/panel_setup_tracks_and_vias_base.cpp +++ b/pcbnew/dialogs/panel_setup_tracks_and_vias_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.0) +// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -68,7 +68,7 @@ PANEL_SETUP_TRACKS_AND_VIAS_BASE::PANEL_SETUP_TRACKS_AND_VIAS_BASE( wxWindow* pa bSizer3->Add( m_trackWidthsAddButton, 0, wxLEFT|wxRIGHT, 5 ); m_trackWidthsSortButton = new wxBitmapButton( sbSizer4->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 ); - bSizer3->Add( m_trackWidthsSortButton, 0, wxLEFT|wxRIGHT, 5 ); + bSizer3->Add( m_trackWidthsSortButton, 0, wxRIGHT|wxLEFT, 5 ); bSizer3->Add( 20, 0, 0, wxEXPAND, 5 ); @@ -128,7 +128,7 @@ PANEL_SETUP_TRACKS_AND_VIAS_BASE::PANEL_SETUP_TRACKS_AND_VIAS_BASE( wxWindow* pa bSizer4->Add( m_viaSizesAddButton, 0, wxLEFT|wxRIGHT, 5 ); m_viaSizesSortButton = new wxBitmapButton( sbSizer5->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 ); - bSizer4->Add( m_viaSizesSortButton, 0, wxALIGN_LEFT|wxALIGN_RIGHT, 5 ); + bSizer4->Add( m_viaSizesSortButton, 0, wxRIGHT|wxLEFT, 5 ); bSizer4->Add( 20, 0, 0, wxEXPAND, 5 ); @@ -190,7 +190,7 @@ PANEL_SETUP_TRACKS_AND_VIAS_BASE::PANEL_SETUP_TRACKS_AND_VIAS_BASE( wxWindow* pa bSizer5->Add( m_diffPairsAddButton, 0, wxLEFT|wxRIGHT, 5 ); m_diffPairsSortButton = new wxBitmapButton( sbSizer6->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 ); - bSizer5->Add( m_diffPairsSortButton, 0, wxALIGN_LEFT|wxALIGN_RIGHT, 5 ); + bSizer5->Add( m_diffPairsSortButton, 0, wxRIGHT|wxLEFT, 5 ); bSizer5->Add( 20, 0, 0, wxEXPAND, 5 ); diff --git a/pcbnew/dialogs/panel_setup_tracks_and_vias_base.fbp b/pcbnew/dialogs/panel_setup_tracks_and_vias_base.fbp index ab7e176424..c2abf1ff3b 100644 --- a/pcbnew/dialogs/panel_setup_tracks_and_vias_base.fbp +++ b/pcbnew/dialogs/panel_setup_tracks_and_vias_base.fbp @@ -274,7 +274,7 @@ 0 0 wxID_ANY - MyButton + Add track width 0 @@ -312,7 +312,7 @@ 5 - wxLEFT|wxRIGHT + wxRIGHT|wxLEFT 0 1 @@ -348,7 +348,7 @@ 0 0 wxID_ANY - MyButton + Sort track widths 0 @@ -432,7 +432,7 @@ 0 0 wxID_ANY - MyButton + Delete track width 0 @@ -619,7 +619,7 @@ 0 0 wxID_ANY - MyButton + Add via size 0 @@ -657,7 +657,7 @@ 5 - wxALIGN_LEFT|wxALIGN_RIGHT + wxRIGHT|wxLEFT 0 1 @@ -693,7 +693,7 @@ 0 0 wxID_ANY - MyButton + Sort via sizes 0 @@ -777,7 +777,7 @@ 0 0 wxID_ANY - MyButton + Delete via size 0 @@ -964,7 +964,7 @@ 0 0 wxID_ANY - MyButton + Add diff pair 0 @@ -1002,7 +1002,7 @@ 5 - wxALIGN_LEFT|wxALIGN_RIGHT + wxRIGHT|wxLEFT 0 1 @@ -1038,7 +1038,7 @@ 0 0 wxID_ANY - MyButton + Sort diff pairs 0 @@ -1122,7 +1122,7 @@ 0 0 wxID_ANY - MyButton + Delete diff pair 0 diff --git a/pcbnew/dialogs/panel_setup_tracks_and_vias_base.h b/pcbnew/dialogs/panel_setup_tracks_and_vias_base.h index 39cd8f95b2..7414dc8db2 100644 --- a/pcbnew/dialogs/panel_setup_tracks_and_vias_base.h +++ b/pcbnew/dialogs/panel_setup_tracks_and_vias_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.0) +// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE!