summaryrefslogtreecommitdiff
path: root/Userland/Applications/DisplaySettings/DesktopSettingsWidget.h
blob: d894756cc52593ea8520e4f49e6443104449f3d8 (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
/*
 * 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;
};

}