| 757 | } |
| 758 | |
| 759 | void ModuleWidget::resetAction() { |
| 760 | assert(module); |
| 761 | |
| 762 | // history::ModuleChange |
| 763 | history::ModuleChange* h = new history::ModuleChange; |
| 764 | h->name = string::translate("ModuleWidget.history.resetModule"); |
| 765 | h->moduleId = module->id; |
| 766 | h->oldModuleJ = toJson(); |
| 767 | |
| 768 | APP->engine->resetModule(module); |
| 769 | |
| 770 | h->newModuleJ = toJson(); |
| 771 | APP->history->push(h); |
| 772 | } |
| 773 | |
| 774 | void ModuleWidget::randomizeAction() { |
| 775 | assert(module); |
no test coverage detected