mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 12:19:37 +03:00
eca559d65d
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.
28 lines
812 B
C++
28 lines
812 B
C++
/*
|
|
* 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/SettingsWindow.h>
|
|
|
|
class CalendarSettingsWidget final : public GUI::SettingsWindow::Tab {
|
|
C_OBJECT(CalendarSettingsWidget)
|
|
|
|
public:
|
|
virtual void apply_settings() override;
|
|
virtual void reset_default_values() override;
|
|
|
|
private:
|
|
CalendarSettingsWidget();
|
|
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;
|
|
};
|