summaryrefslogtreecommitdiff
path: root/Userland/Applications/DisplaySettings/DesktopSettingsWidget.h
blob: 189d0bf18cf33b3f92da5828045d9702eb3d6e83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Copyright (c) 2020, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibCore/Timer.h>
#include <LibGUI/SettingsWindow.h>
#include <LibGUI/SpinBox.h>

namespace DisplaySettings {

class DesktopSettingsWidget : public GUI::SettingsWindow::Tab {
    C_OBJECT(DesktopSettingsWidget);

public:
    virtual ~DesktopSettingsWidget() override;

    virtual void apply_settings() override;

private:
    DesktopSettingsWidget();

    void create_frame();
    void load_current_settings();

    RefPtr<GUI::SpinBox> m_workspace_rows_spinbox;
    RefPtr<GUI::SpinBox> m_workspace_columns_spinbox;
};

}