2020-10-28 13:36:09 +00:00
|
|
|
<?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>
|
statistics: convert chart to QQuickItem
It turns out that the wrong base class was used for the chart.
QQuickWidget can only be used on desktop, not in a mobile UI.
Therefore, turn this into a QQuickItem and move the container
QQuickWidget into desktop-only code.
Currently, this code is insane: The chart is rendered onto a
QGraphicsScene (as it was before), which is then rendered into
a QImage, which is transformed into a QSGTexture, which is then
projected onto the device. This is performed on every mouse
move event, since these events in general change the position
of the info-box.
The plan is to slowly convert elements such as the info-box into
QQuickItems. Browsing the QtQuick documentation, this will
not be much fun.
Also note that the rendering currently tears, flickers and has
antialiasing artifacts, most likely owing to integer (QImage)
to floating point (QGraphicsScene, QQuickItem) conversion
problems. The data flow is
QGraphicsScene (float) -> QImage (int) -> QQuickItem (float).
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2021-01-07 13:38:37 +00:00
|
|
|
<widget class="QQuickWidget" name="stats">
|
2020-10-28 13:36:09 +00:00
|
|
|
<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>
|