scripts.hpp 907 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #pragma once
  2. #include <QWidget>
  3. #include <QString>
  4. class Ui_ScriptsTool;
  5. class ScriptLogWindow : public QWidget {
  6. Q_OBJECT
  7. QString lines;
  8. bool bottomScrolled = true;
  9. void resizeEvent(QResizeEvent *event) override;
  10. public:
  11. ScriptLogWindow();
  12. ~ScriptLogWindow();
  13. public slots:
  14. void AddLogMsg(int log_level, QString msg);
  15. void ClearWindow();
  16. void Clear();
  17. void ScrollChanged(int val);
  18. };
  19. class ScriptsTool : public QWidget {
  20. Q_OBJECT
  21. Ui_ScriptsTool *ui;
  22. QWidget *propertiesView = nullptr;
  23. public:
  24. ScriptsTool();
  25. ~ScriptsTool();
  26. void RemoveScript(const char *path);
  27. void ReloadScript(const char *path);
  28. void RefreshLists();
  29. public slots:
  30. void on_close_clicked();
  31. void on_addScripts_clicked();
  32. void on_removeScripts_clicked();
  33. void on_reloadScripts_clicked();
  34. void on_scriptLog_clicked();
  35. void on_scripts_currentRowChanged(int row);
  36. void on_pythonPathBrowse_clicked();
  37. };