/* * Copyright (c) 2022, cflip * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include class ClockSettingsWidget final : public GUI::SettingsWindow::Tab { C_OBJECT(ClockSettingsWidget) private: ClockSettingsWidget(); virtual void apply_settings() override; virtual void reset_default_values() override; void update_time_format_string(); void update_clock_preview(); RefPtr m_24_hour_radio; RefPtr m_show_seconds_checkbox; RefPtr m_custom_format_input; RefPtr m_clock_preview; RefPtr m_clock_preview_update_timer; String m_time_format; };