[GRASS-SVN] r43267 - in grass/trunk/gui/wxpython: gui_modules icons
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 25 14:54:20 EDT 2010
Author: martinl
Date: 2010-08-25 18:54:20 +0000 (Wed, 25 Aug 2010)
New Revision: 43267
Modified:
grass/trunk/gui/wxpython/gui_modules/gmodeler.py
grass/trunk/gui/wxpython/gui_modules/toolbars.py
grass/trunk/gui/wxpython/icons/icon.py
Log:
wxGUI/modeler: add help icon to the toolbar
Modified: grass/trunk/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gmodeler.py 2010-08-25 18:08:40 UTC (rev 43266)
+++ grass/trunk/gui/wxpython/gui_modules/gmodeler.py 2010-08-25 18:54:20 UTC (rev 43267)
@@ -672,6 +672,17 @@
dlg.ShowModal()
self.canvas.Refresh()
+ def OnHelp(self, event):
+ """!Show help"""
+ if self.parent and self.parent.GetName() == 'LayerManager':
+ log = self.parent.GetLogWindow()
+ log.RunCmd(['g.manual',
+ 'entry=wxGUI.Modeler'])
+ else:
+ gcmd.RunCommand('g.manual',
+ quiet = True,
+ entry = 'wxGUI.Modeler')
+
def OnModelProperties(self, event):
"""!Model properties dialog"""
dlg = PropertiesDialog(parent = self)
Modified: grass/trunk/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/toolbars.py 2010-08-25 18:08:40 UTC (rev 43266)
+++ grass/trunk/gui/wxpython/gui_modules/toolbars.py 2010-08-25 18:54:20 UTC (rev 43267)
@@ -1650,10 +1650,10 @@
self.run = wx.NewId()
self.validate = wx.NewId()
self.settings = wx.NewId()
- # self.properties = wx.NewId()
self.variables = wx.NewId()
self.quit = wx.NewId()
self.redraw = wx.NewId()
+ self.help = wx.NewId()
# tool, label, bitmap, kind, shortHelp, longHelp, handler
return (
@@ -1699,11 +1699,15 @@
(self.settings, "settings", Icons["modelSettings"].GetBitmap(),
wx.ITEM_NORMAL, Icons["modelSettings"].GetLabel(), Icons["modelSettings"].GetDesc(),
self.parent.OnPreferences),
+ (self.help, "help", Icons["modelHelp"].GetBitmap(),
+ wx.ITEM_NORMAL, Icons["modelHelp"].GetLabel(), Icons["modelHelp"].GetDesc(),
+ self.parent.OnHelp),
+ ('', '', '', '', '', '', ''),
(self.quit, 'quit', Icons['quit'].GetBitmap(),
wx.ITEM_NORMAL, Icons['quit'].GetLabel(), Icons['quit'].GetDesc(),
self.parent.OnCloseWindow),
)
-
+
class HistogramToolbar(AbstractToolbar):
"""!Histogram toolbar (see histogram.py)
"""
Modified: grass/trunk/gui/wxpython/icons/icon.py
===================================================================
--- grass/trunk/gui/wxpython/icons/icon.py 2010-08-25 18:08:40 UTC (rev 43266)
+++ grass/trunk/gui/wxpython/icons/icon.py 2010-08-25 18:54:20 UTC (rev 43267)
@@ -336,7 +336,7 @@
desc=_("Settings dialog for georectification tool")),
"grHelp": MetaIcon (img=Icons["help"],
label=_('Show help'),
- desc = _('Show help for GCP Manager')),
+ desc = _('Display GCP Manager manual page')),
# nviz
"nvizView": MetaIcon (img=Icons["nvizView"],
label=_("Switch to view control page"),
@@ -360,7 +360,7 @@
label=_("3D view mode tools"),
desc=_("Show/hide 3D view mode settings dialog")),
"nvizHelp" : MetaIcon (img=Icons["help"],
- label=_("Help for 3D view mode"),
+ label=_("Show help"),
desc = _("Display 3D view mode manual page")),
"nvizQuit": MetaIcon (img=Icons["quit"],
label=_("Quit 3D view mode"),
@@ -396,6 +396,9 @@
label=_("Manage model variables")),
"modelRedraw" : MetaIcon (img=Icons["redraw"],
label=_("Redraw model canvas")),
+ "modelHelp" : MetaIcon (img=Icons["help"],
+ label=_("Show help"),
+ desc = _("Display Graphical Modeler manual page")),
}
# testing ...
More information about the grass-commit
mailing list