TTKMusicPlayer  4.3.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicartistquerywidget.h
Go to the documentation of this file.
1 #ifndef MUSICARTISTQUERYWIDGET_H
2 #define MUSICARTISTQUERYWIDGET_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 
23 
25 
30 {
31  Q_OBJECT
32 public:
36  explicit MusicArtistMvsQueryWidget(QWidget *parent = nullptr);
41 
45  virtual void setCurrentValue(const QString &value) override final;
49  virtual void setCurrentKey(const QString &id) override final;
53  virtual void resizeGeometry() override final;
54 
55 public Q_SLOTS:
59  void createArtistMvsItem(const MusicResultDataItem &item);
63  void currentItemClicked(const MusicResultDataItem &item);
67  void buttonClicked(int index);
68 
69 private:
71  QGridLayout *m_gridLayout;
73 
74 };
75 
76 
81 {
82  Q_OBJECT
83 public:
87  explicit MusicArtistAlbumsQueryWidget(QWidget *parent = nullptr);
92 
96  virtual void setCurrentValue(const QString &value) override final;
100  virtual void setCurrentKey(const QString &id) override final;
104  virtual void resizeGeometry() override final;
105 
106 public Q_SLOTS:
110  void createArtistAlbumsItem(const MusicResultDataItem &item);
114  void currentItemClicked(const MusicResultDataItem &item);
118  void buttonClicked(int index);
119 
120 private:
122  QGridLayout *m_gridLayout;
124 
125 };
126 
127 
132 {
133  Q_OBJECT
134 public:
138  explicit MusicArtistQueryWidget(QWidget *parent = nullptr);
143 
147  virtual void setCurrentValue(const QString &value) override final;
151  virtual void setCurrentKey(const QString &id) override final;
155  virtual void resizeGeometry() override final;
156 
157 public Q_SLOTS:
161  void setCurrentIndex(int index);
165  void queryAllFinished();
169  void queryArtistFinished();
173  void createArtistItem(const MusicResultDataItem &item);
174 
175 private:
179  void createLabels();
180 
183 
184 };
185 
186 #endif // MUSICARTISTQUERYWIDGET_H
#define TTK_MODULE_EXPORT
The class of the search result data item.
The class of the artist albums query widget.
MusicArtistAlbumsQueryWidget * m_artistAlbums
MusicPageQueryWidget * m_pageQueryWidget
MusicPageQueryWidget * m_pageQueryWidget
The class of the artist mvs query widget.
virtual void setCurrentValue(const QString &value)
virtual void setCurrentKey(const QString &id)
The class of the page query widget.
MusicArtistMvsQueryWidget * m_artistMvs
The class of the item query widget base.
The class of the artist music query widget.
virtual void resizeGeometry()=0