mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +00:00
ClockSettings: Display a map to show the current time zone's location
This commit is contained in:
parent
35cacb850a
commit
4d2ea773db
5 changed files with 97 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/RefPtr.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibGUI/SettingsWindow.h>
|
||||
|
@ -18,10 +19,19 @@ class ClockSettingsWidget final : public GUI::SettingsWindow::Tab {
|
|||
private:
|
||||
ClockSettingsWidget();
|
||||
|
||||
virtual void second_paint_event(GUI::PaintEvent&) override;
|
||||
|
||||
virtual void apply_settings() override;
|
||||
virtual void reset_default_values() override;
|
||||
|
||||
void set_time_zone_location();
|
||||
Optional<Gfx::FloatPoint> compute_time_zone_location() const;
|
||||
void set_time_zone() const;
|
||||
|
||||
String m_time_zone;
|
||||
RefPtr<GUI::ComboBox> m_time_zone_combo_box;
|
||||
RefPtr<GUI::ImageWidget> m_time_zone_map;
|
||||
RefPtr<Gfx::Bitmap> m_time_zone_marker;
|
||||
|
||||
Optional<Gfx::FloatPoint> m_time_zone_location;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue