summaryrefslogtreecommitdiffstats
path: root/stats/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-02 22:16:11 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-03 13:41:15 -0800
commit319a7af31afe3b3b1ba03114b01e88c7067709f0 (patch)
treecf0a37d4e923c95413e6f72955a9192758f427a7 /stats/CMakeLists.txt
parentfbb17871c9aab2eee71da98163b802836c691476 (diff)
downloadsubsurface-319a7af31afe3b3b1ba03114b01e88c7067709f0.tar.gz
statistics: add a model that describes a list of charts
Qt's comboboxes are controlled by models, there's no way around that. To customize the chart-selection widget this must therefore be abstracted into a model. On the upside, this hopefully can be used for desktop and mobile. The model provides icons and paints a warning-symbol on it if the statistics core code deems the chart to be not recommended. Notably, when plotting a categorical bar chart against a numerical value (in such a case histograms are preferred). Includes a fix for a silly oversight in CMakelist.txt: add the statstranslations.h header. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/CMakeLists.txt')
-rw-r--r--stats/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/stats/CMakeLists.txt b/stats/CMakeLists.txt
index 31e809270..e0e2dc303 100644
--- a/stats/CMakeLists.txt
+++ b/stats/CMakeLists.txt
@@ -9,6 +9,8 @@ set(SUBSURFACE_STATS_SRCS
barseries.cpp
boxseries.h
boxseries.cpp
+ chartlistmodel.h
+ chartlistmodel.cpp
informationbox.h
informationbox.cpp
legend.h
@@ -25,6 +27,7 @@ set(SUBSURFACE_STATS_SRCS
statsseries.cpp
statsstate.h
statsstate.cpp
+ statstranslations.h
statsvariables.h
statsvariables.cpp
statsview.h