| 772 | } |
| 773 | |
| 774 | void 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 | |
| 789 | void ModuleWidget::appendDisconnectActions(history::ComplexAction* complexAction) { |
| 790 | for (PortWidget* pw : getPorts()) { |
no test coverage detected