diff options
author | kugiigi <kugi_eusebio@protonmail.com> | 2021-03-20 11:52:07 +0800 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-12-19 16:57:38 +0100 |
commit | 63a57fde6677d8f663e5880a259998b95b1da6c5 (patch) | |
tree | cff6527e6f869c465e0b90296e761e246a8a39c6 /include | |
parent | ecaacccacf853059ea4588c44bd13035faaba6af (diff) | |
download | ayatana-indicator-datetime-63a57fde6677d8f663e5880a259998b95b1da6c5.tar.gz ayatana-indicator-datetime-63a57fde6677d8f663e5880a259998b95b1da6c5.tar.bz2 ayatana-indicator-datetime-63a57fde6677d8f663e5880a259998b95b1da6c5.zip |
Add option to show/hide alarms
Diffstat (limited to 'include')
-rw-r--r-- | include/datetime/menu.h | 3 | ||||
-rw-r--r-- | include/datetime/settings-live.h | 1 | ||||
-rw-r--r-- | include/datetime/settings-shared.h | 1 | ||||
-rw-r--r-- | include/datetime/settings.h | 1 |
4 files changed, 5 insertions, 1 deletions
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<Appointment> get_display_appointments( const std::vector<Appointment>&, 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<bool> show_day; core::Property<bool> show_detected_location; core::Property<bool> show_events; + core::Property<bool> show_alarms; core::Property<bool> show_locations; core::Property<bool> show_seconds; core::Property<bool> show_week_numbers; |