diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-19 21:43:54 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-20 00:03:30 +0200 |
commit | c79e33d00cf82470d9b6b7687911fd3b3276f868 (patch) | |
tree | d8a6c3bb12066c6b3bb28855923266ef017efe01 /Userland/Applications/DisplaySettings/MonitorSettingsWidget.h | |
parent | 540acc1a32950c66af423e69bd51e7dfb0c3b10e (diff) | |
download | serenity-c79e33d00cf82470d9b6b7687911fd3b3276f868.zip |
DisplaySettings: Rename DisplaySettingsWidget => MonitorSettingsWidget
Diffstat (limited to 'Userland/Applications/DisplaySettings/MonitorSettingsWidget.h')
-rw-r--r-- | Userland/Applications/DisplaySettings/MonitorSettingsWidget.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Userland/Applications/DisplaySettings/MonitorSettingsWidget.h b/Userland/Applications/DisplaySettings/MonitorSettingsWidget.h new file mode 100644 index 0000000000..129a3ef185 --- /dev/null +++ b/Userland/Applications/DisplaySettings/MonitorSettingsWidget.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2019-2020, Jesse Buhagiar <jooster669@gmail.com> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include "MonitorWidget.h" +#include <LibCore/Timer.h> +#include <LibGUI/ColorInput.h> +#include <LibGUI/ComboBox.h> +#include <LibGUI/RadioButton.h> + +namespace DisplaySettings { + +class MonitorSettingsWidget : public GUI::Widget { + C_OBJECT(MonitorSettingsWidget); + +public: + void apply_settings(); + +private: + MonitorSettingsWidget(); + + void create_frame(); + void create_resolution_list(); + void load_current_settings(); + + Vector<Gfx::IntSize> m_resolutions; + + RefPtr<DisplaySettings::MonitorWidget> m_monitor_widget; + RefPtr<GUI::ComboBox> m_resolution_combo; + RefPtr<GUI::RadioButton> m_display_scale_radio_1x; + RefPtr<GUI::RadioButton> m_display_scale_radio_2x; +}; + +} |