mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-23 10:39:46 -05:00
39 lines
891 B
C++
39 lines
891 B
C++
#pragma once
|
|
#include "macro.hpp"
|
|
|
|
#include <QWidget>
|
|
#include <QDialog>
|
|
#include <QCheckBox>
|
|
#include <obs-data.h>
|
|
|
|
// Global macro properties
|
|
class MacroProperties {
|
|
public:
|
|
void Save(obs_data_t *obj);
|
|
void Load(obs_data_t *obj);
|
|
|
|
bool _highlightExecuted = false;
|
|
bool _highlightConditions = false;
|
|
bool _highlightActions = false;
|
|
bool _newMacroRegisterHotkeys = true;
|
|
};
|
|
|
|
// Dialog for configuring global and macro specific settings
|
|
class MacroPropertiesDialog : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MacroPropertiesDialog(QWidget *parent, const MacroProperties &,
|
|
Macro *macro);
|
|
static bool AskForSettings(QWidget *parent, MacroProperties &userInput,
|
|
Macro *macro);
|
|
|
|
private:
|
|
QCheckBox *_executed;
|
|
QCheckBox *_conditions;
|
|
QCheckBox *_actions;
|
|
QCheckBox *_newMacroRegisterHotkeys;
|
|
// Current macro specific settings
|
|
QCheckBox *_currentMacroRegisterHotkeys;
|
|
};
|