TTKMusicPlayer  4.3.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 - 2026 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
39 public:
43  explicit MusicVideoControlWidget(QWidget *parent = nullptr);
48 
52  void setValue(qint64 position) const;
56  void durationChanged(qint64 duration) const;
60  void setButtonStyle(bool style) const;
64  void mediaChanged(const QString &url);
68  void setFixedSize(int w, int h);
72  void setQualityActionState();
73 
74 Q_SIGNALS:
78  void mediaUrlChanged(const QString &data);
82  void sliderValueChanged(int value);
83 
87  void pushBarrageChanged(bool on);
91  void addBarrageChanged(const MusicBarrageRecord &record);
92 
93 public Q_SLOTS:
97  void pushBarrageClicked();
101  void sendBarrageClicked();
102 
103 private:
107  QWidget *createVideoBarrageWidget();
108 
110  QPushButton *m_playButton;
114 
116  QPushButton *m_pushBarrage, *m_barrageSend;
119 
120 };
121 
122 #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.
MusicVideoQualityPopWidget * m_qualityButton