Browse Source

wxGUI: add new icon to the layer manager toolbar to launch user-defined script

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58153 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 years ago
parent
commit
12353806e7
1 changed files with 6 additions and 1 deletions
  1. 6 1
      gui/wxpython/lmgr/toolbars.py

+ 6 - 1
gui/wxpython/lmgr/toolbars.py

@@ -142,6 +142,8 @@ class LMToolsToolbar(BaseToolbar):
                                  label = _('Georectifier')),
                                  label = _('Georectifier')),
             'composer': MetaIcon(img = 'print-compose',
             'composer': MetaIcon(img = 'print-compose',
                                  label = _('Cartographic Composer')),
                                  label = _('Cartographic Composer')),
+            'script-load': MetaIcon(img = 'script-load',
+                                 label = _('Launch user-defined script')),
             }
             }
         
         
         return self._getToolbarData((('importMap', icons["import"],
         return self._getToolbarData((('importMap', icons["import"],
@@ -154,7 +156,10 @@ class LMToolsToolbar(BaseToolbar):
                                      ('modeler', icons["modeler"],
                                      ('modeler', icons["modeler"],
                                       self.parent.OnGModeler),
                                       self.parent.OnGModeler),
                                      ('mapOutput', icons['composer'],
                                      ('mapOutput', icons['composer'],
-                                      self.parent.OnPsMap)
+                                      self.parent.OnPsMap),
+                                     (None, ),
+                                     ('script-load', icons['script-load'],
+                                      self.parent.OnRunScript),
                                      ))
                                      ))
 
 
 class LMMiscToolbar(BaseToolbar):
 class LMMiscToolbar(BaseToolbar):