MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / randomizeAction

Method randomizeAction

src/override/ModuleWidget.cpp:806–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804}
805
806void ModuleWidget::randomizeAction() {
807 assert(module);
808
809 // history::ModuleChange
810 history::ModuleChange* h = new history::ModuleChange;
811 h->name = "randomize module";
812 h->moduleId = module->id;
813 h->oldModuleJ = toJson();
814
815 APP->engine->randomizeModule(module);
816
817 h->newModuleJ = toJson();
818 APP->history->push(h);
819}
820
821void ModuleWidget::appendDisconnectActions(history::ComplexAction* complexAction) {
822 for (PortWidget* pw : getPorts()) {

Callers 1

createContextMenuMethod · 0.45

Calls 2

randomizeModuleMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected