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.

40 lines
837B

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