Fixed show/hide default for time drift
This commit is contained in:
parent
00cede3763
commit
f6edea8753
@ -1673,7 +1673,7 @@ void MainWindow::writeSettings()
|
|||||||
m_settings->setValue("MainSplitter", ui->mainSplitter->saveState());
|
m_settings->setValue("MainSplitter", ui->mainSplitter->saveState());
|
||||||
m_settings->setValue("TextHorizontalSplitter", ui->textHorizontalSplitter->saveState());
|
m_settings->setValue("TextHorizontalSplitter", ui->textHorizontalSplitter->saveState());
|
||||||
m_settings->setValue("TextVerticalSplitter", ui->textVerticalSplitter->saveState());
|
m_settings->setValue("TextVerticalSplitter", ui->textVerticalSplitter->saveState());
|
||||||
m_settings->setValue("ShowTimeDrift", ui->actionShow_Time_Drift_Controls->isChecked());
|
m_settings->setValue("ShowTimeDrift", ui->driftSyncFrame->isVisible());
|
||||||
m_settings->setValue("TimeDrift", ui->driftSpinBox->value());
|
m_settings->setValue("TimeDrift", ui->driftSpinBox->value());
|
||||||
|
|
||||||
m_settings->endGroup();
|
m_settings->endGroup();
|
||||||
@ -1778,7 +1778,7 @@ void MainWindow::readSettings()
|
|||||||
if(!verticalState.isEmpty()){
|
if(!verticalState.isEmpty()){
|
||||||
ui->textVerticalSplitter->restoreState(verticalState);
|
ui->textVerticalSplitter->restoreState(verticalState);
|
||||||
}
|
}
|
||||||
ui->actionShow_Time_Drift_Controls->setChecked(m_settings->value("ShowTimeDrift", false).toBool());
|
ui->driftSyncFrame->setVisible(m_settings->value("ShowTimeDrift", false).toBool());
|
||||||
ui->driftSpinBox->setValue(m_settings->value("TimeDrift", 0).toInt());
|
ui->driftSpinBox->setValue(m_settings->value("TimeDrift", 0).toInt());
|
||||||
|
|
||||||
m_settings->endGroup();
|
m_settings->endGroup();
|
||||||
|
241
mainwindow.ui
241
mainwindow.ui
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>960</width>
|
<width>960</width>
|
||||||
<height>545</height>
|
<height>563</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -1726,126 +1726,125 @@ background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #2ecc71, stop:1 #00FF
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
<widget class="QFrame" name="driftSyncFrame">
|
||||||
<widget class="QFrame" name="driftSyncFrame">
|
<property name="minimumSize">
|
||||||
<property name="minimumSize">
|
<size>
|
||||||
<size>
|
<width>0</width>
|
||||||
<width>0</width>
|
<height>0</height>
|
||||||
<height>0</height>
|
</size>
|
||||||
</size>
|
</property>
|
||||||
</property>
|
<property name="frameShape">
|
||||||
<property name="frameShape">
|
<enum>QFrame::NoFrame</enum>
|
||||||
<enum>QFrame::NoFrame</enum>
|
</property>
|
||||||
</property>
|
<property name="frameShadow">
|
||||||
<property name="frameShadow">
|
<enum>QFrame::Plain</enum>
|
||||||
<enum>QFrame::Plain</enum>
|
</property>
|
||||||
</property>
|
<property name="lineWidth">
|
||||||
<property name="lineWidth">
|
<number>0</number>
|
||||||
<number>0</number>
|
</property>
|
||||||
</property>
|
<layout class="QHBoxLayout" name="horizontalLayout_18">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_18">
|
<property name="leftMargin">
|
||||||
<property name="leftMargin">
|
<number>0</number>
|
||||||
<number>0</number>
|
</property>
|
||||||
</property>
|
<property name="topMargin">
|
||||||
<property name="topMargin">
|
<number>0</number>
|
||||||
<number>0</number>
|
</property>
|
||||||
</property>
|
<property name="rightMargin">
|
||||||
<property name="rightMargin">
|
<number>0</number>
|
||||||
<number>0</number>
|
</property>
|
||||||
</property>
|
<property name="bottomMargin">
|
||||||
<property name="bottomMargin">
|
<number>0</number>
|
||||||
<number>0</number>
|
</property>
|
||||||
</property>
|
<item>
|
||||||
<item>
|
<widget class="QSpinBox" name="driftSpinBox">
|
||||||
<widget class="QSpinBox" name="driftSpinBox">
|
<property name="sizePolicy">
|
||||||
<property name="sizePolicy">
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
<horstretch>0</horstretch>
|
||||||
<horstretch>0</horstretch>
|
<verstretch>0</verstretch>
|
||||||
<verstretch>0</verstretch>
|
</sizepolicy>
|
||||||
</sizepolicy>
|
</property>
|
||||||
</property>
|
<property name="minimumSize">
|
||||||
<property name="minimumSize">
|
<size>
|
||||||
<size>
|
<width>100</width>
|
||||||
<width>100</width>
|
<height>30</height>
|
||||||
<height>30</height>
|
</size>
|
||||||
</size>
|
</property>
|
||||||
</property>
|
<property name="wrapping">
|
||||||
<property name="wrapping">
|
<bool>false</bool>
|
||||||
<bool>false</bool>
|
</property>
|
||||||
</property>
|
<property name="alignment">
|
||||||
<property name="alignment">
|
<set>Qt::AlignCenter</set>
|
||||||
<set>Qt::AlignCenter</set>
|
</property>
|
||||||
</property>
|
<property name="buttonSymbols">
|
||||||
<property name="buttonSymbols">
|
<enum>QAbstractSpinBox::PlusMinus</enum>
|
||||||
<enum>QAbstractSpinBox::PlusMinus</enum>
|
</property>
|
||||||
</property>
|
<property name="suffix">
|
||||||
<property name="suffix">
|
<string> ms</string>
|
||||||
<string> ms</string>
|
</property>
|
||||||
</property>
|
<property name="prefix">
|
||||||
<property name="prefix">
|
<string>Time Drift </string>
|
||||||
<string>Time Drift </string>
|
</property>
|
||||||
</property>
|
<property name="minimum">
|
||||||
<property name="minimum">
|
<number>-15000</number>
|
||||||
<number>-15000</number>
|
</property>
|
||||||
</property>
|
<property name="maximum">
|
||||||
<property name="maximum">
|
<number>15000</number>
|
||||||
<number>15000</number>
|
</property>
|
||||||
</property>
|
<property name="singleStep">
|
||||||
<property name="singleStep">
|
<number>100</number>
|
||||||
<number>100</number>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
</widget>
|
</item>
|
||||||
</item>
|
<item>
|
||||||
<item>
|
<widget class="QPushButton" name="driftSyncButton">
|
||||||
<widget class="QPushButton" name="driftSyncButton">
|
<property name="minimumSize">
|
||||||
<property name="minimumSize">
|
<size>
|
||||||
<size>
|
<width>0</width>
|
||||||
<width>0</width>
|
<height>30</height>
|
||||||
<height>30</height>
|
</size>
|
||||||
</size>
|
</property>
|
||||||
</property>
|
<property name="toolTip">
|
||||||
<property name="toolTip">
|
<string><html><head/><body><p>Observe signals in the waterfall and click this to synchronize your time drift with the start of a TX cycle.</p></body></html></string>
|
||||||
<string><html><head/><body><p>Observe signals in the waterfall and click this to synchronize your time drift with the start of a TX cycle.</p></body></html></string>
|
</property>
|
||||||
</property>
|
<property name="text">
|
||||||
<property name="text">
|
<string>Sync Time Drift to TX Start</string>
|
||||||
<string>Sync Time to TX Start</string>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
</widget>
|
</item>
|
||||||
</item>
|
<item>
|
||||||
<item>
|
<widget class="QPushButton" name="driftSyncEndButton">
|
||||||
<widget class="QPushButton" name="driftSyncEndButton">
|
<property name="minimumSize">
|
||||||
<property name="minimumSize">
|
<size>
|
||||||
<size>
|
<width>0</width>
|
||||||
<width>0</width>
|
<height>30</height>
|
||||||
<height>30</height>
|
</size>
|
||||||
</size>
|
</property>
|
||||||
</property>
|
<property name="toolTip">
|
||||||
<property name="toolTip">
|
<string><html><head/><body><p>Observe signals in the waterfall and click this to synchronize your time drift with the end of a TX cycle.</p></body></html></string>
|
||||||
<string><html><head/><body><p>Observe signals in the waterfall and click this to synchronize your time drift with the end of a TX cycle.</p></body></html></string>
|
</property>
|
||||||
</property>
|
<property name="text">
|
||||||
<property name="text">
|
<string>Sync Time Drift to TX End</string>
|
||||||
<string>Sync Time to TX End</string>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
</widget>
|
</item>
|
||||||
</item>
|
<item>
|
||||||
<item>
|
<widget class="QPushButton" name="driftSyncResetButton">
|
||||||
<widget class="QPushButton" name="driftSyncResetButton">
|
<property name="minimumSize">
|
||||||
<property name="minimumSize">
|
<size>
|
||||||
<size>
|
<width>0</width>
|
||||||
<width>0</width>
|
<height>30</height>
|
||||||
<height>30</height>
|
</size>
|
||||||
</size>
|
</property>
|
||||||
</property>
|
<property name="toolTip">
|
||||||
<property name="toolTip">
|
<string>Reset your time drift to zero.</string>
|
||||||
<string>Reset your time drift to zero.</string>
|
</property>
|
||||||
</property>
|
<property name="text">
|
||||||
<property name="text">
|
<string>Reset Time Drift</string>
|
||||||
<string>Reset Drift</string>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
</widget>
|
</item>
|
||||||
</item>
|
</layout>
|
||||||
</layout>
|
</widget>
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
Reference in New Issue
Block a user