瀏覽代碼

wxGUI/GCPManager: use grass2 'help' icon

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43087 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 年之前
父節點
當前提交
536f6a8dee
共有 2 個文件被更改,包括 11 次插入12 次删除
  1. 8 12
      gui/wxpython/gui_modules/toolbars.py
  2. 3 0
      gui/wxpython/icons/icon.py

+ 8 - 12
gui/wxpython/gui_modules/toolbars.py

@@ -399,12 +399,10 @@ class GCPManToolbar(AbstractToolbar):
             )
     
 class GCPDisplayToolbar(AbstractToolbar):
-    """
-    GCP Display toolbar
+    """!GCP Display toolbar
     """
     def __init__(self, parent):
-        """!
-        GCP Display toolbar constructor
+        """!GCP Display toolbar constructor
         """
         AbstractToolbar.__init__(self, parent)
         
@@ -487,8 +485,8 @@ class GCPDisplayToolbar(AbstractToolbar):
             (self.settings, 'grSettings', Icons["grSettings"].GetBitmap(), 
              wx.ITEM_NORMAL, Icons["grSettings"].GetLabel(), Icons["grSettings"].GetDesc(),
              self.parent.OnSettings),
-            (self.helpid, 'grHelp', wx.ArtProvider.GetBitmap(id=wx.ART_HELP, client=wx.ART_TOOLBAR, size=globalvar.toolbarSize), 
-             wx.ITEM_NORMAL, _('Show Help'), _('Show Help for GCP Manager'),
+            (self.helpid, 'grHelp', Icons["grHelp"].GetBitmap(),
+             wx.ITEM_NORMAL, Icons["grHelp"].GetLabel(), Icons["grHelp"].GetDesc(),
              self.parent.OnHelp),
             ("", "", "", "", "", "", ""),
             (self.quit, 'grGcpQuit', Icons["grGcpQuit"].GetBitmap(), 
@@ -497,12 +495,10 @@ class GCPDisplayToolbar(AbstractToolbar):
             )
     
 class GRToolbar(AbstractToolbar):
-    """
-    Georectification toolbar
+    """!Georectification toolbar
     """
     def __init__(self, parent, mapcontent):
-        """!
-        Georectification toolbar constructor
+        """!Georectification toolbar constructor
 
         @param parent reference to MapFrame
         @param mapcontent reference to render.Map (registred by MapFrame)
@@ -574,8 +570,8 @@ class GRToolbar(AbstractToolbar):
             event.Skip()
         
 class GCPToolbar(AbstractToolbar):
-    """!
-    Toolbar for managing ground control points during georectification
+    """!Toolbar for managing ground control points during
+    georectification
 
     @param parent reference to GCP widget
     """

+ 3 - 0
gui/wxpython/icons/icon.py

@@ -334,6 +334,9 @@ Icons = {
     "grSettings": MetaIcon (img=Icons["settings"],
                             label=_("Settings"),
                             desc=_("Settings dialog for georectification tool")),
+    "grHelp": MetaIcon (img=Icons["help"],
+                        label=_('Show help'),
+                        desc = _('Show help for GCP Manager')),
     # nviz
     "nvizView": MetaIcon (img=Icons["nvizView"],
                           label=_("Switch to view control page")),