9import QtQuick.Layouts 1.1
10import QtQuick.Controls 1.4
11import QtQuick.Controls.Styles 1.4
15 objectName: "containerObj"
19 property double buttonOpacity: 0.2
20 property double categoryTitleOpacity: 0.350
24 objectName:
"progressBar"
25 width: container.width
34 text:
xi18n(
"What's Interesting...")
36 verticalAlignment: Text.AlignVCenter
46 objectName:
"categoryTitle"
51 renderType: Text.QtRendering
52 verticalAlignment: Text.AlignVCenter
53 horizontalAlignment: Text.AlignHCenter
75 objectName:
"viewsRowObj"
83 signal inspectSkyObject(
string name);
88 height: parent.height - 150
114 width: nakedEyeText.
width
115 height: nakedEyeText.height
125 title:
xi18n(
"Naked-Eye Objects")
127 anchors.centerIn: parent
134 height: sunText.height
146 anchors.centerIn: parent
155 viewsRow.inspectSkyObject(
"Sun")
156 catTitle.text =
xi18n(
"Sun")
165 width: moonText.
width
166 height: moonText.height
178 anchors.centerIn: parent
187 viewsRow.inspectSkyObject(
"Moon")
188 catTitle.text =
xi18n(
"Moon")
199 width: planetText.
width
200 height: planetText.height
210 title:
xi18n(
"Planets")
212 anchors.centerIn: parent
221 viewsRow.categorySelected(
"planets")
222 catTitle.text =
xi18n(
"Planets")
231 width: satelliteText.
width
232 height: satelliteText.height
241 title:
xi18n(
"Satellites")
243 anchors.centerIn: parent
246 id: satelliteMouseArea
249 onEntered: satelliteText.state =
"selected"
252 viewsRow.categorySelected(
"satellites")
253 catTitle.text =
xi18n(
"Satellites")
263 width: starText.
width
264 height: starText.height
274 title:
xi18n(
"Stars")
276 anchors.centerIn: parent
285 viewsRow.categorySelected(
"stars")
286 catTitle.text =
xi18n(
"Stars")
296 height: conText.height
305 title:
xi18n(
"Constellations")
307 anchors.centerIn: parent
316 viewsRow.categorySelected(
"constellations")
317 catTitle.text =
xi18n(
"Constellations")
327 height: dsoText.height
338 title:
xi18n(
"Deep-sky Objects")
340 anchors.centerIn: parent
347 width: asteroidText.
width
348 height: asteroidText.height
358 title:
xi18n(
"Asteroids")
360 anchors.centerIn: parent
363 id: asteroidMouseArea
366 onEntered: asteroidText.state =
"selected"
369 viewsRow.categorySelected(
"asteroids")
370 catTitle.text =
xi18n(
"Asteroids")
380 width: cometText.
width
381 height: cometText.height
391 title:
xi18n(
"Comets")
393 anchors.centerIn: parent
402 viewsRow.categorySelected(
"comets")
403 catTitle.text =
xi18n(
"Comets")
414 height: galText.height
424 title:
xi18n(
"Galaxies")
438 viewsRow.categorySelected(
"galaxies")
439 catTitle.text =
xi18n(
"Galaxies")
450 height: nebText.height
460 title:
xi18n(
"Nebulae")
462 anchors.centerIn: parent
471 viewsRow.categorySelected(
"nebulas")
472 catTitle.text =
xi18n(
"Nebulae")
482 width: clustText.
width
483 height: clustText.height
493 title:
xi18n(
"Clusters")
495 anchors.centerIn: parent
504 viewsRow.categorySelected(
"clusters")
505 catTitle.text =
xi18n(
"Clusters")
515 width: superText.
width
516 height: superText.height
526 title:
xi18n(
"Supernovae")
528 anchors.centerIn: parent
537 viewsRow.categorySelected(
"supernovas")
538 catTitle.text =
xi18n(
"Supernovae")
547 width: catalogText.
width
548 height: catalogText.height
558 title:
xi18n(
"Explore Catalogs")
560 anchors.centerIn: parent
567 width: messierText.
width
568 height: messierText.height
578 title:
xi18n(
"Messier Catalog")
580 anchors.centerIn: parent
586 onEntered: messierText.state =
"selected"
589 viewsRow.categorySelected(
"messier")
590 catTitle.text =
"Messier Catalog"
591 container.state =
"objectFromListSelected"
601 height: ngcText.height
611 title:
xi18n(
"NGC Catalog")
613 anchors.centerIn: parent
622 viewsRow.categorySelected(
"ngc")
623 catTitle.text =
"NGC Catalog"
624 container.state =
"objectFromListSelected"
634 height: icText.height
644 title:
xi18n(
"IC Catalog")
646 anchors.centerIn: parent
655 viewsRow.categorySelected(
"ic")
656 catTitle.text =
"IC Catalog"
657 container.state =
"objectFromListSelected"
667 height: sh2Text.height
677 title:
xi18n(
"Sharpless Catalog")
679 anchors.centerIn: parent
688 viewsRow.categorySelected(
"sharpless")
689 catTitle.text =
"Sharpless Catalog"
690 container.state =
"objectFromListSelected"
700 objectName:
"skyObjView"
702 height: parent.height - 150
703 anchors.leftMargin: categoryView.width
704 anchors.left: categoryView.right
710 enabled: !parent.flipped
745 objectName:
"soListObj"
757 objectName:
"soListEmptyMessage"
762 text:
xi18n(
"No Items to display")
764 verticalAlignment: Text.AlignVCenter
765 horizontalAlignment: Text.AlignHCenter
772 visible: (
soListView.count > 0 || container.state ==
"singleItemSelected") ?
false :
true
807 height: parent.height
815 skyObjView.flipped =
true
822 renderType: Text.QtRendering
823 textFormat: Text.RichText
825 width: parent.width - image.width - 30
826 color: (nightVision.state ==
"active" &&
soListItem.ListView.isCurrentItem) ?
"#F89404" : (nightVision.state ==
"active") ?
"red" : (
soListItem.ListView.isCurrentItem) ?
"white" : (
mouseListArea.containsMouse||
mouseImgArea.containsMouse||
mouseTextArea.containsMouse) ?
"yellow" :
"gray"
828 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
841 skyObjView.flipped =
true
849 height: parent.height
850 fillMode: Image.PreserveAspectFit
866 renderType: Text.QtRendering
867 color: (nightVision.state ==
"active" &&
soListItem.ListView.isCurrentItem) ?
"#F89404" : (nightVision.state ==
"active") ?
"red" : (
mouseListArea.containsMouse||
mouseImgArea.containsMouse||
mouseTextArea.containsMouse) ?
"yellow" :
"white"
880 height: parent.height
894 objectName:
"detailsViewObj"
896 height: parent.height
897 width: parent.width - 30
907 objectName:
"sonameObj"
927 objectName:
"posTextObj"
928 y: parent.height - 50
957 objectName:
"detailsTextObj"
975 objectName:
"detailsButtonObj"
979 text:
xi18n(
"More Details")
1002 objectName:
"centerButtonObj"
1006 text:
xi18n(
"Center in Map \n")
1020 anchors.fill: parent
1027 text:
xi18n(
" Auto Track ")
1039 objectName:
"autoCenterCheckbox"
1047 objectName:
"autoTrackCheckbox"
1059 objectName:
"slewTelescopeButtonObj"
1063 text:
xi18n(
"Slew Telescope")
1077 anchors.fill: parent
1088 height: parent.height - 170 - 50
1095 border.color:
"black"
1101 anchors.centerIn: parent
1104 color:
styleData.selected ?
"white" :
"black"
1110 title:
xi18n(
"Object Information")
1115 height: parent.height
1127 border.color:
"#585454"
1134 height: parent.height - 10
1138 bottom: parent.bottom
1145 contentWidth: parent.width
1146 contentHeight:
col.height + 4
1149 anchors.fill: parent
1155 width: parent.width - 20
1159 objectName:
"detailImage"
1166 objectName:
"descTextObj"
1171 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
1172 width: parent.width - 20
1180 anchors.fill: parent
1193 title:
xi18n(
"Wikipedia Infotext")
1221 when: (
detailsView.width >= 900 && container.state!=
"singleItemSelected")
1260 border.color:
"#585454"
1267 height: parent.height - 10
1271 bottom: parent.bottom
1276 contentWidth: parent.width
1277 contentHeight:
col2.height + 4
1293 objectName:
"infoBoxText"
1294 textFormat: Text.RichText
1298 anchors.fill: parent
1299 acceptedButtons:
Qt.NoButton
1300 cursorShape: parent.hoveredLink ?
Qt.PointingHandCursor :
Qt.ArrowCursor
1303 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
1304 verticalAlignment: Text.AlignVCenter
1305 horizontalAlignment: Text.AlignHCenter
1306 text:
xi18n(
"Info Text")
1326 objectName:
"nextObj"
1332 bottom: parent.bottom
1341 anchors.fill: parent
1352 nextObjText.color = (nightVision.state ==
"active") ?
"red" :
"yellow"
1356 nextObjText.color = (nightVision.state ==
"active") ?
"red" :
"white"
1366 objectName:
"nextTextObj"
1375 verticalCenter: parent.verticalCenter
1378 verticalAlignment: Text.AlignVCenter
1379 horizontalAlignment: Text.AlignRight
1391 verticalCenter: parent.verticalCenter
1403 objectName:
"prevObj"
1410 bottom: parent.bottom
1419 anchors.fill: parent
1425 anchors.fill: parent
1429 prevObjText.color = (nightVision.state ==
"active") ?
"red" :
"yellow"
1433 prevObjText.color = (nightVision.state ==
"active") ?
"red" :
"white"
1443 objectName:
"prevTextObj"
1447 text:
xi18n(
"Previous")
1452 verticalCenter: parent.verticalCenter
1455 horizontalAlignment: Text.AlignLeft
1456 verticalAlignment: Text.AlignVCenter
1465 anchors.verticalCenter: parent.verticalCenter
1470 source:
"previous.png"
1479 objectName:
"soItemEmptyMessage"
1481 anchors.fill: parent
1483 anchors.fill: parent
1484 text:
xi18n(
"No Items to display")
1486 verticalAlignment: Text.AlignVCenter
1487 horizontalAlignment: Text.AlignHCenter
1494 visible: (
soListView.count > 0 || container.state ==
"singleItemSelected") ?
false :
true
1504 event.accepted =
true;
1509 event.accepted =
true;
1522 when: skyObjView.flipped
1538 origin.x: container.width / 2
1545 objectName:
"loadingMessage"
1547 anchors.fill: parent
1550 anchors.fill: parent
1551 text:
xi18n(
"Loading...")
1553 verticalAlignment: Text.AlignVCenter
1554 horizontalAlignment: Text.AlignHCenter
1573 objectName:
"helpMessage"
1575 anchors.fill: parent
1579 anchors.left: helpMessage.left
1580 anchors.right: helpMessage.right
1582 text:
xi18n(
"Explanation of the What's Interesting Panel")
1584 horizontalAlignment: Text.AlignHCenter
1594 anchors.top: helpText.bottom
1595 anchors.left: helpMessage.left
1596 anchors.right: helpMessage.right
1597 text:
xi18n(
"The What's Interesting Panel is intended to allow you to explore many different interesting objects in the night sky. It includes objects visible to the naked eye as well as objects that require telescopes. It is intended to appeal to both beginners and advanced astronomers. If you click on a category or catalog, a list of objects will appear. Clicking on an object in the list will bring up the details view where you can find out more information about the object. If you have thumbnail images or wikipedia information for this object, these will be displayed as well. If not, you can download them using the download icon. If you make What's Interesting wider, the display will dynamically change to display the information more conveniently. Please see the descriptions below for details on what the buttons at the bottom do.")
1599 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
1607 id: helpSettingsImage
1608 anchors.top: helpExplainText.bottom
1609 source:
"settingsIcon.png"
1614 id: helpSettingsText
1615 anchors.top: helpExplainText.bottom
1616 anchors.left: helpSettingsImage.right
1617 anchors.right: helpMessage.right
1619 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
1620 text:
xi18n(
"This button will bring up the What's Interesting Settings. It will let you configure what is displayed in What's Interesting based upon which equipment you are using and the observing conditions.")
1629 id: helpInspectImage
1630 anchors.top: helpSettingsText.bottom
1631 source:
"inspectIcon.png"
1637 anchors.top: helpSettingsText.bottom
1638 anchors.left: helpInspectImage.right
1639 anchors.right: helpMessage.right
1641 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
1642 text:
xi18n(
"This button will turn on and off the Inspector Mode. In this mode you can click on any object in the map and What's Interesting will display the information about it.")
1652 anchors.top: helpInspectText.bottom
1653 source:
"reloadIcon.png"
1659 anchors.top: helpInspectText.bottom
1660 anchors.left: helpReloadImage.right
1661 anchors.right: helpMessage.right
1663 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
1664 text:
xi18n(
"This button will reload the current object list, update all displayed information, update any images, and update the information and images for the currently selected object.")
1673 id: helpVisibleImage
1674 anchors.top: helpReloadText.bottom
1675 source:
"visibleIcon.png"
1681 anchors.top: helpReloadText.bottom
1682 anchors.left: helpVisibleImage.right
1683 anchors.right: helpMessage.right
1685 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
1686 text:
xi18n(
"This button will toggle whether to filter the list to display only currently visible objects in a list or to display all of the objects in the list. The visibility is determined based on the current KStars date and time, the current observing equipment, and the current sky conditions based on the What's Interesting Settings.")
1695 id: helpFavoriteImage
1696 anchors.top: helpVisibleText.bottom
1697 source:
"favoriteIcon.png"
1702 id: helpFavoriteText
1703 anchors.top: helpVisibleText.bottom
1704 anchors.left: helpFavoriteImage.right
1705 anchors.right: helpMessage.right
1707 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
1708 text:
xi18n(
"This button will toggle whether to filter the list to display only 'interesting' objects or to display any of the objects in the list. This setting only applies to the Galaxies, Nebulas, and Clusters lists. The objects are considered 'interesting' if they appear on the KStars 'interesting' list.")
1717 id: helpDownloadImage
1718 anchors.top: helpFavoriteText.bottom
1719 source:
"downloadIcon.png"
1724 id: helpDownloadText
1725 anchors.top: helpFavoriteText.bottom
1726 anchors.left: helpDownloadImage.right
1727 anchors.right: helpMessage.right
1729 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
1730 text:
xi18n(
"This button will attempt to download information and pictures about the object(s) from Wikipedia. You can select whether to download the information about just one object, all of the objects in a list, or only the objects in a list for which no data was downloaded yet. Please note: If the list is currently filtered for visible objects or 'interesting' objects, only the filtered objects will be downloaded. If you actually want all the objects in the list, turn off the filters.")
1740 name:
"helpDisplayed"
1750 x: container.width + 10
1751 y: container.height - 50
1752 width: leftArrow.width + goBackText.width + 18
1758 id: goBackForeground
1759 anchors.fill: parent
1771 left: leftArrow.right
1774 verticalCenter: leftArrow.verticalCenter
1780 verticalAlignment: Text.AlignVCenter
1781 horizontalAlignment: Text.AlignHCenter
1791 verticalCenter: parent.verticalCenter
1793 source:
"leftArrow.png"
1797 id: backButtonMouseArea
1798 anchors.fill: backButton
1800 onEntered: goBackForeground.opacity = buttonOpacity
1801 onExited: goBackForeground.opacity = 0.0
1803 if(helpMessage.state ==
"helpDisplayed"){
1804 helpMessage.state =
""
1805 }
else if (container.state ==
"objectFromListSelected") {
1806 if (!skyObjView.flipped||container.width>=900) {
1807 container.state =
"base"
1809 }
else if (skyObjView.flipped) {
1810 skyObjView.flipped =
false
1812 }
else if (container.state ==
"singleItemSelected") {
1813 container.state =
"base"
1815 if (container.width>=900) {
1816 skyObjView.flipped =
true
1818 skyObjView.flipped =
false
1827 objectName:
"settingsIconObj"
1829 y: container.height - 50
1834 verticalCenter: backButton.verticalCenter
1841 fillMode: Image.Stretch
1842 source:
"settingsIcon.png"
1847 id: settingsMouseArea
1848 anchors.fill: parent
1850 onEntered: settingsForeground.opacity = buttonOpacity
1851 onExited: settingsForeground.opacity = 0.0
1852 onClicked: settingsIcon.settingsIconClicked()
1856 id: settingsForeground
1857 anchors.fill: parent
1865 objectName:
"inspectIconObj"
1868 y: container.height - 50
1873 verticalCenter: backButton.verticalCenter
1880 fillMode: Image.Stretch
1881 source:
"inspectIcon.png"
1886 id: inspectMouseArea
1887 anchors.fill: parent
1889 onEntered: inspectForeground.opacity = buttonOpacity
1890 onExited: inspectForeground.opacity = 0.0
1892 inspectIcon.inspectIconClicked(inspectIcon.state ==
"checked")
1893 inspectIcon.state = (inspectIcon.state ==
"checked") ?
"" :
"checked"
1898 id: inspectForeground
1901 anchors.fill: parent
1913 objectName:
"reloadIconObj"
1915 y: container.height - 50
1920 verticalCenter: backButton.verticalCenter
1927 fillMode: Image.Stretch
1928 source:
"reloadIcon.png"
1934 anchors.fill: parent
1936 onEntered: reloadForeground.opacity = buttonOpacity
1937 onExited: reloadForeground.opacity = 0.0
1939 reloadIcon.reloadIconClicked();
1944 id: reloadForeground
1947 anchors.fill: parent
1952 when: (container.state !=
"objectFromListSelected" && container.state !=
"singleItemSelected")
1962 objectName:
"visibleIconObj"
1965 y: container.height - 50
1970 verticalCenter: backButton.verticalCenter
1977 fillMode: Image.Stretch
1978 source:
"visibleIcon.png"
1983 id: visibleMouseArea
1984 anchors.fill: parent
1986 onEntered: visibleForeground.opacity = buttonOpacity
1987 onExited: visibleForeground.opacity = 0.0
1989 visibleIcon.visibleIconClicked(visibleIcon.state ==
"unchecked")
1990 visibleIcon.state = (visibleIcon.state ==
"unchecked") ?
"" :
"unchecked"
1995 id: visibleForeground
1998 anchors.fill: parent
2003 when: container.state !=
"objectFromListSelected"
2016 objectName:
"favoriteIconObj"
2019 y: container.height - 50
2024 verticalCenter: backButton.verticalCenter
2031 fillMode: Image.Stretch
2032 source:
"favoriteIcon.png"
2037 id: favoriteMouseArea
2038 anchors.fill: parent
2040 onEntered: favoriteForeground.opacity = buttonOpacity
2041 onExited: favoriteForeground.opacity = 0.0
2043 favoriteIcon.favoriteIconClicked(favoriteIcon.state ==
"unchecked")
2044 favoriteIcon.state = (favoriteIcon.state ==
"unchecked") ?
"" :
"unchecked"
2055 id: favoriteForeground
2058 anchors.fill: parent
2063 when: container.state !=
"objectFromListSelected"
2076 objectName:
"downloadIconObj"
2078 y: container.height - 50
2083 verticalCenter: backButton.verticalCenter
2090 fillMode: Image.Stretch
2091 source:
"downloadIcon.png"
2096 id: downloadMouseArea
2097 anchors.fill: parent
2099 onEntered: downloadForeground.opacity = buttonOpacity
2100 onExited: downloadForeground.opacity = 0.0
2101 onClicked: downloadIcon.downloadIconClicked()
2105 id: downloadForeground
2108 anchors.fill: parent
2113 when: container.state ==
"base" || container.state ==
""
2123 y: container.height - 50
2128 verticalCenter: backButton.verticalCenter
2135 fillMode: Image.Stretch
2136 source:
"helpIcon.png"
2140 anchors.fill: parent
2142 onEntered: helpForeground.opacity = buttonOpacity
2143 onExited: helpForeground.opacity = 0.0
2144 onClicked: (helpMessage.state ==
"helpDisplayed") ? helpMessage.state =
"" : helpMessage.state =
"helpDisplayed"
2151 anchors.fill: parent
2157 objectName:
"nightVision"
2160 anchors.fill: parent
2195 name:
"singleItemSelected"
2199 x: -(2 * categoryView.width)
2211 x: container.width - 105
2215 name:
"objectFromListSelected"
2219 x: -(2 * categoryView.width)
2229 x: container.width - 105
2238 to:
"objectFromListSelected"
2253 from:
"objectFromListSelected"
QString xi18n(const char *text, const TYPE &arg...)
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
Type type(const QSqlDatabase &db)
KIOCORE_EXPORT CopyJob * link(const QList< QUrl > &src, const QUrl &destDir, JobFlags flags=DefaultFlags)
QString name(StandardShortcut id)
const QList< QKeySequence > & back()
QTextStream & left(QTextStream &stream)
QTextStream & right(QTextStream &stream)