mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03:00
e36e465b41
We need to add another pair of parenthesizes when propagating an initialization of ItemListModel, because a comma in a template argument would work as a separator of macro arguments, leading to a compile error.
31 lines
931 B
C++
31 lines
931 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_ABSTRACT(CalendarSettingsWidget)
|
|
|
|
public:
|
|
static ErrorOr<NonnullRefPtr<CalendarSettingsWidget>> try_create();
|
|
|
|
virtual void apply_settings() override;
|
|
virtual void reset_default_values() override;
|
|
|
|
private:
|
|
CalendarSettingsWidget() = default;
|
|
ErrorOr<void> setup();
|
|
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;
|
|
};
|