diff options
author | Tobias Christiansen <tobyase@serenityos.org> | 2022-10-04 11:36:09 +0200 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-10-04 12:13:54 -0400 |
commit | eca559d65d1f49d0606ef83d66ffe247c037d2e7 (patch) | |
tree | 059175b1a5f3708d2be264798417771f97e28c17 /Userland/Applications/CalendarSettings/CalendarSettingsWidget.h | |
parent | 2a0a274898e8fbae1d37337b50d3b13d70d0f9ae (diff) | |
download | serenity-eca559d65d1f49d0606ef83d66ffe247c037d2e7.zip |
CalendarSettings: Add Weekend-specific settings
In some calendars, weekends start on other days than saturday and can
also have different lengths than 2 days. This patch allows you to set
these values, however they don't do anything yet as Serenity's Calendar
doesn't care about Weekends at the moment.
Diffstat (limited to 'Userland/Applications/CalendarSettings/CalendarSettingsWidget.h')
-rw-r--r-- | Userland/Applications/CalendarSettings/CalendarSettingsWidget.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Applications/CalendarSettings/CalendarSettingsWidget.h b/Userland/Applications/CalendarSettings/CalendarSettingsWidget.h index 494597100a..d3215df51f 100644 --- a/Userland/Applications/CalendarSettings/CalendarSettingsWidget.h +++ b/Userland/Applications/CalendarSettings/CalendarSettingsWidget.h @@ -1,12 +1,12 @@ /* * Copyright (c) 2022-2022, Olivier De Cannière <olivier.decanniere96@gmail.com> + * Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once -#include <LibGUI/ComboBox.h> #include <LibGUI/SettingsWindow.h> class CalendarSettingsWidget final : public GUI::SettingsWindow::Tab { @@ -21,5 +21,7 @@ private: static constexpr Array<StringView, 2> const m_view_modes = { "Month"sv, "Year"sv }; RefPtr<GUI::ComboBox> m_first_day_of_week_combobox; + RefPtr<GUI::ComboBox> m_first_day_of_weekend_combobox; + RefPtr<GUI::SpinBox> m_weekend_length_spinbox; RefPtr<GUI::ComboBox> m_default_view_combobox; }; |