Kstars

rotatorsettings.h
1 /*
2  SPDX-FileCopyrightText: 2017 Jasem Mutlaq <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 
8 #pragma once
9 
10 #include "ui_rotatorsettings.h"
11 #include "indi/indistd.h"
12 
13 #include <QDialog>
14 
15 class RotatorSettings : public QDialog, public Ui::RotatorDialog
16 {
17  Q_OBJECT
18 public:
19  explicit RotatorSettings(QWidget *parent);
20 
21  void setTicksMinMaxStep(int32_t min, int32_t max, int32_t step);
22 
23  void setCurrentAngle(double angle);
24 
25  bool isRotationEnforced() { return enforceRotationCheck->isChecked(); }
26  void setRotationEnforced(bool enabled) { enforceRotationCheck->setChecked(enabled); }
27 
28  double getTargetRotationPA() { return targetPASpin->value(); }
29  void setTargetRotationPA(double value) { targetPASpin->setValue(value); }
30  double getTargetAngle() { return angleSpin->value(); }
31  double getCurrentRotationPA() { return PAOut->text().toDouble(); }
32 
33  void setPAMultiplier(double value) { PAMulSpin->setValue(value);}
34  void setPAOffset(double value) { PAOffsetSpin->setValue(value);}
35 
36  void refresh();
37 
38 protected slots:
39  void updatePA();
40  void syncPA(double PA);
41 
42 };
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Aug 13 2022 04:01:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.