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
805B

  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. // Version checking
  16. bool checkVersion = true;
  17. bool checkedVersion = false;
  18. std::string latestVersion;
  19. double lastAutoSaveTime = 0.0;
  20. Scene();
  21. ~Scene();
  22. void step() override;
  23. void draw(const DrawArgs &args) override;
  24. void onHoverKey(const event::HoverKey &e) override;
  25. void onPathDrop(const event::PathDrop &e) override;
  26. void runCheckVersion();
  27. };
  28. } // namespace app
  29. } // namespace rack