Skip to content

Commit

Permalink
Improve config dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
PianetaRadio authored Nov 2, 2022
1 parent 753a1e9 commit ec35c5b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
20 changes: 20 additions & 0 deletions dialogrotator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@ void DialogRotator::on_checkBox_PreviSat_toggled(bool checked)
{
ui->checkBox_WSJTX->setChecked(false);
ui->checkBox_AirScout->setChecked(false);

msgActivateUdp();
}
}

Expand Down Expand Up @@ -493,6 +495,8 @@ void DialogRotator::on_checkBox_PreviSat_2_toggled(bool checked)
{
ui->checkBox_WSJTX_2->setChecked(false);
ui->checkBox_AirScout_2->setChecked(false);

msgActivateUdp();
}
}

Expand Down Expand Up @@ -523,6 +527,8 @@ void DialogRotator::on_checkBox_PreviSat_3_toggled(bool checked)
{
ui->checkBox_WSJTX_3->setChecked(false);
ui->checkBox_AirScout_3->setChecked(false);

msgActivateUdp();
}
}

Expand All @@ -546,3 +552,17 @@ void DialogRotator::on_checkBox_AirScout_3_toggled(bool checked)
}
}


void msgActivateUdp()
{
//MessageBox to activate UDP
if (rotCfg.udp == false)
{
QMessageBox msgBox;
msgBox.setWindowTitle("UDP");
msgBox.setText("Please, activate UDP in Config Setup.");
msgBox.setIcon(QMessageBox::Information);
msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.exec();
}
}
1 change: 1 addition & 0 deletions dialogrotator.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ private slots:
};

int printRotatorList(const struct rot_caps *rotCaps, void *data);
void msgActivateUdp();

#endif // DIALOGROTATOR_H
18 changes: 15 additions & 3 deletions dialogrotator.ui
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="lineEdit_ip"/>
<widget class="QLineEdit" name="lineEdit_ip">
<property name="toolTip">
<string notr="true">IPaddress:PortNumber</string>
</property>
</widget>
</item>
</layout>
</widget>
Expand Down Expand Up @@ -336,7 +340,11 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="lineEdit_ip_2"/>
<widget class="QLineEdit" name="lineEdit_ip_2">
<property name="toolTip">
<string notr="true">IPaddress:PortNumber</string>
</property>
</widget>
</item>
</layout>
</widget>
Expand Down Expand Up @@ -667,7 +675,11 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="lineEdit_ip_3"/>
<widget class="QLineEdit" name="lineEdit_ip_3">
<property name="toolTip">
<string notr="true">IPaddress:PortNumber</string>
</property>
</widget>
</item>
</layout>
</widget>
Expand Down

0 comments on commit ec35c5b

Please sign in to comment.