From 2494fb0b644dbf7fa3cba1b521a670a8a9e16702 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 12 Jan 2026 17:45:32 +0000 Subject: [PATCH] Fill in missing label friendly names. --- eeschema/sch_label.h | 20 ++++++++++++++++++++ eeschema/sch_sheet_pin.h | 5 +++++ 2 files changed, 25 insertions(+) diff --git a/eeschema/sch_label.h b/eeschema/sch_label.h index 2d94f9c384..67330a2811 100644 --- a/eeschema/sch_label.h +++ b/eeschema/sch_label.h @@ -408,6 +408,11 @@ public: return wxT( "SCH_LABEL" ); } + wxString GetFriendlyName() const override + { + return _( "Label" ); + } + const BOX2I GetBodyBoundingBox( const RENDER_SETTINGS* aSettings ) const override; bool IsConnectable() const override { return true; } @@ -460,6 +465,11 @@ public: return wxT( "SCH_DIRECTIVE_LABEL" ); } + wxString GetFriendlyName() const override + { + return _( "Directive Label" ); + } + EDA_ITEM* Clone() const override { return new SCH_DIRECTIVE_LABEL( *this ); @@ -538,6 +548,11 @@ public: return wxT( "SCH_GLOBALLABEL" ); } + wxString GetFriendlyName() const override + { + return _( "Global Label" ); + } + EDA_ITEM* Clone() const override { return new SCH_GLOBALLABEL( *this ); @@ -603,6 +618,11 @@ public: return aItem && SCH_HIER_LABEL_T == aItem->Type(); } + wxString GetFriendlyName() const override + { + return _( "Hierarchical Label" ); + } + wxString GetClass() const override { return wxT( "SCH_HIERLABEL" ); diff --git a/eeschema/sch_sheet_pin.h b/eeschema/sch_sheet_pin.h index cca3c536b4..5945452708 100644 --- a/eeschema/sch_sheet_pin.h +++ b/eeschema/sch_sheet_pin.h @@ -82,6 +82,11 @@ public: return wxT( "SCH_SHEET_PIN" ); } + wxString GetFriendlyName() const override + { + return _( "Sheet Pin" ); + } + bool operator ==( const SCH_SHEET_PIN* aPin ) const; bool operator!=( const SCH_SHEET_PIN* aRhs ) const { return !( this == aRhs ); }