mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 06:37:35 +00:00
Calendar: Add a Calendar settings dialog for the first day of the week
This commit adds a new settings dialog for the Calendar application and applet. It allows the user to specify their preferred first day of the week.
This commit is contained in:
parent
9414525d75
commit
0eceed4fd7
12 changed files with 178 additions and 2 deletions
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2022-2022, Olivier De Cannière <olivier.decanniere96@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibGUI/ComboBox.h>
|
||||
#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();
|
||||
|
||||
RefPtr<GUI::ComboBox> m_first_day_of_week_combobox;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue