mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 18:55:07 +00:00

Note that the double-click "icon" adapts to the double-click speed and also reacts to double-clicks. :^)
37 lines
1 KiB
C++
37 lines
1 KiB
C++
/*
|
|
* Copyright (c) 2020, Idan Horowitz <idan.horowitz@serenityos.org>
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "DoubleClickArrowWidget.h"
|
|
#include <LibGUI/Button.h>
|
|
#include <LibGUI/Slider.h>
|
|
#include <LibGUI/SpinBox.h>
|
|
#include <LibGUI/Window.h>
|
|
|
|
class MouseSettingsWindow final : public GUI::Window {
|
|
C_OBJECT(MouseSettingsWindow)
|
|
public:
|
|
virtual ~MouseSettingsWindow() override;
|
|
|
|
private:
|
|
MouseSettingsWindow();
|
|
|
|
void update_window_server();
|
|
void reset_default_values();
|
|
|
|
RefPtr<GUI::HorizontalSlider> m_speed_slider;
|
|
RefPtr<GUI::Label> m_speed_label;
|
|
RefPtr<GUI::SpinBox> m_scroll_length_spinbox;
|
|
RefPtr<GUI::HorizontalSlider> m_double_click_speed_slider;
|
|
RefPtr<GUI::Label> m_double_click_speed_label;
|
|
RefPtr<GUI::Button> m_ok_button;
|
|
RefPtr<GUI::Button> m_cancel_button;
|
|
RefPtr<GUI::Button> m_apply_button;
|
|
RefPtr<GUI::Button> m_reset_button;
|
|
RefPtr<MouseSettings::DoubleClickArrowWidget> m_double_click_arrow_widget;
|
|
};
|