From 48ab3a2819d8781d08d60ed04353e0ac08a6fe0c Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Tue, 10 Nov 2020 15:44:23 -0500 Subject: [PATCH] Pcbnew: minor pad properties dialog layout fixes. --- pcbnew/dialogs/dialog_pad_properties_base.cpp | 10 +++++----- pcbnew/dialogs/dialog_pad_properties_base.fbp | 17 +++++++++++++---- pcbnew/dialogs/dialog_pad_properties_base.h | 4 +++- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/pcbnew/dialogs/dialog_pad_properties_base.cpp b/pcbnew/dialogs/dialog_pad_properties_base.cpp index dbfd8bc385..c6641ef415 100644 --- a/pcbnew/dialogs/dialog_pad_properties_base.cpp +++ b/pcbnew/dialogs/dialog_pad_properties_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Oct 26 2018) +// C++ code generated with wxFormBuilder (version 3.9.0 Nov 1 2020) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -359,7 +359,7 @@ DIALOG_PAD_PROPERTIES_BASE::DIALOG_PAD_PROPERTIES_BASE( wxWindow* parent, wxWind m_holeShapeLabel = new wxStaticText( m_panelGeneral, wxID_ANY, _("Hole shape:"), wxDefaultPosition, wxDefaultSize, 0 ); m_holeShapeLabel->Wrap( -1 ); - gbSizerHole->Add( m_holeShapeLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxRIGHT|wxLEFT, 5 ); + gbSizerHole->Add( m_holeShapeLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 ); wxString m_holeShapeCtrlChoices[] = { _("Circular"), _("Oval") }; int m_holeShapeCtrlNChoices = sizeof( m_holeShapeCtrlChoices ) / sizeof( wxString ); @@ -452,7 +452,7 @@ DIALOG_PAD_PROPERTIES_BASE::DIALOG_PAD_PROPERTIES_BASE( wxWindow* parent, wxWind bSizer34 = new wxBoxSizer( wxHORIZONTAL ); m_padToDieOpt = new wxCheckBox( m_panelGeneral, wxID_ANY, _("Specify pad to die length"), wxDefaultPosition, wxDefaultSize, 0 ); - bSizer34->Add( m_padToDieOpt, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT, 5 ); + bSizer34->Add( m_padToDieOpt, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 ); m_padToDieLabel = new wxStaticText( m_panelGeneral, wxID_ANY, _(":"), wxDefaultPosition, wxDefaultSize, 0 ); m_padToDieLabel->Wrap( -1 ); @@ -462,11 +462,11 @@ DIALOG_PAD_PROPERTIES_BASE::DIALOG_PAD_PROPERTIES_BASE( wxWindow* parent, wxWind fgSizerPadToDie->Add( bSizer34, 0, wxEXPAND|wxRIGHT, 5 ); m_padToDieCtrl = new wxTextCtrl( m_panelGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - fgSizerPadToDie->Add( m_padToDieCtrl, 0, wxEXPAND|wxLEFT|wxRESERVE_SPACE_EVEN_IF_HIDDEN|wxTOP, 5 ); + fgSizerPadToDie->Add( m_padToDieCtrl, 0, wxEXPAND|wxLEFT|wxRESERVE_SPACE_EVEN_IF_HIDDEN, 5 ); m_padToDieUnits = new wxStaticText( m_panelGeneral, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 ); m_padToDieUnits->Wrap( -1 ); - fgSizerPadToDie->Add( m_padToDieUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRESERVE_SPACE_EVEN_IF_HIDDEN|wxRIGHT|wxTOP, 5 ); + fgSizerPadToDie->Add( m_padToDieUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRESERVE_SPACE_EVEN_IF_HIDDEN|wxRIGHT, 5 ); m_LeftBoxSizer->Add( fgSizerPadToDie, 0, wxEXPAND, 5 ); diff --git a/pcbnew/dialogs/dialog_pad_properties_base.fbp b/pcbnew/dialogs/dialog_pad_properties_base.fbp index 656b10e6f0..ab3042c899 100644 --- a/pcbnew/dialogs/dialog_pad_properties_base.fbp +++ b/pcbnew/dialogs/dialog_pad_properties_base.fbp @@ -14,6 +14,7 @@ dialog_pad_properties_base 1000 none + 1 dialog_pad_properties_base @@ -25,6 +26,7 @@ 1 1 UI + 0 1 0 @@ -4221,7 +4223,7 @@ 5 1 0 - wxRIGHT|wxLEFT + wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT 0 1 @@ -5367,7 +5369,7 @@ none 5 - wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT + wxALIGN_CENTER_VERTICAL|wxLEFT 0 1 @@ -5495,7 +5497,7 @@ 5 - wxEXPAND|wxLEFT|wxRESERVE_SPACE_EVEN_IF_HIDDEN|wxTOP + wxEXPAND|wxLEFT|wxRESERVE_SPACE_EVEN_IF_HIDDEN 0 1 @@ -5559,7 +5561,7 @@ 5 - wxALIGN_CENTER_VERTICAL|wxLEFT|wxRESERVE_SPACE_EVEN_IF_HIDDEN|wxRIGHT|wxTOP + wxALIGN_CENTER_VERTICAL|wxLEFT|wxRESERVE_SPACE_EVEN_IF_HIDDEN|wxRIGHT 0 1 @@ -9227,6 +9229,7 @@ + 0 @@ -9300,6 +9303,7 @@ + 0 @@ -9373,6 +9377,7 @@ + 0 @@ -9446,6 +9451,7 @@ + 0 @@ -9529,6 +9535,7 @@ + 0 @@ -14448,6 +14455,7 @@ + 0 @@ -14531,6 +14539,7 @@ + 0 diff --git a/pcbnew/dialogs/dialog_pad_properties_base.h b/pcbnew/dialogs/dialog_pad_properties_base.h index afce1afc57..36ba1da939 100644 --- a/pcbnew/dialogs/dialog_pad_properties_base.h +++ b/pcbnew/dialogs/dialog_pad_properties_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Oct 26 2018) +// C++ code generated with wxFormBuilder (version 3.9.0 Nov 1 2020) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -10,8 +10,10 @@ #include #include #include +class DIALOG_SHIM; class TEXT_CTRL_EVAL; class WX_GRID; +class wxListView; #include "dialog_shim.h" #include