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.

41 lines
839B

  1. #pragma once
  2. #include <app/common.hpp>
  3. #include <widget/OpaqueWidget.hpp>
  4. #include <app/RackScrollWidget.hpp>
  5. #include <app/RackWidget.hpp>
  6. #include <app/MenuBar.hpp>
  7. namespace rack {
  8. namespace app {
  9. struct Scene : widget::OpaqueWidget {
  10. // Convenience variables for accessing important widgets
  11. RackScrollWidget* rackScroll;
  12. RackWidget* rack;
  13. MenuBar* menuBar;
  14. widget::Widget* moduleBrowser;
  15. widget::Widget* frameRateWidget;
  16. double lastAutosaveTime = 0.0;
  17. // Version checking
  18. bool checkVersion = true;
  19. bool checkedVersion = false;
  20. std::string latestVersion;
  21. Scene();
  22. ~Scene();
  23. void step() override;
  24. void draw(const DrawArgs& args) override;
  25. void onHoverKey(const event::HoverKey& e) override;
  26. void onPathDrop(const event::PathDrop& e) override;
  27. void runCheckVersion();
  28. };
  29. } // namespace app
  30. } // namespace rack