Loading isis/src/qisis/objs/JigsawSetupDialog/JigsawSetupDialog.cpp +28 −24 Original line number Diff line number Diff line Loading @@ -1491,14 +1491,15 @@ namespace Isis { * Slot that listens for when the Instrument Position Solve Option combobox changes. * * This slot updates the value of the SPK Solve Degree spin box according to which solve position * option is selected. This slot also disables the SPK Solve Degree spin box whenever a solve * option is selected. This slot also disables the SPK spin boxes whenever a solve * position that is not ALL is selected. * * @param const QString & Reference to the value that the position option combobox was changed to. */ void JigsawSetupDialog::on_positionComboBox_currentIndexChanged(const QString &arg1) { int solveIndex = m_ui->positionComboBox->currentIndex(); QSpinBox *spinBox = m_ui->spkSolveDegreeSpinBox; QList<QSpinBox *> spinBoxes{m_ui->spkSolveDegreeSpinBox, m_ui->spkDegreeSpinBox}; for (auto &spinBox : spinBoxes) { // ALL enables the solve degree spin box, but does not increase the degree // Below shows the corresponding degree for each of the solve options: // NONE = -1; ANGLES = 0; VELOCITY = 1; ACCELERATION = 2; ALL = 2 Loading @@ -1511,20 +1512,22 @@ namespace Isis { spinBox->setEnabled(false); } } } /** * Slot that listens for when the Instrument Pointing Solve Option combobox changes. * * This slot updates the value of the CK Solve Degree spin box according to which solve pointing * option is selected. This slot also disables the CK Solve Degree spin box whenever a solve * option is selected. This slot also disables the CK spin boxes whenever a solve * pointing that is not ALL is selected. * * @param const QString & Reference to the value that the pointing option combobox was changed to. */ void JigsawSetupDialog::on_pointingComboBox_currentIndexChanged(const QString &arg1) { int solveIndex = m_ui->pointingComboBox->currentIndex(); QSpinBox *spinBox = m_ui->ckSolveDegreeSpinBox; QList<QSpinBox *> spinBoxes{m_ui->ckSolveDegreeSpinBox, m_ui->ckDegreeSpinBox}; for (auto &spinBox : spinBoxes) { // ALL enables the solve degree spin box, but does not increase the degree // Below shows the corresponding degree for each of the solve options: // NONE = -1; ANGLES = 0; ANGULAR VELOCITY = 1; ANGULAR ACCELERATION = 2; ALL = 2 Loading @@ -1537,6 +1540,7 @@ namespace Isis { spinBox->setEnabled(false); } } } Loading Loading
isis/src/qisis/objs/JigsawSetupDialog/JigsawSetupDialog.cpp +28 −24 Original line number Diff line number Diff line Loading @@ -1491,14 +1491,15 @@ namespace Isis { * Slot that listens for when the Instrument Position Solve Option combobox changes. * * This slot updates the value of the SPK Solve Degree spin box according to which solve position * option is selected. This slot also disables the SPK Solve Degree spin box whenever a solve * option is selected. This slot also disables the SPK spin boxes whenever a solve * position that is not ALL is selected. * * @param const QString & Reference to the value that the position option combobox was changed to. */ void JigsawSetupDialog::on_positionComboBox_currentIndexChanged(const QString &arg1) { int solveIndex = m_ui->positionComboBox->currentIndex(); QSpinBox *spinBox = m_ui->spkSolveDegreeSpinBox; QList<QSpinBox *> spinBoxes{m_ui->spkSolveDegreeSpinBox, m_ui->spkDegreeSpinBox}; for (auto &spinBox : spinBoxes) { // ALL enables the solve degree spin box, but does not increase the degree // Below shows the corresponding degree for each of the solve options: // NONE = -1; ANGLES = 0; VELOCITY = 1; ACCELERATION = 2; ALL = 2 Loading @@ -1511,20 +1512,22 @@ namespace Isis { spinBox->setEnabled(false); } } } /** * Slot that listens for when the Instrument Pointing Solve Option combobox changes. * * This slot updates the value of the CK Solve Degree spin box according to which solve pointing * option is selected. This slot also disables the CK Solve Degree spin box whenever a solve * option is selected. This slot also disables the CK spin boxes whenever a solve * pointing that is not ALL is selected. * * @param const QString & Reference to the value that the pointing option combobox was changed to. */ void JigsawSetupDialog::on_pointingComboBox_currentIndexChanged(const QString &arg1) { int solveIndex = m_ui->pointingComboBox->currentIndex(); QSpinBox *spinBox = m_ui->ckSolveDegreeSpinBox; QList<QSpinBox *> spinBoxes{m_ui->ckSolveDegreeSpinBox, m_ui->ckDegreeSpinBox}; for (auto &spinBox : spinBoxes) { // ALL enables the solve degree spin box, but does not increase the degree // Below shows the corresponding degree for each of the solve options: // NONE = -1; ANGLES = 0; ANGULAR VELOCITY = 1; ANGULAR ACCELERATION = 2; ALL = 2 Loading @@ -1537,6 +1540,7 @@ namespace Isis { spinBox->setEnabled(false); } } } Loading