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' ...@@ -27,8 +27,9 @@ VERSION = '0.5'
LICENSE = 'GNU GPL-3' LICENSE = 'GNU GPL-3'
TITLE = 'EO Time Series Viewer' TITLE = 'EO Time Series Viewer'
DESCRIPTION = 'A QGIS Plugin to visualize multi-sensor remote-sensing time-series data.' DESCRIPTION = 'A QGIS Plugin to visualize multi-sensor remote-sensing time-series data.'
WEBSITE = 'https://bitbucket.org/jakimowb/eo-time-series-viewer' URL_WEBSITE = 'https://bitbucket.org/jakimowb/eo-time-series-viewer'
REPOSITORY = '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 = """ 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). 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): ...@@ -522,7 +522,9 @@ class TimeSeriesViewer(QgisInterface, QObject):
from timeseriesviewer.ui.widgets import AboutDialogUI, PropertyDialogUI from timeseriesviewer.ui.widgets import AboutDialogUI, PropertyDialogUI
D.actionAbout.triggered.connect(lambda: AboutDialogUI(self.ui).exec_()) D.actionAbout.triggered.connect(lambda: AboutDialogUI(self.ui).exec_())
D.actionSettings.triggered.connect(lambda : PropertyDialogUI(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) D.dockSpectralLibrary.SLW.sigLoadFromMapRequest.connect(D.actionIdentifySpectralProfile.trigger)
......
...@@ -35,9 +35,9 @@ from timeseriesviewer.ui.docks import TsvDockWidgetBase, loadUI ...@@ -35,9 +35,9 @@ from timeseriesviewer.ui.docks import TsvDockWidgetBase, loadUI
from timeseriesviewer.plotstyling import PlotStyle, PlotStyleButton from timeseriesviewer.plotstyling import PlotStyle, PlotStyleButton
from timeseriesviewer.pixelloader import PixelLoader, PixelLoaderTask from timeseriesviewer.pixelloader import PixelLoader, PixelLoaderTask
from timeseriesviewer.sensorvisualization import SensorListModel from timeseriesviewer.sensorvisualization import SensorListModel
from timeseriesviewer.temporalprofiles2d import * from timeseriesviewer.temporalprofiles2d import LABEL_EXPRESSION_2D
from timeseriesviewer.temporalprofiles3d import *
from timeseriesviewer.temporalprofiles3d import LABEL_EXPRESSION_3D from timeseriesviewer.temporalprofiles3d import LABEL_EXPRESSION_3D
import pyqtgraph as pg import pyqtgraph as pg
from pyqtgraph import functions as fn from pyqtgraph import functions as fn
from pyqtgraph import AxisItem from pyqtgraph import AxisItem
...@@ -1196,9 +1196,7 @@ class ProfileViewDockUI(QgsDockWidget, loadUI('profileviewdock.ui')): ...@@ -1196,9 +1196,7 @@ class ProfileViewDockUI(QgsDockWidget, loadUI('profileviewdock.ui')):
self.plotWidget3D = None self.plotWidget3D = None
self.plotWidget3DMPL = None self.plotWidget3DMPL = None
mode = 'No3D' self.init3DWidgets('gl')
if OPENGL_AVAILABLE:
self.init3DWidgets('gl')
#pi = self.plotWidget2D.plotItem #pi = self.plotWidget2D.plotItem
...@@ -1227,10 +1225,10 @@ class ProfileViewDockUI(QgsDockWidget, loadUI('profileviewdock.ui')): ...@@ -1227,10 +1225,10 @@ class ProfileViewDockUI(QgsDockWidget, loadUI('profileviewdock.ui')):
self.btnSaveTemporalProfiles.setMenu(self.menuTPSaveOptions) self.btnSaveTemporalProfiles.setMenu(self.menuTPSaveOptions)
def init3DWidgets(self, mode): def init3DWidgets(self, mode):
assert mode in ['gl','mpl'] assert mode in ['gl']
l = self.frame3DPlot.layout() l = self.frame3DPlot.layout()
if True and OPENGL_AVAILABLE and mode == 'gl': if OPENGL_AVAILABLE and mode == 'gl':
from timeseriesviewer.temporalprofiles3dGL import ViewWidget3D from timeseriesviewer.temporalprofiles3dGL import ViewWidget3D
self.plotWidget3D = ViewWidget3D(parent=self.frame3DPlot) self.plotWidget3D = ViewWidget3D(parent=self.frame3DPlot)
...@@ -1243,7 +1241,8 @@ class ProfileViewDockUI(QgsDockWidget, loadUI('profileviewdock.ui')): ...@@ -1243,7 +1241,8 @@ class ProfileViewDockUI(QgsDockWidget, loadUI('profileviewdock.ui')):
l.removeWidget(self.labelDummy3D) l.removeWidget(self.labelDummy3D)
self.plotWidget3D.setBaseSize(size) self.plotWidget3D.setBaseSize(size)
self.splitter3D.setSizes([100, 100]) self.splitter3D.setSizes([100, 100])
else:
self.frameSettings3D.setEnabled(False)
def onStackPageChanged(self, i): def onStackPageChanged(self, i):
w = self.stackedWidget.currentWidget() w = self.stackedWidget.currentWidget()
......
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>2</number> <number>1</number>
</property> </property>
<widget class="QWidget" name="page2D"> <widget class="QWidget" name="page2D">
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">
...@@ -632,9 +632,10 @@ ...@@ -632,9 +632,10 @@
background-color: rgb(0, 0, 0);</string> background-color: rgb(0, 0, 0);</string>
</property> </property>
<property name="text"> <property name="text">
<string>Unable to initialize 3D plot window. <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>
Please ensure that PyOpenGL is installed </property>
(http://pyopengl.sourceforge.net)</string> <property name="alignment">
<set>Qt::AlignCenter</set>
</property> </property>
<property name="openExternalLinks"> <property name="openExternalLinks">
<bool>true</bool> <bool>true</bool>
......
...@@ -178,6 +178,7 @@ ...@@ -178,6 +178,7 @@
</property> </property>
<addaction name="actionAbout"/> <addaction name="actionAbout"/>
<addaction name="actionSettings"/> <addaction name="actionSettings"/>
<addaction name="actionShowOnlineHelp"/>
</widget> </widget>
<widget class="QMenu" name="menuView"> <widget class="QMenu" name="menuView">
<property name="title"> <property name="title">
...@@ -417,7 +418,7 @@ ...@@ -417,7 +418,7 @@
<action name="actionAbout"> <action name="actionAbout">
<property name="icon"> <property name="icon">
<iconset resource="resources.qrc"> <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>
<property name="text"> <property name="text">
<string>About</string> <string>About</string>
...@@ -685,6 +686,18 @@ ...@@ -685,6 +686,18 @@
<string>Loads a vector data file</string> <string>Loads a vector data file</string>
</property> </property>
</action> </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> </widget>
<customwidgets> <customwidgets>
<customwidget> <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