RGBController API changes and segment configuration updates

* Make the Get/Set RGBControler descriptor functions static
  * Add functions for getting the matrix_map_type for zone and segment matrix maps
  * Rename zone resize dialog to zone editor dialog
  * Add additional segment types
  * Add option to import segments configuration from JSON file in zone editor dialog
  * Update device view to be able to display matrix segment types
  * Add matrix map editor dialog for creating/editing segment matrix maps
  * Add option to export segments configuration to JSON file in zone editor dialog
This commit is contained in:
Adam Honse
2026-02-20 00:45:39 -06:00
parent 9d04aaad02
commit 4051c33557
41 changed files with 1919 additions and 1111 deletions

View File

@@ -1194,7 +1194,7 @@ void NetworkClient::ProcessReply_ControllerData(unsigned int data_size, char * d
\*-------------------------------------------------*/
RGBController_Network * new_controller = new RGBController_Network(this, dev_id);
new_controller->SetDeviceDescription((unsigned char *)data, GetProtocolVersion());
RGBController::SetDeviceDescription((unsigned char *)data, new_controller, GetProtocolVersion());
/*-------------------------------------------------*\
| Mark this controller as remote owned |
@@ -1459,7 +1459,7 @@ void NetworkClient::ProcessRequest_RGBController_SignalUpdate(unsigned int data_
| UpdateLEDs() sends color description |
\*-------------------------------------------------*/
case RGBCONTROLLER_UPDATE_REASON_UPDATELEDS:
controller->SetColorDescription((unsigned char *)data_ptr, GetProtocolVersion());
RGBController::SetColorDescription((unsigned char *)data_ptr, controller, GetProtocolVersion());
break;
/*-------------------------------------------------*\
@@ -1474,7 +1474,7 @@ void NetworkClient::ProcessRequest_RGBController_SignalUpdate(unsigned int data_
case RGBCONTROLLER_UPDATE_REASON_HIDDEN:
case RGBCONTROLLER_UPDATE_REASON_UNHIDDEN:
default:
controller->SetDeviceDescription((unsigned char *)data_ptr, GetProtocolVersion());
RGBController::SetDeviceDescription((unsigned char *)data_ptr, controller, GetProtocolVersion());
break;
}