[GRASS-SVN] r57916 - grass/trunk/gui/wxpython/timeline
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 2 17:59:08 PDT 2013
Author: annakrat
Date: 2013-10-02 17:59:08 -0700 (Wed, 02 Oct 2013)
New Revision: 57916
Modified:
grass/trunk/gui/wxpython/timeline/frame.py
Log:
wxGUI/timeline: display only name without mapset to make it shorter
Modified: grass/trunk/gui/wxpython/timeline/frame.py
===================================================================
--- grass/trunk/gui/wxpython/timeline/frame.py 2013-10-02 20:30:48 UTC (rev 57915)
+++ grass/trunk/gui/wxpython/timeline/frame.py 2013-10-03 00:59:08 UTC (rev 57916)
@@ -280,8 +280,8 @@
plots = []
lookUp = LookUp(self.timeData)
for i, name in enumerate(self.datasets):
+ yticksNames.append(name[0]) # just name; with mapset it would be long
name = name[0] + '@' + name[1]
- yticksNames.append(name)
yticksPos.append(i)
barData = []
pointData = []
@@ -484,13 +484,15 @@
"""!Formats information about dataset"""
text = []
etype = timeData[datasetName]['elementType']
+ name, mapset = datasetName.split('@')
if etype == 'strds':
- text.append(_("Space time raster dataset: %s") % datasetName)
+ text.append(_("Space time raster dataset: %s") % name)
elif etype == 'stvds':
- text.append(_("Space time vector dataset: %s") % datasetName)
+ text.append(_("Space time vector dataset: %s") % name)
elif etype == 'str3ds':
- text.append(_("Space time 3D raster dataset: %s") % datasetName)
+ text.append(_("Space time 3D raster dataset: %s") % name)
+ text.append(_("Mapset: %s") % mapset)
text.append(_("Map name: %s") % timeData[datasetName]['names'][mapIndex])
text.append(_("Start time: %s") % timeData[datasetName]['start_datetime'][mapIndex])
text.append(_("End time: %s") % timeData[datasetName]['end_datetime'][mapIndex])
More information about the grass-commit
mailing list