Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made NASA LARC URL clickable. #1100

Merged
merged 1 commit into from
Jul 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions mslib/msui/qt5/ui_satellite_dockwidget.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'ui_satellite_dockwidget.ui'
# Form implementation generated from reading ui file 'mslib/msui/ui/ui_satellite_dockwidget.ui'
#
# Created by: PyQt5 UI code generator 5.6
# Created by: PyQt5 UI code generator 5.12.3
#
# WARNING! All changes made in this file will be lost!


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_SatelliteDockWidget(object):
def setupUi(self, SatelliteDockWidget):
SatelliteDockWidget.setObjectName("SatelliteDockWidget")
Expand Down Expand Up @@ -49,6 +51,7 @@ def setupUi(self, SatelliteDockWidget):
self.horizontalLayout_7.addWidget(self.cbSatelliteOverpasses)
self.verticalLayout.addLayout(self.horizontalLayout_7)
self.label = QtWidgets.QLabel(SatelliteDockWidget)
self.label.setOpenExternalLinks(True)
self.label.setObjectName("label")
self.verticalLayout.addWidget(self.label)
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
Expand All @@ -67,5 +70,4 @@ def retranslateUi(self, SatelliteDockWidget):
self.btLoadFile.setText(_translate("SatelliteDockWidget", "load"))
self.label_6.setText(_translate("SatelliteDockWidget", "Predicted satellite overpasses:"))
self.cbSatelliteOverpasses.setToolTip(_translate("SatelliteDockWidget", "Select/unselect a satellite overpass from all available overpasses."))
self.label.setText(_translate("SatelliteDockWidget", "Use https://cloudsgate2.larc.nasa.gov/cgi-bin/predict/predict.cgi to generate prediction files."))

self.label.setText(_translate("SatelliteDockWidget", "<html><head/><body><pre style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'monospace\';\">Use </span><a href=\"https://cloudsgate2.larc.nasa.gov/predict/\"><span style=\" text-decoration: underline; color:#0000ff;\">https://cloudsgate2.larc.nasa.gov/predict</span></a><span style=\" font-family:\'monospace\';\"> to generate prediction files.</span></pre></body></html>"))
5 changes: 4 additions & 1 deletion mslib/msui/ui/ui_satellite_dockwidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Use https://cloudsgate2.larc.nasa.gov/cgi-bin/predict/predict.cgi to generate prediction files.</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;pre style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'monospace';&quot;&gt;Use &lt;/span&gt;&lt;a href=&quot;https://cloudsgate2.larc.nasa.gov/predict/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://cloudsgate2.larc.nasa.gov/predict&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-family:'monospace';&quot;&gt; to generate prediction files.&lt;/span&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
Expand Down