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.

40 lines
904B

  1. #include "../Bidoo/src/plugin.hpp"
  2. void InstantiateExpanderItem::onAction(const event::Action &e) {
  3. engine::Module* module = model->createModule();
  4. APP->engine->addModule(module);
  5. ModuleWidget* mw = model->createModuleWidget(module);
  6. if (mw) {
  7. APP->scene->rack->setModulePosNearest(mw, posit);
  8. APP->scene->rack->addModule(mw);
  9. history::ModuleAdd *h = new history::ModuleAdd;
  10. h->name = "create expander module";
  11. h->setModule(mw);
  12. APP->history->push(h);
  13. }
  14. }
  15. json_t* BidooModule::dataToJson() {
  16. return json_object();
  17. }
  18. void BidooModule::dataFromJson(json_t*) {
  19. }
  20. void BidooWidget::appendContextMenu(Menu*) {
  21. }
  22. void BidooWidget::writeThemeAndContrastAsDefault() {
  23. }
  24. void BidooWidget::readThemeAndContrastFromDefault() {
  25. }
  26. void BidooWidget::prepareThemes(const std::string& filename) {
  27. setPanel(APP->window->loadSvg(filename));
  28. }
  29. void BidooWidget::step() {
  30. ModuleWidget::step();
  31. }