2021-06-30 20:28:16 +03:00
|
|
|
/*
|
2022-02-10 22:28:48 +03:00
|
|
|
* Copyright (c) 2020-2022, the SerenityOS developers.
|
2021-06-30 20:28:16 +03:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibCore/Timer.h>
|
2021-11-20 18:28:46 +03:00
|
|
|
#include <LibGUI/SettingsWindow.h>
|
2021-06-30 20:28:16 +03:00
|
|
|
#include <LibGUI/SpinBox.h>
|
|
|
|
|
|
|
|
namespace DisplaySettings {
|
|
|
|
|
2021-11-20 18:28:46 +03:00
|
|
|
class DesktopSettingsWidget : public GUI::SettingsWindow::Tab {
|
2021-06-30 20:28:16 +03:00
|
|
|
C_OBJECT(DesktopSettingsWidget);
|
|
|
|
|
|
|
|
public:
|
2022-02-10 22:28:48 +03:00
|
|
|
virtual ~DesktopSettingsWidget() override = default;
|
2021-06-30 20:28:16 +03:00
|
|
|
|
2021-11-20 18:28:46 +03:00
|
|
|
virtual void apply_settings() override;
|
2021-06-30 20:28:16 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
DesktopSettingsWidget();
|
|
|
|
|
|
|
|
void create_frame();
|
|
|
|
void load_current_settings();
|
|
|
|
|
2021-11-13 14:11:35 +03:00
|
|
|
RefPtr<GUI::SpinBox> m_workspace_rows_spinbox;
|
|
|
|
RefPtr<GUI::SpinBox> m_workspace_columns_spinbox;
|
2021-06-30 20:28:16 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|