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

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