mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
2943b1cbde
commit
5a8d7617ce
5 changed files with 97 additions and 3 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue