Bladeren bron

wxGUI/Gdal dialog cosmetics

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54211 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 jaren geleden
bovenliggende
commit
6cd1c8c615
1 gewijzigde bestanden met toevoegingen van 12 en 3 verwijderingen
  1. 12 3
      gui/wxpython/gui_core/dialogs.py

+ 12 - 3
gui/wxpython/gui_core/dialogs.py

@@ -1593,15 +1593,20 @@ class ImportDialog(wx.Dialog):
         
         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 @@ class GdalImportDialog(ImportDialog):
     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 @@ class GdalOutputDialog(wx.Dialog):
                  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)