mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-06 00:26:12 -05:00
- Move condition and action related parts into separate files - Move duration constraint to macro condition - Move duration constraint widget to macro condition edit - Adjust includes
24 lines
400 B
C++
24 lines
400 B
C++
#pragma once
|
|
#include <string>
|
|
#include <QString>
|
|
#include <obs-module.h>
|
|
|
|
class Macro;
|
|
|
|
class MacroRef {
|
|
public:
|
|
MacroRef(){};
|
|
MacroRef(std::string name);
|
|
void UpdateRef();
|
|
void UpdateRef(std::string name);
|
|
void UpdateRef(QString name);
|
|
void Save(obs_data_t *obj);
|
|
void Load(obs_data_t *obj);
|
|
Macro *get();
|
|
Macro *operator->();
|
|
|
|
private:
|
|
std::string _name = "";
|
|
Macro *_ref = nullptr;
|
|
};
|