|
@@ -26,6 +26,7 @@
|
|
#include <util/util.hpp>
|
|
#include <util/util.hpp>
|
|
#include <util/platform.h>
|
|
#include <util/platform.h>
|
|
#include <obs-frontend-api.h>
|
|
#include <obs-frontend-api.h>
|
|
|
|
+#include <functional>
|
|
#include <string>
|
|
#include <string>
|
|
#include <memory>
|
|
#include <memory>
|
|
#include <vector>
|
|
#include <vector>
|
|
@@ -58,6 +59,8 @@ public:
|
|
const char *disambiguation, int n) const override;
|
|
const char *disambiguation, int n) const override;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+typedef std::function<void ()> VoidFunc;
|
|
|
|
+
|
|
class OBSApp : public QApplication {
|
|
class OBSApp : public QApplication {
|
|
Q_OBJECT
|
|
Q_OBJECT
|
|
|
|
|
|
@@ -166,6 +169,9 @@ public:
|
|
translatorHooks.pop_front();
|
|
translatorHooks.pop_front();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+public slots:
|
|
|
|
+ void Exec(VoidFunc func);
|
|
|
|
+
|
|
signals:
|
|
signals:
|
|
void StyleChanged();
|
|
void StyleChanged();
|
|
};
|
|
};
|