| 1 | #include "../Bidoo/src/plugin.hpp" |
| 2 | |
| 3 | void InstantiateExpanderItem::onAction(const event::Action &e) { |
| 4 | engine::Module* module = model->createModule(); |
| 5 | APP->engine->addModule(module); |
| 6 | ModuleWidget* mw = model->createModuleWidget(module); |
| 7 | if (mw) { |
| 8 | APP->scene->rack->setModulePosNearest(mw, posit); |
| 9 | APP->scene->rack->addModule(mw); |
| 10 | history::ModuleAdd *h = new history::ModuleAdd; |
| 11 | h->name = "create expander module"; |
| 12 | h->setModule(mw); |
| 13 | APP->history->push(h); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | json_t* BidooModule::dataToJson() { |
| 18 | return json_object(); |
nothing calls this directly
no test coverage detected