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.

39 lines
805B

  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. // Convenience variables for accessing important widgets
  11. ScrollWidget *scrollWidget;
  12. ZoomWidget *zoomWidget;
  13. RackWidget *rackWidget;
  14. Toolbar *toolbar;
  15. Widget *moduleBrowser;
  16. // Version checking
  17. bool devMode = false;
  18. bool checkVersion = true;
  19. bool checkedVersion = false;
  20. std::string latestVersion;
  21. Scene();
  22. ~Scene();
  23. void step() override;
  24. void draw(const DrawContext &ctx) override;
  25. void onHoverKey(const event::HoverKey &e) override;
  26. void onPathDrop(const event::PathDrop &e) override;
  27. void runCheckVersion();
  28. };
  29. } // namespace rack