Kstars

mountcontrolpanel.h
1/*
2 SPDX-FileCopyrightText: 2024 Jasem Mutlaq <mutlaqja@ikarustech.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QDialog>
10#include "ui_mountcontrolpanel.h"
11
12namespace Ekos
13{
14class MountControlPanel : public QDialog, public Ui::MountControlPanel
15{
17
18 Q_PROPERTY(bool isJ2000 MEMBER m_isJ2000)
19
20 public:
21 MountControlPanel(QWidget *parent = nullptr);
22
23 // set target position and target name
24 void setTargetPosition(SkyPoint *target)
25 {
26 mountTarget->setTargetPosition(target);
27 }
28 void setTargetName(const QString &name)
29 {
30 mountTarget->setTargetName(name);
31 }
32
33 void setJ2000Enabled(bool enabled);
34
35 protected:
36 void keyPressEvent(QKeyEvent *event) override;
37 void keyReleaseEvent(QKeyEvent *event) override;
38
39 private:
40 bool processCoords(dms &ra, dms &de);
41 bool m_isJ2000 {false};
42
43 signals:
44 void newMotionCommand(int command, int NS, int WE);
45 void newSlewRate(int rate);
46 void aborted();
47 void park();
48 void unpark();
49 void center();
50 void sync(double RA, double DE);
51 void slew(double RA, double DE);
52 void updownReversed(bool enable);
53 void leftrightReversed(bool enable);
54
55
56 friend class Mount;
57
58};
59}
60
The sky coordinates of a point in the sky.
Definition skypoint.h:45
An angle, stored as degrees, but expressible in many ways.
Definition dms.h:38
Ekos is an advanced Astrophotography tool for Linux.
Definition align.cpp:83
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
QObject * parent() const const
virtual bool event(QEvent *event) override
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.