From c5a19d6599f7d5d76c721a2b1a92d8bfdaf4f5c6 Mon Sep 17 00:00:00 2001 From: RakTikoo Date: Wed, 18 Nov 2026 13:49:26 -0800 Subject: [PATCH 1/4] Add --highlight-row-on-click option and dialog checkbox --- DATAFORMAT.md | 1 + settings_dialog.fbp | 65 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/DATAFORMAT.md b/DATAFORMAT.md index fc8c1958..728684ea 100644 --- a/DATAFORMAT.md +++ b/DATAFORMAT.md @@ -397,6 +397,7 @@ config = { "show_silkscreen": bool, "highlight_pin1": "none" | "all" | "selected", "redraw_on_drag": bool, + "highlight_row_on_click": bool, "board_rotation": int, "checkboxes": "checkbox1,checkbox2,...", "bom_view": "bom-only" | "left-right" | "top-bottom", diff --git a/settings_dialog.fbp b/settings_dialog.fbp index 218bf6c3..418775db 100644 --- a/settings_dialog.fbp +++ b/settings_dialog.fbp @@ -1116,6 +1116,71 @@ + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + 0 + + 0 + 0 + + + + 1 + 0 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 0 + 1 + + 1 + + 0 + 0 + wxID_ANY + Highlight row on click + + 0 + + + 0 + + 1 + highlightRowOnClickCheckbox + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + 5 wxALL|wxEXPAND From 55d4a6b4d795a0665a717e12285bc1c2ffd5b0d5 Mon Sep 17 00:00:00 2001 From: RakTikoo Date: Wed, 18 Nov 2026 13:50:19 -0800 Subject: [PATCH 2/4] Add --highlight-row-on-click option and dialog checkbox --- InteractiveHtmlBom/core/config.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/InteractiveHtmlBom/core/config.py b/InteractiveHtmlBom/core/config.py index eacdc4f8..30e192df 100644 --- a/InteractiveHtmlBom/core/config.py +++ b/InteractiveHtmlBom/core/config.py @@ -37,7 +37,8 @@ class Config: default_checkboxes = ['Sourced', 'Placed'] html_config_fields = [ 'dark_mode', 'show_pads', 'show_fabrication', 'show_silkscreen', - 'highlight_pin1', 'redraw_on_drag', 'board_rotation', 'checkboxes', + 'highlight_pin1', 'redraw_on_drag', 'highlight_row_on_click', + 'board_rotation', 'checkboxes', 'bom_view', 'layer_view', 'offset_back_rotation', 'kicad_text_formatting', 'mark_when_checked', 'custom_metadata' ] @@ -51,6 +52,7 @@ class Config: show_fabrication = False show_silkscreen = True redraw_on_drag = True + highlight_row_on_click = False highlight_pin1 = highlight_pin1_choices[0] board_rotation = 0 offset_back_rotation = False @@ -121,6 +123,8 @@ def load_from_ini(self): self.show_silkscreen = f.ReadBool( 'show_silkscreen', self.show_silkscreen) self.redraw_on_drag = f.ReadBool('redraw_on_drag', self.redraw_on_drag) + self.highlight_row_on_click = f.ReadBool( + 'highlight_row_on_click', self.highlight_row_on_click) self.highlight_pin1 = f.Read('highlight_pin1', self.highlight_pin1) self.board_rotation = f.ReadInt('board_rotation', self.board_rotation) self.offset_back_rotation = f.ReadBool( @@ -182,6 +186,7 @@ def save(self, locally): f.WriteBool('show_fabrication', self.show_fabrication) f.WriteBool('show_silkscreen', self.show_silkscreen) f.WriteBool('redraw_on_drag', self.redraw_on_drag) + f.WriteBool('highlight_row_on_click', self.highlight_row_on_click) f.Write('highlight_pin1', self.highlight_pin1) f.WriteInt('board_rotation', self.board_rotation) f.WriteBool('offset_back_rotation', self.offset_back_rotation) @@ -228,6 +233,8 @@ def set_from_dialog(self, dlg): self.show_fabrication = dlg.html.showFabricationCheckbox.IsChecked() self.show_silkscreen = dlg.html.showSilkscreenCheckbox.IsChecked() self.redraw_on_drag = dlg.html.continuousRedrawCheckbox.IsChecked() + self.highlight_row_on_click = \ + dlg.html.highlightRowOnClickCheckbox.IsChecked() self.highlight_pin1 = self.highlight_pin1_choices[dlg.html.highlightPin1.Selection] self.board_rotation = dlg.html.boardRotationSlider.Value self.offset_back_rotation = \ @@ -280,6 +287,8 @@ def transfer_to_dialog(self, dlg): dlg.html.highlightPin1.Selection = \ self.highlight_pin1_choices.index(self.highlight_pin1) dlg.html.continuousRedrawCheckbox.Value = self.redraw_on_drag + dlg.html.highlightRowOnClickCheckbox.Value = \ + self.highlight_row_on_click dlg.html.boardRotationSlider.Value = self.board_rotation dlg.html.offsetBackRotationCheckbox.Value = self.offset_back_rotation dlg.html.bomCheckboxesCtrl.Value = self.checkboxes @@ -381,6 +390,13 @@ def add_options(cls, parser, version): parser.add_argument('--redraw-on-drag', dest='no_redraw_on_drag', help='Redraw pcb on drag by default.', action='store_false', default=False) + parser.add_argument('--highlight-row-on-click', + help='Highlight row on click by default.', + action='store_true') + parser.add_argument('--no-highlight-row-on-click', + dest='highlight_row_on_click', + help='Do not highlight row on click by default.', + action='store_false', default=False) parser.add_argument('--board-rotation', type=int, default=cls.board_rotation * 5, help='Board rotation in degrees (-180 to 180). ' @@ -546,6 +562,8 @@ def get_ini_defaults(self): ('html_defaults', 'show_silkscreen', 'hide_silkscreen', 'not'), ('html_defaults', 'highlight_pin1', 'highlight_pin1', 'str'), ('html_defaults', 'redraw_on_drag', 'no_redraw_on_drag', 'not'), + ('html_defaults', 'highlight_row_on_click', + 'highlight_row_on_click', 'bool'), ('html_defaults', 'offset_back_rotation', 'offset_back_rotation', 'bool'), ('html_defaults', 'checkboxes', 'checkboxes', 'str'), @@ -614,6 +632,7 @@ def set_from_args(self, args): self.show_silkscreen = not args.hide_silkscreen self.highlight_pin1 = args.highlight_pin1 self.redraw_on_drag = not args.no_redraw_on_drag + self.highlight_row_on_click = args.highlight_row_on_click # Stored in 5 degree steps, wrap to -180..180 range self.board_rotation = args.board_rotation // 5 if not -36 <= self.board_rotation <= 36: From 0c2fd23a10ffc85bb12d4c04eab2c815a54f3189 Mon Sep 17 00:00:00 2001 From: RakTikoo Date: Wed, 18 Nov 2026 13:50:55 -0800 Subject: [PATCH 3/4] Add --highlight-row-on-click option and dialog checkbox --- InteractiveHtmlBom/dialog/dialog_base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InteractiveHtmlBom/dialog/dialog_base.py b/InteractiveHtmlBom/dialog/dialog_base.py index 0565f8ac..e719ef2e 100644 --- a/InteractiveHtmlBom/dialog/dialog_base.py +++ b/InteractiveHtmlBom/dialog/dialog_base.py @@ -153,6 +153,9 @@ def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx. self.offsetBackRotationCheckbox = wx.CheckBox( self, wx.ID_ANY, u"Offset back rotation", wx.DefaultPosition, wx.DefaultSize, 0 ) b_sizer.Add( self.offsetBackRotationCheckbox, 0, wx.ALL, 5 ) + self.highlightRowOnClickCheckbox = wx.CheckBox( self, wx.ID_ANY, u"Highlight row on click", wx.DefaultPosition, wx.DefaultSize, 0 ) + b_sizer.Add( self.highlightRowOnClickCheckbox, 0, wx.ALL, 5 ) + sbSizer31 = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"Checkboxes" ), wx.HORIZONTAL ) self.bomCheckboxesCtrl = wx.TextCtrl( sbSizer31.GetStaticBox(), wx.ID_ANY, u"Sourced,Placed", wx.DefaultPosition, wx.DefaultSize, 0 ) From ffc6370eb6c477c88b9b396d935102be6ddf2200 Mon Sep 17 00:00:00 2001 From: RakTikoo Date: Wed, 18 Nov 2026 13:51:40 -0800 Subject: [PATCH 4/4] Add --highlight-row-on-click option and dialog checkbox --- InteractiveHtmlBom/web/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InteractiveHtmlBom/web/util.js b/InteractiveHtmlBom/web/util.js index 0d1d8da0..0119951f 100644 --- a/InteractiveHtmlBom/web/util.js +++ b/InteractiveHtmlBom/web/util.js @@ -580,7 +580,7 @@ function initDefaults() { } initBooleanSetting("dnpOutline", false, "dnpOutlineCheckbox", dnpOutline); initBooleanSetting("redrawOnDrag", config.redraw_on_drag, "dragCheckbox", setRedrawOnDrag); - initBooleanSetting("highlightRowOnClick", false, "highlightRowOnClickCheckbox", setHighlightRowOnClick); + initBooleanSetting("highlightRowOnClick", config.highlight_row_on_click, "highlightRowOnClickCheckbox", setHighlightRowOnClick); initBooleanSetting("darkmode", config.dark_mode, "darkmodeCheckbox", setDarkMode); var fields = ["checkboxes", "References"].concat(config.fields).concat(["Quantity"]);