mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -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.
38 lines
756 B
C++
38 lines
756 B
C++
#pragma once
|
|
#include "filter-combo-box.hpp"
|
|
|
|
#include <QDialog>
|
|
|
|
namespace advss {
|
|
|
|
class Macro;
|
|
class MacroRef;
|
|
|
|
class ADVSS_EXPORT MacroSelection : public FilterComboBox {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MacroSelection(QWidget *parent);
|
|
void SetCurrentMacro(const MacroRef &);
|
|
void HideSelectedMacro(); // Macro currently being edited
|
|
void ShowAllMacros();
|
|
|
|
private slots:
|
|
void MacroAdd(const QString &name);
|
|
void MacroRemove(const QString &name);
|
|
void MacroRename(const QString &oldName, const QString &newName);
|
|
};
|
|
|
|
class MacroSelectionDialog : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MacroSelectionDialog(QWidget *parent);
|
|
static bool AskForMacro(QWidget *parent, std::string ¯oName);
|
|
|
|
private:
|
|
MacroSelection *_macroSelection;
|
|
};
|
|
|
|
} // namespace advss
|