Handles the Rack patch file state.
More...
#include <patch.hpp>
Handles the Rack patch file state.
◆ Manager()
PRIVATE rack::patch::Manager::Manager |
( |
| ) |
|
◆ ~Manager()
PRIVATE rack::patch::Manager::~Manager |
( |
| ) |
|
◆ launch()
PRIVATE void rack::patch::Manager::launch |
( |
std::string | pathArg | ) |
|
◆ clear()
void rack::patch::Manager::clear |
( |
| ) |
|
◆ save()
void rack::patch::Manager::save |
( |
std::string | path | ) |
|
Saves the patch and nothing else.
◆ saveDialog()
void rack::patch::Manager::saveDialog |
( |
| ) |
|
◆ saveAsDialog()
void rack::patch::Manager::saveAsDialog |
( |
bool | setPath = true | ) |
|
◆ saveTemplateDialog()
void rack::patch::Manager::saveTemplateDialog |
( |
| ) |
|
◆ saveAutosave()
void rack::patch::Manager::saveAutosave |
( |
| ) |
|
◆ clearAutosave()
void rack::patch::Manager::clearAutosave |
( |
| ) |
|
Delete and re-create autosave dir.
◆ cleanAutosave()
void rack::patch::Manager::cleanAutosave |
( |
| ) |
|
Clean up nonexistent module patch storage dirs in autosave dir.
◆ load()
void rack::patch::Manager::load |
( |
std::string | path | ) |
|
Loads a patch and nothing else.
Returns whether the patch was loaded successfully.
◆ loadTemplate()
void rack::patch::Manager::loadTemplate |
( |
| ) |
|
Loads the template patch file.
◆ loadTemplateDialog()
void rack::patch::Manager::loadTemplateDialog |
( |
| ) |
|
◆ hasAutosave()
bool rack::patch::Manager::hasAutosave |
( |
| ) |
|
◆ loadAutosave()
void rack::patch::Manager::loadAutosave |
( |
| ) |
|
Loads the patch from the autosave folder.
Throws if loading failed.
◆ loadAction()
void rack::patch::Manager::loadAction |
( |
std::string | path | ) |
|
Loads a patch, sets the current path, and updates the recent patches.
◆ loadDialog()
void rack::patch::Manager::loadDialog |
( |
| ) |
|
◆ loadPathDialog()
void rack::patch::Manager::loadPathDialog |
( |
std::string | path | ) |
|
◆ revertDialog()
void rack::patch::Manager::revertDialog |
( |
| ) |
|
Asks the user to reload the current patch.
◆ pushRecentPath()
void rack::patch::Manager::pushRecentPath |
( |
std::string | path | ) |
|
◆ disconnectDialog()
void rack::patch::Manager::disconnectDialog |
( |
| ) |
|
◆ toJson()
json_t * rack::patch::Manager::toJson |
( |
| ) |
|
◆ fromJson()
void rack::patch::Manager::fromJson |
( |
json_t * | rootJ | ) |
|
◆ checkUnavailableModulesJson()
bool rack::patch::Manager::checkUnavailableModulesJson |
( |
json_t * | rootJ | ) |
|
Checks if the JSON patch object contains modules not found in the loaded plugins, and launches a dialog box asking the user to cancel loading.
Returns whether the user requests to cancel loading the patch.
◆ internal
Internal* rack::patch::Manager::internal |
◆ path
std::string rack::patch::Manager::path |
The currently loaded patch file path.
◆ autosavePath
std::string rack::patch::Manager::autosavePath |
◆ templatePath
std::string rack::patch::Manager::templatePath |
Path to user template patch.
◆ factoryTemplatePath
std::string rack::patch::Manager::factoryTemplatePath |
Path to factory template patch.
The documentation for this struct was generated from the following file:
- /home/vortico/src/vcv/Rack2/include/patch.hpp