[GRASS-SVN] r47241 - grass-addons/grass7/gui/wxpython/wx.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 25 22:17:42 EDT 2011
Author: sudeepsingh
Date: 2011-07-25 19:17:42 -0700 (Mon, 25 Jul 2011)
New Revision: 47241
Modified:
grass-addons/grass7/gui/wxpython/wx.wms/serverList.txt
grass-addons/grass7/gui/wxpython/wx.wms/wmsmenu.py
Log:
Multiple selection of layers added
Modified: grass-addons/grass7/gui/wxpython/wx.wms/serverList.txt
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.wms/serverList.txt 2011-07-25 16:35:33 UTC (rev 47240)
+++ grass-addons/grass7/gui/wxpython/wx.wms/serverList.txt 2011-07-26 02:17:42 UTC (rev 47241)
@@ -0,0 +1,5 @@
+VIZ_Globe http://viz.globe.gov/viz-bin/wmt.cgi u psas
+VIZ_Globe1 http://viz.globe.gov/viz-bin/wmt.cgi u psas
+dsfsdf sdsdf sdfsdf sdsdf
+qw qw qw qw
+GisNet http://www.gisnet.lv/cgi-bin/topo sudeep password
Modified: grass-addons/grass7/gui/wxpython/wx.wms/wmsmenu.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.wms/wmsmenu.py 2011-07-25 16:35:33 UTC (rev 47240)
+++ grass-addons/grass7/gui/wxpython/wx.wms/wmsmenu.py 2011-07-26 02:17:42 UTC (rev 47241)
@@ -21,7 +21,8 @@
wx.Frame.__init__(self, *args, **kwds)
self.URL = wx.StaticText(self, -1, "URL")
self.ServerList = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN|wx.CB_SIMPLE)
- self.LayerTree = wx.TreeCtrl(self, -1, style=wx.TR_HAS_BUTTONS|wx.TR_NO_LINES|wx.TR_MULTIPLE|wx.TR_MULTIPLE|wx.TR_DEFAULT_STYLE|wx.SUNKEN_BORDER)
+ #self.LayerTree = wx.TreeCtrl(self, -1, style=wx.TR_HAS_BUTTONS|wx.TR_NO_LINES|wx.TR_MULTIPLE|wx.TR_MULTIPLE|wx.TR_DEFAULT_STYLE|wx.SUNKEN_BORDER)
+ self.LayerTree = wx.TreeCtrl(self, -1, style=wx.TR_HAS_BUTTONS|wx.TR_NO_LINES|wx.TR_MULTIPLE|wx.TR_DEFAULT_STYLE|wx.SUNKEN_BORDER)
self.GetCapabilities = wx.Button(self, -1, "GetCapabilities")
self.GetMaps = wx.Button(self, -1, "GetMaps")
self.addServer = wx.Button(self, -1, "AddServer")
@@ -201,9 +202,19 @@
event.Skip()
def OnLayerTreeSelChanged(self, event): # wxGlade: wmsFrame.<event_handler>
- self.layerName = self.LayerTree.GetItemText(event.GetItem())
- print "Event handler `OnLayerTreeSelChanged' not implemented"
-
+ #self.layerName = self.LayerTree.GetItemText(event.GetItem())
+ #print "Event handler `OnLayerTreeSelChanged' not implemented"
+ self.selectedLayerList = []
+ self.layerName = ""
+ print "Selected layers:"
+ for sellayer in self.LayerTree.GetSelections():
+ layerName = self.LayerTree.GetItemText(sellayer)
+ self.selectedLayerList += [layerName]
+ self.layerName += ","+layerName
+
+ self.layerName = self.layerName[1:]
+ print self.layerName
+ #print "Event handler `OnLayerTreeSelChanged' not implemented"
event.Skip()
def OnAddServer(self, event): # wxGlade: wmsFrame.<event_handler>
More information about the grass-commit
mailing list