[GRASS-SVN] r57365 - grass/trunk/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 2 03:26:28 PDT 2013
Author: martinl
Date: 2013-08-02 03:26:28 -0700 (Fri, 02 Aug 2013)
New Revision: 57365
Modified:
grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI: launch gdal/ogr GUI front-end dialog also from cmd, autogenerated dialog can be launch by --ui switch (TODO: rewrite mechanism to prefer front-ends)
Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py 2013-08-02 10:23:40 UTC (rev 57364)
+++ grass/trunk/gui/wxpython/lmgr/frame.py 2013-08-02 10:26:28 UTC (rev 57365)
@@ -279,7 +279,8 @@
# create 'command output' text area
self._gconsole = GConsole(guiparent = self, giface = self._giface,
- ignoredCmdPattern = '^d\..*|^r[3]?\.mapcalc$|^i.group')
+ ignoredCmdPattern = '^d\..*|^r[3]?\.mapcalc$|^i.group|^r.in.gdal|^r.external|^r.external.out|'
+ '^v.in.ogr|^v.external|^v.external.out')
self.goutput = GConsoleWindow(parent = self, gconsole = self._gconsole,
menuModel=self._moduleTreeBuilder.GetModel(),
gcstyle = GC_PROMPT)
@@ -607,6 +608,19 @@
self.OnMapCalculator(event = None, cmd = command)
elif command[0] == 'i.group':
self.OnEditImageryGroups(event = None, cmd = command)
+ elif command[0] == 'r.in.gdal':
+ self.OnImportGdalLayers(event = None, cmd = command)
+ elif command[0] == 'r.external':
+ self.OnLinkGdalLayers(event = None, cmd = command)
+ elif command[0] == 'r.external.out':
+ self.OnRasterOutputFormat(event = None)
+ elif command[0] == 'v.in.ogr':
+ self.OnImportOgrLayers(event = None, cmd = command)
+ elif command[0] == 'v.external':
+ self.OnLinkOgrLayers(event = None, cmd = command)
+ elif command[0] == 'v.external.out':
+ self.OnVectorOutputFormat(event = None)
+
else:
raise ValueError('Layer Manager special command (%s)'
' not supported.' % ' '.join(command))
More information about the grass-commit
mailing list