You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
926B

  1. #include "../Bidoo/src/plugin.hpp"
  2. #undef ModuleWidget
  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. json_t* BidooModule::dataToJson() {
  17. return nullptr;
  18. }
  19. void BidooModule::dataFromJson(json_t*) {
  20. }
  21. void BidooWidget::appendContextMenu(Menu*) {
  22. }
  23. void BidooWidget::writeThemeAndContrastAsDefault() {
  24. }
  25. void BidooWidget::readThemeAndContrastFromDefault() {
  26. }
  27. void BidooWidget::prepareThemes(const std::string& filename) {
  28. setPanel(APP->window->loadSvg(filename));
  29. }
  30. void BidooWidget::step() {
  31. CardinalModuleWidget::step();
  32. }