MCPcopy Create free account
hub / github.com/VCVRack/Rack / randomizeAction

Method randomizeAction

src/app/ModuleWidget.cpp:774–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

772}
773
774void ModuleWidget::randomizeAction() {
775 assert(module);
776
777 // history::ModuleChange
778 history::ModuleChange* h = new history::ModuleChange;
779 h->name = string::translate("ModuleWidget.history.randomizeModule");
780 h->moduleId = module->id;
781 h->oldModuleJ = toJson();
782
783 APP->engine->randomizeModule(module);
784
785 h->newModuleJ = toJson();
786 APP->history->push(h);
787}
788
789void ModuleWidget::appendDisconnectActions(history::ComplexAction* complexAction) {
790 for (PortWidget* pw : getPorts()) {

Callers 1

createContextMenuMethod · 0.80

Calls 4

translateFunction · 0.85
toJsonFunction · 0.85
randomizeModuleMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected