From 47949568046688c5d351115d783ea047f42e53e7 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 7 Jan 2023 22:26:43 +0000 Subject: [PATCH] Minor dialog adjustments. --- .../dialogs/panel_preview_3d_model_base.cpp | 15 +- .../dialogs/panel_preview_3d_model_base.fbp | 135 +++++++++--------- ...og_footprint_properties_fp_editor_base.cpp | 4 +- ...og_footprint_properties_fp_editor_base.fbp | 4 +- 4 files changed, 81 insertions(+), 77 deletions(-) diff --git a/3d-viewer/dialogs/panel_preview_3d_model_base.cpp b/3d-viewer/dialogs/panel_preview_3d_model_base.cpp index 0ad796b29e..d1d28fca77 100644 --- a/3d-viewer/dialogs/panel_preview_3d_model_base.cpp +++ b/3d-viewer/dialogs/panel_preview_3d_model_base.cpp @@ -180,12 +180,18 @@ PANEL_PREVIEW_3D_MODEL_BASE::PANEL_PREVIEW_3D_MODEL_BASE( wxWindow* parent, wxWi wxBoxSizer* bSizerRight; bSizerRight = new wxBoxSizer( wxVERTICAL ); + wxBoxSizer* bSizer6; + bSizer6 = new wxBoxSizer( wxHORIZONTAL ); + wxStaticText* staticPreviewLabel; staticPreviewLabel = new wxStaticText( this, wxID_ANY, _("Preview"), wxDefaultPosition, wxDefaultSize, 0 ); staticPreviewLabel->Wrap( -1 ); staticPreviewLabel->SetFont( wxFont( 11, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - bSizerRight->Add( staticPreviewLabel, 0, wxEXPAND|wxLEFT|wxRIGHT, 10 ); + bSizer6->Add( staticPreviewLabel, 0, wxEXPAND|wxLEFT|wxRIGHT, 10 ); + + + bSizerRight->Add( bSizer6, 0, wxEXPAND, 5 ); m_SizerPanelView = new wxBoxSizer( wxVERTICAL ); @@ -193,14 +199,11 @@ PANEL_PREVIEW_3D_MODEL_BASE::PANEL_PREVIEW_3D_MODEL_BASE( wxWindow* parent, wxWi bSizerRight->Add( m_SizerPanelView, 1, wxEXPAND|wxBOTTOM, 8 ); - bSizermain->Add( bSizerRight, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 ); + bSizermain->Add( bSizerRight, 1, wxRIGHT|wxLEFT|wxEXPAND, 5 ); wxBoxSizer* bSizer3DButtons; bSizer3DButtons = new wxBoxSizer( wxVERTICAL ); - - bSizer3DButtons->Add( 0, 0, 0, wxEXPAND, 5 ); - m_bpvISO = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), wxBU_AUTODRAW|0 ); m_bpvISO->SetToolTip( _("Enable/disable orthographic projection") ); @@ -236,7 +239,7 @@ PANEL_PREVIEW_3D_MODEL_BASE::PANEL_PREVIEW_3D_MODEL_BASE( wxWindow* parent, wxWi bSizer3DButtons->Add( m_bpUpdate, 0, wxBOTTOM, 5 ); - bSizermain->Add( bSizer3DButtons, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 ); + bSizermain->Add( bSizer3DButtons, 0, wxBOTTOM|wxLEFT|wxRIGHT|wxEXPAND, 5 ); this->SetSizer( bSizermain ); diff --git a/3d-viewer/dialogs/panel_preview_3d_model_base.fbp b/3d-viewer/dialogs/panel_preview_3d_model_base.fbp index e5b2281288..ead85a92df 100644 --- a/3d-viewer/dialogs/panel_preview_3d_model_base.fbp +++ b/3d-viewer/dialogs/panel_preview_3d_model_base.fbp @@ -2070,7 +2070,7 @@ 5 - wxEXPAND|wxLEFT|wxRIGHT|wxTOP + wxRIGHT|wxLEFT|wxEXPAND 1 @@ -2078,64 +2078,75 @@ wxVERTICAL none - 10 - wxEXPAND|wxLEFT|wxRIGHT + 5 + wxEXPAND 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - ,90,90,11,70,0 - 0 - 0 - wxID_ANY - Preview - 0 - - 0 - - - 0 + - 1 - staticPreviewLabel - 1 - - + bSizer6 + wxHORIZONTAL none - 1 - - Resizable - 1 - - - ; forward_declare - 0 - - - - - -1 + + 10 + wxEXPAND|wxLEFT|wxRIGHT + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + ,90,90,11,70,0 + 0 + 0 + wxID_ANY + Preview + 0 + + 0 + + + 0 + + 1 + staticPreviewLabel + 1 + + + none + 1 + + Resizable + 1 + + + ; forward_declare + 0 + + + + + -1 + + @@ -2153,23 +2164,13 @@ 5 - wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT + wxBOTTOM|wxLEFT|wxRIGHT|wxEXPAND 0 bSizer3DButtons wxVERTICAL none - - 5 - wxEXPAND - 0 - - 0 - protected - 0 - - 5 wxTOP|wxBOTTOM diff --git a/pcbnew/dialogs/dialog_footprint_properties_fp_editor_base.cpp b/pcbnew/dialogs/dialog_footprint_properties_fp_editor_base.cpp index d19e73232b..f0d23adfbd 100644 --- a/pcbnew/dialogs/dialog_footprint_properties_fp_editor_base.cpp +++ b/pcbnew/dialogs/dialog_footprint_properties_fp_editor_base.cpp @@ -166,7 +166,7 @@ DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR_BASE::DIALOG_FOOTPRINT_PROPERTIES_FP_EDITO bButtonSize1 = new wxBoxSizer( wxHORIZONTAL ); m_bpAddLayer = new STD_BITMAP_BUTTON( bSizerPrivateLayers->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 ); - bButtonSize1->Add( m_bpAddLayer, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 ); + bButtonSize1->Add( m_bpAddLayer, 0, wxRIGHT|wxLEFT, 5 ); bButtonSize1->Add( 20, 0, 0, wxEXPAND, 5 ); @@ -384,7 +384,7 @@ DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR_BASE::DIALOG_FOOTPRINT_PROPERTIES_FP_EDITO bButtonSize2->Add( m_bpRemovePadGroup, 0, wxRIGHT, 5 ); - sbSizerNetTies->Add( bButtonSize2, 0, wxEXPAND|wxBOTTOM, 2 ); + sbSizerNetTies->Add( bButtonSize2, 0, wxEXPAND, 2 ); bSizerPanelClearances->Add( sbSizerNetTies, 1, wxEXPAND|wxALL, 5 ); diff --git a/pcbnew/dialogs/dialog_footprint_properties_fp_editor_base.fbp b/pcbnew/dialogs/dialog_footprint_properties_fp_editor_base.fbp index 1e20060b3a..389b7c39aa 100644 --- a/pcbnew/dialogs/dialog_footprint_properties_fp_editor_base.fbp +++ b/pcbnew/dialogs/dialog_footprint_properties_fp_editor_base.fbp @@ -967,7 +967,7 @@ none 5 - wxBOTTOM|wxLEFT|wxRIGHT + wxRIGHT|wxLEFT 0 1 @@ -2980,7 +2980,7 @@ 2 - wxEXPAND|wxBOTTOM + wxEXPAND 0