[GRASS-SVN] r35134 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 31 05:25:23 EST 2008


Author: martinl
Date: 2008-12-31 05:25:23 -0500 (Wed, 31 Dec 2008)
New Revision: 35134

Modified:
   grass/trunk/gui/wxpython/gui_modules/gdialogs.py
   grass/trunk/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI: revert some recent decoration changes. Dialogs for barscale and
legend cannot be shown as modal - in the result d.barscale and
d.legend are not selectable.
	 (merge from relbr64, r35133)


Modified: grass/trunk/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gdialogs.py	2008-12-31 10:23:45 UTC (rev 35133)
+++ grass/trunk/gui/wxpython/gui_modules/gdialogs.py	2008-12-31 10:25:23 UTC (rev 35134)
@@ -354,9 +354,10 @@
             if mapName:
                 # enable 'OK' button
                 self.btnOK.Enable()
-                # set title
-                self.SetTitle(_('Legend of raster map <%s>') % \
-                              mapName)
+                if name == 'legend':
+                    # set title
+                    self.SetTitle(_('Legend of raster map <%s>') % \
+                                      mapName)
         
     def _CreateOverlay(self):
         if not self.parent.Map.GetOverlay(self.ovlId):

Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2008-12-31 10:23:45 UTC (rev 35133)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2008-12-31 10:25:23 UTC (rev 35134)
@@ -3889,7 +3889,9 @@
                                       ctrltxt = _("scale object"))
 
         self.dialogs['barscale'].CentreOnParent()
-        self.dialogs['barscale'].ShowModal()
+        ### dialog cannot be show as modal - in the result d.barscale is not selectable
+        ### self.dialogs['barscale'].ShowModal()
+        self.dialogs['barscale'].Show()
         self.MapWindow.mouse['use'] = 'pointer'        
 
     def OnAddLegend(self, event):
@@ -3917,8 +3919,10 @@
                                       checktxt = _("Show/hide legend"),
                                       ctrltxt = _("legend object")) 
 
-        self.dialogs['legend'].CentreOnParent()
-        self.dialogs['legend'].ShowModal()
+        self.dialogs['legend'].CentreOnParent() 
+        ### dialog cannot be show as modal - in the result d.legend is not selectable
+        ### self.dialogs['legend'].ShowModal()
+        self.dialogs['legend'].Show()
         self.MapWindow.mouse['use'] = 'pointer'
 
     def OnAddText(self, event):



More information about the grass-commit mailing list