aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/statswidget.ui
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-02-12 10:56:48 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-02-13 13:02:54 -0800
commit5a8d7617ce3d1b54f22a0438f593e844757ecc46 (patch)
tree3ec045749e4535fa38094300dcb639299e4a7b2d /desktop-widgets/statswidget.ui
parent2943b1cbde1a60ef00f1878a27f811246d9b2bc3 (diff)
downloadsubsurface-5a8d7617ce3d1b54f22a0438f593e844757ecc46.tar.gz
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>
Diffstat (limited to 'desktop-widgets/statswidget.ui')
-rw-r--r--desktop-widgets/statswidget.ui26
1 files changed, 26 insertions, 0 deletions
diff --git a/desktop-widgets/statswidget.ui b/desktop-widgets/statswidget.ui
index a20fb4a8f..27a10ffd3 100644
--- a/desktop-widgets/statswidget.ui
+++ b/desktop-widgets/statswidget.ui
@@ -96,6 +96,32 @@
</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">
<enum>Qt::Vertical</enum>