1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:37:45 +00:00

ClockSettings: Add a GUI application to set the system time zone

This application can be expanded with other clock-related options. For
an initial iteration, it has just an option to change the time zone.
This commit is contained in:
Timothy Flynn 2022-01-20 08:23:55 -05:00 committed by Linus Groh
parent 6057a2ca30
commit d365559839
7 changed files with 177 additions and 0 deletions

View file

@ -0,0 +1,27 @@
/*
* 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;
};