summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/statswidget.ui
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-28 14:36:09 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-03 13:41:15 -0800
commit165dce4a0eb8c0832861ede8dfb874933667eae8 (patch)
tree0056ce59d696fac5e431213b8245098a60dc81ee /desktop-widgets/statswidget.ui
parent319a7af31afe3b3b1ba03114b01e88c7067709f0 (diff)
downloadsubsurface-165dce4a0eb8c0832861ede8dfb874933667eae8.tar.gz
statistics: implement a statistics widget on desktop
Implement a widget that shows the statistics state as comboboxes and the statistics chart. Calls into the statistics code if any of the comboboxes changes. The hardest part here is the formatting of the charts list with its icons and with headings. Sadly, it is not trivial to arrange icons horizontally. Therefore we would have to fully reimplement the ComboBox view, which is probably not fun. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/statswidget.ui')
-rw-r--r--desktop-widgets/statswidget.ui131
1 files changed, 131 insertions, 0 deletions
diff --git a/desktop-widgets/statswidget.ui b/desktop-widgets/statswidget.ui
new file mode 100644
index 000000000..684b0fa58
--- /dev/null
+++ b/desktop-widgets/statswidget.ui
@@ -0,0 +1,131 @@
+<?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>
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="StatsView" name="stats">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <customwidgets>
+ <customwidget>
+ <class>StatsView</class>
+ <extends>QQuickWidget</extends>
+ <header>stats/statsview.h</header>
+ <container>1</container>
+ </customwidget>
+ </customwidgets>
+ <resources>
+ <include location="../subsurface.qrc"/>
+ </resources>
+ <connections/>
+</ui>