[GRASS-SVN] r54211 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 5 07:30:23 PST 2012


Author: martinl
Date: 2012-12-05 07:30:22 -0800 (Wed, 05 Dec 2012)
New Revision: 54211

Modified:
   grass/trunk/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI/Gdal dialog cosmetics


Modified: grass/trunk/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/dialogs.py	2012-12-05 14:58:54 UTC (rev 54210)
+++ grass/trunk/gui/wxpython/gui_core/dialogs.py	2012-12-05 15:30:22 UTC (rev 54211)
@@ -1593,15 +1593,20 @@
         
         self.panel = wx.Panel(parent = self, id = wx.ID_ANY)
         
-        self.layerBox = wx.StaticBox(parent = self.panel, id = wx.ID_ANY,
-                                     label = _(" List of %s layers ") % self.importType.upper())
+        self.layerBox = wx.StaticBox(parent = self.panel, id = wx.ID_ANY)
+        if self.importType == 'gdal':
+            self.layerBox.SetLabel(" %s " % _("List of raster layers"))
+        elif self.importType == 'ogr':
+            self.layerBox.SetLabel(" %s " % _("List of vector layers"))
+        else:
+            self.layerBox.SetLabel(_(" List of %s layers ") % self.importType.upper())
         
         #
         # list of layers
         #
         columns = [_('Layer id'),
                    _('Layer name'),
-                   _('Name for GRASS map (editable)')]
+                   _('Name for output GRASS map (editable)')]
         if itype == 'ogr':
             columns.insert(2, _('Feature type'))
         self.list = LayersList(parent = self.panel, columns = columns)
@@ -1790,6 +1795,8 @@
     def __init__(self, parent, giface, ogr = False, link = False):
         """!Dialog for bulk import of various raster/vector data
 
+        @todo Split into GdalImportDialog and OgrImportDialog
+
         @param parent parent window
         @param ogr True for OGR (vector) otherwise GDAL (raster)
         @param link True for linking data otherwise importing data
@@ -1933,6 +1940,8 @@
                  style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, *kwargs):
         """!Dialog for setting output format for rasters/vectors
 
+        @todo Split into GdalOutputDialog and OgrOutputDialog
+
         @param parent parent window
         @param id window id
         @param ogr True for OGR (vector) otherwise GDAL (raster)



More information about the grass-commit mailing list