[GRASS-SVN] r60005 - grass/branches/releasebranch_7_0/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 30 16:43:11 PDT 2014


Author: annakrat
Date: 2014-04-30 16:43:11 -0700 (Wed, 30 Apr 2014)
New Revision: 60005

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py
Log:
wxGUI/lmgr: fix using more displays when one is 3D (merged from trunk, r60004)

Modified: grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py	2014-04-30 23:42:06 UTC (rev 60004)
+++ grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py	2014-04-30 23:43:11 UTC (rev 60005)
@@ -426,7 +426,7 @@
                 self.popupMenu.AppendItem(item)
                 self.Bind(wx.EVT_MENU, self.OnPopupProperties, id = self.popupID['properties'])
             
-                if ltype in ('raster', 'vector', '3d-raster') and self.lmgr.IsPaneShown('toolbarNviz'):
+                if ltype in ('raster', 'vector', '3d-raster') and self.mapdisplay.IsPaneShown('3d'):
                     self.popupMenu.Append(self.popupID['nviz'], _("3D view properties"))
                     self.Bind (wx.EVT_MENU, self.OnNvizProperties, id = self.popupID['nviz'])
 
@@ -1315,7 +1315,7 @@
                     self.Map.ChangeLayerActive(mapLayer, checked)
         
         # nviz
-        if self.lmgr.IsPaneShown('toolbarNviz') and \
+        if self.mapdisplay.IsPaneShown('3d') and \
                 self.GetPyData(item) is not None:
             # nviz - load/unload data layer
             mapLayer = self.GetLayerInfo(item, key = 'maplayer')
@@ -1428,7 +1428,7 @@
                                                     render = render)
         
         # update nviz tools
-        if self.lmgr.IsPaneShown('toolbarNviz'):
+        if self.mapdisplay.IsPaneShown('3d'):
             if self.layer_selected.IsChecked():
                 # update Nviz tool window
                 type = self.GetLayerInfo(self.layer_selected, key = 'maplayer').type
@@ -1447,7 +1447,7 @@
         self.StopDragging()
         dropTarget = event.GetItem()
         self.flag = self.HitTest(event.GetPoint())[1]
-        if self.lmgr.IsPaneShown('toolbarNviz'):
+        if self.mapdisplay.IsPaneShown('3d'):
             self.mapdisplay.MapWindow.UnloadDataLayers(True)
         if self.IsValidDropTarget(dropTarget):
             self.UnselectAll()
@@ -1634,7 +1634,7 @@
                                # the layer tree
         
         # update nviz session        
-        if self.lmgr.IsPaneShown('toolbarNviz') and dcmd:
+        if self.mapdisplay.IsPaneShown('3d') and dcmd:
             mapLayer = self.GetLayerInfo(layer, key = 'maplayer')
             mapWin = self.mapdisplay.MapWindow
             if len(mapLayer.GetCmd()) > 0:



More information about the grass-commit mailing list