From 5b3cb5898fead63750ea860417d1853710832d34 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 14 Feb 2021 20:59:02 +0100 Subject: desktop: fold ApplicationState into MainWindow The application state is a desktop-only thing. The mobile UI also has its application state, but that is something completely different. The last remaining user of the application state was to flag whether the planner is active. Since this has all been unglobalized, the ApplicationState structure can be moved from core to the desktop UI. And there it can be made local to the MainWindow class. Signed-off-by: Berthold Stoeger --- core/applicationstate.h | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 core/applicationstate.h (limited to 'core/applicationstate.h') diff --git a/core/applicationstate.h b/core/applicationstate.h deleted file mode 100644 index c3a8f360d..000000000 --- a/core/applicationstate.h +++ /dev/null @@ -1,26 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#ifndef APPLICATIONSTATE_H -#define APPLICATIONSTATE_H - -// By using an enum class, the enum entries don't polute the global namespace. -// Moreover, they are strongly typed. This means that they are not auto-converted -// to integer types if e.g. used as array-indices. -enum class ApplicationState { - Default, - EditDive, - PlanDive, - EditPlannedDive, - EditDiveSite, - FilterDive, - Statistics, - MapMaximized, - ProfileMaximized, - ListMaximized, - InfoMaximized, - Count -}; - -ApplicationState getAppState(); -void setAppState(ApplicationState state); - -#endif -- cgit v1.2.3-70-g09d2