/* * Copyright (c) 2021, kleines Filmröllchen * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "WidgetWithLabel.h" #include #include #include #include constexpr int slider_steps = 256; class ProcessorParameterSlider : public GUI::Slider , public WidgetWithLabel { C_OBJECT(ProcessorParameterSlider); public: ProcessorParameterSlider(Orientation, DSP::ProcessorRangeParameter&, RefPtr); constexpr bool is_logarithmic() const { return m_parameter.is_logarithmic() == DSP::Logarithmic::Yes; } protected: DSP::ProcessorRangeParameter& m_parameter; private: bool m_currently_setting_from_ui { false }; };