From c39e7b222588f7dbff30aa6df301aee8b46761ca Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Mon, 5 Feb 2024 01:03:52 -0500 Subject: [PATCH] Tweaks in eeschema for hidpi --- common/dialogs/panel_text_variables.cpp | 1 + eeschema/dialogs/panel_bom_presets.cpp | 3 +++ eeschema/dialogs/panel_setup_buses.cpp | 3 +++ eeschema/dialogs/panel_template_fieldnames.cpp | 2 ++ 4 files changed, 9 insertions(+) diff --git a/common/dialogs/panel_text_variables.cpp b/common/dialogs/panel_text_variables.cpp index 2811650c4c..0f81a88e20 100644 --- a/common/dialogs/panel_text_variables.cpp +++ b/common/dialogs/panel_text_variables.cpp @@ -50,6 +50,7 @@ PANEL_TEXT_VARIABLES::PANEL_TEXT_VARIABLES( wxWindow* aParent, PROJECT* aProject m_btnDeleteTextVar->SetBitmap( KiBitmapBundle( BITMAPS::small_trash ) ); m_TextVars->ClearRows(); + m_TextVars->SetUseNativeColLabels(); // prohibit these characters in the alias names: []{}()%~<>"='`;:.,&?/\|$ m_nameValidator.SetStyle( wxFILTER_EXCLUDE_CHAR_LIST ); diff --git a/eeschema/dialogs/panel_bom_presets.cpp b/eeschema/dialogs/panel_bom_presets.cpp index 1c80913dd2..50304f6930 100644 --- a/eeschema/dialogs/panel_bom_presets.cpp +++ b/eeschema/dialogs/panel_bom_presets.cpp @@ -35,6 +35,9 @@ PANEL_BOM_PRESETS::PANEL_BOM_PRESETS( wxWindow* aWindow, SCHEMATIC_SETTINGS& aSe { m_btnDeleteBomPreset->SetBitmap( KiBitmapBundle( BITMAPS::small_trash ) ); m_btnDeleteBomFmtPreset->SetBitmap( KiBitmapBundle( BITMAPS::small_trash ) ); + + m_bomPresetsGrid->SetUseNativeColLabels(); + m_bomFmtPresetsGrid->SetUseNativeColLabels(); } diff --git a/eeschema/dialogs/panel_setup_buses.cpp b/eeschema/dialogs/panel_setup_buses.cpp index 968c7343d8..19c3d73117 100644 --- a/eeschema/dialogs/panel_setup_buses.cpp +++ b/eeschema/dialogs/panel_setup_buses.cpp @@ -59,6 +59,9 @@ PANEL_SETUP_BUSES::PANEL_SETUP_BUSES( wxWindow* aWindow, SCH_EDIT_FRAME* aFrame OnAddMember( aEvent ); } ) ); + m_aliasesGrid->SetUseNativeColLabels(); + m_membersGrid->SetUseNativeColLabels(); + // wxFormBuilder doesn't include this event... m_aliasesGrid->Connect( wxEVT_GRID_CELL_CHANGING, wxGridEventHandler( PANEL_SETUP_BUSES::OnAliasesGridCellChanging ), diff --git a/eeschema/dialogs/panel_template_fieldnames.cpp b/eeschema/dialogs/panel_template_fieldnames.cpp index 0d8965a0e1..1dcfc2f871 100644 --- a/eeschema/dialogs/panel_template_fieldnames.cpp +++ b/eeschema/dialogs/panel_template_fieldnames.cpp @@ -59,6 +59,8 @@ PANEL_TEMPLATE_FIELDNAMES::PANEL_TEMPLATE_FIELDNAMES( wxWindow* aWindow, m_checkboxColWidth = m_grid->GetColSize( 1 ); + m_grid->SetUseNativeColLabels(); + m_grid->PushEventHandler( new GRID_TRICKS( m_grid, [this]( wxCommandEvent& aEvent ) { OnAddButtonClick( aEvent );