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.

Scene.hpp 817B

123456789101112131415161718192021222324252627282930313233343536373839
  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 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 widget::HoverKeyEvent &e) override;
  25. void onPathDrop(const widget::PathDropEvent &e) override;
  26. void runCheckVersion();
  27. };
  28. } // namespace app
  29. } // namespace rack