From 39bc166e549e8ccae75468aa2dd3613d51f54e27 Mon Sep 17 00:00:00 2001 From: Jean-François Milants Date: Sun, 10 Dec 2023 18:35:19 +0100 Subject: Watch face selection at build time Watch faces can now be selected at buid time. It's implemented in a similar way than the selection of user apps, using a list of watch face description that is generated at build time (consteval, constexpr) --- src/displayapp/screens/Clock.h | 63 ------------------------------------------ 1 file changed, 63 deletions(-) delete mode 100644 src/displayapp/screens/Clock.h (limited to 'src/displayapp/screens/Clock.h') diff --git a/src/displayapp/screens/Clock.h b/src/displayapp/screens/Clock.h deleted file mode 100644 index e67c0260..00000000 --- a/src/displayapp/screens/Clock.h +++ /dev/null @@ -1,63 +0,0 @@ -#pragma once - -#include -#include -#include -#include "displayapp/Controllers.h" -#include "displayapp/screens/Screen.h" -#include "displayapp/Apps.h" -#include "Symbols.h" - -namespace Pinetime { - namespace Controllers { - class Settings; - class Battery; - class Ble; - class NotificationManager; - class MotionController; - class DateTime; - class HeartRateController; - class WeatherService; - class FS; - } - - namespace Applications { - namespace Screens { - class Clock : public Screen { - public: - Clock(Controllers::DateTime& dateTimeController, - const Controllers::Battery& batteryController, - const Controllers::Ble& bleController, - Controllers::NotificationManager& notificationManager, - Controllers::Settings& settingsController, - Controllers::HeartRateController& heartRateController, - Controllers::MotionController& motionController, - Controllers::WeatherService& weatherService, - Controllers::FS& filesystem); - ~Clock() override; - - bool OnTouchEvent(TouchEvents event) override; - bool OnButtonPushed() override; - - private: - Controllers::DateTime& dateTimeController; - const Controllers::Battery& batteryController; - const Controllers::Ble& bleController; - Controllers::NotificationManager& notificationManager; - Controllers::Settings& settingsController; - Controllers::HeartRateController& heartRateController; - Controllers::MotionController& motionController; - Controllers::WeatherService& weatherService; - Controllers::FS& filesystem; - - std::unique_ptr screen; - std::unique_ptr WatchFaceDigitalScreen(); - std::unique_ptr WatchFaceAnalogScreen(); - std::unique_ptr WatchFacePineTimeStyleScreen(); - std::unique_ptr WatchFaceTerminalScreen(); - std::unique_ptr WatchFaceInfineatScreen(); - std::unique_ptr WatchFaceCasioStyleG7710(); - }; - } - } -} -- cgit v1.2.3-70-g09d2