~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to gui/wxpython/icons/grass_icons.py

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
"""
2
 
Original GRASS icon set from old TCL/TK GUI
 
2
New GRASS icon set
 
3
http://robert.szczepanek.pl/icons.php
 
4
https://svn.osgeo.org/osgeo/graphics/toolbar-icons/24x24/
3
5
"""
 
6
__author__ = "Robert Szczepanek"
4
7
 
5
8
import os
6
9
 
7
10
from core import globalvar
8
11
 
9
 
iconPath = os.path.join(globalvar.ETCDIR, "gui", "icons", "grass")
10
 
iconPathVDigit  = os.path.join(globalvar.ETCDIR, "gui", "icons", "grass", "edit")
11
 
 
12
 
iconSet = {
13
 
    "show" : 'gui-display.gif',
14
 
    "layer-redraw"  : 'gui-redraw.gif',
15
 
    "erase"      : 'gui-erase.gif',
16
 
    "pointer"    : 'gui-pointer.gif',
17
 
    "zoom-in"    : 'gui-zoom_in.gif',
18
 
    "zoom-out"   : 'gui-zoom_out.gif',
19
 
    "pan"        : 'gui-pan.gif',
20
 
    "info"      : 'gui-query.gif',
21
 
    "zoom-last"  : 'gui-zoom_back.gif',
22
 
    "zoom-more"   : 'gui-mapzoom.gif',
23
 
    "map-export"   : 'file-save.gif',
24
 
    "print"   : 'file-print.gif',
25
 
    "overlay-add"    : 'gui-overlay.gif',
26
 
    "point-create": 'new.point.gif',
27
 
    "line-create" : 'new.line.gif',
28
 
    "boundary-create": 'new.boundary.gif',
29
 
    "centroid-create": 'new.centroid.gif',
30
 
    "vertex-create" : 'add.vertex.gif',
31
 
    "vertex-move" : 'move.vertex.gif',
32
 
    "vertex-delete" : 'rm.vertex.gif',
33
 
    "line-split" : 'split.line.gif',
34
 
    "line-edit" : 'edit.line.gif',
35
 
    "line-move" : 'move.line.gif',
36
 
    "line-delete" : 'delete.line.gif',
37
 
    "cats-copy" : 'copy.cats.gif',
38
 
    "cats-display" : 'display.cats.gif',
39
 
    "attributes-display" : 'display.attributes.gif',
40
 
    "monitor-create" : 'gui-startmon.gif',
41
 
    "create"    : 'file-new.gif',
42
 
    "layer-open"   : 'file-new.gif', 
43
 
    "open"   : 'file-open.gif',
44
 
    "save"   : 'file-save.gif',
45
 
    "layer-import" : 'file-new.gif',
46
 
    "layer-raster-add"    : 'element-cell.gif',
47
 
    "layer-raster-more"   : 'module-d.shadedmap.gif',
48
 
    "layer-raster3d-add"  : 'element-grid3.gif',
49
 
    "layer-vector-add"    : 'element-vector.gif',
50
 
    "layer-vector-more"   : 'module-d.vect.thematic.gif',
51
 
    "layer-command-add"     : 'gui-cmd.gif',
52
 
    "layer-group-add"     : 'gui-group.gif',
53
 
    "layer-more"     : 'module-d.grid.gif',
54
 
    "layer-remove"     : 'edit-cut.gif',
55
 
    "table"  : 'db-values.gif',
56
 
    "layer-rgb-add"     : 'module-d.rgb.gif',
57
 
    "layer-his-add"     : 'channel-his.gif',
58
 
    "layer-shaded-relief-add"  : 'module-d.shadedmap.gif',
59
 
    "layer-aspect-arrow-add"  : 'module-d.rast.arrow.gif',
60
 
    "layer-cell-cats-add"    : 'module-d.rast.num.gif',
61
 
    "layer-vector-thematic-add": 'module-d.vect.thematic.gif',
62
 
    "layer-vector-chart-add"   : 'module-d.vect.chart.gif',
63
 
    "layer-grid-add"    : 'module-d.grid.gif',
64
 
    "options": 'module-d.geodesic.gif',
65
 
    "options"   : 'module-d.rhumbline.gif',
66
 
    "layer-label-add"  : 'module-d.labels.gif',
67
 
    "text-add"    : 'module-d.text.gif',
68
 
    "scalebar-add": 'module-d.barscale.gif',
69
 
    "legend-add"  : 'module-d.legend.gif',
70
 
    "quit"       : 'gui-exit.gif',
71
 
    "layer-raster-analyze"    : 'gui-rastanalyze.gif',
72
 
    "measure-length"    : 'gui-measure.gif',
73
 
    "font"       : 'gui-font.gif',
74
 
    "layer-raster-histogram"  : 'module-d.histogram.gif',
75
 
    "color"      : 'edit-color.gif',
76
 
    "options"  : 'gui-layeroptions.gif',
77
 
    "layer-raster-profile"    : 'gui-profile.gif',
78
 
    "layer-raster-profile"   : 'gui-profiledefine.gif',
79
 
    "show" : 'gui-display.gif',
80
 
    "profileopt" : 'gui-profileopt.gif',
81
 
    'gcp-remove'   : 'gui-gcperase.gif',
82
 
    'gcp-create'     : 'gui-gcpset.gif',
83
 
    'georectify'    : 'gui-georect.gif',
84
 
    'gcp-rms'     : 'gui-rms.gif',
85
 
    "gcp-save"    : 'file-save.gif', 
86
 
    "reload"  : 'gui-redraw.gif',
87
 
    "settings"       : 'edit-color.gif',
88
 
    "redraw"         : 'gui-display.gif',
89
 
    }
 
12
iconPath = os.path.join(globalvar.ICONDIR, "grass")
 
13
 
 
14
iconSet = dict()
 
15
 
 
16
for icon in os.listdir(iconPath):
 
17
    name, ext = os.path.splitext(icon)
 
18
    if ext != '.png':
 
19
        continue
 
20
    iconSet[name] = icon