2021-07-18 21:09:04 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class SlideView : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2021-07-25 01:11:40 -05:00
|
|
|
private:
|
|
|
|
class QTableWidget *m_slideTable = nullptr;
|
|
|
|
class QComboBox *m_songSelector = nullptr;
|
|
|
|
QString m_currentSong;
|
|
|
|
int m_currentSlide = -1;
|
|
|
|
public:
|
|
|
|
explicit SlideView(QWidget *parent = nullptr);
|
2021-07-18 21:09:04 -05:00
|
|
|
|
2021-07-25 01:11:40 -05:00
|
|
|
public slots:
|
|
|
|
void pollUpdate(QString songId, int slideNum);
|
2021-07-18 21:09:04 -05:00
|
|
|
|
2021-07-25 01:11:40 -05:00
|
|
|
void songListUpdate(QStringList songList);
|
|
|
|
|
|
|
|
void slideListUpdate(QStringList tagList, QStringList songList);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void changeSong(int song);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void songChanged(int);
|
|
|
|
|
|
|
|
void slideChanged(int);
|
2021-07-18 21:09:04 -05:00
|
|
|
};
|
|
|
|
|