[GRASS-SVN] r41645 - in grass/branches/develbranch_6/gui/wxpython: gui_modules xml

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 1 07:46:49 EDT 2010


Author: martinl
Date: 2010-04-01 07:46:48 -0400 (Thu, 01 Apr 2010)
New Revision: 41645

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
   grass/branches/develbranch_6/gui/wxpython/xml/menudata_modeler.xml
Log:
wxGUI/modeler: about window


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2010-04-01 09:57:18 UTC (rev 41644)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2010-04-01 11:46:48 UTC (rev 41645)
@@ -260,6 +260,19 @@
         grass.run_command('g.manual',
                           entry = 'wxGUI.Modeler')
 
+    def OnAbout(self, event):
+        """!Display About window"""
+        info = wx.AboutDialogInfo()
+
+        info.SetIcon(wx.Icon(os.path.join(globalvar.ETCICONDIR, 'grass.ico'), wx.BITMAP_TYPE_ICO))
+        info.SetName(_('wxGUI Graphical Modeler'))
+        info.SetWebSite('http://grass.osgeo.org')
+        info.SetDescription(_('(C) 2010 by the GRASS Development Team\n\n'
+                              'This program is free software under the GNU General Public License'
+                              '(>=v2). Read the file COPYING that comes with GRASS for details.'))
+        
+        wx.AboutBox(info)
+        
     def GetOptData(self, dcmd, layer, params, propwin):
         """!Process action data"""
         layer.SetProperties(dcmd, params, propwin)
@@ -398,7 +411,7 @@
         file.close()
         
         return True
-
+    
 class ModelCanvas(ogl.ShapeCanvas):
     """!Canvas where model is drawn"""
     def __init__(self, parent):

Modified: grass/branches/develbranch_6/gui/wxpython/xml/menudata_modeler.xml
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/xml/menudata_modeler.xml	2010-04-01 09:57:18 UTC (rev 41644)
+++ grass/branches/develbranch_6/gui/wxpython/xml/menudata_modeler.xml	2010-04-01 11:46:48 UTC (rev 41645)
@@ -78,6 +78,13 @@
 	  <help>Display the HTML man pages of Graphical modeler</help>
 	  <handler>OnHelp</handler>
 	</menuitem>
+	<separator />
+	<menuitem>
+	  <label>About Graphical Modeler</label>
+	  <help>Display information about Graphical Modeler</help>
+	  <handler>OnAbout</handler>
+	</menuitem>
+
       </items>
     </menu>
   </menubar>



More information about the grass-commit mailing list