-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmusicpagedirs.h
43 lines (35 loc) · 1.04 KB
/
musicpagedirs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef MUSICPAGEDIRS_H
#define MUSICPAGEDIRS_H
#include <QListWidget>
#include <QMediaPlaylist>
#include <QStackedWidget>
#include <QTableWidget>
#include <QPushButton>
#include "musicpagemusicitem.h"
class MusicPageDirs : public QWidget
{
Q_OBJECT
public:
explicit MusicPageDirs(QList<MusicPageMusicItem> *musicItems, QWidget *parent = nullptr);
signals:
public slots:
void removeSelectedMusics();
void removeMusicItems(QStringList deletedMusicsPath);
void playSelectedMusic();
private slots:
void changeToList(int row);
void backToDirs();
void showMusicContextMenu();
private:
void initMap(QList<MusicPageMusicItem> *musicItems);
void initStack();
void initDirTable(QTableWidget *dirTable);
void setTableRowBackgroud(QTableWidget *dirTable);
void setListItemStyle(QListWidget *list, bool setItemHigh = false);
private:
QPushButton *m_backButton;
QStackedWidget *m_stack;
QMap<QString, QListWidget *> m_dirMap;
QMap<QString, QMediaPlaylist *> m_playlistMap;
};
#endif // MUSICPAGEDIRS_H