#pragma once #include #include #include #include #include namespace rack { namespace app { struct Scene : widget::OpaqueWidget { // Convenience variables for accessing important widgets RackScrollWidget *rackScroll; RackWidget *rack; MenuBar *menuBar; widget::Widget *moduleBrowser; double lastAutoSaveTime = 0.0; // Version checking bool checkVersion = true; bool checkedVersion = false; std::string latestVersion; Scene(); ~Scene(); void step() override; void draw(const DrawArgs &args) override; void onHoverKey(const event::HoverKey &e) override; void onPathDrop(const event::PathDrop &e) override; void runCheckVersion(); }; } // namespace app } // namespace rack