[GRASS-SVN] r65774 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 22 10:17:35 PDT 2015
Author: martinl
Date: 2015-07-22 10:17:35 -0700 (Wed, 22 Jul 2015)
New Revision: 65774
Modified:
grass/trunk/gui/wxpython/mapdisp/toolbars.py
Log:
wxGUI: remove 'display map' tool from mapdisplay toolbar (most of users don't know what is difference between display and re-render map)
Modified: grass/trunk/gui/wxpython/mapdisp/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/toolbars.py 2015-07-22 15:29:07 UTC (rev 65773)
+++ grass/trunk/gui/wxpython/mapdisp/toolbars.py 2015-07-22 17:17:35 UTC (rev 65774)
@@ -6,7 +6,7 @@
Classes:
- toolbars::MapToolbar
-(C) 2007-2011 by the GRASS Development Team
+(C) 2007-2015 by the GRASS Development Team
This program is free software under the GNU General Public License
(>=v2). Read the file COPYING that comes with GRASS for details.
@@ -143,52 +143,53 @@
def _toolbarData(self):
"""Toolbar data"""
- return self._getToolbarData((('displayMap', BaseIcons['display'],
- self.parent.OnDraw),
- ('renderMap', BaseIcons['render'],
- self.parent.OnRender),
- ('erase', BaseIcons['erase'],
- self.parent.OnErase),
- (None, ),
- ('pointer', BaseIcons['pointer'],
- self.parent.OnPointer,
- wx.ITEM_CHECK),
- ('select', MapIcons['select'],
- self.parent.OnSelect,
- wx.ITEM_CHECK),
- ('query', MapIcons['query'],
- self.parent.OnQuery,
- wx.ITEM_CHECK),
- ('pan', BaseIcons['pan'],
- self.parent.OnPan,
- wx.ITEM_CHECK),
- ('zoomIn', BaseIcons['zoomIn'],
- self.parent.OnZoomIn,
- wx.ITEM_CHECK),
- ('zoomOut', BaseIcons['zoomOut'],
- self.parent.OnZoomOut,
- wx.ITEM_CHECK),
- ('zoomExtent', BaseIcons['zoomExtent'],
- self.parent.OnZoomToMap),
- ('zoomRegion', BaseIcons['zoomRegion'],
- self.parent.OnZoomToWind),
- ('zoomBack', BaseIcons['zoomBack'],
- self.parent.OnZoomBack),
- ('zoomMenu', BaseIcons['zoomMenu'],
- self.parent.OnZoomMenu),
- (None, ),
- ('analyze', MapIcons['analyze'],
- self.OnAnalyze),
- (None, ),
- ('overlay', BaseIcons['overlay'],
- self.OnDecoration),
- (None, ),
- ('saveFile', BaseIcons['saveFile'],
- self.parent.SaveToFile),
- ('printMap', BaseIcons['print'],
- self.parent.PrintMenu),
- (None, ))
- )
+ return self._getToolbarData((
+ #('displayMap', BaseIcons['display'],
+ #self.parent.OnDraw),
+ ('renderMap', BaseIcons['render'],
+ self.parent.OnRender),
+ ('erase', BaseIcons['erase'],
+ self.parent.OnErase),
+ (None, ),
+ ('pointer', BaseIcons['pointer'],
+ self.parent.OnPointer,
+ wx.ITEM_CHECK),
+ ('select', MapIcons['select'],
+ self.parent.OnSelect,
+ wx.ITEM_CHECK),
+ ('query', MapIcons['query'],
+ self.parent.OnQuery,
+ wx.ITEM_CHECK),
+ ('pan', BaseIcons['pan'],
+ self.parent.OnPan,
+ wx.ITEM_CHECK),
+ ('zoomIn', BaseIcons['zoomIn'],
+ self.parent.OnZoomIn,
+ wx.ITEM_CHECK),
+ ('zoomOut', BaseIcons['zoomOut'],
+ self.parent.OnZoomOut,
+ wx.ITEM_CHECK),
+ ('zoomExtent', BaseIcons['zoomExtent'],
+ self.parent.OnZoomToMap),
+ ('zoomRegion', BaseIcons['zoomRegion'],
+ self.parent.OnZoomToWind),
+ ('zoomBack', BaseIcons['zoomBack'],
+ self.parent.OnZoomBack),
+ ('zoomMenu', BaseIcons['zoomMenu'],
+ self.parent.OnZoomMenu),
+ (None, ),
+ ('analyze', MapIcons['analyze'],
+ self.OnAnalyze),
+ (None, ),
+ ('overlay', BaseIcons['overlay'],
+ self.OnDecoration),
+ (None, ),
+ ('saveFile', BaseIcons['saveFile'],
+ self.parent.SaveToFile),
+ ('printMap', BaseIcons['print'],
+ self.parent.PrintMenu),
+ (None, ))
+ )
def InsertTool(self, data):
"""Insert tool to toolbar
More information about the grass-commit
mailing list