2017-09-11 23:35:59 +02:00
|
|
|
#ifndef QUALITYPOPUP_H
|
|
|
|
#define QUALITYPOPUP_H
|
|
|
|
|
|
|
|
#include <QComboBox>
|
|
|
|
#include <QDialogButtonBox>
|
2017-12-17 16:45:15 +01:00
|
|
|
#include <QHBoxLayout>
|
2017-09-11 23:35:59 +02:00
|
|
|
#include <QPushButton>
|
2017-12-17 16:45:15 +01:00
|
|
|
#include <QVBoxLayout>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
#include "basewidget.hpp"
|
2017-09-11 23:35:59 +02:00
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
namespace widgets {
|
|
|
|
|
2017-12-17 16:45:15 +01:00
|
|
|
class QualityPopup : public BaseWidget
|
2017-09-11 23:35:59 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
QualityPopup(const QString &channel, const QString &path, QStringList options);
|
|
|
|
static void showDialog(const QString &channel, const QString &path, QStringList options);
|
2017-12-17 16:45:15 +01:00
|
|
|
|
2017-09-11 23:35:59 +02:00
|
|
|
private:
|
|
|
|
struct {
|
|
|
|
QVBoxLayout vbox;
|
|
|
|
QComboBox selector;
|
|
|
|
QDialogButtonBox buttonBox;
|
|
|
|
QPushButton okButton;
|
|
|
|
QPushButton cancelButton;
|
|
|
|
} ui;
|
2017-12-17 16:45:15 +01:00
|
|
|
|
2017-09-11 23:35:59 +02:00
|
|
|
QString channel;
|
|
|
|
QString path;
|
|
|
|
|
|
|
|
void okButtonClicked();
|
|
|
|
void cancelButtonClicked();
|
|
|
|
};
|
|
|
|
|
2017-12-17 16:45:15 +01:00
|
|
|
} // namespace widgets
|
|
|
|
} // namespace chatterino
|
2017-09-11 23:35:59 +02:00
|
|
|
|
2017-12-17 16:45:15 +01:00
|
|
|
#endif // QUALITYPOPUP_H
|