From 63a57fde6677d8f663e5880a259998b95b1da6c5 Mon Sep 17 00:00:00 2001 From: kugiigi Date: Sat, 20 Mar 2021 11:52:07 +0800 Subject: Add option to show/hide alarms --- include/datetime/menu.h | 3 ++- include/datetime/settings-live.h | 1 + include/datetime/settings-shared.h | 1 + include/datetime/settings.h | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/datetime/menu.h b/include/datetime/menu.h index 0074ea5..5673bc1 100644 --- a/include/datetime/menu.h +++ b/include/datetime/menu.h @@ -53,7 +53,8 @@ public: static std::vector get_display_appointments( const std::vector&, const DateTime& start, - unsigned int max_items=5); + unsigned int max_items=5, + const bool include_alarms=true); protected: Menu (Profile profile_in, const std::string& name_in); diff --git a/include/datetime/settings-live.h b/include/datetime/settings-live.h index 85071ce..6a923f3 100644 --- a/include/datetime/settings-live.h +++ b/include/datetime/settings-live.h @@ -52,6 +52,7 @@ private: void update_show_day(); void update_show_detected_locations(); void update_show_events(); + void update_show_alarms(); void update_show_locations(); void update_show_seconds(); void update_show_week_numbers(); diff --git a/include/datetime/settings-shared.h b/include/datetime/settings-shared.h index 7280c16..6e97328 100644 --- a/include/datetime/settings-shared.h +++ b/include/datetime/settings-shared.h @@ -40,6 +40,7 @@ TimeFormatMode; #define SETTINGS_SHOW_CALENDAR_S "show-calendar" #define SETTINGS_SHOW_WEEK_NUMBERS_S "show-week-numbers" #define SETTINGS_SHOW_EVENTS_S "show-events" +#define SETTINGS_SHOW_ALARMS_S "show-alarms" #define SETTINGS_SHOW_LOCATIONS_S "show-locations" #define SETTINGS_SHOW_DETECTED_S "show-auto-detected-location" #define SETTINGS_LOCATIONS_S "locations" diff --git a/include/datetime/settings.h b/include/datetime/settings.h index af9227d..29905fd 100644 --- a/include/datetime/settings.h +++ b/include/datetime/settings.h @@ -49,6 +49,7 @@ public: core::Property show_day; core::Property show_detected_location; core::Property show_events; + core::Property show_alarms; core::Property show_locations; core::Property show_seconds; core::Property show_week_numbers; -- cgit v1.2.3