mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-06-11 01:08:29 -04:00
Frontend plugins should not require being placed in the frontend directory to be built successfully. Indeed they should only depend on libobs and the obs-frontend-api and thus their source tree should be able to exist anywhere (even standalone) and the plugin should still compile successfully (just like any 3rd party plugin). Thus moving those plugins into the main plugin directory ensures that they don't require on any "special sauce" within the source tree to compile.
65 lines
1.2 KiB
C++
65 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QString>
|
|
#include <memory>
|
|
|
|
class Ui_ScriptsTool;
|
|
|
|
class ScriptLogWindow : public QDialog {
|
|
Q_OBJECT
|
|
|
|
QString lines;
|
|
bool bottomScrolled = true;
|
|
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
|
|
public:
|
|
ScriptLogWindow();
|
|
~ScriptLogWindow();
|
|
|
|
public slots:
|
|
void AddLogMsg(int log_level, QString msg);
|
|
void ClearWindow();
|
|
void Clear();
|
|
void ScrollChanged(int val);
|
|
};
|
|
|
|
class ScriptsTool : public QDialog {
|
|
Q_OBJECT
|
|
|
|
std::unique_ptr<Ui_ScriptsTool> ui;
|
|
QWidget *propertiesView = nullptr;
|
|
|
|
void updatePythonVersionLabel();
|
|
|
|
public:
|
|
ScriptsTool();
|
|
~ScriptsTool();
|
|
|
|
void RemoveScript(const char *path);
|
|
void ReloadScript(const char *path);
|
|
void RefreshLists();
|
|
void SetScriptDefaults(const char *path);
|
|
|
|
public slots:
|
|
void on_close_clicked();
|
|
|
|
void on_addScripts_clicked();
|
|
void on_removeScripts_clicked();
|
|
void on_reloadScripts_clicked();
|
|
void on_editScript_clicked();
|
|
void on_scriptLog_clicked();
|
|
void on_defaults_clicked();
|
|
|
|
void OpenScriptParentDirectory();
|
|
|
|
void on_scripts_currentRowChanged(int row);
|
|
|
|
void on_pythonPathBrowse_clicked();
|
|
|
|
private slots:
|
|
void on_description_linkActivated(const QString &link);
|
|
void on_scripts_customContextMenuRequested(const QPoint &pos);
|
|
};
|