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

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