mirror of
https://github.com/sudoxnym/open-hyperion.git
synced 2026-07-13 15:38:36 +00:00
Display E1.31 source string
This commit is contained in:
parent
055a6c83ae
commit
00bc8684c2
2 changed files with 38 additions and 23 deletions
|
|
@ -235,6 +235,7 @@ void OpenRGBE131ReceiverDialog::E131ReceiverThreadFunction()
|
||||||
if((std::chrono::steady_clock::now() - last_update_time) > std::chrono::milliseconds(500))
|
if((std::chrono::steady_clock::now() - last_update_time) > std::chrono::milliseconds(500))
|
||||||
{
|
{
|
||||||
ui->PacketsReceivedValue->setText(QString::number(received_count));
|
ui->PacketsReceivedValue->setText(QString::number(received_count));
|
||||||
|
ui->ReceiverSourceValue->setText(QString::fromLocal8Bit((const char *)packet.frame.source_name, 64));
|
||||||
|
|
||||||
last_update_time = std::chrono::steady_clock::now();
|
last_update_time = std::chrono::steady_clock::now();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,22 @@
|
||||||
<string>Form</string>
|
<string>Form</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="4" column="0" colspan="5">
|
||||||
|
<widget class="QTreeWidget" name="E131TreeView">
|
||||||
|
<column>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">1</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QLabel" name="PacketsReceivedValue">
|
||||||
|
<property name="text">
|
||||||
|
<string>0</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QLabel" name="ReceiverStatusValue">
|
<widget class="QLabel" name="ReceiverStatusValue">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|
@ -27,20 +43,27 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3">
|
<item row="3" column="4">
|
||||||
<widget class="QPushButton" name="ButtonStartReceiver">
|
|
||||||
<property name="text">
|
|
||||||
<string>Start Receiver</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="3">
|
|
||||||
<widget class="QPushButton" name="ButtonStopReceiver">
|
<widget class="QPushButton" name="ButtonStopReceiver">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Stop Receiver</string>
|
<string>Stop Receiver</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="PacketsReceivedLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Packets Received:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="4">
|
||||||
|
<widget class="QPushButton" name="ButtonStartReceiver">
|
||||||
|
<property name="text">
|
||||||
|
<string>Start Receiver</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="ReceiverStatusLabel">
|
<widget class="QLabel" name="ReceiverStatusLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|
@ -48,26 +71,17 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" colspan="4">
|
<item row="0" column="2">
|
||||||
<widget class="QTreeWidget" name="E131TreeView">
|
<widget class="QLabel" name="ReceiverSourceLabel">
|
||||||
<column>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">1</string>
|
|
||||||
</property>
|
|
||||||
</column>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QLabel" name="PacketsReceivedLabel">
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Packets Received:</string>
|
<string>Receiver Source:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="0" column="3">
|
||||||
<widget class="QLabel" name="PacketsReceivedValue">
|
<widget class="QLabel" name="ReceiverSourceValue">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>0</string>
|
<string>Source</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue