auto-scene-switcher.hpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. #include <QDialog>
  3. #include <memory>
  4. #include <vector>
  5. #include <string>
  6. #include "ui_auto-scene-switcher.h"
  7. struct obs_weak_source;
  8. typedef struct obs_weak_source obs_weak_source_t;
  9. class QCloseEvent;
  10. class SceneSwitcher : public QDialog {
  11. Q_OBJECT
  12. public:
  13. std::unique_ptr<Ui_SceneSwitcher> ui;
  14. bool loading = true;
  15. SceneSwitcher(QWidget *parent);
  16. void SetStarted();
  17. void SetStopped();
  18. int FindByData(const QString &window);
  19. void UpdateNonMatchingScene(const QString &name);
  20. public slots:
  21. void on_switches_currentRowChanged(int idx);
  22. void on_close_clicked();
  23. void on_add_clicked();
  24. void on_remove_clicked();
  25. void on_noMatchDontSwitch_clicked();
  26. void on_noMatchSwitch_clicked();
  27. void on_noMatchSwitchScene_currentTextChanged(const QString &text);
  28. void on_checkInterval_valueChanged(int value);
  29. void on_toggleStartButton_clicked();
  30. void finished();
  31. };
  32. void GetWindowList(std::vector<std::string> &windows);
  33. void GetCurrentWindowTitle(std::string &title);
  34. void CleanupSceneSwitcher();