Add option to press buttons in the properties dialog of filters

This commit is contained in:
WarmUpTill
2024-03-27 14:52:09 +01:00
committed by WarmUpTill
parent 14dd390680
commit 6b4bcc074a
13 changed files with 174 additions and 117 deletions

View File

@@ -0,0 +1,25 @@
#pragma once
#include <obs.hpp>
#include <QComboBox>
#include <qmetatype.h>
#include <string>
#include <vector>
namespace advss {
struct SourceSettingButton {
bool Save(obs_data_t *obj) const;
bool Load(obs_data_t *obj);
std::string ToString() const;
std::string id = "";
std::string description = "";
};
std::vector<SourceSettingButton> GetSourceButtons(OBSWeakSource source);
void PressSourceButton(const SourceSettingButton &button, obs_source_t *source);
void PopulateSourceButtonSelection(QComboBox *list, OBSWeakSource source);
} // namespace advss
Q_DECLARE_METATYPE(advss::SourceSettingButton);