From 80838e4f82068a6e7ad042e06abc073626f4ad69 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Sat, 11 Feb 2023 11:39:18 +0000 Subject: [PATCH] Some more changes --- controllersetup.cpp | 10 +++--- controllersetup.h | 2 +- usbcontroller.cpp | 85 +++++++++++++++++++++------------------------ usbcontroller.h | 2 +- wfmain.cpp | 36 +++++++++---------- 5 files changed, 63 insertions(+), 72 deletions(-) diff --git a/controllersetup.cpp b/controllersetup.cpp index fc0da28..8bd9831 100644 --- a/controllersetup.cpp +++ b/controllersetup.cpp @@ -132,7 +132,8 @@ void controllerSetup::onEventIndexChanged(int index) { currentButton->onCommand = &commands->at(onEvent->currentData().toInt()); currentButton->onText->setPlainText(currentButton->onCommand->text); } - emit programButtons(); // Signal that any button programming on the device should be completed. + // Signal that any button programming on the device should be completed. + emit programButton(onEvent->currentData().toInt(), currentButton->onCommand->text); } @@ -143,7 +144,6 @@ void controllerSetup::offEventIndexChanged(int index) { currentButton->offCommand = &commands->at(offEvent->currentData().toInt()); currentButton->offText->setPlainText(currentButton->offCommand->text); } - emit programButtons(); // Signal that any button programming on the device should be completed. } void controllerSetup::knobEventIndexChanged(int index) { @@ -153,7 +153,6 @@ void controllerSetup::knobEventIndexChanged(int index) { currentKnob->command = &commands->at(knobEvent->currentData().toInt()); currentKnob->text->setPlainText(currentKnob->command->text); } - emit programButtons(); // Signal that any button programming on the device should be completed. } @@ -164,7 +163,7 @@ void controllerSetup::newDevice(unsigned char devType, QVector