Warning, /education/kstars/kstars/kstarslite/qml/modules/helpers/TelescopeControl.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 import QtQuick 2.7
0005 import QtQuick.Controls 2.0
0006 import QtQuick.Layouts 1.3
0007 
0008 ColumnLayout {
0009     property var telescope: null
0010     anchors.horizontalCenter: parent.horizontalCenter
0011 
0012     Label {
0013         font {
0014             pointSize: 13
0015         }
0016         text: telescope == null ? "" : telescope.deviceName
0017     }
0018 
0019     RowLayout {
0020         anchors.horizontalCenter: parent.horizontalCenter
0021         Button {
0022             text: xi18n("Slew")
0023             onClicked: {
0024                 telescope.slew(SkyMapLite.clickedObjectLite)
0025             }
0026         }
0027         Button {
0028             text: xi18n("Sync")
0029             onClicked: {
0030                 telescope.sync(SkyMapLite.clickedObjectLite)
0031             }
0032         }
0033     }
0034 }