yolobs-studio/UI/frontend-plugins/frontend-tools/scripts.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.1 KiB
C++
Raw Permalink Normal View History

2019-07-27 12:47:10 +00:00
#pragma once
2018-02-19 19:54:37 +00:00
#include <QWidget>
#include <QString>
class Ui_ScriptsTool;
class ScriptLogWindow : public QWidget {
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 QWidget {
Q_OBJECT
Ui_ScriptsTool *ui;
QWidget *propertiesView = nullptr;
public:
ScriptsTool();
~ScriptsTool();
void RemoveScript(const char *path);
void ReloadScript(const char *path);
void RefreshLists();
2020-10-01 20:15:25 +00:00
void SetScriptDefaults(const char *path);
2018-02-19 19:54:37 +00:00
public slots:
void on_close_clicked();
void on_addScripts_clicked();
void on_removeScripts_clicked();
void on_reloadScripts_clicked();
void on_scriptLog_clicked();
2020-10-01 20:15:25 +00:00
void on_defaults_clicked();
void OpenScriptParentDirectory();
2018-02-19 19:54:37 +00:00
void on_scripts_currentRowChanged(int row);
void on_pythonPathBrowse_clicked();
2020-10-01 20:15:25 +00:00
private slots:
void on_description_linkActivated(const QString &link);
void on_scripts_customContextMenuRequested(const QPoint &pos);
2018-02-19 19:54:37 +00:00
};