summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Calendar.h
diff options
context:
space:
mode:
authorTobias Christiansen <tobyase@serenityos.org>2022-10-04 12:37:11 +0200
committerTim Flynn <trflynn89@pm.me>2022-10-04 12:13:54 -0400
commit170b8cad04195ed5b19849a367a11c953312de69 (patch)
tree9e65fc8c899eb963e8ea63a798daf82fd114c827 /Userland/Libraries/LibGUI/Calendar.h
parenteca559d65d1f49d0606ef83d66ffe247c037d2e7 (diff)
downloadserenity-170b8cad04195ed5b19849a367a11c953312de69.zip
LibGUI: Teach Calendar about the new Config Items
Now the Calendar living in LibGUI knows about FirstDayOfWeekend and WeekendLength.
Diffstat (limited to 'Userland/Libraries/LibGUI/Calendar.h')
-rw-r--r--Userland/Libraries/LibGUI/Calendar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/Calendar.h b/Userland/Libraries/LibGUI/Calendar.h
index 56a2c394bf..dea9c5f5a6 100644
--- a/Userland/Libraries/LibGUI/Calendar.h
+++ b/Userland/Libraries/LibGUI/Calendar.h
@@ -1,6 +1,7 @@
/*
* Copyright (c) 2019-2020, Ryan Grieb <ryan.m.grieb@gmail.com>
* Copyright (c) 2020-2022, the SerenityOS developers.
+ * Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -71,6 +72,7 @@ public:
}
virtual void config_string_did_change(String const&, String const&, String const&, String const&) override;
+ virtual void config_i32_did_change(String const&, String const&, String const&, i32 value) override;
Function<void()> on_tile_click;
Function<void()> on_tile_doubleclick;
@@ -146,6 +148,8 @@ private:
Saturday
};
DayOfWeek m_first_day_of_week { DayOfWeek::Sunday };
+ DayOfWeek m_first_day_of_weekend { DayOfWeek::Saturday };
+ int m_weekend_length { 2 };
};
}