You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
728B

  1. #pragma once
  2. #include "app/common.hpp"
  3. #include "widgets/OpaqueWidget.hpp"
  4. #include "widgets/ZoomWidget.hpp"
  5. #include "ui/ScrollWidget.hpp"
  6. #include "app/RackWidget.hpp"
  7. #include "app/Toolbar.hpp"
  8. namespace rack {
  9. struct Scene : OpaqueWidget {
  10. ScrollWidget *scrollWidget;
  11. ZoomWidget *zoomWidget;
  12. // Convenience variables for accessing important widgets
  13. RackWidget *rackWidget;
  14. Toolbar *toolbar;
  15. // Version checking
  16. bool checkVersion = true;
  17. bool checkedVersion = false;
  18. std::string latestVersion;
  19. Scene();
  20. void step() override;
  21. void draw(NVGcontext *vg) override;
  22. void onHoverKey(event::HoverKey &e) override;
  23. void onPathDrop(event::PathDrop &e) override;
  24. void runCheckVersion();
  25. };
  26. } // namespace rack