mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
1e5191e33e
This was a user request: Sort bar charts by height of the bars. Obviously, this can only work for categorical charts, not for histograms. The UI is a break from the old concept: the sorting is chosen based on the chart, whereas for the rest of the features, the viable charts are presented based on the binning, etc. I found it confusing to have the possible charts be selected based on sorting. I.e. if a non-bin sort mode is selected, the histogram charts disappear. On the flip side, this would be more consistent. We can change it later. For value-based bar charts, there are three sort modes: by bin, by count (i.e. number of dives in that bar) and by value (i.e. length of the bar). This hopefully satisfies all needs. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
161 lines
4.3 KiB
XML
161 lines
4.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>StatsWidget</class>
|
|
<widget class="QWidget" name="Statistics">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>555</width>
|
|
<height>848</height>
|
|
</rect>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<layout class="QVBoxLayout" name="headerLayout">
|
|
<item>
|
|
<widget class="QToolButton" name="close">
|
|
<property name="text">
|
|
<string>Close</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset><normaloff>:filter-close</normaloff>:filter-close</iconset>
|
|
</property>
|
|
<property name="toolButtonStyle">
|
|
<enum>Qt::ToolButtonTextBesideIcon</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="var1Group">
|
|
<property name="title">
|
|
<string>Base variable</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="var1Layout">
|
|
<item>
|
|
<widget class="QComboBox" name="var1" />
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="var1BinnerLabel">
|
|
<property name="text">
|
|
<string>Binning</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="var1Binner" />
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="var2Group">
|
|
<property name="title">
|
|
<string>Data</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="var2Layout">
|
|
<item>
|
|
<widget class="QComboBox" name="var2" />
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="var2BinnerLabel">
|
|
<property name="text">
|
|
<string>Binning</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="var2Binner" />
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="var2OperationLabel">
|
|
<property name="text">
|
|
<string>Operation</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="var2Operation" />
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="chartGroup">
|
|
<property name="title">
|
|
<string>Chart</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="chartLayout">
|
|
<item>
|
|
<widget class="QComboBox" name="chartType" />
|
|
</item>
|
|
<item>
|
|
<layout class="QVBoxLayout" name="features" />
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="sortGroup">
|
|
<property name="title">
|
|
<string>Sorting</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="chartLayout">
|
|
<item>
|
|
<widget class="QComboBox" name="var1Sort" />
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="restrictionGroup">
|
|
<property name="title">
|
|
<string>Restriction</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="restrictionLayout">
|
|
<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>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QQuickWidget" name="stats">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<resources>
|
|
<include location="../subsurface.qrc"/>
|
|
</resources>
|
|
<connections/>
|
|
</ui>
|