From 3af9c658e65c2c1f5045f50a7dcefabe32b93c41 Mon Sep 17 00:00:00 2001 From: Jeff Young <jeff@rokeby.ie> Date: Wed, 18 Jan 2023 11:50:47 +0000 Subject: [PATCH] Don't specify fonts in wxFormBuilder. It only leads to pain. Fixes https://gitlab.com/kicad/code/kicad/issues/13547 --- .../dialogs/panel_setup_netclasses_base.cpp | 2 -- common/dialogs/panel_text_variables_base.cpp | 1 - common/widgets/wx_grid.cpp | 28 ++++++------------- eeschema/dialogs/dialog_rescue_each_base.cpp | 16 +++++------ eeschema/dialogs/dialog_rescue_each_base.fbp | 28 ++++++++++++++++--- eeschema/dialogs/dialog_rescue_each_base.h | 2 +- eeschema/dialogs/dialog_sim_model.cpp | 27 +++++++++++------- eeschema/dialogs/panel_setup_buses_base.cpp | 2 -- include/widgets/wx_grid.h | 10 +++++-- .../panel_track_width_base.cpp | 2 -- .../panel_track_width_base.fbp | 2 +- .../panel_board_stackup_base.cpp | 16 ----------- .../panel_board_stackup_base.fbp | 16 +++++------ .../dialogs/dialog_board_statistics_base.cpp | 5 ---- .../dialogs/dialog_board_statistics_base.fbp | 10 +++---- .../dialog_dimension_properties_base.cpp | 4 +-- .../dialog_dimension_properties_base.fbp | 4 +-- .../dialogs/dialog_imported_layers_base.cpp | 5 +--- .../dialogs/dialog_imported_layers_base.fbp | 15 +++++++--- pcbnew/dialogs/dialog_imported_layers_base.h | 7 +++-- .../dialogs/dialog_position_relative_base.cpp | 1 - .../dialogs/dialog_position_relative_base.fbp | 2 +- .../dialogs/panel_fp_editor_defaults_base.cpp | 2 -- .../panel_pcbnew_action_plugins_base.cpp | 1 - .../panel_setup_text_and_graphics_base.cpp | 1 - .../panel_setup_tracks_and_vias_base.cpp | 3 -- 26 files changed, 98 insertions(+), 114 deletions(-) diff --git a/common/dialogs/panel_setup_netclasses_base.cpp b/common/dialogs/panel_setup_netclasses_base.cpp index a0dd161be2..86c1f2d466 100644 --- a/common/dialogs/panel_setup_netclasses_base.cpp +++ b/common/dialogs/panel_setup_netclasses_base.cpp @@ -71,7 +71,6 @@ PANEL_SETUP_NETCLASSES_BASE::PANEL_SETUP_NETCLASSES_BASE( wxWindow* parent, wxWi m_netclassGrid->SetRowLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER ); // Label Appearance - m_netclassGrid->SetLabelFont( wxFont( 12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_netclassGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP ); @@ -145,7 +144,6 @@ PANEL_SETUP_NETCLASSES_BASE::PANEL_SETUP_NETCLASSES_BASE( wxWindow* parent, wxWi m_assignmentGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); // Label Appearance - m_assignmentGrid->SetLabelFont( wxFont( 12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_assignmentGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP ); diff --git a/common/dialogs/panel_text_variables_base.cpp b/common/dialogs/panel_text_variables_base.cpp index 6442dc733d..54a1eab2d0 100644 --- a/common/dialogs/panel_text_variables_base.cpp +++ b/common/dialogs/panel_text_variables_base.cpp @@ -45,7 +45,6 @@ PANEL_TEXT_VARIABLES_BASE::PANEL_TEXT_VARIABLES_BASE( wxWindow* parent, wxWindow m_TextVars->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); // Label Appearance - m_TextVars->SetLabelFont( wxFont( 12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_TextVars->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP ); diff --git a/common/widgets/wx_grid.cpp b/common/widgets/wx_grid.cpp index e6a0684b19..54c99dc475 100644 --- a/common/widgets/wx_grid.cpp +++ b/common/widgets/wx_grid.cpp @@ -140,6 +140,7 @@ void WX_GRID::onDPIChanged(wxDPIChangedEvent& aEvt) } #endif + void WX_GRID::SetColLabelSize( int aHeight ) { if( aHeight == 0 ) @@ -148,17 +149,18 @@ void WX_GRID::SetColLabelSize( int aHeight ) return; } - wxFont headingFont = KIUI::GetControlFont( this ); - - // Make sure the GUI font scales properly on GTK - SetLabelFont( headingFont ); - // Correct wxFormBuilder height for large fonts - int minHeight = headingFont.GetPixelSize().y + 2 * MIN_GRIDCELL_MARGIN; + int minHeight = GetLabelFont().GetPixelSize().y + 2 * MIN_GRIDCELL_MARGIN; wxGrid::SetColLabelSize( std::max( aHeight, minHeight ) ); } +void WX_GRID::SetLabelFont( const wxFont& aFont ) +{ + wxGrid::SetLabelFont( KIUI::GetControlFont( this ) ); +} + + void WX_GRID::SetTable( wxGridTableBase* aTable, bool aTakeOwnership ) { // wxGrid::SetTable() messes up the column widths from wxFormBuilder so we have to save @@ -192,20 +194,6 @@ void WX_GRID::SetTable( wxGridTableBase* aTable, bool aTakeOwnership ) } -bool WX_GRID::Show( bool aShow ) -{ - // Don't let wxFormBuilder override the fonts. It's always the wrong answer as it will set - // a fixed-size, non-scaling, non-HiDPI-aware font. - if( aShow ) - { - SetDefaultCellFont( KIUI::GetControlFont( this ) ); - SetLabelFont( KIUI::GetControlFont( this ) ); - } - - return wxGrid::Show( aShow ); -} - - void WX_GRID::onGridCellSelect( wxGridEvent& aEvent ) { // Highlight the selected cell. diff --git a/eeschema/dialogs/dialog_rescue_each_base.cpp b/eeschema/dialogs/dialog_rescue_each_base.cpp index 843408d37e..864067e958 100644 --- a/eeschema/dialogs/dialog_rescue_each_base.cpp +++ b/eeschema/dialogs/dialog_rescue_each_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.0-4761b0c5) +// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -27,19 +27,21 @@ DIALOG_RESCUE_EACH_BASE::DIALOG_RESCUE_EACH_BASE( wxWindow* parent, wxWindowID i m_titleSymbols = new wxStaticText( this, wxID_ANY, _("Symbols to update:"), wxDefaultPosition, wxDefaultSize, 0 ); m_titleSymbols->Wrap( -1 ); - m_titleSymbols->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - bSizer8->Add( m_titleSymbols, 0, wxEXPAND|wxLEFT|wxRIGHT, 10 ); + + bSizer8->Add( 0, 2, 0, wxEXPAND, 5 ); + m_ListOfConflicts = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); bSizer8->Add( m_ListOfConflicts, 2, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 ); m_titleInstances = new wxStaticText( this, wxID_ANY, _("Instances of this symbol:"), wxDefaultPosition, wxDefaultSize, 0 ); m_titleInstances->Wrap( -1 ); - m_titleInstances->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - bSizer8->Add( m_titleInstances, 0, wxEXPAND|wxLEFT|wxRIGHT, 10 ); + + bSizer8->Add( 0, 2, 0, wxEXPAND, 5 ); + m_ListOfInstances = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); bSizer8->Add( m_ListOfInstances, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 ); @@ -54,8 +56,6 @@ DIALOG_RESCUE_EACH_BASE::DIALOG_RESCUE_EACH_BASE( wxWindow* parent, wxWindowID i m_previewOldLabel = new wxStaticText( this, wxID_ANY, _("Cached Symbol:"), wxDefaultPosition, wxDefaultSize, 0 ); m_previewOldLabel->Wrap( -1 ); - m_previewOldLabel->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - bSizerLeftPreview->Add( m_previewOldLabel, 0, 0, 5 ); m_previewOldPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ); @@ -77,8 +77,6 @@ DIALOG_RESCUE_EACH_BASE::DIALOG_RESCUE_EACH_BASE( wxWindow* parent, wxWindowID i m_previewNewLabel = new wxStaticText( this, wxID_ANY, _("Library Symbol:"), wxDefaultPosition, wxDefaultSize, 0 ); m_previewNewLabel->Wrap( -1 ); - m_previewNewLabel->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - bSizerRightPreview->Add( m_previewNewLabel, 0, 0, 5 ); m_previewNewPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ); diff --git a/eeschema/dialogs/dialog_rescue_each_base.fbp b/eeschema/dialogs/dialog_rescue_each_base.fbp index 61abeb395c..ed3dca2546 100644 --- a/eeschema/dialogs/dialog_rescue_each_base.fbp +++ b/eeschema/dialogs/dialog_rescue_each_base.fbp @@ -157,7 +157,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,92,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> @@ -190,6 +190,16 @@ <property name="wrap">-1</property> </object> </object> + <object class="sizeritem" expanded="1"> + <property name="border">5</property> + <property name="flag">wxEXPAND</property> + <property name="proportion">0</property> + <object class="spacer" expanded="1"> + <property name="height">2</property> + <property name="permission">protected</property> + <property name="width">0</property> + </object> + </object> <object class="sizeritem" expanded="1"> <property name="border">10</property> <property name="flag">wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT</property> @@ -246,7 +256,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,92,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> @@ -279,6 +289,16 @@ <property name="wrap">-1</property> </object> </object> + <object class="sizeritem" expanded="1"> + <property name="border">5</property> + <property name="flag">wxEXPAND</property> + <property name="proportion">0</property> + <object class="spacer" expanded="1"> + <property name="height">2</property> + <property name="permission">protected</property> + <property name="width">0</property> + </object> + </object> <object class="sizeritem" expanded="1"> <property name="border">10</property> <property name="flag">wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT</property> @@ -354,7 +374,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,92,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> @@ -489,7 +509,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,92,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> diff --git a/eeschema/dialogs/dialog_rescue_each_base.h b/eeschema/dialogs/dialog_rescue_each_base.h index e7a8f7de97..b086bc83d1 100644 --- a/eeschema/dialogs/dialog_rescue_each_base.h +++ b/eeschema/dialogs/dialog_rescue_each_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.0-4761b0c5) +// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! diff --git a/eeschema/dialogs/dialog_sim_model.cpp b/eeschema/dialogs/dialog_sim_model.cpp index 9e63f13f9d..c7a690766a 100644 --- a/eeschema/dialogs/dialog_sim_model.cpp +++ b/eeschema/dialogs/dialog_sim_model.cpp @@ -178,20 +178,27 @@ bool DIALOG_SIM_MODEL<T_symbol, T_field>::TransferDataToWindow() loadLibrary( libraryFilename ); // Must be set before curModel() is used since the latter checks the combobox value. - std::string modelName = SIM_MODEL::GetFieldValue( &m_fields, SIM_LIBRARY::NAME_FIELD ); - int modelIdx = m_modelNameChoice->FindString( modelName ); - - if( modelIdx == wxNOT_FOUND ) + if( m_modelNameChoice->IsEmpty() ) { - DisplayErrorMessage( this, wxString::Format( _( "No model named '%s' in library." ), - modelName ) ); - - // Default to first item in library - m_modelNameChoice->SetSelection( 0 ); + m_modelNameChoice->SetSelection( -1 ); } else { - m_modelNameChoice->SetSelection( modelIdx ); + std::string modelName = SIM_MODEL::GetFieldValue( &m_fields, SIM_LIBRARY::NAME_FIELD ); + int modelIdx = m_modelNameChoice->FindString( modelName ); + + if( modelIdx == wxNOT_FOUND ) + { + DisplayErrorMessage( this, wxString::Format( _( "No model named '%s' in library." ), + modelName ) ); + + // Default to first item in library + m_modelNameChoice->SetSelection( 0 ); + } + else + { + m_modelNameChoice->SetSelection( modelIdx ); + } } if( isIbisLoaded() && ( m_modelNameChoice->GetSelection() >= 0 ) ) diff --git a/eeschema/dialogs/panel_setup_buses_base.cpp b/eeschema/dialogs/panel_setup_buses_base.cpp index 9c65bafb32..bce68ba227 100644 --- a/eeschema/dialogs/panel_setup_buses_base.cpp +++ b/eeschema/dialogs/panel_setup_buses_base.cpp @@ -51,7 +51,6 @@ PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE( wxWindow* parent, wxWindowID id, m_aliasesGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); // Label Appearance - m_aliasesGrid->SetLabelFont( wxFont( 12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_aliasesGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP ); @@ -122,7 +121,6 @@ PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE( wxWindow* parent, wxWindowID id, m_membersGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); // Label Appearance - m_membersGrid->SetLabelFont( wxFont( 12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_membersGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP ); diff --git a/include/widgets/wx_grid.h b/include/widgets/wx_grid.h index a577b0966c..09d979b572 100644 --- a/include/widgets/wx_grid.h +++ b/include/widgets/wx_grid.h @@ -49,7 +49,13 @@ public: * enough for the system GUI font. * @param height */ - void SetColLabelSize( int aHeight ); + void SetColLabelSize( int aHeight ); // Yes, we're hiding a non-virtual method + + /** + * Hide wxGrid's SetLabelFont() because for some reason on MSW it's a one-shot and + * subsequent calls to it have no effect. + */ + void SetLabelFont( const wxFont& aFont ); // Yes, we're hiding a non-virtual method /** * Get a tokenized string containing the shown column indexes. @@ -136,8 +142,6 @@ public: DeleteRows( 0, GetNumberRows() ); } - bool Show( bool aShow ) override; - protected: /** * A re-implementation of wxGrid::DrawColLabel which left-aligns the first column and draws diff --git a/pcb_calculator/calculator_panels/panel_track_width_base.cpp b/pcb_calculator/calculator_panels/panel_track_width_base.cpp index 67c7dcc937..6ca350680a 100644 --- a/pcb_calculator/calculator_panels/panel_track_width_base.cpp +++ b/pcb_calculator/calculator_panels/panel_track_width_base.cpp @@ -102,8 +102,6 @@ PANEL_TRACK_WIDTH_BASE::PANEL_TRACK_WIDTH_BASE( wxWindow* parent, wxWindowID id, m_staticTextExtWidth = new wxStaticText( sbSizerTW_Result->GetStaticBox(), wxID_ANY, _("Trace width (W):"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticTextExtWidth->Wrap( -1 ); - m_staticTextExtWidth->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - fgSizerTW_Results->Add( m_staticTextExtWidth, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 ); m_ExtTrackWidthValue = new wxTextCtrl( sbSizerTW_Result->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); diff --git a/pcb_calculator/calculator_panels/panel_track_width_base.fbp b/pcb_calculator/calculator_panels/panel_track_width_base.fbp index 6d3a779c7d..dff5bf1add 100644 --- a/pcb_calculator/calculator_panels/panel_track_width_base.fbp +++ b/pcb_calculator/calculator_panels/panel_track_width_base.fbp @@ -975,7 +975,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,90,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> diff --git a/pcbnew/board_stackup_manager/panel_board_stackup_base.cpp b/pcbnew/board_stackup_manager/panel_board_stackup_base.cpp index bae81d8f56..d8c62eb761 100644 --- a/pcbnew/board_stackup_manager/panel_board_stackup_base.cpp +++ b/pcbnew/board_stackup_manager/panel_board_stackup_base.cpp @@ -74,32 +74,22 @@ PANEL_SETUP_BOARD_STACKUP_BASE::PANEL_SETUP_BOARD_STACKUP_BASE( wxWindow* parent m_staticTextLayer = new wxStaticText( m_scGridWin, wxID_ANY, _("Layer"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT ); m_staticTextLayer->Wrap( -1 ); - m_staticTextLayer->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - m_fgGridSizer->Add( m_staticTextLayer, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_HORIZONTAL, 2 ); m_staticTextLayerId = new wxStaticText( m_scGridWin, wxID_ANY, _("Id"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT ); m_staticTextLayerId->Wrap( -1 ); - m_staticTextLayerId->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - m_fgGridSizer->Add( m_staticTextLayerId, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 ); m_staticTextType = new wxStaticText( m_scGridWin, wxID_ANY, _("Type"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT ); m_staticTextType->Wrap( -1 ); - m_staticTextType->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - m_fgGridSizer->Add( m_staticTextType, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_HORIZONTAL, 2 ); m_staticTextMaterial = new wxStaticText( m_scGridWin, wxID_ANY, _("Material"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT ); m_staticTextMaterial->Wrap( -1 ); - m_staticTextMaterial->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - m_fgGridSizer->Add( m_staticTextMaterial, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_HORIZONTAL, 2 ); m_staticTextThickness = new wxStaticText( m_scGridWin, wxID_ANY, _("Thickness"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT ); m_staticTextThickness->Wrap( -1 ); - m_staticTextThickness->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - m_fgGridSizer->Add( m_staticTextThickness, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_HORIZONTAL, 2 ); m_bitmapLockThickness = new wxStaticBitmap( m_scGridWin, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); @@ -107,20 +97,14 @@ PANEL_SETUP_BOARD_STACKUP_BASE::PANEL_SETUP_BOARD_STACKUP_BASE( wxWindow* parent m_staticTextColor = new wxStaticText( m_scGridWin, wxID_ANY, _("Color"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT ); m_staticTextColor->Wrap( -1 ); - m_staticTextColor->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - m_fgGridSizer->Add( m_staticTextColor, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_HORIZONTAL, 2 ); m_staticTextEpsilonR = new wxStaticText( m_scGridWin, wxID_ANY, _("Epsilon R"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT ); m_staticTextEpsilonR->Wrap( -1 ); - m_staticTextEpsilonR->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - m_fgGridSizer->Add( m_staticTextEpsilonR, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_HORIZONTAL, 2 ); m_staticTextLossTg = new wxStaticText( m_scGridWin, wxID_ANY, _("Loss Tan"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT ); m_staticTextLossTg->Wrap( -1 ); - m_staticTextLossTg->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - m_fgGridSizer->Add( m_staticTextLossTg, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_HORIZONTAL, 2 ); diff --git a/pcbnew/board_stackup_manager/panel_board_stackup_base.fbp b/pcbnew/board_stackup_manager/panel_board_stackup_base.fbp index 1b9df25d33..0bc07bf111 100644 --- a/pcbnew/board_stackup_manager/panel_board_stackup_base.fbp +++ b/pcbnew/board_stackup_manager/panel_board_stackup_base.fbp @@ -612,7 +612,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,92,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> @@ -673,7 +673,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,92,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> @@ -734,7 +734,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,92,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> @@ -795,7 +795,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,92,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> @@ -856,7 +856,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,92,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> @@ -975,7 +975,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,92,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> @@ -1036,7 +1036,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,92,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> @@ -1097,7 +1097,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,92,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> diff --git a/pcbnew/dialogs/dialog_board_statistics_base.cpp b/pcbnew/dialogs/dialog_board_statistics_base.cpp index 5ced126dcc..93a3c52d31 100644 --- a/pcbnew/dialogs/dialog_board_statistics_base.cpp +++ b/pcbnew/dialogs/dialog_board_statistics_base.cpp @@ -61,7 +61,6 @@ DIALOG_BOARD_STATISTICS_BASE::DIALOG_BOARD_STATISTICS_BASE( wxWindow* parent, wx m_gridComponents->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); // Label Appearance - m_gridComponents->SetLabelFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_gridComponents->SetDefaultCellAlignment( wxALIGN_CENTER, wxALIGN_TOP ); @@ -101,7 +100,6 @@ DIALOG_BOARD_STATISTICS_BASE::DIALOG_BOARD_STATISTICS_BASE( wxWindow* parent, wx m_gridPads->SetRowLabelAlignment( wxALIGN_RIGHT, wxALIGN_CENTER ); // Label Appearance - m_gridPads->SetLabelFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_gridPads->SetDefaultCellAlignment( wxALIGN_CENTER, wxALIGN_TOP ); @@ -141,7 +139,6 @@ DIALOG_BOARD_STATISTICS_BASE::DIALOG_BOARD_STATISTICS_BASE( wxWindow* parent, wx m_gridBoard->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); // Label Appearance - m_gridBoard->SetLabelFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_gridBoard->SetDefaultCellAlignment( wxALIGN_CENTER, wxALIGN_TOP ); @@ -180,7 +177,6 @@ DIALOG_BOARD_STATISTICS_BASE::DIALOG_BOARD_STATISTICS_BASE( wxWindow* parent, wx m_gridVias->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); // Label Appearance - m_gridVias->SetLabelFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_gridVias->SetDefaultCellAlignment( wxALIGN_CENTER, wxALIGN_TOP ); @@ -245,7 +241,6 @@ DIALOG_BOARD_STATISTICS_BASE::DIALOG_BOARD_STATISTICS_BASE( wxWindow* parent, wx m_gridDrills->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); // Label Appearance - m_gridDrills->SetLabelFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_gridDrills->SetDefaultCellAlignment( wxALIGN_CENTER, wxALIGN_TOP ); diff --git a/pcbnew/dialogs/dialog_board_statistics_base.fbp b/pcbnew/dialogs/dialog_board_statistics_base.fbp index 17e3376ae5..96994691be 100644 --- a/pcbnew/dialogs/dialog_board_statistics_base.fbp +++ b/pcbnew/dialogs/dialog_board_statistics_base.fbp @@ -318,7 +318,7 @@ <property name="hidden">0</property> <property name="id">wxID_ANY</property> <property name="label_bg"></property> - <property name="label_font">,90,90,-1,70,0</property> + <property name="label_font"></property> <property name="label_text"></property> <property name="margin_height">0</property> <property name="margin_width">0</property> @@ -478,7 +478,7 @@ <property name="hidden">0</property> <property name="id">wxID_ANY</property> <property name="label_bg"></property> - <property name="label_font">,90,90,-1,70,0</property> + <property name="label_font"></property> <property name="label_text"></property> <property name="margin_height">0</property> <property name="margin_width">0</property> @@ -638,7 +638,7 @@ <property name="hidden">0</property> <property name="id">wxID_ANY</property> <property name="label_bg"></property> - <property name="label_font">,90,90,-1,70,0</property> + <property name="label_font"></property> <property name="label_text"></property> <property name="margin_height">0</property> <property name="margin_width">0</property> @@ -798,7 +798,7 @@ <property name="hidden">0</property> <property name="id">wxID_ANY</property> <property name="label_bg"></property> - <property name="label_font">,90,90,-1,70,0</property> + <property name="label_font"></property> <property name="label_text"></property> <property name="margin_height">0</property> <property name="margin_width">0</property> @@ -1097,7 +1097,7 @@ <property name="hidden">0</property> <property name="id">wxID_ANY</property> <property name="label_bg"></property> - <property name="label_font">,90,92,-1,70,0</property> + <property name="label_font"></property> <property name="label_text"></property> <property name="margin_height">0</property> <property name="margin_width">0</property> diff --git a/pcbnew/dialogs/dialog_dimension_properties_base.cpp b/pcbnew/dialogs/dialog_dimension_properties_base.cpp index 75915c330f..44b99499f9 100644 --- a/pcbnew/dialogs/dialog_dimension_properties_base.cpp +++ b/pcbnew/dialogs/dialog_dimension_properties_base.cpp @@ -193,10 +193,8 @@ DIALOG_DIMENSION_PROPERTIES_BASE::DIALOG_DIMENSION_PROPERTIES_BASE( wxWindow* pa m_lblPreview->Wrap( -1 ); gbSizerFormat->Add( m_lblPreview, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 ); - m_staticTextPreview = new wxStaticText( m_sizerFormat->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_staticTextPreview = new wxStaticText( m_sizerFormat->GetStaticBox(), wxID_ANY, _("<preview>"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticTextPreview->Wrap( -1 ); - m_staticTextPreview->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) ); - gbSizerFormat->Add( m_staticTextPreview, wxGBPosition( 4, 1 ), wxGBSpan( 1, 5 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxEXPAND, 5 ); diff --git a/pcbnew/dialogs/dialog_dimension_properties_base.fbp b/pcbnew/dialogs/dialog_dimension_properties_base.fbp index c91203a940..8ce8238b36 100644 --- a/pcbnew/dialogs/dialog_dimension_properties_base.fbp +++ b/pcbnew/dialogs/dialog_dimension_properties_base.fbp @@ -1851,11 +1851,11 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,92,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> - <property name="label"></property> + <property name="label"><preview></property> <property name="markup">0</property> <property name="max_size"></property> <property name="maximize_button">0</property> diff --git a/pcbnew/dialogs/dialog_imported_layers_base.cpp b/pcbnew/dialogs/dialog_imported_layers_base.cpp index 9d9a8c1cf3..da4e9251ff 100644 --- a/pcbnew/dialogs/dialog_imported_layers_base.cpp +++ b/pcbnew/dialogs/dialog_imported_layers_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Oct 26 2018) +// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -57,19 +57,16 @@ DIALOG_IMPORTED_LAYERS_BASE::DIALOG_IMPORTED_LAYERS_BASE( wxWindow* parent, wxWi bSizer6 = new wxBoxSizer( wxVERTICAL ); m_button_add = new wxButton( this, wxID_ANY, _(">"), wxDefaultPosition, wxSize( 36,100 ), 0 ); - m_button_add->SetFont( wxFont( 9, wxFONTFAMILY_MODERN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); m_button_add->SetToolTip( _("Add selected layers to matched layers list.") ); bSizer6->Add( m_button_add, 0, wxALL, 5 ); m_button_remove = new wxButton( this, wxID_ANY, _("<"), wxDefaultPosition, wxSize( 36,100 ), 0 ); - m_button_remove->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_MODERN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); m_button_remove->SetToolTip( _("Remove selected layers from matched layers list.") ); bSizer6->Add( m_button_remove, 0, wxALL, 5 ); m_button_removeall = new wxButton( this, wxID_ANY, _("<<"), wxDefaultPosition, wxSize( 36,50 ), 0 ); - m_button_removeall->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_MODERN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); m_button_removeall->SetToolTip( _("Remove all matched layers.") ); bSizer6->Add( m_button_removeall, 0, wxALL, 5 ); diff --git a/pcbnew/dialogs/dialog_imported_layers_base.fbp b/pcbnew/dialogs/dialog_imported_layers_base.fbp index 07c64e5f3d..2faf2dadc2 100644 --- a/pcbnew/dialogs/dialog_imported_layers_base.fbp +++ b/pcbnew/dialogs/dialog_imported_layers_base.fbp @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <wxFormBuilder_Project> - <FileVersion major="1" minor="15" /> + <FileVersion major="1" minor="16" /> <object class="Project" expanded="1"> <property name="class_decoration"></property> <property name="code_generation">C++</property> @@ -14,6 +14,7 @@ <property name="file">dialog_imported_layers_base</property> <property name="first_id">1000</property> <property name="help_provider">none</property> + <property name="image_path_wrapper_function_name"></property> <property name="indent_with_spaces"></property> <property name="internationalize">1</property> <property name="name">dialog_imported_layers_base</property> @@ -25,6 +26,7 @@ <property name="skip_php_events">1</property> <property name="skip_python_events">1</property> <property name="ui_table">UI</property> + <property name="use_array_enum">0</property> <property name="use_enum">1</property> <property name="use_microsoft_bom">0</property> <object class="Dialog" expanded="1"> @@ -50,6 +52,7 @@ <property name="subclass">DIALOG_SHIM; dialog_shim.h</property> <property name="title">Edit Mapping of Imported Layers</property> <property name="tooltip"></property> + <property name="two_step_creation">0</property> <property name="window_extra_style"></property> <property name="window_name"></property> <property name="window_style"></property> @@ -371,6 +374,7 @@ <property name="aui_name"></property> <property name="aui_position"></property> <property name="aui_row"></property> + <property name="auth_needed">0</property> <property name="best_size"></property> <property name="bg"></property> <property name="bitmap"></property> @@ -391,7 +395,7 @@ <property name="fg"></property> <property name="floatable">1</property> <property name="focus"></property> - <property name="font">,90,90,9,75,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> @@ -444,6 +448,7 @@ <property name="aui_name"></property> <property name="aui_position"></property> <property name="aui_row"></property> + <property name="auth_needed">0</property> <property name="best_size"></property> <property name="bg"></property> <property name="bitmap"></property> @@ -464,7 +469,7 @@ <property name="fg"></property> <property name="floatable">1</property> <property name="focus"></property> - <property name="font">,90,90,-1,75,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> @@ -517,6 +522,7 @@ <property name="aui_name"></property> <property name="aui_position"></property> <property name="aui_row"></property> + <property name="auth_needed">0</property> <property name="best_size"></property> <property name="bg"></property> <property name="bitmap"></property> @@ -537,7 +543,7 @@ <property name="fg"></property> <property name="floatable">1</property> <property name="focus"></property> - <property name="font">,90,90,-1,75,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> @@ -680,6 +686,7 @@ <property name="aui_name"></property> <property name="aui_position"></property> <property name="aui_row"></property> + <property name="auth_needed">0</property> <property name="best_size"></property> <property name="bg"></property> <property name="bitmap"></property> diff --git a/pcbnew/dialogs/dialog_imported_layers_base.h b/pcbnew/dialogs/dialog_imported_layers_base.h index 6d02d38de3..17ef1d8d78 100644 --- a/pcbnew/dialogs/dialog_imported_layers_base.h +++ b/pcbnew/dialogs/dialog_imported_layers_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Oct 26 2018) +// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -20,10 +20,10 @@ #include <wx/listctrl.h> #include <wx/sizer.h> #include <wx/statbox.h> +#include <wx/button.h> #include <wx/bitmap.h> #include <wx/image.h> #include <wx/icon.h> -#include <wx/button.h> #include <wx/dialog.h> /////////////////////////////////////////////////////////////////////////// @@ -49,7 +49,7 @@ class DIALOG_IMPORTED_LAYERS_BASE : public DIALOG_SHIM wxStdDialogButtonSizer* m_sdbSizer; wxButton* m_sdbSizerOK; - // Virtual event handlers, overide them in your derived class + // Virtual event handlers, override them in your derived class virtual void OnClose( wxCloseEvent& event ) { event.Skip(); } virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); } virtual void OnUnMatchedDoubleClick( wxListEvent& event ) { event.Skip(); } @@ -63,6 +63,7 @@ class DIALOG_IMPORTED_LAYERS_BASE : public DIALOG_SHIM public: DIALOG_IMPORTED_LAYERS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Edit Mapping of Imported Layers"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); + ~DIALOG_IMPORTED_LAYERS_BASE(); }; diff --git a/pcbnew/dialogs/dialog_position_relative_base.cpp b/pcbnew/dialogs/dialog_position_relative_base.cpp index aea9fbd3e7..187d4e1953 100644 --- a/pcbnew/dialogs/dialog_position_relative_base.cpp +++ b/pcbnew/dialogs/dialog_position_relative_base.cpp @@ -21,7 +21,6 @@ DIALOG_POSITION_RELATIVE_BASE::DIALOG_POSITION_RELATIVE_BASE( wxWindow* parent, m_referenceInfo = new wxStaticText( this, wxID_ANY, _("Reference item: <none selected>"), wxDefaultPosition, wxDefaultSize, 0 ); m_referenceInfo->Wrap( -1 ); - m_referenceInfo->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); m_referenceInfo->SetMinSize( wxSize( 340,-1 ) ); bUpperSizer->Add( m_referenceInfo, 0, wxALL, 5 ); diff --git a/pcbnew/dialogs/dialog_position_relative_base.fbp b/pcbnew/dialogs/dialog_position_relative_base.fbp index 15da9096cf..5860642227 100644 --- a/pcbnew/dialogs/dialog_position_relative_base.fbp +++ b/pcbnew/dialogs/dialog_position_relative_base.fbp @@ -99,7 +99,7 @@ <property name="enabled">1</property> <property name="fg"></property> <property name="floatable">1</property> - <property name="font">,90,90,-1,70,0</property> + <property name="font"></property> <property name="gripper">0</property> <property name="hidden">0</property> <property name="id">wxID_ANY</property> diff --git a/pcbnew/dialogs/panel_fp_editor_defaults_base.cpp b/pcbnew/dialogs/panel_fp_editor_defaults_base.cpp index 441b3a348e..e9c64dd477 100644 --- a/pcbnew/dialogs/panel_fp_editor_defaults_base.cpp +++ b/pcbnew/dialogs/panel_fp_editor_defaults_base.cpp @@ -59,7 +59,6 @@ PANEL_FP_EDITOR_DEFAULTS_BASE::PANEL_FP_EDITOR_DEFAULTS_BASE( wxWindow* parent, m_textItemsGrid->SetRowLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER ); // Label Appearance - m_textItemsGrid->SetLabelFont( wxFont( 12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_textItemsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP ); @@ -147,7 +146,6 @@ PANEL_FP_EDITOR_DEFAULTS_BASE::PANEL_FP_EDITOR_DEFAULTS_BASE( wxWindow* parent, m_graphicsGrid->SetRowLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER ); // Label Appearance - m_graphicsGrid->SetLabelFont( wxFont( 12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_graphicsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP ); diff --git a/pcbnew/dialogs/panel_pcbnew_action_plugins_base.cpp b/pcbnew/dialogs/panel_pcbnew_action_plugins_base.cpp index 6f0553ff65..d13312ea65 100644 --- a/pcbnew/dialogs/panel_pcbnew_action_plugins_base.cpp +++ b/pcbnew/dialogs/panel_pcbnew_action_plugins_base.cpp @@ -48,7 +48,6 @@ PANEL_PCBNEW_ACTION_PLUGINS_BASE::PANEL_PCBNEW_ACTION_PLUGINS_BASE( wxWindow* pa m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); // Label Appearance - m_grid->SetLabelFont( wxFont( 12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER ); diff --git a/pcbnew/dialogs/panel_setup_text_and_graphics_base.cpp b/pcbnew/dialogs/panel_setup_text_and_graphics_base.cpp index 300ba7547f..cab20ad334 100644 --- a/pcbnew/dialogs/panel_setup_text_and_graphics_base.cpp +++ b/pcbnew/dialogs/panel_setup_text_and_graphics_base.cpp @@ -64,7 +64,6 @@ PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE( wxWindow m_grid->SetRowLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER ); // Label Appearance - m_grid->SetLabelFont( wxFont( 12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP ); diff --git a/pcbnew/dialogs/panel_setup_tracks_and_vias_base.cpp b/pcbnew/dialogs/panel_setup_tracks_and_vias_base.cpp index ac6442f05c..a1b8e13d9d 100644 --- a/pcbnew/dialogs/panel_setup_tracks_and_vias_base.cpp +++ b/pcbnew/dialogs/panel_setup_tracks_and_vias_base.cpp @@ -54,7 +54,6 @@ PANEL_SETUP_TRACKS_AND_VIAS_BASE::PANEL_SETUP_TRACKS_AND_VIAS_BASE( wxWindow* pa m_trackWidthsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); // Label Appearance - m_trackWidthsGrid->SetLabelFont( wxFont( 12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_trackWidthsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP ); @@ -119,7 +118,6 @@ PANEL_SETUP_TRACKS_AND_VIAS_BASE::PANEL_SETUP_TRACKS_AND_VIAS_BASE( wxWindow* pa m_viaSizesGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); // Label Appearance - m_viaSizesGrid->SetLabelFont( wxFont( 12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_viaSizesGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP ); @@ -185,7 +183,6 @@ PANEL_SETUP_TRACKS_AND_VIAS_BASE::PANEL_SETUP_TRACKS_AND_VIAS_BASE( wxWindow* pa m_diffPairsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); // Label Appearance - m_diffPairsGrid->SetLabelFont( wxFont( 12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); // Cell Defaults m_diffPairsGrid->SetDefaultCellBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );