summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-28 12:23:41 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-03 13:41:15 -0800
commit106f7a8e0ed43a775bec5fa96f6e072c47653850 (patch)
tree25c2f694b50d2d6d569a7682a33f340aa5497293 /desktop-widgets/CMakeLists.txt
parent165dce4a0eb8c0832861ede8dfb874933667eae8 (diff)
downloadsubsurface-106f7a8e0ed43a775bec5fa96f6e072c47653850.tar.gz
desktop: add statistics widget dummy and application state
Add a new "statistics" application state. In the statistics state show the statistics widget and the filter in the top quadrants. The idea is to allow filtering and doing statistics at the same time. Sadly, we can't use the filter-widget in different quadrants, because Qt's ownership model is completely broken / inflexible. It does not support a widget having different parents and thus a widget can only belong to one QStackedWidget. Hiding the map in the statistics view is quite hacky: Since the view of the quadrants is not determined by the "ApplicationState", we have to restore the original quadrant visibility when exiting the stats mode. Therefore, set the original visibility-state when changing application state. The MainWindow-quadrant code really needs to be rewritten! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/CMakeLists.txt')
-rw-r--r--desktop-widgets/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop-widgets/CMakeLists.txt b/desktop-widgets/CMakeLists.txt
index 7fc76ece3..30a001056 100644
--- a/desktop-widgets/CMakeLists.txt
+++ b/desktop-widgets/CMakeLists.txt
@@ -40,6 +40,7 @@ set (SUBSURFACE_UI
setpoint.ui
shiftimagetimes.ui
shifttimes.ui
+ statswidget.ui
tableview.ui
templateedit.ui
tripselectiodialog.ui
@@ -104,6 +105,8 @@ set(SUBSURFACE_INTERFACE
simplewidgets.cpp
simplewidgets.h
starwidget.cpp
+ statswidget.h
+ statswidget.cpp
starwidget.h
subsurfacewebservices.cpp
subsurfacewebservices.h