5import QtQuick.Window 2.2
6import QtQuick.Controls 2.0
7import QtQuick.Layouts 1.3
11import "../constants" 1.0
14 title:
SkyMapLite.clickedObjectLite.translatedName +
" - " + tabBar.currentItem.text
20 property bool isTab:
true
22 currentIndex: detailsSwipeView.currentIndex
28 background: Rectangle {
30 color: Num.sysPalette.base
34 text:
xi18n(
"General")
38 text:
xi18n(
"Position")
42 Component.onCompleted: {
43 var oldParent = parent
44 parent =
Qt.binding(function() {
return DetailDialogLite.isLinksOn ? oldParent : null })
51 Component.onCompleted: {
52 var oldParent = parent
53 parent =
Qt.binding(function() {
return DetailDialogLite.isLogOn ? oldParent : null })
69 currentIndex: tabBar.currentIndex
75 background: Rectangle {
77 color: Num.sysPalette.base
83 flickableDirection: Flickable.VerticalFlick
85 contentHeight: generalCol.height
93 text: DetailDialogLite.name
97 horizontalAlignment: Text.AlignHCenter
101 source: DetailDialogLite.thumbnail
102 anchors.horizontalCenter: parent.horizontalCenter
106 text: DetailDialogLite.typeInConstellation
107 anchors.horizontalCenter: parent.horizontalCenter
114 property var telescopeControls: []
119 var controls =
Qt.createComponent(
"helpers/TelescopeControl.qml")
120 var controlsObj = controls.createObject(telescopesCol)
121 controlsObj.telescope = newTelescope
122 telescopesCol.telescopeControls.push(controlsObj)
126 onTelescopeRemoved: {
127 for(var i = 0; i < telescopesCol.telescopeControls.length; ++i) {
128 if(telescopesCol.telescopeControls[i].telescope == delTelescope) {
129 telescopesCol.telescopeControls[i].parent = null
130 telescopesCol.telescopeControls[i].destroy()
139 value: DetailDialogLite.magnitude
144 value: DetailDialogLite.distance
149 value: DetailDialogLite.BVindex
154 value: DetailDialogLite.angSize
159 value: DetailDialogLite.illumination
164 value: DetailDialogLite.perihelion
169 value: DetailDialogLite.orbitID
174 value: DetailDialogLite.NEO
179 value: DetailDialogLite.diameter
184 value: DetailDialogLite.rotation
189 value: DetailDialogLite.earthMOID
194 value: DetailDialogLite.orbitClass
199 value: DetailDialogLite.albedo
204 value: DetailDialogLite.dimensions
209 value: DetailDialogLite.period
218 background: Rectangle {
220 color: Num.sysPalette.base
226 flickableDirection: Flickable.VerticalFlick
228 contentHeight: coordinatesCol.height
236 text:
xi18n(
"Coordinates")
240 anchors.horizontalCenter: parent.horizontalCenter
244 label: DetailDialogLite.RALabel
245 value: DetailDialogLite.RA
249 label: DetailDialogLite.decLabel
250 value: DetailDialogLite.dec
255 value: DetailDialogLite.RA0
260 value: DetailDialogLite.dec0
265 value: DetailDialogLite.az
270 value: DetailDialogLite.alt
275 value: DetailDialogLite.HA
280 value: DetailDialogLite.airmass
284 text:
xi18n(
"Rise/Set/Transit")
288 anchors.horizontalCenter: parent.horizontalCenter
293 value: DetailDialogLite.timeRise
298 value: DetailDialogLite.timeTransit
303 value: DetailDialogLite.timeSet
308 value: DetailDialogLite.azRise
313 value: DetailDialogLite.altTransit
318 value: DetailDialogLite.azSet
325 parent: DetailDialogLite.isLinksOn ? detailsSwipeView : null
329 background: Rectangle {
331 color: Num.sysPalette.base
341 bottom: addInfoLandscape.top
344 flow:
window.isPortrait ? GridLayout.TopToBottom : GridLayout.LeftToRight
349 Layout.fillWidth:
true
350 Layout.fillHeight:
true
351 Layout.minimumWidth: parent.width/2
357 text:
xi18n(
"Information Links")
360 anchors.horizontalCenter: parent.horizontalCenter
365 Layout.fillWidth:
true
371 Layout.fillHeight:
true
372 Layout.fillWidth:
true
374 model: DetailDialogLite.infoTitleList
377 detailsLinkMenu.openForInfo(index)
385 Layout.fillWidth:
true
386 Layout.fillHeight:
true
387 Layout.minimumWidth: parent.width/2
393 text:
xi18n(
"Image Links")
396 anchors.horizontalCenter: parent.horizontalCenter
401 Layout.fillWidth:
true
407 Layout.fillHeight:
true
408 Layout.fillWidth:
true
410 model: DetailDialogLite.imageTitleList
413 detailsLinkMenu.openForImage(index)
421 text:
xi18n(
"Add Link")
423 anchors.bottom: parent.bottom
426 detailsAddLink.openAdd()
432 parent: DetailDialogLite.isLogOn ? detailsSwipeView : null
435 background: Rectangle {
437 color: Num.sysPalette.base
443 flickableDirection: Flickable.VerticalFlick
445 contentHeight: logCol.height
457 anchors.horizontalCenter: parent.horizontalCenter
465 wrapMode: TextArea.Wrap
466 text: DetailDialogLite.userLog
469 target: DetailDialogLite
471 logArea.text = DetailDialogLite.userLog
476 DetailDialogLite.saveLogData(text)
479 background: Rectangle {
480 implicitWidth: parent.width
483 color: Num.sysPalette.base
This is the main item that displays all SkyItems.
Q_INVOKABLE QString getTranslatedName()
QString xi18n(const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
QString label(StandardShortcut id)
QTextStream & left(QTextStream &stream)
QTextStream & right(QTextStream &stream)