obs-studio/UI/window-basic-vcam-config.hpp
tytan652 f41404528a UI: Save virtual camera outside of the modules object
Save the configuration outside of the modules object meant for plugins
in the scene collection.
2022-08-18 02:35:13 -07:00

31 lines
542 B
C++

#pragma once
#include <obs.hpp>
#include <QDialog>
#include <memory>
#include "ui_OBSBasicVCamConfig.h"
class OBSBasicVCamConfig : public QDialog {
Q_OBJECT
public:
static void Init();
static video_t *StartVideo();
static void StopVideo();
static void DestroyView();
static void UpdateOutputSource();
static void SaveData(obs_data_t *data, bool saving);
explicit OBSBasicVCamConfig(QWidget *parent = 0);
private slots:
void OutputTypeChanged(int type);
void Save();
private:
std::unique_ptr<Ui::OBSBasicVCamConfig> ui;
};