mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-02 09:00:14 -06:00
#14539 Add shared-axis, pinned-range indicators and Auto Zoom command for axis objects
Replace the chain/padlock icon with a simple two-headed-arrow icon (SharedAxis.svg) for linked time/property axes. Add a pinned-range project-tree tag shown when an axis range is user-defined, using the standard gray pinned.svg icon. The tag refreshes immediately regardless of the code path that changes the range/auto-zoom state (Zoom All, data source changes, axis linking, UI edits), and clicking the tag releases the user-defined range so the axis auto-zooms again. Add RicToggleAxisAutoZoomFeature, a checkable context-menu command on Y-axis and time-axis objects that toggles auto-zoom and keeps the pinned/user-defined-range tag in sync in both directions. Move axis-specific context-menu entries out of RimContextCommandBuilder into appendMenuItems() overrides on RimPlotAxisProperties and RimSummaryTimeAxisProperties, per the project convention of keeping object-specific menu logic in the object. Fix RimSummaryPlot::timeAxisSettingsChanged() to actually re-apply auto-scale to the plot widget when auto-zoom is re-enabled on the time axis; previously only the property was updated, and no recompute of the plotted range was triggered.
This commit is contained in:
1 parent
110bdbe0c7
commit
3284fd200a
15 files changed
+247
-38
No files matched your search
@@ -297,6 +297,7 @@
|
||||
<file>regression-curve.svg</file>
|
||||
<file>padlock.svg</file>
|
||||
<file>padlock-unlocked.svg</file>
|
||||
<file>SharedAxis.svg</file>
|
||||
<file>warning.svg</file>
|
||||
<file>cloud-and-server.svg</file>
|
||||
<file>Cloud.svg</file>
|
||||
|
||||
Reference in new issue
Block a user