浏览代码

new icons for ps.map GUI front-end by Robert Szczepanek
(see http://trac.osgeo.org/osgeo/ticket/668)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45427 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 14 年之前
父节点
当前提交
3ff3367fd7

二进制
gui/icons/grass2/ps-export.png


二进制
gui/icons/grass2/ps-script.png


+ 2 - 0
gui/wxpython/icons/grass2_icons.py

@@ -125,4 +125,6 @@ IconsGrass2 = {
     "settings"       : 'settings.png',
     "redraw"         : 'redraw.png',
     "help"           : 'help.png',
+    "psScript"       : 'ps-script.png',
+    "psExport"       : 'ps-export.png',
     }

+ 2 - 0
gui/wxpython/icons/grass_icons.py

@@ -127,4 +127,6 @@ IconsGrass = {
     "settings"       : 'edit-color.gif',
     "redraw"         : 'gui-display.gif',
     "help"           : wx.ART_ERROR,
+    "psScript"       : wx.ART_ERROR,
+    "psExport"       : wx.ART_ERROR,
     }

+ 6 - 2
gui/wxpython/icons/icon.py

@@ -77,8 +77,7 @@ try:
                 else:
                     Icons[key] = os.path.join(iconpath_default, img)
 except:
-    print >> sys.stderr, _("Unable to load icon theme...")
-    sys.exit(1)
+    sys.exit(_("Unable to load icon theme..."))
 
 class MetaIcon:
     """!Handle icon metadata (image path, tooltip, ...)
@@ -416,6 +415,11 @@ Icons = {
     "modelHelp"   : MetaIcon (img=Icons["help"],
                              label=_("Show help"),
                              desc = _("Display Graphical Modeler manual page")),
+    # ps.map
+    "psScript" : MetaIcon (img=Icons["psScript"],
+                           label=_("Generate instruction file")),
+    "psExport" : MetaIcon (img=Icons["psExport"],
+                           label=_("Generate PostScript output")),
     }
 
 # testing ...

+ 2 - 0
gui/wxpython/icons/silk_icons.py

@@ -129,4 +129,6 @@ IconsSilk = {
     "settings"       : 'color_swatch.png',
     "redraw"         : 'arrow_refresh.png',
     "help"           : wx.ART_ERROR,
+    "psScript"       : wx.ART_ERROR,
+    "psExport"       : wx.ART_ERROR,
     }