5import QtQuick.Window 2.2
6import QtQuick.Layouts 1.2
7import QtQuick.Controls 2.0
8import TelescopeLiteEnums 1.0
9import "../../constants" 1.0
16 margins: Num.marginsKStab
20 enabled: buttonsEnabled
22 property string deviceName
32 telescope = newTelescope
38 Layout.fillHeight:
true
45 Layout.fillHeight:
true
46 Layout.fillWidth:
true
47 activeFocusOnTab:
false
53 telescope.moveNS(TelescopeNS.MOTION_NORTH, TelescopeCommand.MOTION_START)
54 telescope.moveWE(TelescopeNS.MOTION_WEST, TelescopeCommand.MOTION_START)
56 telescope.moveNS(TelescopeNS.MOTION_NORTH, TelescopeCommand.MOTION_STOP)
57 telescope.moveWE(TelescopeNS.MOTION_WEST, TelescopeCommand.MOTION_STOP)
66 Layout.fillHeight:
true
67 Layout.fillWidth:
true
68 activeFocusOnTab:
false
75 telescope.moveNS(TelescopeNS.MOTION_NORTH, TelescopeCommand.MOTION_START)
77 telescope.moveNS(TelescopeNS.MOTION_NORTH, TelescopeCommand.MOTION_STOP)
86 Layout.fillHeight:
true
87 Layout.fillWidth:
true
88 activeFocusOnTab:
false
95 telescope.moveNS(TelescopeNS.MOTION_NORTH, TelescopeCommand.MOTION_START)
96 telescope.moveWE(TelescopeNS.MOTION_EAST, TelescopeCommand.MOTION_START)
98 telescope.moveNS(TelescopeNS.MOTION_NORTH, TelescopeCommand.MOTION_STOP)
99 telescope.moveWE(TelescopeNS.MOTION_EAST, TelescopeCommand.MOTION_STOP)
110 Layout.fillHeight:
true
111 Layout.fillWidth:
true
114 Layout.fillHeight:
true
115 Layout.fillWidth:
true
116 activeFocusOnTab:
false
123 telescope.moveWE(TelescopeNS.MOTION_WEST, TelescopeCommand.MOTION_START)
125 telescope.moveWE(TelescopeNS.MOTION_WEST, TelescopeCommand.MOTION_STOP)
134 Layout.fillHeight:
true
135 Layout.fillWidth:
true
136 activeFocusOnTab:
false
150 Layout.fillHeight:
true
151 Layout.fillWidth:
true
152 activeFocusOnTab:
false
159 telescope.moveWE(TelescopeNS.MOTION_EAST, TelescopeCommand.MOTION_START)
161 telescope.moveWE(TelescopeNS.MOTION_EAST, TelescopeCommand.MOTION_STOP)
172 Layout.fillHeight:
true
173 Layout.fillWidth:
true
176 Layout.fillHeight:
true
177 Layout.fillWidth:
true
178 activeFocusOnTab:
false
183 telescope.moveNS(TelescopeNS.MOTION_SOUTH, TelescopeCommand.MOTION_START)
184 telescope.moveWE(TelescopeNS.MOTION_WEST, TelescopeCommand.MOTION_START)
186 telescope.moveNS(TelescopeNS.MOTION_SOUTH, TelescopeCommand.MOTION_STOP)
187 telescope.moveWE(TelescopeNS.MOTION_WEST, TelescopeCommand.MOTION_STOP)
196 Layout.fillHeight:
true
197 Layout.fillWidth:
true
198 activeFocusOnTab:
false
207 telescope.moveNS(TelescopeNS.MOTION_SOUTH, TelescopeCommand.MOTION_START)
209 telescope.moveNS(TelescopeNS.MOTION_SOUTH, TelescopeCommand.MOTION_STOP)
216 Layout.fillHeight:
true
217 Layout.fillWidth:
true
218 activeFocusOnTab:
false
225 telescope.moveNS(TelescopeNS.MOTION_SOUTH, TelescopeCommand.MOTION_START)
226 telescope.moveWE(TelescopeNS.MOTION_EAST, TelescopeCommand.MOTION_START)
228 telescope.moveNS(TelescopeNS.MOTION_SOUTH, TelescopeCommand.MOTION_STOP)
229 telescope.moveWE(TelescopeNS.MOTION_EAST, TelescopeCommand.MOTION_STOP)
241 Layout.fillHeight:
true
242 Layout.fillWidth:
true
246 height: motionCColumn.height * 0.15
247 Layout.fillWidth:
true
248 activeFocusOnTab:
false
249 enabled: telescope.slewDecreasable
253 onSlewDecreasableChanged: {
254 decreaseSlew.enabled = telescope.slewDecreasable
260 telescope.decreaseSlewRate()
267 height: parent.height * 0.15
268 Layout.fillWidth:
true
269 horizontalAlignment: Text.AlignHCenter
271 text:
xi18n(
"Slew rate: " + telescope.slewRateLabel)
276 height: motionCColumn.height * 0.15
277 Layout.fillWidth:
true
278 activeFocusOnTab:
false
279 enabled: telescope.slewIncreasable
283 onSlewIncreasableChanged: {
284 increaseSlew.enabled = telescope.slewIncreasable
290 telescope.increaseSlewRate()
QString xi18n(const char *text, const TYPE &arg...)
QTextStream & left(QTextStream &stream)
QTextStream & right(QTextStream &stream)