TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicvideocontrolwidget.h
Go to the documentation of this file.
1 #ifndef MUSICVIDEOCONTROLWIDGET_H
2 #define MUSICVIDEOCONTROLWIDGET_H
3 
4 /***************************************************************************
5  * This file is part of the TTK Music Player project
6  * Copyright (C) 2015 - 2024 Greedysky Studio
7 
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17 
18  * You should have received a copy of the GNU General Public License along
19  * with this program; If not, see <http://www.gnu.org/licenses/>.
20  ***************************************************************************/
21 
22 #include "musicglobaldefine.h"
23 #include "musicwidgetheaders.h"
24 #include "musicbarragerecord.h"
25 
26 class QPushButton;
31 class MusicSearchEdit;
32 
37 {
38  Q_OBJECT
40 public:
44  explicit MusicVideoControlWidget(QWidget *parent = nullptr);
49 
53  void setValue(qint64 position) const;
57  void durationChanged(qint64 duration) const;
61  void setButtonStyle(bool style) const;
65  void mediaChanged(const QString &url);
69  void setFixedSize(int w, int h);
73  void setQualityActionState();
74 
75 Q_SIGNALS:
79  void mediaUrlChanged(const QString &data);
83  void sliderValueChanged(int value);
84 
88  void pushBarrageChanged(bool on);
92  void addBarrageChanged(const MusicBarrageRecord &record);
93 
94 public Q_SLOTS:
98  void pushBarrageClicked();
102  void sendBarrageClicked();
103 
104 private:
108  QWidget *createVideoBarrageWidget();
109 
111  QPushButton *m_playButton;
115 
117  QPushButton *m_pushBarrage, *m_barrageSend;
120 
121 };
122 
123 #endif // MUSICVIDEOCONTROLWIDGET_H
MusicMovingLabelSlider * m_timeSlider
#define TTK_MODULE_EXPORT
The class of the search line edit widget.
The class of the video varrage style popup widget.
The class of the video controller.
The class of the slider that can show such as tooltip.
MusicVideoBarrageStylePopWidget * m_menuBarrage
The class of the barrage record item.
The class of the video quality popup widget.
MusicVolumePopWidget * m_volumeButton
The class of the volume popup widget.
#define TTK_DECLARE_MODULE(Class)
Definition: ttkqtglobal.h:152
MusicVideoQualityPopWidget * m_qualityButton