#41
1.4.0
PianetaRadio 2024-02-26 19:30:25 +01:00 zatwierdzone przez GitHub
rodzic 778761a1a8
commit f4ea500269
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
5 zmienionych plików z 27 dodań i 6 usunięć

Wyświetl plik

@ -2,7 +2,8 @@ CatRadio
(+ New, * Updated, - Removed)
1.4.0 - 2023-mm-dd
1.4.0 - 2024-mm-dd
+ Auto Connect option
+ Auto Power-on option
+ High SWR indicator
+ Meter peak hold indicator

Wyświetl plik

@ -1,6 +1,6 @@
/**
** This file is part of the CatRadio project.
** Copyright 2022 Gianfranco Sordetti IZ8EWD <iz8ewd@pianetaradio.it>.
** Copyright 2022-2024 Gianfranco Sordetti IZ8EWD <iz8ewd@pianetaradio.it>.
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
@ -108,6 +108,7 @@ DialogConfig::DialogConfig(QWidget *parent) :
}
ui->spinBox_RefreshRate->setValue(rigCom.rigRefresh);
ui->checkBox_fullPoll->setChecked(rigCom.fullPoll);
ui->checkBox_autoConnect->setChecked(rigCom.autoConnect);
ui->checkBox_autoPowerOn->setChecked(rigCom.autoPowerOn);
}
@ -173,6 +174,7 @@ void DialogConfig::on_buttonBox_accepted()
rigCom.rigRefresh = ui->spinBox_RefreshRate->value();
rigCom.fullPoll = ui->checkBox_fullPoll->isChecked();
rigCom.autoConnect = ui->checkBox_autoConnect->isChecked();
rigCom.autoPowerOn = ui->checkBox_autoPowerOn->isChecked();
//* Save settings in catradio.ini
@ -184,6 +186,7 @@ void DialogConfig::on_buttonBox_accepted()
configFile.setValue("netRigctl", ui->checkBox_netRigctl->isChecked());
configFile.setValue("rigRefresh", ui->spinBox_RefreshRate->value());
configFile.setValue("fullPolling", ui->checkBox_fullPoll->isChecked());
configFile.setValue("autoConnect", ui->checkBox_autoConnect->isChecked());
configFile.setValue("autoPowerOn", ui->checkBox_autoPowerOn->isChecked());
}

Wyświetl plik

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>385</width>
<width>390</width>
<height>378</height>
</rect>
</property>
@ -215,10 +215,23 @@
</property>
</widget>
</item>
<item row="1" column="0">
<item row="1" column="1">
<widget class="QCheckBox" name="checkBox_autoPowerOn">
<property name="toolTip">
<string>Auto power-on on startup</string>
</property>
<property name="text">
<string>Auto Power ON</string>
<string>Auto power ON</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="checkBox_autoConnect">
<property name="toolTip">
<string>Auto connect on startup</string>
</property>
<property name="text">
<string>Auto connect</string>
</property>
</widget>
</item>

Wyświetl plik

@ -113,6 +113,7 @@ MainWindow::MainWindow(QWidget *parent)
rigCom.netRigctl = configFile.value("netRigctl", false).toBool();
rigCom.rigRefresh = configFile.value("rigRefresh", 100).toInt();
rigCom.fullPoll = configFile.value("fullPolling", true).toBool();
rigCom.autoConnect = configFile.value("autoConnect", false).toBool();
rigCom.autoPowerOn = configFile.value("autoPowerOn", false).toBool();
guiConf.vfoDisplayMode = configFile.value("vfoDisplayMode", 0).toInt();
guiConf.darkTheme = configFile.value("darkTheme", false).toBool();
@ -184,6 +185,8 @@ MainWindow::MainWindow(QWidget *parent)
//VFO
ui->lineEdit_vfoMain->setValue(0);
ui->lineEdit_vfoSub->setValue(0);
if (rigCom.autoConnect) ui->pushButton_Connect->toggle(); //Auto connect
}
MainWindow::~MainWindow()

Wyświetl plik

@ -1,6 +1,6 @@
/**
** This file is part of the CatRadio project.
** Copyright 2022 Gianfranco Sordetti IZ8EWD <iz8ewd@pianetaradio.it>.
** Copyright 2022-2024 Gianfranco Sordetti IZ8EWD <iz8ewd@pianetaradio.it>.
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
@ -35,6 +35,7 @@ typedef struct {
unsigned rigRefresh; //GUI refresh interval (ms)
int connected; //connected flag
bool fullPoll; //full polling flag
bool autoConnect; //Auto-connect flag
bool autoPowerOn; //Auto Power ON flag
} rigConnect;