Przeglądaj źródła

wxgui_utils -> layertree

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41561 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 lat temu
rodzic
commit
dcb4d76850

+ 1 - 1
gui/wxpython/gui_modules/__init__.py

@@ -12,6 +12,7 @@ all = [
     "goutput.py",
     "gselect.py",
     "histogram.py",
+    "layertree.py",
     "location_wizard.py",
     "mapdisp_command.py",
     "mapdisp_window.py",
@@ -33,5 +34,4 @@ all = [
     "utils.py",
     "vdigit.py",
     "workspace.py",
-    "wxgui_utils.py",
 ]

+ 1 - 1
gui/wxpython/gui_modules/wxgui_utils.py

@@ -1,5 +1,5 @@
 """!
-@package wxgui_utils.py
+@package layertree.py
 
 @brief Utility classes for map layer management.
 

+ 7 - 7
gui/wxpython/wxgui.py

@@ -72,7 +72,7 @@ from grass.script import core as grass
 
 import gui_modules.utils as utils
 import gui_modules.preferences as preferences
-import gui_modules.wxgui_utils as wxgui_utils
+import gui_modules.layertree as layertree
 import gui_modules.mapdisp as mapdisp
 import gui_modules.menudata as menudata
 import gui_modules.menuform as menuform
@@ -1159,12 +1159,12 @@ class GMFrame(wx.Frame):
         self.curr_page = self.gm_cb.GetCurrentPage()
         
         # create layer tree (tree control for managing GIS layers)  and put on new notebook page
-        self.curr_page.maptree = wxgui_utils.LayerTree(self.curr_page, id=wx.ID_ANY, pos=wx.DefaultPosition,
-                                                       size=wx.DefaultSize, style=wx.TR_HAS_BUTTONS
-                                                       |wx.TR_LINES_AT_ROOT|wx.TR_HIDE_ROOT
-                                                       |wx.TR_DEFAULT_STYLE|wx.NO_BORDER|wx.FULL_REPAINT_ON_RESIZE,
-                                                       idx=self.disp_idx, lmgr=self, notebook=self.gm_cb,
-                                                       auimgr=self._auimgr, showMapDisplay=show)
+        self.curr_page.maptree = layertree.LayerTree(self.curr_page, id=wx.ID_ANY, pos=wx.DefaultPosition,
+                                                     size=wx.DefaultSize, style=wx.TR_HAS_BUTTONS |
+                                                     wx.TR_LINES_AT_ROOT| wx.TR_HIDE_ROOT |
+                                                     wx.TR_DEFAULT_STYLE| wx.NO_BORDER | wx.FULL_REPAINT_ON_RESIZE,
+                                                     idx=self.disp_idx, lmgr=self, notebook=self.gm_cb,
+                                                     auimgr=self._auimgr, showMapDisplay=show)
         
         # layout for controls
         cb_boxsizer = wx.BoxSizer(wx.VERTICAL)