soundboard/include/mainwindow.h

36 lines
539 B
C
Raw Normal View History

2021-12-13 00:28:04 +01:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
2021-12-13 14:48:43 +01:00
#include <vector>
2021-12-13 00:28:04 +01:00
2021-12-13 14:48:43 +01:00
#include "config.h"
2021-12-13 00:28:04 +01:00
#include "sound.h"
2021-12-13 14:48:43 +01:00
#include "soundbutton.h"
2021-12-13 00:28:04 +01:00
QT_BEGIN_NAMESPACE
2021-12-13 14:48:43 +01:00
namespace Ui { class Soundboard; }
2021-12-13 00:28:04 +01:00
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
public slots:
2021-12-13 14:48:43 +01:00
void reloadConfig();
signals:
void newStatusMessage(const QString&);
2021-12-13 00:28:04 +01:00
private:
2021-12-13 14:48:43 +01:00
Ui::Soundboard *ui;
std::vector<SoundButton*> soundbuttons;
Config config;
2021-12-13 00:28:04 +01:00
};
#endif // MAINWINDOW_H