[GRASS-SVN] r51745 -
grass/branches/develbranch_6/gui/wxpython/vdigit
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 25 09:44:06 EDT 2012
Author: annakrat
Date: 2012-05-25 06:44:06 -0700 (Fri, 25 May 2012)
New Revision: 51745
Modified:
grass/branches/develbranch_6/gui/wxpython/vdigit/toolbars.py
Log:
wxGUI/digitizer: add help button to digitizer toolbar (merged from trunk, r51742)
Modified: grass/branches/develbranch_6/gui/wxpython/vdigit/toolbars.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/vdigit/toolbars.py 2012-05-25 13:37:17 UTC (rev 51744)
+++ grass/branches/develbranch_6/gui/wxpython/vdigit/toolbars.py 2012-05-25 13:44:06 UTC (rev 51745)
@@ -122,6 +122,8 @@
'settings' : BaseIcons['settings'].SetLabel(_('Digitization settings')),
'quit' : BaseIcons['quit'].SetLabel(label = _('Quit digitizer'),
desc = _('Quit digitizer and save changes')),
+ 'help' : BaseIcons['help'].SetLabel(label = _('Vector Digitizer manual'),
+ desc = _('Show Vector Digitizer manual')),
'additionalTools' : MetaIcon(img = 'tools',
label = _('Additional tools '
'(copy, flip, connect, etc.)'),
@@ -179,6 +181,8 @@
self.OnUndo),
("settings", icons["settings"],
self.OnSettings),
+ ("help", icons["help"],
+ self.OnHelp),
("quit", icons["quit"],
self.OnExit))
)
@@ -374,6 +378,12 @@
style = wx.DEFAULT_DIALOG_STYLE)
self.settingsDialog.Show()
+ def OnHelp(self, event):
+ """!Show digitizer help page in web browser"""
+ log = self.parent.GetLayerManager().GetLogWindow()
+ log.RunCmd(['g.manual',
+ 'entry=wxGUI.Vector_Digitizer'])
+
def OnAdditionalToolMenu(self, event):
"""!Menu for additional tools"""
point = wx.GetMousePosition()
More information about the grass-commit
mailing list