Move transition type definition

This commit is contained in:
WarmUpTill
2022-10-01 10:49:04 +02:00
committed by WarmUpTill
parent f70ae803a3
commit d2d042bae3
3 changed files with 23 additions and 24 deletions

View File

@@ -3,12 +3,6 @@
#include <QComboBox>
enum class TransitionSelectionType {
TRANSITION,
CURRENT,
ANY,
};
class TransitionSelection {
public:
void Save(obs_data_t *obj, const char *name = "transition",
@@ -16,13 +10,19 @@ public:
void Load(obs_data_t *obj, const char *name = "transition",
const char *typeName = "transitionType");
TransitionSelectionType GetType() { return _type; }
enum class Type {
TRANSITION,
CURRENT,
ANY,
};
Type GetType() { return _type; }
OBSWeakSource GetTransition();
std::string ToString();
private:
OBSWeakSource _transition;
TransitionSelectionType _type = TransitionSelectionType::TRANSITION;
Type _type = Type::TRANSITION;
friend class TransitionSelectionWidget;
};