diff --git a/eeschema/dialogs/dialog_pin_properties.cpp b/eeschema/dialogs/dialog_pin_properties.cpp index 086ea31be1..cc042dc5df 100644 --- a/eeschema/dialogs/dialog_pin_properties.cpp +++ b/eeschema/dialogs/dialog_pin_properties.cpp @@ -349,6 +349,7 @@ void DIALOG_PIN_PROPERTIES::OnPaintShowPanel( wxPaintEvent& event ) PART_DRAW_OPTIONS opts; opts.draw_hidden_fields = true; + opts.show_connect_point = true; RENDER_SETTINGS* renderSettings = symbolEditor->GetRenderSettings(); renderSettings->SetPrintDC( &dc ); diff --git a/eeschema/lib_pin.cpp b/eeschema/lib_pin.cpp index 83cce37e25..3657372998 100644 --- a/eeschema/lib_pin.cpp +++ b/eeschema/lib_pin.cpp @@ -174,6 +174,7 @@ void LIB_PIN::print( const RENDER_SETTINGS* aSettings, const wxPoint& aOffset, v PART_DRAW_OPTIONS* opts = (PART_DRAW_OPTIONS*) aData; bool drawHiddenFields = opts ? opts->draw_hidden_fields : false; bool showPinType = opts ? opts->show_elec_type : false; + bool show_connect_point = opts ? opts->show_connect_point : false; LIB_PART* part = GetParent(); @@ -192,6 +193,13 @@ void LIB_PIN::print( const RENDER_SETTINGS* aSettings, const wxPoint& aOffset, v if( showPinType ) printPinElectricalTypeName( aSettings, pos1, orient ); + + if( show_connect_point ) + { + wxDC* DC = aSettings->GetPrintDC(); + COLOR4D color = aSettings->GetLayerColor( IsVisible() ? LAYER_PIN : LAYER_HIDDEN ); + GRCircle( nullptr, DC, pos1.x, pos1.y, TARGET_PIN_RADIUS, 0, color ); + } } } diff --git a/eeschema/lib_symbol.h b/eeschema/lib_symbol.h index 803e6f85eb..3d6e6663f3 100644 --- a/eeschema/lib_symbol.h +++ b/eeschema/lib_symbol.h @@ -61,10 +61,12 @@ extern bool operator<( const LIB_PART& aItem1, const LIB_PART& aItem2 ); struct PART_DRAW_OPTIONS { - TRANSFORM transform; // Coordinate adjustment settings - bool draw_visible_fields; // Whether to draw "visible" fields - bool draw_hidden_fields; // Whether to draw "hidden" fields - bool show_elec_type; // Whether to show the pin electrical type + TRANSFORM transform; // Coordinate adjustment settings + bool draw_visible_fields; // Whether to draw "visible" fields + bool draw_hidden_fields; // Whether to draw "hidden" fields + bool show_elec_type; // Whether to show the pin electrical type + bool show_connect_point; // Whether to show the pin connect point marker (small circle) + // usefull in dialog pin properties PART_DRAW_OPTIONS() { @@ -72,6 +74,7 @@ struct PART_DRAW_OPTIONS draw_visible_fields = true; draw_hidden_fields = true; show_elec_type = false; + show_connect_point = false; } };