Commit 6512761f authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

added actio to open online documentation

parent 1b56b794
......@@ -27,8 +27,9 @@ VERSION = '0.5'
LICENSE = 'GNU GPL-3'
TITLE = 'EO Time Series Viewer'
DESCRIPTION = 'A QGIS Plugin to visualize multi-sensor remote-sensing time-series data.'
WEBSITE = 'https://bitbucket.org/jakimowb/eo-time-series-viewer'
REPOSITORY = 'https://bitbucket.org/jakimowb/eo-time-series-viewer'
URL_WEBSITE = 'https://bitbucket.org/jakimowb/eo-time-series-viewer'
URL_DOCUMENTATION = 'http://eo-time-series-viewer.readthedocs.io/en/latest/'
URL_REPOSITORY = 'https://bitbucket.org/jakimowb/eo-time-series-viewer'
ABOUT = """
The EO Time Series Viewer is developed at Humboldt-Universität zu Berlin. Born in the SenseCarbon project, it was funded by the German Aerospace Centre (DLR) and granted by the Federal Ministry of Education and Research (BMBF, grant no. 50EE1254). Since 2017 it is developed under contract by the German Research Centre for Geosciences (GFZ) as part of the EnMAP Core Science Team activities (www.enmap.org), funded by DLR and granted by the Federal Ministry of Economic Affairs and Energy (BMWi, grant no. 50EE1529).
"""
......
......@@ -522,7 +522,9 @@ class TimeSeriesViewer(QgisInterface, QObject):
from timeseriesviewer.ui.widgets import AboutDialogUI, PropertyDialogUI
D.actionAbout.triggered.connect(lambda: AboutDialogUI(self.ui).exec_())
D.actionSettings.triggered.connect(lambda : PropertyDialogUI(self.ui).exec_())
import webbrowser
from timeseriesviewer import URL_DOCUMENTATION
D.actionShowOnlineHelp.triggered.connect(lambda : webbrowser.open(URL_DOCUMENTATION))
D.dockSpectralLibrary.SLW.sigLoadFromMapRequest.connect(D.actionIdentifySpectralProfile.trigger)
......
......@@ -35,9 +35,9 @@ from timeseriesviewer.ui.docks import TsvDockWidgetBase, loadUI
from timeseriesviewer.plotstyling import PlotStyle, PlotStyleButton
from timeseriesviewer.pixelloader import PixelLoader, PixelLoaderTask
from timeseriesviewer.sensorvisualization import SensorListModel
from timeseriesviewer.temporalprofiles2d import *
from timeseriesviewer.temporalprofiles3d import *
from timeseriesviewer.temporalprofiles2d import LABEL_EXPRESSION_2D
from timeseriesviewer.temporalprofiles3d import LABEL_EXPRESSION_3D
import pyqtgraph as pg
from pyqtgraph import functions as fn
from pyqtgraph import AxisItem
......@@ -1196,9 +1196,7 @@ class ProfileViewDockUI(QgsDockWidget, loadUI('profileviewdock.ui')):
self.plotWidget3D = None
self.plotWidget3DMPL = None
mode = 'No3D'
if OPENGL_AVAILABLE:
self.init3DWidgets('gl')
self.init3DWidgets('gl')
#pi = self.plotWidget2D.plotItem
......@@ -1227,10 +1225,10 @@ class ProfileViewDockUI(QgsDockWidget, loadUI('profileviewdock.ui')):
self.btnSaveTemporalProfiles.setMenu(self.menuTPSaveOptions)
def init3DWidgets(self, mode):
assert mode in ['gl','mpl']
assert mode in ['gl']
l = self.frame3DPlot.layout()
if True and OPENGL_AVAILABLE and mode == 'gl':
if OPENGL_AVAILABLE and mode == 'gl':
from timeseriesviewer.temporalprofiles3dGL import ViewWidget3D
self.plotWidget3D = ViewWidget3D(parent=self.frame3DPlot)
......@@ -1243,7 +1241,8 @@ class ProfileViewDockUI(QgsDockWidget, loadUI('profileviewdock.ui')):
l.removeWidget(self.labelDummy3D)
self.plotWidget3D.setBaseSize(size)
self.splitter3D.setSizes([100, 100])
else:
self.frameSettings3D.setEnabled(False)
def onStackPageChanged(self, i):
w = self.stackedWidget.currentWidget()
......
......@@ -146,7 +146,7 @@
</sizepolicy>
</property>
<property name="currentIndex">
<number>2</number>
<number>1</number>
</property>
<widget class="QWidget" name="page2D">
<layout class="QVBoxLayout" name="verticalLayout_3">
......@@ -632,9 +632,10 @@
background-color: rgb(0, 0, 0);</string>
</property>
<property name="text">
<string>Unable to initialize 3D plot window.
Please ensure that PyOpenGL is installed
(http://pyopengl.sourceforge.net)</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Unable to initialize 3D plot window. &lt;br/&gt;Please ensure that PyOpenGL (http://pyopengl.sourceforge.net) is installed. &lt;br/&gt;&lt;/p&gt;&lt;p&gt;You can install PyOpenGL calling:&lt;br/&gt;&lt;span style=&quot; font-family:'Courier';&quot;&gt;python -m pip install PyOpenGL&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="openExternalLinks">
<bool>true</bool>
......
......@@ -178,6 +178,7 @@
</property>
<addaction name="actionAbout"/>
<addaction name="actionSettings"/>
<addaction name="actionShowOnlineHelp"/>
</widget>
<widget class="QMenu" name="menuView">
<property name="title">
......@@ -417,7 +418,7 @@
<action name="actionAbout">
<property name="icon">
<iconset resource="resources.qrc">
<normaloff>:/timeseriesviewer/icons/metadata.svg</normaloff>:/timeseriesviewer/icons/metadata.svg</iconset>
<normaloff>:/timeseriesviewer/icons/IconTimeSeries.svg</normaloff>:/timeseriesviewer/icons/IconTimeSeries.svg</iconset>
</property>
<property name="text">
<string>About</string>
......@@ -685,6 +686,18 @@
<string>Loads a vector data file</string>
</property>
</action>
<action name="actionShowOnlineHelp">
<property name="icon">
<iconset resource="resources.qrc">
<normaloff>:/timeseriesviewer/icons/metadata.svg</normaloff>:/timeseriesviewer/icons/metadata.svg</iconset>
</property>
<property name="text">
<string>Help (online)</string>
</property>
<property name="toolTip">
<string>Opens the online documentation</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment