2022-07-19 18:32:39 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <obs.hpp>
|
|
|
|
#include <QDialog>
|
|
|
|
#include <memory>
|
|
|
|
|
2022-08-22 16:04:13 +02:00
|
|
|
#include "window-basic-vcam.hpp"
|
|
|
|
|
2022-07-19 18:32:39 +02:00
|
|
|
#include "ui_OBSBasicVCamConfig.h"
|
|
|
|
|
2022-08-22 16:04:13 +02:00
|
|
|
struct VCamConfig;
|
|
|
|
|
2022-07-19 18:32:39 +02:00
|
|
|
class OBSBasicVCamConfig : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
2022-08-22 16:04:13 +02:00
|
|
|
VCamConfig config;
|
2022-08-17 21:02:11 +02:00
|
|
|
|
2022-11-15 10:00:41 +01:00
|
|
|
bool vcamActive;
|
|
|
|
VCamOutputType activeType;
|
|
|
|
bool requireRestart;
|
|
|
|
|
2022-08-22 16:04:13 +02:00
|
|
|
public:
|
2022-11-15 10:00:41 +01:00
|
|
|
explicit OBSBasicVCamConfig(const VCamConfig &config, bool VCamActive,
|
2022-08-22 16:04:13 +02:00
|
|
|
QWidget *parent = 0);
|
2022-07-19 18:32:39 +02:00
|
|
|
|
|
|
|
private slots:
|
2022-11-15 10:00:41 +01:00
|
|
|
void OutputTypeChanged();
|
2022-08-22 16:04:13 +02:00
|
|
|
void UpdateConfig();
|
2022-07-19 18:32:39 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<Ui::OBSBasicVCamConfig> ui;
|
2022-08-22 16:04:13 +02:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void Accepted(const VCamConfig &config);
|
2022-11-15 10:00:41 +01:00
|
|
|
void AcceptedAndRestart(const VCamConfig &config);
|
2022-07-19 18:32:39 +02:00
|
|
|
};
|