-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c9f74a
commit 90ee714
Showing
6 changed files
with
209 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
** This file is part of the CatRotator project. | ||
** Copyright 2022 Gianfranco Sordetti IZ8EWD <[email protected]>. | ||
** Copyright 2022-2023 Gianfranco Sordetti IZ8EWD <[email protected]>. | ||
** | ||
** 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 | ||
|
@@ -197,6 +197,8 @@ DialogRotator::DialogRotator(QWidget *parent) : | |
ui->lineEdit_name->setText(rotSet[0].nameLabel); | ||
ui->spinBox_azPark->setValue(rotSet[0].azPark); | ||
ui->spinBox_elPark->setValue(rotSet[0].elPark); | ||
ui->spinBox_azOffset->setValue(rotSet[0].azOffset); | ||
ui->spinBox_elOffset->setValue(rotSet[0].elOffset); | ||
ui->checkBox_overlap->setChecked(rotSet[0].overlap); | ||
ui->doubleSpinBox_tolerance->setValue(rotSet[0].trackTolerance); | ||
ui->doubleSpinBox_threshold->setValue(rotSet[0].trackThreshold); | ||
|
@@ -219,6 +221,8 @@ DialogRotator::DialogRotator(QWidget *parent) : | |
ui->lineEdit_name_2->setText(rotSet[1].nameLabel); | ||
ui->spinBox_azPark_2->setValue(rotSet[1].azPark); | ||
ui->spinBox_elPark_2->setValue(rotSet[1].elPark); | ||
ui->spinBox_azOffset_2->setValue(rotSet[1].azOffset); | ||
ui->spinBox_elOffset_2->setValue(rotSet[1].elOffset); | ||
ui->checkBox_overlap_2->setChecked(rotSet[1].overlap); | ||
ui->doubleSpinBox_tolerance_2->setValue(rotSet[1].trackTolerance); | ||
ui->doubleSpinBox_threshold_2->setValue(rotSet[1].trackThreshold); | ||
|
@@ -241,6 +245,8 @@ DialogRotator::DialogRotator(QWidget *parent) : | |
ui->lineEdit_name_3->setText(rotSet[2].nameLabel); | ||
ui->spinBox_azPark_3->setValue(rotSet[2].azPark); | ||
ui->spinBox_elPark_3->setValue(rotSet[2].elPark); | ||
ui->spinBox_azOffset_3->setValue(rotSet[2].azOffset); | ||
ui->spinBox_elOffset_3->setValue(rotSet[2].elOffset); | ||
ui->checkBox_overlap_3->setChecked(rotSet[2].overlap); | ||
ui->doubleSpinBox_tolerance_3->setValue(rotSet[2].trackTolerance); | ||
ui->doubleSpinBox_threshold_3->setValue(rotSet[2].trackThreshold); | ||
|
@@ -312,6 +318,8 @@ void DialogRotator::on_buttonBox_accepted() | |
rotSet[0].nameLabel = ui->lineEdit_name->text(); | ||
rotSet[0].azPark = ui->spinBox_azPark->value(); | ||
rotSet[0].elPark = ui->spinBox_elPark->value(); | ||
rotSet[0].azOffset = ui->spinBox_azOffset->value(); | ||
rotSet[0].elOffset = ui->spinBox_elOffset->value(); | ||
rotSet[0].overlap = ui->checkBox_overlap->isChecked(); | ||
rotSet[0].trackTolerance = ui->doubleSpinBox_tolerance->value(); | ||
rotSet[0].trackThreshold = ui->doubleSpinBox_threshold->value(); | ||
|
@@ -369,6 +377,8 @@ void DialogRotator::on_buttonBox_accepted() | |
rotSet[1].nameLabel = ui->lineEdit_name_2->text(); | ||
rotSet[1].azPark = ui->spinBox_azPark_2->value(); | ||
rotSet[1].elPark = ui->spinBox_elPark_2->value(); | ||
rotSet[1].azOffset = ui->spinBox_azOffset_2->value(); | ||
rotSet[1].elOffset = ui->spinBox_elOffset_2->value(); | ||
rotSet[1].overlap = ui->checkBox_overlap_2->isChecked(); | ||
rotSet[1].trackTolerance = ui->doubleSpinBox_tolerance_2->value(); | ||
rotSet[1].trackThreshold = ui->doubleSpinBox_threshold_2->value(); | ||
|
@@ -426,6 +436,8 @@ void DialogRotator::on_buttonBox_accepted() | |
rotSet[2].nameLabel = ui->lineEdit_name_3->text(); | ||
rotSet[2].azPark = ui->spinBox_azPark_3->value(); | ||
rotSet[2].elPark = ui->spinBox_elPark_3->value(); | ||
rotSet[2].azOffset = ui->spinBox_azOffset_3->value(); | ||
rotSet[2].elOffset = ui->spinBox_elOffset_3->value(); | ||
rotSet[2].overlap = ui->checkBox_overlap_3->isChecked(); | ||
rotSet[2].trackTolerance = ui->doubleSpinBox_tolerance_3->value(); | ||
rotSet[2].trackThreshold = ui->doubleSpinBox_threshold_3->value(); | ||
|
@@ -447,6 +459,8 @@ void DialogRotator::on_buttonBox_accepted() | |
configFile.setValue("Rotator"+QString::number(i+1)+"/nameLabel", rotSet[i].nameLabel); | ||
configFile.setValue("Rotator"+QString::number(i+1)+"/azPark", rotSet[i].azPark); | ||
configFile.setValue("Rotator"+QString::number(i+1)+"/elPark", rotSet[i].elPark); | ||
configFile.setValue("Rotator"+QString::number(i+1)+"/azOffset", rotSet[i].azOffset); | ||
configFile.setValue("Rotator"+QString::number(i+1)+"/elOffset", rotSet[i].elOffset); | ||
configFile.setValue("Rotator"+QString::number(i+1)+"/overlap", rotSet[i].overlap); | ||
configFile.setValue("Rotator"+QString::number(i+1)+"/trackTolerance", rotSet[i].trackTolerance); | ||
configFile.setValue("Rotator"+QString::number(i+1)+"/trackThreshold", rotSet[i].trackThreshold); | ||
|
Oops, something went wrong.