TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicsongitemselectedareawidget.h
Go to the documentation of this file.
1 #ifndef MUSICSONGITEMSELECTEDAREAWIDGET_H
2 #define MUSICSONGITEMSELECTEDAREAWIDGET_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 
24 
29 {
30  Q_OBJECT
32 public:
36  explicit MusicSongItemSelectedTableWidget(QWidget *parent = nullptr);
37 
41  void addCellItems(MusicSongItemList *items);
45  TTKIntList checkedDataList() const;
46 
47 };
48 
49 
50 namespace Ui {
52 }
53 
58 {
59  Q_OBJECT
61 public:
65  explicit MusicSongItemSelectedDialog(QWidget *parent = nullptr);
70 
74  void addCellItems(MusicSongItemList *items);
75 
76 Q_SIGNALS:
80  void itemListChanged(const TTKIntList &items);
81 
82 public Q_SLOTS:
86  void confirmButtonClicked();
87 
88 private:
89  Ui::MusicSongItemSelectedDialog *m_ui;
90 
91 };
92 
93 
94 class TTKClickedLabel;
95 
100 {
101  Q_OBJECT
103 public:
107  explicit MusicSongItemSelectedAreaWidget(QWidget *parent = nullptr);
112 
116  MusicSongList selectedSongItems();
117 
118 Q_SIGNALS:
122  void queryMusicItemList(MusicSongItemList &songs);
126  void confirmChanged();
127 
128 public Q_SLOTS:
132  void modifiedItemButtonClicked();
136  void itemListChanged(const TTKIntList &items);
137 
138 private:
141 
142  QLabel *m_label, *m_itemLabel;
144 
145 };
146 
147 #endif // MUSICSONGITEMSELECTEDAREAWIDGET_H
#define TTK_MODULE_EXPORT
The class of the song item selected dialog widget.
The class of the label widget that can click.
The class of the fill item table widget.
QList< int > TTKIntList
Definition: ttkqtglobal.h:188
The class of the song item selected table widget.
#define TTK_DECLARE_MODULE(Class)
Definition: ttkqtglobal.h:152
The class of the moving dialog base.
Ui::MusicSongItemSelectedDialog * m_ui
The class of the song item selected area widget.