[GRASS-SVN] r35133 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

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


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

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gdialogs.py
   grass/branches/releasebranch_6_4/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.


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gdialogs.py	2008-12-31 09:57:38 UTC (rev 35132)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gdialogs.py	2008-12-31 10:23:45 UTC (rev 35133)
@@ -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/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py	2008-12-31 09:57:38 UTC (rev 35132)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py	2008-12-31 10:23:45 UTC (rev 35133)
@@ -3893,7 +3893,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):
@@ -3921,8 +3923,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