mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 14:05:06 +00:00

SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
27 lines
553 B
C++
27 lines
553 B
C++
/*
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
* Copyright (c) 2019-2020, William McPherson <willmcpherson2@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGUI/Frame.h>
|
|
|
|
class TrackManager;
|
|
|
|
class WaveWidget final : public GUI::Frame {
|
|
C_OBJECT(WaveWidget)
|
|
public:
|
|
virtual ~WaveWidget() override;
|
|
|
|
private:
|
|
explicit WaveWidget(TrackManager&);
|
|
|
|
virtual void paint_event(GUI::PaintEvent&) override;
|
|
|
|
int sample_to_y(int sample) const;
|
|
|
|
TrackManager& m_track_manager;
|
|
};
|