2022-07-19 09:32:39 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "ui_OBSBasicVCamConfig.h"
|
|
|
|
|
|
2024-12-02 20:15:10 +01:00
|
|
|
#include <utility/VCamConfig.hpp>
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
2022-08-22 16:04:13 +02:00
|
|
|
|
2022-07-19 09:32:39 -07:00
|
|
|
class OBSBasicVCamConfig : public QDialog {
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
2022-08-22 16:04:13 +02:00
|
|
|
VCamConfig config;
|
2022-08-17 12:02:11 -07: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, QWidget *parent = 0);
|
2022-07-19 09:32:39 -07: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 09:32:39 -07: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 09:32:39 -07:00
|
|
|
};
|