TTKMusicPlayer  4.1.3.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 - 2025 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
45 public:
47  {
48  // kugou main submoudle
55  // kugou song submoudle
60  // other moudle
78  };
79 
83  explicit MusicRightAreaWidget(QWidget *parent = nullptr);
88 
92  static MusicRightAreaWidget *instance();
93 
97  void setupUi(Ui::MusicApplication *ui);
98 
102  void startDrawLrc() const;
106  void stopDrawLrc() const;
110  void setCurrentPlayState(bool state) const;
114  bool destopLrcVisible() const;
118  void setInteriorLrcVisible(bool status) const;
122  bool interiorLrcVisible() const;
126  void updateCurrentLrc(qint64 current, qint64 total, bool playState) const;
130  void loadCurrentSongLrc(const QString &name, const QString &path) const;
134  void setSongTimeSpeed(qint64 time) const;
138  void checkMetaDataValid(bool mode) const;
142  void showSettingWidget() const;
146  void artistSearchByID(const QString &id);
150  void albumSearchByID(const QString &id);
154  void movieSearchByID(const QString &id);
158  void movieRadioSearchByID(const QVariant &data);
159 
163  void resizeWindow();
167  void applyParameter();
168 
169 Q_SIGNALS:
173  void updateBackgroundTheme();
177  void updateBackgroundThemeDownload();
178 
179 public Q_SLOTS:
183  void functionGoBack();
187  void functionClicked(int index, QWidget *widget = nullptr);
188 
189 public Q_SLOTS:
193  void showCommentsFound();
197  void showSimilarFound(const QString &text);
201  void showAlbumFound(const QString &text, const QString &id);
205  void showArtistSearchFound();
209  void showAlbumSearchFound();
213  void showMovieSearchFound();
217  void showMovieSearchRadioFound();
221  void showPersonalRadioFound(const QString &id);
225  void showArtistFound(const QString &text, const QString &id);
229  void showPlaylistFound(const QString &id);
233  void showPlaylistCategoryFound(const QString &id, const QString &value);
237  void showSongSearchedFound(const QString &text);
241  void showSingleSearchedFound(const QString &id);
245  void showVideoSearchedFound(const QString &name, const QString &id);
246 
247 public Q_SLOTS:
251  void showSongMainWidget();
255  void setDestopLrcVisible(bool visible) const;
259  void setWindowLockedChanged();
263  void setWindowLrcTypeChanged();
267  void videoSetPopup(bool popup);
271  void videoActiveWindow();
275  void videoNeedToClose();
279  void videoFullscreen(bool full);
283  void lrcDisplayAllClicked();
287  void containerForWallpaperClicked();
291  void changeDownloadFulllyWidget();
295  void changeDownloadCustumWidget();
296 
297 private:
301  void functionInitialize();
305  void createkWebWindow(int type);
306 
307  Ui::MusicApplication *m_ui;
308  QVariant m_rawData;
311  QWidget *m_stackedWidget;
320 
322 
323 };
324 
325 #endif // MUSICRIGHTAREAWIDGET_H
The class of the interior lrc container.
#define TTK_MODULE_EXPORT
MusicDownloadStatusModule * m_downloadStatusObject
MusicSettingWidget * m_settingWidget
The class of the app main widget.
MusicLrcContainerForInterior * m_lrcForInterior
MusicLrcContainerForDesktop * m_lrcForDesktop
MusicLrcContainerForWallpaper * m_lrcForWallpaper
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.
#define TTK_DECLARE_MODULE(Class)
Definition: ttkqtglobal.h:168
MusicLrcAnalysis * m_lrcAnalysis
MusicVideoPlayWidget * m_videoPlayerWidget
The class of the setting parameters widget.
The class of the wall paper lrc container.
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