mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 01:44:49 -05:00
The "core" macro conditions and actions have been extracted out to the "base" plugin. The library now mostly contains functionality which is required across all plugins and (e.g. definitions for macro segments). The goal is to reduce the complexity and cross-dependencies and group the source files in a better way. This should relsove the "library limit of 65535 objects exceeded" build issue occuring in some Windows build environments.
34 lines
597 B
C++
34 lines
597 B
C++
#pragma once
|
|
#include <QPushButton>
|
|
#include <QTimer>
|
|
|
|
namespace advss {
|
|
|
|
class MacroTree;
|
|
|
|
class MacroRunButton : public QPushButton {
|
|
Q_OBJECT
|
|
public:
|
|
MacroRunButton(QWidget *parent = nullptr);
|
|
void SetMacroTree(MacroTree *);
|
|
|
|
protected:
|
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
|
|
|
private slots:
|
|
void MacroSelectionChanged();
|
|
void Pressed();
|
|
|
|
private:
|
|
void ActivateElseState();
|
|
void DeactivateElseState();
|
|
|
|
bool _macroHasElseActions = false;
|
|
bool _elseStateActive = false;
|
|
bool _shiftHeld = false;
|
|
MacroTree *_macros = nullptr;
|
|
QTimer _timer;
|
|
};
|
|
|
|
} // namespace advss
|