Add GUI widgets for free text messages from SuperFox.

This commit is contained in:
Joe Taylor 2024-03-22 15:02:40 -04:00
parent 2ec0a54d2a
commit b12d5488ff
3 changed files with 173 additions and 159 deletions

View File

@ -9872,6 +9872,14 @@ void MainWindow::on_pbFoxReset_clicked()
} }
} }
void MainWindow::on_pbFreeText_clicked()
{
bool ok;
m_freeTextMsg = QInputDialog::getText (this, tr("Free Text Message"),
tr("Message:"), QLineEdit::Normal, m_freeTextMsg0, &ok);
if(ok) m_freeTextMsg0=m_freeTextMsg;
}
void MainWindow::on_comboBoxHoundSort_activated(int index) void MainWindow::on_comboBoxHoundSort_activated(int index)
{ {
if(index!=-99) houndCallers(); //Silence compiler warning if(index!=-99) houndCallers(); //Silence compiler warning

View File

@ -329,6 +329,7 @@ private slots:
void on_sbF_High_valueChanged(int n); void on_sbF_High_valueChanged(int n);
void chk_FST4_freq_range(); void chk_FST4_freq_range();
void on_pbFoxReset_clicked(); void on_pbFoxReset_clicked();
void on_pbFreeText_clicked();
void FoxReset(QString reason); void FoxReset(QString reason);
void on_comboBoxHoundSort_activated (int index); void on_comboBoxHoundSort_activated (int index);
void not_GA_warning_message (); void not_GA_warning_message ();
@ -676,6 +677,8 @@ private:
QString m_BestCQpriority; QString m_BestCQpriority;
QString m_deCall; QString m_deCall;
QString m_deGrid; QString m_deGrid;
QString m_freeTextMsg;
QString m_freeTextMsg0;
QString m_ready2call[50]; QString m_ready2call[50];
QString m_callers[50]; QString m_callers[50];

View File

@ -42,6 +42,7 @@
<property name="font"> <property name="font">
<font> <font>
<pointsize>10</pointsize> <pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold> <bold>false</bold>
</font> </font>
</property> </property>
@ -185,6 +186,7 @@
<property name="font"> <property name="font">
<font> <font>
<pointsize>10</pointsize> <pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold> <bold>false</bold>
</font> </font>
</property> </property>
@ -2054,15 +2056,15 @@ Double-click to reset to the standard 73 message</string>
<number>4</number> <number>4</number>
</property> </property>
<item row="0" column="0" rowspan="2"> <item row="0" column="0" rowspan="2">
<layout class="QGridLayout" name="gridLayout" columnstretch="2,2,1"> <layout class="QGridLayout" name="gridLayout" columnstretch="2,0,0">
<property name="topMargin"> <property name="topMargin">
<number>0</number> <number>0</number>
</property> </property>
<property name="horizontalSpacing"> <property name="horizontalSpacing">
<number>6</number> <number>6</number>
</property> </property>
<item row="1" column="2"> <item row="3" column="2">
<widget class="QComboBox" name="comboBoxHoundSort"> <widget class="QSpinBox" name="sbMax_dB">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -2075,37 +2077,18 @@ Double-click to reset to the standard 73 message</string>
<height>16777215</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="currentText"> <property name="prefix">
<string>Random</string> <string>Max dB </string>
</property> </property>
<property name="maxVisibleItems"> <property name="minimum">
<number>5</number> <number>-15</number>
</property> </property>
<item> <property name="maximum">
<property name="text"> <number>70</number>
<string>Random</string>
</property> </property>
</item> <property name="value">
<item> <number>30</number>
<property name="text">
<string>Call</string>
</property> </property>
</item>
<item>
<property name="text">
<string>Grid</string>
</property>
</item>
<item>
<property name="text">
<string>S/N (dB)</string>
</property>
</item>
<item>
<property name="text">
<string>Distance</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item row="0" column="0"> <item row="0" column="0">
@ -2123,6 +2106,57 @@ Double-click to reset to the standard 73 message</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="2">
<widget class="QSpinBox" name="sbNslots">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="suffix">
<string/>
</property>
<property name="prefix">
<string>N Slots </string>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>5</number>
</property>
<property name="value">
<number>1</number>
</property>
<property name="displayIntegerBase">
<number>10</number>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label_inProcess">
<property name="text">
<string>In Progress</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="7" column="2">
<widget class="QPushButton" name="pbFoxReset">
<property name="text">
<string>Reset</string>
</property>
</widget>
</item>
<item row="6" column="2"> <item row="6" column="2">
<widget class="QCheckBox" name="cbMoreCQs"> <widget class="QCheckBox" name="cbMoreCQs">
<property name="text"> <property name="text">
@ -2227,6 +2261,94 @@ Double-click to reset to the standard 73 message</string>
</item> </item>
</widget> </widget>
</item> </item>
<item row="1" column="0" rowspan="9">
<widget class="DisplayText" name="houndQueueTextBrowser">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContentsOnFirstShow</enum>
</property>
</widget>
</item>
<item row="1" column="1" rowspan="9">
<widget class="DisplayText" name="foxTxListTextBrowser">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContentsOnFirstShow</enum>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QComboBox" name="comboBoxHoundSort">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="currentText">
<string>Random</string>
</property>
<property name="maxVisibleItems">
<number>5</number>
</property>
<item>
<property name="text">
<string>Random</string>
</property>
</item>
<item>
<property name="text">
<string>Call</string>
</property>
</item>
<item>
<property name="text">
<string>Grid</string>
</property>
</item>
<item>
<property name="text">
<string>S/N (dB)</string>
</property>
</item>
<item>
<property name="text">
<string>Distance</string>
</property>
</item>
</widget>
</item>
<item row="2" column="2"> <item row="2" column="2">
<widget class="QSpinBox" name="sbNlist"> <widget class="QSpinBox" name="sbNlist">
<property name="sizePolicy"> <property name="sizePolicy">
@ -2255,136 +2377,17 @@ Double-click to reset to the standard 73 message</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="2">
<widget class="QSpinBox" name="sbMax_dB">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="prefix">
<string>Max dB </string>
</property>
<property name="minimum">
<number>-15</number>
</property>
<property name="maximum">
<number>70</number>
</property>
<property name="value">
<number>30</number>
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="QSpinBox" name="sbNslots">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="suffix">
<string/>
</property>
<property name="prefix">
<string>N Slots </string>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>5</number>
</property>
<property name="value">
<number>1</number>
</property>
<property name="displayIntegerBase">
<number>10</number>
</property>
</widget>
</item>
<item row="7" column="2">
<widget class="QPushButton" name="pbFoxReset">
<property name="text">
<string>Reset</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label_inProcess">
<property name="text">
<string>In Progress</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="8" column="2"> <item row="8" column="2">
<spacer name="verticalSpacer"> <widget class="QPushButton" name="pbFreeText">
<property name="orientation"> <property name="text">
<enum>Qt::Vertical</enum> <string>Free Text</string>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="1" rowspan="8">
<widget class="DisplayText" name="foxTxListTextBrowser">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContentsOnFirstShow</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" rowspan="8"> <item row="9" column="2">
<widget class="DisplayText" name="houndQueueTextBrowser"> <widget class="QCheckBox" name="cbSend_it">
<property name="sizePolicy"> <property name="text">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding"> <string>Send it</string>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContentsOnFirstShow</enum>
</property> </property>
</widget> </widget>
</item> </item>
@ -3189,7 +3192,7 @@ QPushButton[state=&quot;ok&quot;] {
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>880</width> <width>880</width>
<height>22</height> <height>21</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuFile"> <widget class="QMenu" name="menuFile">