statistics: implement primitive "restrict to selection" feature

Allow the user to restrict the analyzed dives based on the
current selection. One button restricts to the current selection
and one button resets the restriction.

Thus, the user can for example select bars in the bar chart
or a range in the scatter plot and perform statistics on
these sets.

The restriction works on top of the filter.

The UI can certainly be improved, but it is a start.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-02-12 10:56:48 +01:00 committed by Dirk Hohndel
parent 2943b1cbde
commit 5a8d7617ce
5 changed files with 97 additions and 3 deletions

View file

@ -95,6 +95,32 @@
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="restrictionGroup">
<property name="title">
<string>Restriction</string>
</property>
<layout class="QVBoxLayout" name="chartLayout">
<item>
<widget class="QLabel" name="restrictionLabel" />
</item>
<item>
<widget class="QToolButton" name="restrictButton">
<property name="text">
<string>Restrict to selection</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="unrestrictButton">
<property name="text">
<string>Reset restriction</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">