[GRASS-SVN] r43780 - in grass/branches/develbranch_6/gui/wxpython:
. gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 4 15:01:38 EDT 2010
Author: martinl
Date: 2010-10-04 19:01:37 +0000 (Mon, 04 Oct 2010)
New Revision: 43780
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py
grass/branches/develbranch_6/gui/wxpython/wxgui.py
Log:
wxGUI/bulk dialog: fix -o flag
do not override proj check by default
name for grass map editable
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py 2010-10-03 21:01:34 UTC (rev 43779)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py 2010-10-04 19:01:37 UTC (rev 43780)
@@ -1045,7 +1045,7 @@
"""!Add imported/linked layers into layer tree"""
self.commandId += 1
- if not self.add.IsChecked():
+ if not self.add.IsChecked() or returncode != 0:
return
maptree = self.parent.curr_page.maptree
@@ -1060,8 +1060,8 @@
if self.importType == 'gdal':
cmd = ['d.rast',
'map=%s' % name]
- if UserSettings.Get(group='cmd', key='rasterOpaque', subkey='enabled'):
- cmd.append('-n')
+ if UserSettings.Get(group='cmd', key='rasterOverlay', subkey='enabled'):
+ cmd.append('-o')
item = maptree.AddLayer(ltype='raster',
lname=name,
@@ -1102,7 +1102,6 @@
if not link:
self.overrideCheck = wx.CheckBox(parent=self.panel, id=wx.ID_ANY,
label=_("Override projection (use location's projection)"))
- self.overrideCheck.SetValue(True)
if link:
self.add.SetLabel(_("Add linked layers into layer tree"))
@@ -1248,11 +1247,10 @@
self.btn_run.Enable(False)
class LayersList(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin,
- listmix.CheckListCtrlMixin):
-# listmix.CheckListCtrlMixin, listmix.TextEditMixin):
+ listmix.CheckListCtrlMixin, listmix.TextEditMixin):
"""!List of layers to be imported (dxf, shp...)"""
- def __init__(self, parent, pos=wx.DefaultPosition,
- log=None):
+ def __init__(self, parent, pos = wx.DefaultPosition,
+ log = None):
self.parent = parent
wx.ListCtrl.__init__(self, parent, wx.ID_ANY,
@@ -1262,8 +1260,8 @@
# setup mixins
listmix.ListCtrlAutoWidthMixin.__init__(self)
- # listmix.TextEditMixin.__init__(self)
-
+ listmix.TextEditMixin.__init__(self)
+
self.InsertColumn(0, _('Layer'))
self.InsertColumn(1, _('Layer name'))
self.InsertColumn(2, _('Name for GRASS map'))
Modified: grass/branches/develbranch_6/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/wxgui.py 2010-10-03 21:01:34 UTC (rev 43779)
+++ grass/branches/develbranch_6/gui/wxpython/wxgui.py 2010-10-04 19:01:37 UTC (rev 43780)
@@ -98,7 +98,7 @@
"""
def __init__(self, parent, id = wx.ID_ANY, title = _("GRASS GIS Layer Manager"),
workspace = None,
- size = (575, 450), style = wx.DEFAULT_FRAME_STYLE, **kwargs):
+ size = (600, 450), style = wx.DEFAULT_FRAME_STYLE, **kwargs):
self.parent = parent
self.baseTitle = title
self.iconsize = (16, 16)
More information about the grass-commit
mailing list