123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #pragma once
- #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();
- 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_scriptLog_clicked();
- void on_defaults_clicked();
- void on_scripts_currentRowChanged(int row);
- void on_pythonPathBrowse_clicked();
- };
|