mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-31 04:50:34 -04:00 
			
		
		
		
	Merge branch 'develop' of bitbucket.org:k1jt/wsjtx into develop
This commit is contained in:
		
						commit
						cb19944508
					
				| @ -1388,7 +1388,9 @@ void Configuration::impl::initialize_models () | |||||||
|   ui_->TX_audio_source_button_group->button (rig_params_.audio_source)->setChecked (true); |   ui_->TX_audio_source_button_group->button (rig_params_.audio_source)->setChecked (true); | ||||||
|   ui_->CAT_poll_interval_spin_box->setValue (rig_params_.poll_interval); |   ui_->CAT_poll_interval_spin_box->setValue (rig_params_.poll_interval); | ||||||
|   ui_->opCallEntry->setText (opCall_); |   ui_->opCallEntry->setText (opCall_); | ||||||
|  |   ui_->udp_server_line_edit->setEnabled(false); | ||||||
|   ui_->udp_server_line_edit->setText (udp_server_name_); |   ui_->udp_server_line_edit->setText (udp_server_name_); | ||||||
|  |   ui_->udp_server_line_edit->setEnabled(true); | ||||||
|   on_udp_server_line_edit_editingFinished (); |   on_udp_server_line_edit_editingFinished (); | ||||||
|   ui_->udp_server_port_spin_box->setValue (udp_server_port_); |   ui_->udp_server_port_spin_box->setValue (udp_server_port_); | ||||||
|   load_network_interfaces (ui_->udp_interfaces_combo_box, udp_interface_names_); |   load_network_interfaces (ui_->udp_interfaces_combo_box, udp_interface_names_); | ||||||
| @ -2449,6 +2451,27 @@ void Configuration::impl::on_udp_server_line_edit_textChanged (QString const&) | |||||||
| 
 | 
 | ||||||
| void Configuration::impl::on_udp_server_line_edit_editingFinished () | void Configuration::impl::on_udp_server_line_edit_editingFinished () | ||||||
| { | { | ||||||
|  |   if (this->isVisible()) | ||||||
|  |   { | ||||||
|  |     int q1,q2,q3,q4; | ||||||
|  |     char tmpbuf[2]; | ||||||
|  |     int n = sscanf(ui_->udp_server_line_edit->text ().trimmed ().toLatin1(), "%d.%d.%d.%d.%1s", &q1, &q2, &q3, &q4, tmpbuf); | ||||||
|  |     const char *iperr; | ||||||
|  |     switch(n) | ||||||
|  |     { | ||||||
|  |       case 0: iperr = "Error before first number";break; | ||||||
|  |       case 1: iperr = "Error between first and second number";break; | ||||||
|  |       case 2: iperr = "Error between second and third number";break; | ||||||
|  |       case 3: iperr = "Error between third and fourth number";break; | ||||||
|  |       case 4: iperr = ""; break; | ||||||
|  |       default: iperr = "Unknown error n=" + n; | ||||||
|  |     } | ||||||
|  |     if (n != 4) | ||||||
|  |     { | ||||||
|  |        MessageBox::warning_message (this, tr ("Error in network address"), tr (iperr)); | ||||||
|  |        return; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|   if (udp_server_name_edited_) |   if (udp_server_name_edited_) | ||||||
|     { |     { | ||||||
|       auto const& server = ui_->udp_server_line_edit->text ().trimmed (); |       auto const& server = ui_->udp_server_line_edit->text ().trimmed (); | ||||||
| @ -2468,6 +2491,7 @@ void Configuration::impl::on_udp_server_line_edit_editingFinished () | |||||||
|           check_multicast (ha); |           check_multicast (ha); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void Configuration::impl::host_info_results (QHostInfo host_info) | void Configuration::impl::host_info_results (QHostInfo host_info) | ||||||
|  | |||||||
| @ -137,6 +137,7 @@ void MessageClient::impl::host_info_results (QHostInfo host_info) | |||||||
|   if (QHostInfo::NoError != host_info.error ()) |   if (QHostInfo::NoError != host_info.error ()) | ||||||
|     { |     { | ||||||
|       Q_EMIT self_->error ("UDP server DNS lookup failed: " + host_info.errorString ()); |       Q_EMIT self_->error ("UDP server DNS lookup failed: " + host_info.errorString ()); | ||||||
|  |       return; | ||||||
|     } |     } | ||||||
|   else |   else | ||||||
|     { |     { | ||||||
|  | |||||||
| @ -444,8 +444,12 @@ QString DXLabSuiteCommanderTransceiver::command_with_reply (QString const& cmd) | |||||||
|   //     qDebug () << i << ":" << hex << int (result[i]);
 |   //     qDebug () << i << ":" << hex << int (result[i]);
 | ||||||
|   //   }
 |   //   }
 | ||||||
| 
 | 
 | ||||||
|  |   if (result != NULL) | ||||||
|  |   { | ||||||
|   CAT_TRACE (cmd << " -> " << QString {result}); |   CAT_TRACE (cmd << " -> " << QString {result}); | ||||||
|   return result;                // converting raw UTF-8 bytes to QString
 |   return result;                // converting raw UTF-8 bytes to QString
 | ||||||
|  |   } | ||||||
|  |   return ""; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool DXLabSuiteCommanderTransceiver::write_to_port (QString const& s) | bool DXLabSuiteCommanderTransceiver::write_to_port (QString const& s) | ||||||
|  | |||||||
| @ -90,6 +90,7 @@ | |||||||
| #include "ExportCabrillo.h" | #include "ExportCabrillo.h" | ||||||
| #include "ui_mainwindow.h" | #include "ui_mainwindow.h" | ||||||
| #include "moc_mainwindow.cpp" | #include "moc_mainwindow.cpp" | ||||||
|  | #include "Logger.hpp" | ||||||
| 
 | 
 | ||||||
| #define FCL fortran_charlen_t | #define FCL fortran_charlen_t | ||||||
| 
 | 
 | ||||||
| @ -1385,7 +1386,9 @@ void MainWindow::set_application_font (QFont const& font) | |||||||
|       QFile sf {sheet}; |       QFile sf {sheet}; | ||||||
|       if (sf.open (QFile::ReadOnly | QFile::Text)) |       if (sf.open (QFile::ReadOnly | QFile::Text)) | ||||||
|         { |         { | ||||||
|           ss = sf.readAll () + ss; |           QString tmp = sf.readAll(); | ||||||
|  |           if (tmp != NULL) ss = sf.readAll () + tmp; | ||||||
|  |           else qDebug() << "tmp==NULL at sf.readAll"; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|   qApp->setStyleSheet (ss + "* {" + font_as_stylesheet (font) + '}'); |   qApp->setStyleSheet (ss + "* {" + font_as_stylesheet (font) + '}'); | ||||||
| @ -4023,7 +4026,8 @@ void MainWindow::readFromStdout()                             //readFromStdout | |||||||
|             if(f.open(QIODevice::ReadOnly | QIODevice::Text)) { |             if(f.open(QIODevice::ReadOnly | QIODevice::Text)) { | ||||||
|               QTextStream s(&f); |               QTextStream s(&f); | ||||||
|               QString t=s.readAll(); |               QString t=s.readAll(); | ||||||
|               m_msgAvgWidget->displayAvg(t); |               if (t != NULL) m_msgAvgWidget->displayAvg(t); | ||||||
|  |               else qDebug() << "tmp==NULL at s.readAll"; | ||||||
|             } |             } | ||||||
|           } |           } | ||||||
|         } |         } | ||||||
| @ -6152,7 +6156,9 @@ void MainWindow::on_addButton_clicked()                       //Add button | |||||||
|                                               // preserve symlinks
 |                                               // preserve symlinks
 | ||||||
|     f1.open (QFile::WriteOnly | QFile::Text); // truncates
 |     f1.open (QFile::WriteOnly | QFile::Text); // truncates
 | ||||||
|     f2.seek (0); |     f2.seek (0); | ||||||
|     f1.write (f2.readAll ());                 // copy contents
 |     QByteArray tmp = f2.readAll(); | ||||||
|  |     if (tmp != (const char*)NULL) f1.write (tmp);                 // copy contents
 | ||||||
|  |     else qDebug() << "tmp==NULL at f1.write"; | ||||||
|     f2.remove (); |     f2.remove (); | ||||||
|   } |   } | ||||||
| } | } | ||||||
| @ -7999,7 +8005,7 @@ void MainWindow::on_outAttenuation_valueChanged (int a) | |||||||
|     tt_str = tr ("Transmit digital gain "); |     tt_str = tr ("Transmit digital gain "); | ||||||
|   } |   } | ||||||
|   tt_str += (a ? QString::number (-dBAttn, 'f', 1) : "0") + "dB"; |   tt_str += (a ? QString::number (-dBAttn, 'f', 1) : "0") + "dB"; | ||||||
|   if (!m_block_pwr_tooltip) { |   if (ui->outAttenuation->hasFocus() && !m_block_pwr_tooltip) { | ||||||
|     QToolTip::showText (QCursor::pos (), tt_str, ui->outAttenuation); |     QToolTip::showText (QCursor::pos (), tt_str, ui->outAttenuation); | ||||||
|   } |   } | ||||||
|   QString curBand = ui->bandComboBox->currentText(); |   QString curBand = ui->bandComboBox->currentText(); | ||||||
|  | |||||||
| @ -6,7 +6,7 @@ | |||||||
|    <rect> |    <rect> | ||||||
|     <x>0</x> |     <x>0</x> | ||||||
|     <y>0</y> |     <y>0</y> | ||||||
|     <width>893</width> |     <width>901</width> | ||||||
|     <height>665</height> |     <height>665</height> | ||||||
|    </rect> |    </rect> | ||||||
|   </property> |   </property> | ||||||
| @ -36,7 +36,6 @@ | |||||||
|           <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> | ||||||
| @ -180,7 +179,6 @@ | |||||||
|           <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> | ||||||
| @ -576,75 +574,8 @@ | |||||||
|         </layout> |         </layout> | ||||||
|        </item> |        </item> | ||||||
|        <item> |        <item> | ||||||
|         <layout class="QGridLayout" name="gridLayout_5" rowstretch="1,0,0" columnstretch="0,0,0,0,0,0"> |         <layout class="QGridLayout" name="gridLayout_5" rowstretch="1,0,0" columnstretch="0,0,0,0,1,1,5,0"> | ||||||
|          <item row="1" column="5" rowspan="2"> |          <item row="1" column="4" colspan="2"> | ||||||
|           <widget class="QSlider" name="outAttenuation"> |  | ||||||
|            <property name="toolTip"> |  | ||||||
|             <string>Adjust Tx audio level</string> |  | ||||||
|            </property> |  | ||||||
|            <property name="maximum"> |  | ||||||
|             <number>450</number> |  | ||||||
|            </property> |  | ||||||
|            <property name="value"> |  | ||||||
|             <number>0</number> |  | ||||||
|            </property> |  | ||||||
|            <property name="orientation"> |  | ||||||
|             <enum>Qt::Vertical</enum> |  | ||||||
|            </property> |  | ||||||
|            <property name="invertedAppearance"> |  | ||||||
|             <bool>true</bool> |  | ||||||
|            </property> |  | ||||||
|            <property name="invertedControls"> |  | ||||||
|             <bool>true</bool> |  | ||||||
|            </property> |  | ||||||
|            <property name="tickPosition"> |  | ||||||
|             <enum>QSlider::TicksBelow</enum> |  | ||||||
|            </property> |  | ||||||
|            <property name="tickInterval"> |  | ||||||
|             <number>50</number> |  | ||||||
|            </property> |  | ||||||
|           </widget> |  | ||||||
|          </item> |  | ||||||
|          <item row="2" column="2" colspan="2"> |  | ||||||
|           <widget class="QLabel" name="labUTC"> |  | ||||||
|            <property name="sizePolicy"> |  | ||||||
|             <sizepolicy hsizetype="Preferred" vsizetype="Maximum"> |  | ||||||
|              <horstretch>0</horstretch> |  | ||||||
|              <verstretch>0</verstretch> |  | ||||||
|             </sizepolicy> |  | ||||||
|            </property> |  | ||||||
|            <property name="styleSheet"> |  | ||||||
|             <string notr="true">QLabel { |  | ||||||
|   font-family: MS Shell Dlg 2; |  | ||||||
|   font-size: 16pt; |  | ||||||
|   background-color : black; |  | ||||||
|   color : yellow; |  | ||||||
| }</string> |  | ||||||
|            </property> |  | ||||||
|            <property name="frameShape"> |  | ||||||
|             <enum>QFrame::StyledPanel</enum> |  | ||||||
|            </property> |  | ||||||
|            <property name="frameShadow"> |  | ||||||
|             <enum>QFrame::Sunken</enum> |  | ||||||
|            </property> |  | ||||||
|            <property name="lineWidth"> |  | ||||||
|             <number>2</number> |  | ||||||
|            </property> |  | ||||||
|            <property name="midLineWidth"> |  | ||||||
|             <number>0</number> |  | ||||||
|            </property> |  | ||||||
|            <property name="text"> |  | ||||||
|             <string><html><head/><body><p align="center"> 2015 Jun 17 </p><p align="center"> 01:23:45 </p></body></html></string> |  | ||||||
|            </property> |  | ||||||
|            <property name="alignment"> |  | ||||||
|             <set>Qt::AlignCenter</set> |  | ||||||
|            </property> |  | ||||||
|            <property name="margin"> |  | ||||||
|             <number>5</number> |  | ||||||
|            </property> |  | ||||||
|           </widget> |  | ||||||
|          </item> |  | ||||||
|          <item row="1" column="2" colspan="2"> |  | ||||||
|           <widget class="QWidget" name="DX_controls_widget" native="true"> |           <widget class="QWidget" name="DX_controls_widget" native="true"> | ||||||
|            <property name="sizePolicy"> |            <property name="sizePolicy"> | ||||||
|             <sizepolicy hsizetype="Preferred" vsizetype="Maximum"> |             <sizepolicy hsizetype="Preferred" vsizetype="Maximum"> | ||||||
| @ -921,43 +852,54 @@ | |||||||
|            </layout> |            </layout> | ||||||
|           </widget> |           </widget> | ||||||
|          </item> |          </item> | ||||||
|          <item row="0" column="2" colspan="2"> |          <item row="1" column="7" rowspan="2"> | ||||||
|           <widget class="QLabel" name="labDialFreq"> |           <widget class="QSlider" name="outAttenuation"> | ||||||
|  |            <property name="toolTip"> | ||||||
|  |             <string>Adjust Tx audio level</string> | ||||||
|  |            </property> | ||||||
|  |            <property name="maximum"> | ||||||
|  |             <number>450</number> | ||||||
|  |            </property> | ||||||
|  |            <property name="value"> | ||||||
|  |             <number>0</number> | ||||||
|  |            </property> | ||||||
|  |            <property name="orientation"> | ||||||
|  |             <enum>Qt::Vertical</enum> | ||||||
|  |            </property> | ||||||
|  |            <property name="invertedAppearance"> | ||||||
|  |             <bool>true</bool> | ||||||
|  |            </property> | ||||||
|  |            <property name="invertedControls"> | ||||||
|  |             <bool>true</bool> | ||||||
|  |            </property> | ||||||
|  |            <property name="tickPosition"> | ||||||
|  |             <enum>QSlider::TicksBelow</enum> | ||||||
|  |            </property> | ||||||
|  |            <property name="tickInterval"> | ||||||
|  |             <number>50</number> | ||||||
|  |            </property> | ||||||
|  |           </widget> | ||||||
|  |          </item> | ||||||
|  |          <item row="0" column="7"> | ||||||
|  |           <widget class="QLabel" name="label"> | ||||||
|  |            <property name="text"> | ||||||
|  |             <string> Pwr</string> | ||||||
|  |            </property> | ||||||
|  |           </widget> | ||||||
|  |          </item> | ||||||
|  |          <item row="1" column="2" rowspan="2"> | ||||||
|  |           <layout class="QVBoxLayout" name="verticalLayout_11"> | ||||||
|  |            <property name="spacing"> | ||||||
|  |             <number>6</number> | ||||||
|  |            </property> | ||||||
|  |            <item> | ||||||
|  |             <widget class="QSpinBox" name="sbNB"> | ||||||
|              <property name="sizePolicy"> |              <property name="sizePolicy"> | ||||||
|             <sizepolicy hsizetype="Preferred" vsizetype="Maximum"> |               <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> | ||||||
|                <horstretch>0</horstretch> |                <horstretch>0</horstretch> | ||||||
|                <verstretch>0</verstretch> |                <verstretch>0</verstretch> | ||||||
|               </sizepolicy> |               </sizepolicy> | ||||||
|              </property> |              </property> | ||||||
|            <property name="toolTip"> |  | ||||||
|             <string>USB dial frequency</string> |  | ||||||
|            </property> |  | ||||||
|            <property name="styleSheet"> |  | ||||||
|             <string notr="true">QLabel { |  | ||||||
|   font-family: MS Shell Dlg 2; |  | ||||||
|   font-size: 16pt; |  | ||||||
|    color : yellow; |  | ||||||
|    background-color : black; |  | ||||||
| } |  | ||||||
| QLabel[oob="true"] { |  | ||||||
|   background-color: red; |  | ||||||
| }</string> |  | ||||||
|            </property> |  | ||||||
|            <property name="text"> |  | ||||||
|             <string>14.078 000</string> |  | ||||||
|            </property> |  | ||||||
|            <property name="alignment"> |  | ||||||
|             <set>Qt::AlignCenter</set> |  | ||||||
|            </property> |  | ||||||
|            <property name="margin"> |  | ||||||
|             <number>5</number> |  | ||||||
|            </property> |  | ||||||
|           </widget> |  | ||||||
|          </item> |  | ||||||
|          <item row="1" column="0" rowspan="2"> |  | ||||||
|           <layout class="QVBoxLayout" name="verticalLayout_11"> |  | ||||||
|            <item> |  | ||||||
|             <widget class="QSpinBox" name="sbNB"> |  | ||||||
|              <property name="maximumSize"> |              <property name="maximumSize"> | ||||||
|               <size> |               <size> | ||||||
|                <width>100</width> |                <width>100</width> | ||||||
| @ -981,17 +923,28 @@ QLabel[oob="true"] { | |||||||
|              </property> |              </property> | ||||||
|             </widget> |             </widget> | ||||||
|            </item> |            </item> | ||||||
|  |            <item> | ||||||
|  |             <layout class="QHBoxLayout" name="horizontalLayout_3"> | ||||||
|  |              <property name="spacing"> | ||||||
|  |               <number>0</number> | ||||||
|  |              </property> | ||||||
|              <item> |              <item> | ||||||
|               <widget class="SignalMeter" name="signal_meter_widget"> |               <widget class="SignalMeter" name="signal_meter_widget"> | ||||||
|                <property name="sizePolicy"> |                <property name="sizePolicy"> | ||||||
|               <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> |                 <sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding"> | ||||||
|                  <horstretch>0</horstretch> |                  <horstretch>0</horstretch> | ||||||
|                  <verstretch>0</verstretch> |                  <verstretch>0</verstretch> | ||||||
|                 </sizepolicy> |                 </sizepolicy> | ||||||
|                </property> |                </property> | ||||||
|  |                <property name="minimumSize"> | ||||||
|  |                 <size> | ||||||
|  |                  <width>0</width> | ||||||
|  |                  <height>0</height> | ||||||
|  |                 </size> | ||||||
|  |                </property> | ||||||
|                <property name="maximumSize"> |                <property name="maximumSize"> | ||||||
|                 <size> |                 <size> | ||||||
|                <width>50</width> |                  <width>100</width> | ||||||
|                  <height>16777215</height> |                  <height>16777215</height> | ||||||
|                 </size> |                 </size> | ||||||
|                </property> |                </property> | ||||||
| @ -1015,51 +968,24 @@ Yellow when too low</string> | |||||||
|                </property> |                </property> | ||||||
|               </widget> |               </widget> | ||||||
|              </item> |              </item> | ||||||
|  |              <item> | ||||||
|  |               <spacer name="horizontalSpacer"> | ||||||
|  |                <property name="orientation"> | ||||||
|  |                 <enum>Qt::Horizontal</enum> | ||||||
|  |                </property> | ||||||
|  |                <property name="sizeHint" stdset="0"> | ||||||
|  |                 <size> | ||||||
|  |                  <width>0</width> | ||||||
|  |                  <height>20</height> | ||||||
|  |                 </size> | ||||||
|  |                </property> | ||||||
|  |               </spacer> | ||||||
|  |              </item> | ||||||
|             </layout> |             </layout> | ||||||
|            </item> |            </item> | ||||||
|          <item row="0" column="1" alignment="Qt::AlignHCenter|Qt::AlignVCenter"> |           </layout> | ||||||
|           <widget class="QPushButton" name="readFreq"> |  | ||||||
|            <property name="enabled"> |  | ||||||
|             <bool>false</bool> |  | ||||||
|            </property> |  | ||||||
|            <property name="toolTip"> |  | ||||||
|             <string><html><head/><body><p>If orange or red there has been a rig control failure, click to reset and read the dial frequency.  S implies split mode.</p></body></html></string> |  | ||||||
|            </property> |  | ||||||
|            <property name="accessibleDescription"> |  | ||||||
|             <string>If orange or red there has been a rig control failure, click to reset and read the dial frequency. S implies split mode.</string> |  | ||||||
|            </property> |  | ||||||
|            <property name="styleSheet"> |  | ||||||
|             <string notr="true">QPushButton { |  | ||||||
|  font-family: helvetica; |  | ||||||
|  font-size: 9pt; |  | ||||||
|  font-weight: bold; |  | ||||||
|  background-color: white; |  | ||||||
|  color: black; |  | ||||||
|  border-style: solid; |  | ||||||
|  border-width:1px; |  | ||||||
|  border-radius:10px; |  | ||||||
|  border-color: gray; |  | ||||||
|  max-width:20px; |  | ||||||
|  max-height:20px; |  | ||||||
|  min-width:20px; |  | ||||||
|  min-height:20px; |  | ||||||
| } |  | ||||||
| QPushButton[state="error"] { |  | ||||||
|  background-color: red; |  | ||||||
| } |  | ||||||
| QPushButton[state="warning"] { |  | ||||||
|  background-color: orange; |  | ||||||
| } |  | ||||||
| QPushButton[state="ok"] { |  | ||||||
|  background-color: #00ff00; |  | ||||||
| }</string> |  | ||||||
|            </property> |  | ||||||
|            <property name="text"> |  | ||||||
|             <string>?</string> |  | ||||||
|            </property> |  | ||||||
|           </widget> |  | ||||||
|          </item> |          </item> | ||||||
|          <item row="0" column="4" rowspan="3"> |          <item row="0" column="6" rowspan="3"> | ||||||
|           <widget class="QStackedWidget" name="controls_stack_widget"> |           <widget class="QStackedWidget" name="controls_stack_widget"> | ||||||
|            <property name="sizePolicy"> |            <property name="sizePolicy"> | ||||||
|             <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> |             <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> | ||||||
| @ -2048,9 +1974,6 @@ list. The list can be maintained in Settings (F2).</string> | |||||||
|                         <property name="insertPolicy"> |                         <property name="insertPolicy"> | ||||||
|                          <enum>QComboBox::InsertAtBottom</enum> |                          <enum>QComboBox::InsertAtBottom</enum> | ||||||
|                         </property> |                         </property> | ||||||
|                         <property name="sizeAdjustPolicy"> |  | ||||||
|                          <enum>QComboBox::AdjustToMinimumContentsLength</enum> |  | ||||||
|                         </property> |  | ||||||
|                        </widget> |                        </widget> | ||||||
|                       </item> |                       </item> | ||||||
|                       <item row="5" column="1"> |                       <item row="5" column="1"> | ||||||
| @ -2844,35 +2767,40 @@ Double-click to reset to the standard 73 message</string> | |||||||
|            </widget> |            </widget> | ||||||
|           </widget> |           </widget> | ||||||
|          </item> |          </item> | ||||||
|          <item row="0" column="0"> |          <item row="0" column="4" colspan="2"> | ||||||
|           <widget class="BandComboBox" name="bandComboBox"> |           <widget class="QLabel" name="labDialFreq"> | ||||||
|            <property name="maximumSize"> |            <property name="sizePolicy"> | ||||||
|             <size> |             <sizepolicy hsizetype="Preferred" vsizetype="Maximum"> | ||||||
|              <width>100</width> |              <horstretch>0</horstretch> | ||||||
|              <height>16777215</height> |              <verstretch>0</verstretch> | ||||||
|             </size> |             </sizepolicy> | ||||||
|            </property> |            </property> | ||||||
|            <property name="toolTip"> |            <property name="toolTip"> | ||||||
|             <string><html><head/><body><p>Select operating band or enter frequency in MHz or enter kHz increment followed by k.</p></body></html></string> |             <string>USB dial frequency</string> | ||||||
|            </property> |            </property> | ||||||
|            <property name="accessibleName"> |            <property name="styleSheet"> | ||||||
|             <string>Frequency entry</string> |             <string notr="true">QLabel { | ||||||
|  |   font-family: MS Shell Dlg 2; | ||||||
|  |   font-size: 16pt; | ||||||
|  |    color : yellow; | ||||||
|  |    background-color : black; | ||||||
|  | } | ||||||
|  | QLabel[oob="true"] { | ||||||
|  |   background-color: red; | ||||||
|  | }</string> | ||||||
|            </property> |            </property> | ||||||
|            <property name="accessibleDescription"> |            <property name="text"> | ||||||
|             <string>Select operating band or enter frequency in MHz or enter kHz increment followed by k.</string> |             <string>14.078 000</string> | ||||||
|            </property> |            </property> | ||||||
|            <property name="editable"> |            <property name="alignment"> | ||||||
|             <bool>true</bool> |             <set>Qt::AlignCenter</set> | ||||||
|            </property> |            </property> | ||||||
|            <property name="insertPolicy"> |            <property name="margin"> | ||||||
|             <enum>QComboBox::NoInsert</enum> |             <number>5</number> | ||||||
|            </property> |  | ||||||
|            <property name="sizeAdjustPolicy"> |  | ||||||
|             <enum>QComboBox::AdjustToMinimumContentsLengthWithIcon</enum> |  | ||||||
|            </property> |            </property> | ||||||
|           </widget> |           </widget> | ||||||
|          </item> |          </item> | ||||||
|          <item row="1" column="1" rowspan="2"> |          <item row="1" column="3" rowspan="2"> | ||||||
|           <layout class="QVBoxLayout" name="verticalLayout_15"> |           <layout class="QVBoxLayout" name="verticalLayout_15"> | ||||||
|            <item> |            <item> | ||||||
|             <widget class="QPushButton" name="houndButton"> |             <widget class="QPushButton" name="houndButton"> | ||||||
| @ -3011,13 +2939,131 @@ Double-click to reset to the standard 73 message</string> | |||||||
|            </item> |            </item> | ||||||
|           </layout> |           </layout> | ||||||
|          </item> |          </item> | ||||||
|          <item row="0" column="5"> |          <item row="2" column="4" colspan="2"> | ||||||
|           <widget class="QLabel" name="label"> |           <widget class="QLabel" name="labUTC"> | ||||||
|  |            <property name="sizePolicy"> | ||||||
|  |             <sizepolicy hsizetype="Preferred" vsizetype="Maximum"> | ||||||
|  |              <horstretch>0</horstretch> | ||||||
|  |              <verstretch>0</verstretch> | ||||||
|  |             </sizepolicy> | ||||||
|  |            </property> | ||||||
|  |            <property name="styleSheet"> | ||||||
|  |             <string notr="true">QLabel { | ||||||
|  |   font-family: MS Shell Dlg 2; | ||||||
|  |   font-size: 16pt; | ||||||
|  |   background-color : black; | ||||||
|  |   color : yellow; | ||||||
|  | }</string> | ||||||
|  |            </property> | ||||||
|  |            <property name="frameShape"> | ||||||
|  |             <enum>QFrame::StyledPanel</enum> | ||||||
|  |            </property> | ||||||
|  |            <property name="frameShadow"> | ||||||
|  |             <enum>QFrame::Sunken</enum> | ||||||
|  |            </property> | ||||||
|  |            <property name="lineWidth"> | ||||||
|  |             <number>2</number> | ||||||
|  |            </property> | ||||||
|  |            <property name="midLineWidth"> | ||||||
|  |             <number>0</number> | ||||||
|  |            </property> | ||||||
|            <property name="text"> |            <property name="text"> | ||||||
|             <string> Pwr</string> |             <string><html><head/><body><p align="center"> 2015 Jun 17 </p><p align="center"> 01:23:45 </p></body></html></string> | ||||||
|  |            </property> | ||||||
|  |            <property name="alignment"> | ||||||
|  |             <set>Qt::AlignCenter</set> | ||||||
|  |            </property> | ||||||
|  |            <property name="margin"> | ||||||
|  |             <number>5</number> | ||||||
|            </property> |            </property> | ||||||
|           </widget> |           </widget> | ||||||
|          </item> |          </item> | ||||||
|  |          <item row="0" column="2" colspan="2"> | ||||||
|  |           <layout class="QHBoxLayout" name="horizontalLayout_16" stretch="1,0"> | ||||||
|  |            <item> | ||||||
|  |             <widget class="BandComboBox" name="bandComboBox"> | ||||||
|  |              <property name="sizePolicy"> | ||||||
|  |               <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> | ||||||
|  |                <horstretch>0</horstretch> | ||||||
|  |                <verstretch>0</verstretch> | ||||||
|  |               </sizepolicy> | ||||||
|  |              </property> | ||||||
|  |              <property name="minimumSize"> | ||||||
|  |               <size> | ||||||
|  |                <width>0</width> | ||||||
|  |                <height>0</height> | ||||||
|  |               </size> | ||||||
|  |              </property> | ||||||
|  |              <property name="maximumSize"> | ||||||
|  |               <size> | ||||||
|  |                <width>16777215</width> | ||||||
|  |                <height>16777215</height> | ||||||
|  |               </size> | ||||||
|  |              </property> | ||||||
|  |              <property name="toolTip"> | ||||||
|  |               <string><html><head/><body><p>Select operating band or enter frequency in MHz or enter kHz increment followed by k.</p></body></html></string> | ||||||
|  |              </property> | ||||||
|  |              <property name="accessibleName"> | ||||||
|  |               <string>Frequency entry</string> | ||||||
|  |              </property> | ||||||
|  |              <property name="accessibleDescription"> | ||||||
|  |               <string>Select operating band or enter frequency in MHz or enter kHz increment followed by k.</string> | ||||||
|  |              </property> | ||||||
|  |              <property name="editable"> | ||||||
|  |               <bool>true</bool> | ||||||
|  |              </property> | ||||||
|  |              <property name="insertPolicy"> | ||||||
|  |               <enum>QComboBox::NoInsert</enum> | ||||||
|  |              </property> | ||||||
|  |              <property name="sizeAdjustPolicy"> | ||||||
|  |               <enum>QComboBox::AdjustToMinimumContentsLengthWithIcon</enum> | ||||||
|  |              </property> | ||||||
|  |             </widget> | ||||||
|  |            </item> | ||||||
|  |            <item> | ||||||
|  |             <widget class="QPushButton" name="readFreq"> | ||||||
|  |              <property name="enabled"> | ||||||
|  |               <bool>false</bool> | ||||||
|  |              </property> | ||||||
|  |              <property name="toolTip"> | ||||||
|  |               <string><html><head/><body><p>If orange or red there has been a rig control failure, click to reset and read the dial frequency.  S implies split mode.</p></body></html></string> | ||||||
|  |              </property> | ||||||
|  |              <property name="accessibleDescription"> | ||||||
|  |               <string>If orange or red there has been a rig control failure, click to reset and read the dial frequency. S implies split mode.</string> | ||||||
|  |              </property> | ||||||
|  |              <property name="styleSheet"> | ||||||
|  |               <string notr="true">QPushButton { | ||||||
|  |  font-family: helvetica; | ||||||
|  |  font-size: 9pt; | ||||||
|  |  font-weight: bold; | ||||||
|  |  background-color: white; | ||||||
|  |  color: black; | ||||||
|  |  border-style: solid; | ||||||
|  |  border-width:1px; | ||||||
|  |  border-radius:10px; | ||||||
|  |  border-color: gray; | ||||||
|  |  max-width:20px; | ||||||
|  |  max-height:20px; | ||||||
|  |  min-width:20px; | ||||||
|  |  min-height:20px; | ||||||
|  | } | ||||||
|  | QPushButton[state="error"] { | ||||||
|  |  background-color: red; | ||||||
|  | } | ||||||
|  | QPushButton[state="warning"] { | ||||||
|  |  background-color: orange; | ||||||
|  | } | ||||||
|  | QPushButton[state="ok"] { | ||||||
|  |  background-color: #00ff00; | ||||||
|  | }</string> | ||||||
|  |              </property> | ||||||
|  |              <property name="text"> | ||||||
|  |               <string>?</string> | ||||||
|  |              </property> | ||||||
|  |             </widget> | ||||||
|  |            </item> | ||||||
|  |           </layout> | ||||||
|  |          </item> | ||||||
|         </layout> |         </layout> | ||||||
|        </item> |        </item> | ||||||
|       </layout> |       </layout> | ||||||
| @ -3030,8 +3076,8 @@ Double-click to reset to the standard 73 message</string> | |||||||
|     <rect> |     <rect> | ||||||
|      <x>0</x> |      <x>0</x> | ||||||
|      <y>0</y> |      <y>0</y> | ||||||
|      <width>893</width> |      <width>901</width> | ||||||
|      <height>21</height> |      <height>22</height> | ||||||
|     </rect> |     </rect> | ||||||
|    </property> |    </property> | ||||||
|    <widget class="QMenu" name="menuFile"> |    <widget class="QMenu" name="menuFile"> | ||||||
| @ -3744,7 +3790,6 @@ Double-click to reset to the standard 73 message</string> | |||||||
|   <tabstop>stopTxButton</tabstop> |   <tabstop>stopTxButton</tabstop> | ||||||
|   <tabstop>tuneButton</tabstop> |   <tabstop>tuneButton</tabstop> | ||||||
|   <tabstop>cbMenus</tabstop> |   <tabstop>cbMenus</tabstop> | ||||||
|   <tabstop>bandComboBox</tabstop> |  | ||||||
|   <tabstop>sbNB</tabstop> |   <tabstop>sbNB</tabstop> | ||||||
|   <tabstop>dxCallEntry</tabstop> |   <tabstop>dxCallEntry</tabstop> | ||||||
|   <tabstop>dxGridEntry</tabstop> |   <tabstop>dxGridEntry</tabstop> | ||||||
|  | |||||||
| @ -415,7 +415,11 @@ void CPlotter::DrawOverlay()                   //DrawOverlay() | |||||||
|   if(m_bTotalPower) painter.setPen(QPen(Qt::white, 1,Qt::DashLine)); |   if(m_bTotalPower) painter.setPen(QPen(Qt::white, 1,Qt::DashLine)); | ||||||
|   for( int i=1; i<VERT_DIVS; i++) {                 //draw horizontal grids
 |   for( int i=1; i<VERT_DIVS; i++) {                 //draw horizontal grids
 | ||||||
|     y = int(i*m_vpixperdiv); |     y = int(i*m_vpixperdiv); | ||||||
|  |     if(m_bTotalPower) { | ||||||
|         painter.drawLine(15, y, w, y); |         painter.drawLine(15, y, w, y); | ||||||
|  |     } else { | ||||||
|  |         painter.drawLine(0, y, w, y); | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   if(m_bTotalPower) { |   if(m_bTotalPower) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user