Make device type combobox work
This commit is contained in:
+20
-20
@@ -11,7 +11,7 @@ DmxController::DmxController(QObject *parent) :
|
||||
m_lastInfo{QDateTime::currentDateTime()},
|
||||
m_counter{},
|
||||
m_lightProject {
|
||||
.lightTypes {
|
||||
.deviceTypes {
|
||||
{
|
||||
.id=0,
|
||||
.name="Stairville MH-X50+"
|
||||
@@ -20,13 +20,13 @@ DmxController::DmxController(QObject *parent) :
|
||||
.id=1,
|
||||
.name="RGBW Strahler",
|
||||
.registers {
|
||||
LightTypeRegisterConfig { .type = LightTypeRegisterType::Dimmer },
|
||||
LightTypeRegisterConfig { .type = LightTypeRegisterType::Red },
|
||||
LightTypeRegisterConfig { .type = LightTypeRegisterType::Green },
|
||||
LightTypeRegisterConfig { .type = LightTypeRegisterType::Blue },
|
||||
LightTypeRegisterConfig { .type = LightTypeRegisterType::White },
|
||||
LightTypeRegisterConfig { .type = LightTypeRegisterType::Strobo },
|
||||
LightTypeRegisterConfig { .type = LightTypeRegisterType::Dummy }
|
||||
DeviceTypeRegisterConfig { .type = DeviceTypeRegisterType::Dimmer },
|
||||
DeviceTypeRegisterConfig { .type = DeviceTypeRegisterType::Red },
|
||||
DeviceTypeRegisterConfig { .type = DeviceTypeRegisterType::Green },
|
||||
DeviceTypeRegisterConfig { .type = DeviceTypeRegisterType::Blue },
|
||||
DeviceTypeRegisterConfig { .type = DeviceTypeRegisterType::White },
|
||||
DeviceTypeRegisterConfig { .type = DeviceTypeRegisterType::Strobo },
|
||||
DeviceTypeRegisterConfig { .type = DeviceTypeRegisterType::Dummy }
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -38,18 +38,18 @@ DmxController::DmxController(QObject *parent) :
|
||||
.name="Nebelmaschine"
|
||||
}
|
||||
},
|
||||
.lights {
|
||||
{ .id=0, .name="Lampe 1", .lightTypeId=1, .address=32, .position{1,0,0} },
|
||||
{ .id=1, .name="Lampe 2", .lightTypeId=1, .address=0, .position{2,0,0} },
|
||||
{ .id=2, .name="Lampe 3", .lightTypeId=1, .address=7, .position{3,0,0} },
|
||||
{ .id=3, .name="Lampe 4", .lightTypeId=1, .address=14 },
|
||||
{ .id=4, .name="Moving Head 1", .lightTypeId=0, .address=40 },
|
||||
{ .id=5, .name="Moving Head 2", .lightTypeId=0, .address=43 },
|
||||
{ .id=6, .name="Moving Head 3", .lightTypeId=0, .address=46 },
|
||||
{ .id=7, .name="Moving Head 4", .lightTypeId=0, .address=49 },
|
||||
{ .id=8, .name="Test 1", .lightTypeId=2, .address=70 },
|
||||
{ .id=9, .name="Test 2", .lightTypeId=2, .address=72 },
|
||||
{ .id=10, .name="Nebelmaschine", .lightTypeId=3, .address=80 }
|
||||
.devices {
|
||||
{ .id=0, .name="Lampe 1", .deviceTypeId=1, .address=32, .position{1,0,0} },
|
||||
{ .id=1, .name="Lampe 2", .deviceTypeId=1, .address=0, .position{2,0,0} },
|
||||
{ .id=2, .name="Lampe 3", .deviceTypeId=1, .address=7, .position{3,0,0} },
|
||||
{ .id=3, .name="Lampe 4", .deviceTypeId=1, .address=14 },
|
||||
{ .id=4, .name="Moving Head 1", .deviceTypeId=0, .address=40 },
|
||||
{ .id=5, .name="Moving Head 2", .deviceTypeId=0, .address=43 },
|
||||
{ .id=6, .name="Moving Head 3", .deviceTypeId=0, .address=46 },
|
||||
{ .id=7, .name="Moving Head 4", .deviceTypeId=0, .address=49 },
|
||||
{ .id=8, .name="Test 1", .deviceTypeId=2, .address=70 },
|
||||
{ .id=9, .name="Test 2", .deviceTypeId=2, .address=72 },
|
||||
{ .id=10, .name="Nebelmaschine", .deviceTypeId=3, .address=80 }
|
||||
}
|
||||
}
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user