TTKMusicPlayer  3.7.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 - 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 <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  {
72  };
73 
77  explicit MusicRightAreaWidget(QWidget *parent = nullptr);
82 
86  static MusicRightAreaWidget *instance();
87 
91  void setupUi(Ui::MusicApplication *ui);
92 
96  void startDrawLrc() const;
100  void stopDrawLrc() const;
104  void setCurrentPlayState(bool state) const;
108  bool destopLrcVisible() const;
112  void setInteriorLrcVisible(bool status) const;
116  bool interiorLrcVisible() const;
120  void updateCurrentLrc(qint64 current, qint64 total, bool playState) const;
124  void loadCurrentSongLrc(const QString &name, const QString &path) const;
128  void setSongTimeSpeed(qint64 time) const;
132  void checkMetaDataValid(bool mode) const;
136  void showSettingWidget() const;
140  void artistSearchByID(const QString &id);
144  void albumSearchByID(const QString &id);
148  void movieSearchByID(const QString &id);
152  void movieRadioSearchByID(const QVariant &data);
153 
157  void resizeWindow();
161  void applyParameter();
162 
163 Q_SIGNALS:
167  void updateBackgroundTheme();
171  void updateBackgroundThemeDownload();
172 
173 public Q_SLOTS:
177  void functionGoBack();
181  void functionClicked(int index, QWidget *widget = nullptr);
185  void showSongCommentsWidget();
189  void showSimilarFound(const QString &text);
193  void showAlbumFound(const QString &text, const QString &id);
197  void showArtistCategoryFound();
201  void showArtistSearchFound();
205  void showAlbumSearchFound();
209  void showMovieSearchFound();
213  void showMovieSearchRadioFound();
217  void showArtistFound(const QString &text, const QString &id);
221  void showToplistFound();
225  void showPlaylistFound(const QString &id);
229  void showRecommendFound();
233  void showAdvancedSearchFound();
237  void showSongSearchedFound(const QString &text);
241  void showSingleSearchedFound(const QString &id);
245  void showVideoSearchedFound(const QString &name, const QString &id);
249  void showSongMainWidget();
253  void setDestopLrcVisible(bool visible) const;
257  void setWindowLockedChanged();
261  void setWindowLrcTypeChanged();
265  void videoSetPopup(bool popup);
269  void videoActiveWindow();
273  void videoNeedToClose();
277  void videoFullscreen(bool full);
281  void lrcDisplayAllClicked();
285  void containerForWallpaperClicked();
289  void changeDownloadFulllyWidget();
293  void changeDownloadCustumWidget();
294 
295 private:
299  void functionInitialize();
303  void createkWebWindow(int type);
304 
305  Ui::MusicApplication *m_ui;
306  QVariant m_rawData;
309  QWidget *m_stackedWidget;
318 
320 
321 };
322 
323 #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:152
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