TTKMusicPlayer  4.3.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicrightareawidget.h
Go to the documentation of this file.
1 #ifndef MUSICRIGHTAREAWIDGET_H
2 #define MUSICRIGHTAREAWIDGET_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 <QWidget>
23 #include "musicglobaldefine.h"
24 
25 class MusicSettingWidget;
28 
29 class MusicLrcAnalysis;
33 
34 namespace Ui {
35  class MusicApplication;
36 }
37 
42 {
43  Q_OBJECT
44 public:
46  {
47  // kugou main submoudle
54  // other moudle
76  };
77 
81  explicit MusicRightAreaWidget(QWidget *parent = nullptr);
86 
90  static MusicRightAreaWidget *instance();
91 
95  void setupUi(Ui::MusicApplication *ui);
96 
100  void startDrawLrc() const;
104  void stopDrawLrc() const;
108  void setCurrentPlayState(bool state) const;
112  bool destopLrcVisible() const;
116  void setInteriorLrcVisible(bool status) const;
120  bool interiorLrcVisible() const;
124  void updateCurrentLrc(qint64 current, qint64 total, bool playState) const;
128  void loadCurrentSongLrc(const QString &name, const QString &path) const;
132  void findTimePosition(qint64 time) const;
136  void checkMetaDataValid(bool mode) const;
140  void showSettingWidget() const;
141 
145  void applyParameter();
149  void resizeWidgetGeometry();
150 
151 public Q_SLOTS:
155  void functionGoBack();
159  void functionClicked(int index, QWidget *widget = nullptr);
160 
161 public Q_SLOTS:
165  void showCommentsFound();
169  void showSimilarFound(const QString &text);
173  void showAlbumFound(const QString &text, const QString &id);
177  void showArtistFound(const QString &text, const QString &id);
181  void showPlaylistFound(const QString &id);
185  void showPlaylistCategoryFound(const QString &id, const QString &value);
189  void showMovieRadioFound(const QVariant &data);
193  void showMovieSearchedFound(const QString &name, const QString &id);
197  void showPersonalRadioFound(const QString &id);
201  void showSongSearchedFound(const QString &text);
205  void showSingleSearchedFound(const QString &id);
206 
207 public Q_SLOTS:
211  void showSongMainWidget();
215  void setDestopLrcVisible(bool visible) const;
219  void setWindowLockedChanged();
223  void setWindowLrcTypeChanged();
227  void videoSetPopup(bool popup);
231  void videoActiveWindow();
235  void videoNeedToClose();
239  void videoFullscreen(bool full);
243  void lrcDisplayAllClicked();
247  void showContainerForWallpaper();
251  void changeDownloadFulllyWidget();
255  void changeDownloadCustumWidget();
256 
257 private:
261  void functionInitialize();
265  void functionCleanup();
269  void createkWebWindow(int type);
270 
271  Ui::MusicApplication *m_ui;
276  QWidget *m_currentWidget;
284 
286 
287 };
288 
289 #endif // MUSICRIGHTAREAWIDGET_H
The class of the interior lrc container.
#define TTK_MODULE_EXPORT
MusicSettingWidget * m_settingWidget
The class of the app main widget.
MusicLrcContainerForDesktop * m_desktopLrc
MusicLrcContainerForWallpaper * m_wallpaperLrc
MusicDownloadStatusModule * m_downloadStatus
const char * name
Definition: http_parser.c:458
The class of the core lrc analysis.
The class of the video play widget.
The class of the show download state object.
MusicLrcAnalysis * m_lrcAnalysis
The class of the setting parameters widget.
The class of the wall paper lrc container.
MusicVideoPlayWidget * m_videoWidget
MusicLrcContainerForInterior * m_interiorLrc
const char int mode
Definition: ioapi.h:135
Ui::MusicApplication * m_ui
The class of the desktop lrc container.
The class of the app right area widget.
static MusicRightAreaWidget * m_instance
state
Definition: http_parser.c:279