Browse Source

Rename RackWidget::getModuleMoveAction() back to getModuleDragAction() for ABI compatibility.

tags/v2.1.0
Andrew Belt 2 years ago
parent
commit
30a31e858b
4 changed files with 6 additions and 6 deletions
  1. +1
    -1
      include/app/RackWidget.hpp
  2. +1
    -1
      src/app/Browser.cpp
  3. +2
    -2
      src/app/ModuleWidget.cpp
  4. +2
    -2
      src/app/RackWidget.cpp

+ 1
- 1
include/app/RackWidget.hpp View File

@@ -70,7 +70,7 @@ struct RackWidget : widget::OpaqueWidget {
std::vector<ModuleWidget*> getModules();
bool hasModules();
void updateModuleOldPositions();
history::ComplexAction* getModuleMoveAction();
history::ComplexAction* getModuleDragAction();

// Module selection methods



+ 1
- 1
src/app/Browser.cpp View File

@@ -95,7 +95,7 @@ static ModuleWidget* chooseModel(plugin::Model* model) {

APP->scene->rack->updateModuleOldPositions();
APP->scene->rack->addModuleAtMouse(moduleWidget);
h->push(APP->scene->rack->getModuleMoveAction());
h->push(APP->scene->rack->getModuleDragAction());

// Load template preset
moduleWidget->loadTemplate();


+ 2
- 2
src/app/ModuleWidget.cpp View File

@@ -442,7 +442,7 @@ void ModuleWidget::onDragEnd(const DragEndEvent& e) {
// The next time the module is dragged, it should always move immediately
internal->dragEnabled = true;

history::ComplexAction* h = APP->scene->rack->getModuleMoveAction();
history::ComplexAction* h = APP->scene->rack->getModuleDragAction();
if (!h->isEmpty())
APP->history->push(h);
else
@@ -818,7 +818,7 @@ void ModuleWidget::cloneAction(bool cloneCables) {
ModuleWidget* clonedModuleWidget = model->createModuleWidget(clonedModule);
APP->scene->rack->updateModuleOldPositions();
APP->scene->rack->addModuleAtMouse(clonedModuleWidget);
h->push(APP->scene->rack->getModuleMoveAction());
h->push(APP->scene->rack->getModuleDragAction());

// history::ModuleAdd
history::ModuleAdd* hma = new history::ModuleAdd;


+ 2
- 2
src/app/RackWidget.cpp View File

@@ -543,7 +543,7 @@ void RackWidget::pasteModuleJsonAction(json_t* moduleJ) {

updateModuleOldPositions();
addModuleAtMouse(mw);
h->push(getModuleMoveAction());
h->push(getModuleDragAction());

// history::ModuleAdd
history::ModuleAdd* ha = new history::ModuleAdd;
@@ -822,7 +822,7 @@ void RackWidget::updateModuleOldPositions() {
}
}

history::ComplexAction* RackWidget::getModuleMoveAction() {
history::ComplexAction* RackWidget::getModuleDragAction() {
history::ComplexAction* h = new history::ComplexAction;
h->name = "move modules";



Loading…
Cancel
Save