Kstars

TelescopeControl.qml
1// SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4import QtQuick 2.7
5import QtQuick.Controls 2.0
6import QtQuick.Layouts 1.3
7
8ColumnLayout {
9 property var telescope: null
10 anchors.horizontalCenter: parent.horizontalCenter
11
12 Label {
13 font {
14 pointSize: 13
15 }
16 text: telescope == null ? "" : telescope.deviceName
17 }
18
19 RowLayout {
20 anchors.horizontalCenter: parent.horizontalCenter
21 Button {
22 text: xi18n("Slew")
23 onClicked: {
24 telescope.slew(SkyMapLite.clickedObjectLite)
25 }
26 }
27 Button {
28 text: xi18n("Sync")
29 onClicked: {
30 telescope.sync(SkyMapLite.clickedObjectLite)
31 }
32 }
33 }
34}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.