mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-08 00:34:19 +00:00
This application can be expanded with other clock-related options. For an initial iteration, it has just an option to change the time zone.
28 lines
600 B
C++
28 lines
600 B
C++
/*
|
|
* Copyright (c) 2022, Tim Flynn <trflynn89@pm.me>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/RefPtr.h>
|
|
#include <AK/String.h>
|
|
#include <LibGUI/SettingsWindow.h>
|
|
#include <LibGUI/TextEditor.h>
|
|
#include <LibGUI/Window.h>
|
|
|
|
class ClockSettingsWidget final : public GUI::SettingsWindow::Tab {
|
|
C_OBJECT(ClockSettingsWidget)
|
|
|
|
private:
|
|
ClockSettingsWidget();
|
|
|
|
virtual void apply_settings() override;
|
|
virtual void reset_default_values() override;
|
|
void set_time_zone() const;
|
|
|
|
String m_time_zone;
|
|
RefPtr<GUI::ComboBox> m_time_zone_combo_box;
|
|
};
|