Skip to content

Use VType display for formatting data browser cursor values#3695

Open
DenSinH wants to merge 2 commits intoControlSystemStudio:masterfrom
High-Voltage-Engineering:dh-plot-markers
Open

Use VType display for formatting data browser cursor values#3695
DenSinH wants to merge 2 commits intoControlSystemStudio:masterfrom
High-Voltage-Engineering:dh-plot-markers

Conversation

@DenSinH
Copy link
Contributor

@DenSinH DenSinH commented Feb 6, 2026

Use VType display for formatting data browser cursor marker values. Previously, they were formatted using the formatting specified by the trace (which seemed to be obtained automatically, and depends on the axis labels, which can also not be configured manually it seems). I changed this to where this can be implemented in the PlotDataItem implementation. The default one is the same as the one that was implemented before, and I specified it for the PlotSample class, where it uses the FormatOptionHandler with the DEFAULT format to format the VType from the selected sample. This makes it so that the value formatted in the cursor marker and the value in the Traces table are all formatted using the VType's format, which is more consistent with the rest of the UI.

I am however not sure if I missed some configurable option, or if other sites possibly depend on the "old" formatting.

Checklist

  • Testing:

    • The feature has automated tests
    • Tests were run
    • Checked whether the newly formatted values properly showed up in the data browser
  • Documentation:

    • The feature is documented
    • The documentation is up to date
    • Release notes:
      • Added an entry if the change is breaking or significant
      • Added an entry when adding a new feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant