summaryrefslogtreecommitdiff
path: root/Userland/Applications/DisplaySettings/DesktopSettingsWidget.h
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-06-30 11:28:16 -0600
committerAndreas Kling <kling@serenityos.org>2021-07-03 12:27:23 +0200
commit5acee4b4d0213a9bcd67fc024615a7356e1e7082 (patch)
treed7f72fa27ed3df18e344eaf40e96179603ae88dd /Userland/Applications/DisplaySettings/DesktopSettingsWidget.h
parent6472ee0effe162ffd0c93ecbd2f7d4282f2cd5f5 (diff)
downloadserenity-5acee4b4d0213a9bcd67fc024615a7356e1e7082.zip
DisplaySettings: Add new Desktop tab with virtual desktop settings
This allows the user to configure the virtual desktop setup as desired.
Diffstat (limited to 'Userland/Applications/DisplaySettings/DesktopSettingsWidget.h')
-rw-r--r--Userland/Applications/DisplaySettings/DesktopSettingsWidget.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Userland/Applications/DisplaySettings/DesktopSettingsWidget.h b/Userland/Applications/DisplaySettings/DesktopSettingsWidget.h
new file mode 100644
index 0000000000..d894756cc5
--- /dev/null
+++ b/Userland/Applications/DisplaySettings/DesktopSettingsWidget.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2020, the SerenityOS developers.
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <LibCore/Timer.h>
+#include <LibGUI/SpinBox.h>
+
+namespace DisplaySettings {
+
+class DesktopSettingsWidget : public GUI::Widget {
+ C_OBJECT(DesktopSettingsWidget);
+
+public:
+ virtual ~DesktopSettingsWidget() override;
+
+ void apply_settings();
+
+private:
+ DesktopSettingsWidget();
+
+ void create_frame();
+ void load_current_settings();
+
+ RefPtr<GUI::SpinBox> m_virtual_desktop_rows_spinbox;
+ RefPtr<GUI::SpinBox> m_virtual_desktop_columns_spinbox;
+};
+
+}