/* * Copyright (c) 2021, JJ Roberts-White * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include class AudioPlayerLoop; class TrackManager; class PlayerWidget final : public GUI::Toolbar { C_OBJECT(PlayerWidget) public: virtual ~PlayerWidget() override = default; void add_track(); void next_track(); void toggle_paused(); private: explicit PlayerWidget(TrackManager&, AudioPlayerLoop&); TrackManager& m_track_manager; AudioPlayerLoop& m_audio_loop; Vector m_track_number_choices; RefPtr m_play_icon; RefPtr m_pause_icon; RefPtr m_back_icon; RefPtr m_next_icon; RefPtr m_add_track_icon; RefPtr m_next_track_icon; RefPtr m_track_dropdown; RefPtr m_play_button; RefPtr m_back_button; RefPtr m_next_button; RefPtr m_add_track_button; RefPtr m_next_track_button; };