소스 검색

wxGUI: remove unused 'track'

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35169 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 년 전
부모
커밋
549ac0d363
2개의 변경된 파일0개의 추가작업 그리고 70개의 파일을 삭제
  1. 0 1
      gui/wxpython/gui_modules/mapdisp.py
  2. 0 69
      gui/wxpython/gui_modules/track.py

+ 0 - 1
gui/wxpython/gui_modules/mapdisp.py

@@ -53,7 +53,6 @@ sys.path.append(gmpath)
 
 import render
 import toolbars
-import track
 import menuform
 import gselect
 import disp_print

+ 0 - 69
gui/wxpython/gui_modules/track.py

@@ -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
-