Removing more unneeded GUI items.

This commit is contained in:
Joe Taylor 2022-12-05 13:17:46 -05:00
parent 2a97ba420e
commit cd5a925208
3 changed files with 14 additions and 121 deletions

View File

@ -754,26 +754,6 @@ void MainWindow::on_actionAbout_triggered() //Display "About"
dlg.exec(); dlg.exec();
} }
void MainWindow::on_autoButton_clicked() //Auto
{
m_auto = !m_auto;
if(m_auto) {
ui->autoButton->setStyleSheet(m_pbAutoOn_style);
ui->autoButton->setText("Auto is ON");
} else {
btxok=false;
ui->autoButton->setStyleSheet("");
ui->autoButton->setText("Auto is OFF");
on_monitorButton_clicked();
}
}
void MainWindow::on_stopTxButton_clicked() //Stop Tx
{
if(m_auto) on_autoButton_clicked();
btxok=false;
}
void MainWindow::keyPressEvent( QKeyEvent *e ) //keyPressEvent void MainWindow::keyPressEvent( QKeyEvent *e ) //keyPressEvent
{ {
switch(e->key()) switch(e->key())
@ -1369,9 +1349,6 @@ void MainWindow::guiUpdate()
} }
qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000; qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000;
int nsec=ms/1000; int nsec=ms/1000;
double tsec=0.001*ms;
double t2p=fmod(tsec,120.0);
bool bTxTime = (t2p >= tx1) and (t2p < tx2);
if(bTune0 and !bTune) { if(bTune0 and !bTune) {
btxok=false; btxok=false;
@ -1381,28 +1358,6 @@ void MainWindow::guiUpdate()
if(bTune and !bTune0) bMonitoring0=m_monitoring; if(bTune and !bTune0) bMonitoring0=m_monitoring;
bTune0=bTune; bTune0=bTune;
if(m_auto or bTune) {
if((bTxTime or bTune) and iptt==0 and !m_txMute) {
int itx=1;
int ierr = ptt_(&m_pttPort,&itx,&iptt); // Raise PTT
if(ierr != 0) {
on_stopTxButton_clicked();
char s[18];
sprintf(s,"Cannot open COM%d",m_pttPort);
msgBox(s);
}
if(m_bIQxt) m_wide_graph_window->tx570(); // Set Si570 to Tx Freq
if(!soundOutThread.isRunning()) {
soundOutThread.start(QThread::HighPriority);
}
}
if((!bTxTime and !bTune) or m_txMute) {
btxok=false;
}
}
// If PTT was just raised, start a countdown for raising TxOK: // If PTT was just raised, start a countdown for raising TxOK:
if(iptt==1 && iptt0==0) nc1=-9; // TxDelay = 0.8 s if(iptt==1 && iptt0==0) nc1=-9; // TxDelay = 0.8 s
if(nc1 <= 0) nc1++; if(nc1 <= 0) nc1++;

View File

@ -61,8 +61,6 @@ private slots:
void on_actionAbout_triggered(); void on_actionAbout_triggered();
void on_actionLinrad_triggered(); void on_actionLinrad_triggered();
void on_actionCuteSDR_triggered(); void on_actionCuteSDR_triggered();
void on_autoButton_clicked();
void on_stopTxButton_clicked();
void on_tolSpinBox_valueChanged(int arg1); void on_tolSpinBox_valueChanged(int arg1);
void on_actionAstro_Data_triggered(); void on_actionAstro_Data_triggered();
void on_stopButton_clicked(); void on_stopButton_clicked();

View File

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>635</width> <width>472</width>
<height>523</height> <height>523</height>
</rect> </rect>
</property> </property>
@ -18,7 +18,7 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>635</width> <width>472</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -111,19 +111,6 @@ p, li { white-space: pre-wrap; }
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QPushButton" name="logQSOButton">
<property name="minimumSize">
<size>
<width>50</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Log &amp;QSO</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="stopButton"> <widget class="QPushButton" name="stopButton">
<property name="minimumSize"> <property name="minimumSize">
@ -188,44 +175,6 @@ p, li { white-space: pre-wrap; }
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="autoButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>50</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>&amp;Auto is OFF</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="stopTxButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>50</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>St&amp;op Tx</string>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item> <item>
@ -647,17 +596,17 @@ p, li { white-space: pre-wrap; }
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_9"> <spacer name="horizontalSpacer_2">
<item> <property name="orientation">
<layout class="QVBoxLayout" name="verticalLayout_2"/> <enum>Qt::Horizontal</enum>
</item> </property>
<item> <property name="sizeHint" stdset="0">
<layout class="QVBoxLayout" name="verticalLayout_3"/> <size>
</item> <width>40</width>
<item> <height>20</height>
<layout class="QVBoxLayout" name="verticalLayout_4"/> </size>
</item> </property>
</layout> </spacer>
</item> </item>
</layout> </layout>
</item> </item>
@ -670,7 +619,7 @@ p, li { white-space: pre-wrap; }
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>635</width> <width>472</width>
<height>21</height> <height>21</height>
</rect> </rect>
</property> </property>
@ -682,12 +631,9 @@ p, li { white-space: pre-wrap; }
<addaction name="actionOpen_next_in_directory"/> <addaction name="actionOpen_next_in_directory"/>
<addaction name="actionDecode_remaining_files_in_directory"/> <addaction name="actionDecode_remaining_files_in_directory"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionEdit_wsjt_log"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionDelete_all_tf2_files_in_SaveDir"/> <addaction name="actionDelete_all_tf2_files_in_SaveDir"/>
<addaction name="actionErase_Band_Map_and_Messages"/>
<addaction name="actionErase_map65_rx_log"/> <addaction name="actionErase_map65_rx_log"/>
<addaction name="actionErase_map65_tx_log"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionExit"/> <addaction name="actionExit"/>
</widget> </widget>
@ -697,12 +643,6 @@ p, li { white-space: pre-wrap; }
</property> </property>
<addaction name="actionDeviceSetup"/> <addaction name="actionDeviceSetup"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionAdjust_IQ_Calibration"/>
<addaction name="actionApply_IQ_Calibration"/>
<addaction name="actionFind_Delta_Phi"/>
<addaction name="actionTx_Tune"/>
<addaction name="separator"/>
<addaction name="actionF4_sets_Tx6"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionFUNcube_Dongle"/> <addaction name="actionFUNcube_Dongle"/>
</widget> </widget>