scripts.hpp 893 B

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