[GRASS-SVN] r35171 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 2 16:38:15 EST 2009


Author: martinl
Date: 2009-01-02 16:38:15 -0500 (Fri, 02 Jan 2009)
New Revision: 35171

Removed:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/track.py
Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI: remove unused 'track'
       (merge from trunk r35169)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2009-01-02 21:34:26 UTC (rev 35170)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2009-01-02 21:38:15 UTC (rev 35171)
@@ -53,7 +53,6 @@
 
 import render
 import toolbars
-import track
 import menuform
 import gselect
 import disp_print

Deleted: grass/branches/develbranch_6/gui/wxpython/gui_modules/track.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/track.py	2009-01-02 21:34:26 UTC (rev 35170)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/track.py	2009-01-02 21:38:15 UTC (rev 35171)
@@ -1,69 +0,0 @@
-"""
-Variables set at initialization
-"""
-global curr_disp
-curr_disp=""
-global ctrl_dict
-ctrl_dict={}
-
-class Track:
-	"""
-	This class has functions and variables for tracking map display,
-	associated notebook pages, and other index values.
-	"""
-
-	def SetCtrlDict(self, idx, disp, page, tree):
-		"""
-		This method stores the associated display index, display ID,
-		controls book page ID, and map layer tree ID in a dictionary
-		"""
-		global ctrl_dict
-		ctrl_dict[idx]=[disp, page, tree]
-		return ctrl_dict
-
-	def GetCtrls(self, idx, num):
-		"""
-		Returns widget ID for map display (num=0), controls book page
-		(num=1), or map layer tree (num=2) for a given map display
-		index (idx)
-		"""
-		global ctrl_dict
-		ctrls = ctrl_dict[idx][num]
-		return ctrls
-
-	def popCtrl(self, idx):
-		"""
-		Removes entry from display and control dictionary.
-		Used when display is closed
-		"""
-		global ctrl_dict
-		if ctrl_dict != "":
-			ctrl_dict.pop(idx)
-
-	def GetDisp_idx(self, ctrl_id):
-		"""
-		Returns the display index for the display/controls dictionary entry
-		given the widget ID of the control (ctrl_id)
-		"""
-		global ctrl_dict
-		for idx,ctrl in ctrl_dict.items():
-			if ctrl_id in ctrl:
-				return idx
-
-	def SetDisp(self, disp_idx, disp_id):
-		"""
-		Creates a tuple of the currently active display index and its corresponding
-		map display frame ID.
-		"""
-		global curr_disp
-		curr_disp = (disp_idx, disp_id)
-		return curr_disp
-
-	def GetDisp(self):
-		"""
-		Returns the (display index, display ID) tuple of the currently
-		active display
-		"""
-		global curr_disp
-		return curr_disp
-



More information about the grass-commit mailing list