summaryrefslogtreecommitdiff
path: root/Userland/Applications/Piano/ProcessorParameterWidget/ParameterWidget.h
blob: 89baf3c24c24166c7fd821e0eabdfc83fcfc5128 (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
/*
 * Copyright (c) 2022, kleines Filmröllchen <filmroellchen@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/NonnullRefPtr.h>
#include <AK/StdLibExtraDetails.h>
#include <LibCore/Object.h>
#include <LibDSP/ProcessorParameter.h>
#include <LibGUI/Label.h>
#include <LibGUI/Widget.h>

class ProcessorParameterWidget : public GUI::Widget {
    C_OBJECT(ProcessorParameterWidget)
public:
    ProcessorParameterWidget(DSP::ProcessorParameter& parameter);
    virtual ~ProcessorParameterWidget() = default;

private:
    DSP::ProcessorParameter& m_parameter;
    RefPtr<GUI::Widget> m_parameter_modifier;
    RefPtr<GUI::Label> m_label;
    RefPtr<GUI::Label> m_value_label;
};