1
0
mirror of https://github.com/gtalent/sc9k.git synced 2025-03-11 23:34:24 -05:00
sc9k/slideview.hpp

40 lines
861 B
C++
Raw Normal View History

2021-07-25 20:19:19 -05:00
/*
* Copyright 2021 gary@drinkingtea.net
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
2021-07-18 21:09:04 -05:00
#pragma once
#include <QWidget>
2021-07-27 21:07:32 -05:00
class SlideView: public QWidget {
2021-07-18 21:09:04 -05:00
Q_OBJECT
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
public slots:
void pollUpdate(QString songId, int slideNum);
2021-07-18 21:09:04 -05:00
void songListUpdate(QStringList songList);
void slideListUpdate(QStringList tagList, QStringList songList);
void reset();
private slots:
void changeSong(int song);
signals:
void songChanged(int);
void slideChanged(int);
2021-07-18 21:09:04 -05:00
};