mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00

This is not related to the track controls and it may move into another separate widget in the future. The move also allows to simplify the octave slider callback logic.
34 lines
891 B
C++
34 lines
891 B
C++
/*
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
* Copyright (c) 2019-2020, William McPherson <willmcpherson2@gmail.com>
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "ProcessorParameterWidget/ParameterWidget.h"
|
|
#include <AK/NonnullRefPtrVector.h>
|
|
#include <LibDSP/ProcessorParameter.h>
|
|
#include <LibDSP/Synthesizers.h>
|
|
#include <LibGUI/Frame.h>
|
|
#include <LibGUI/Label.h>
|
|
#include <LibGUI/Widget.h>
|
|
|
|
class TrackManager;
|
|
class MainWidget;
|
|
|
|
class TrackControlsWidget final : public GUI::Frame {
|
|
C_OBJECT(TrackControlsWidget)
|
|
public:
|
|
virtual ~TrackControlsWidget() override = default;
|
|
|
|
private:
|
|
TrackControlsWidget(TrackManager&, MainWidget&);
|
|
|
|
TrackManager& m_track_manager;
|
|
MainWidget& m_main_widget;
|
|
|
|
NonnullRefPtrVector<ProcessorParameterWidget> m_parameter_widgets;
|
|
};
|