Skip to content

Commit

Permalink
Update GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Nov 1, 2023
1 parent 719670a commit 159a6e9
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 3 deletions.
13 changes: 13 additions & 0 deletions src/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ QStringList MainWindow::set_up_program_() {
list.append("--out-periods");
list.append(t);

t = ui->OutputFormat->currentText();
list.append("--out-format");
list.append(t);

t = ui->InputBuffer->cleanText();
list.append("--in-latency");
list.append(t);
Expand All @@ -330,6 +334,10 @@ QStringList MainWindow::set_up_program_() {
list.append("--in-periods");
list.append(t);

t = ui->InputFormat->currentText();
list.append("--in-format");
list.append(t);

if (!ui->Realtime->isChecked()) {
list.append("--no-rt");
}
Expand Down Expand Up @@ -403,6 +411,11 @@ QStringList MainWindow::set_up_program_() {
list.append("--io-jitter-percentile");
list.append(t);

// IODelay
t = ui->IODelayWindow->cleanText();
list.append("--io-delay-window");
list.append(t);

return list;
}

Expand Down
53 changes: 50 additions & 3 deletions src/gui/MainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@
<property name="minimumSize">
<size>
<width>280</width>
<height>0</height>
<height>15</height>
</size>
</property>
<property name="text">
Expand All @@ -770,7 +770,7 @@
<property name="minimumSize">
<size>
<width>280</width>
<height>0</height>
<height>15</height>
</size>
</property>
<property name="text">
Expand Down Expand Up @@ -1348,11 +1348,14 @@
<item row="0" column="1">
<widget class="QSpinBox" name="IOJitWindow">
<property name="toolTip">
<string>I/O jitter detection window, number of periods</string>
<string>I/O jitter SMA window, number of periods</string>
</property>
<property name="suffix">
<string> periods</string>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>2147483647</number>
</property>
Expand Down Expand Up @@ -1399,6 +1402,50 @@
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="IODelayOptions">
<property name="title">
<string>I/O Delay Estimation</string>
</property>
<layout class="QFormLayout" name="formLayout_9">
<item row="0" column="0">
<widget class="QLabel" name="IODelayWindowLabel">
<property name="minimumSize">
<size>
<width>280</width>
<height>15</height>
</size>
</property>
<property name="text">
<string>I/O Delay Window:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="IODelayWindow">
<property name="toolTip">
<string>I/O delay SMA window, number of periods</string>
</property>
<property name="suffix">
<string> periods</string>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>2147483647</number>
</property>
<property name="value">
<number>250</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
Expand Down

0 comments on commit 159a6e9

Please sign in to comment.