[GRASS-SVN] r33331 - in grass/branches/develbranch_6: gui/icons gui/icons/grass gui/icons/grass/vdigit gui/wxpython/icons vector/v.digit

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 8 11:25:05 EDT 2008


Author: martinl
Date: 2008-09-08 11:25:04 -0400 (Mon, 08 Sep 2008)
New Revision: 33331

Added:
   grass/branches/develbranch_6/gui/icons/grass/vdigit/
   grass/branches/develbranch_6/gui/icons/grass/vdigit/add.vertex.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/box.xbm
   grass/branches/develbranch_6/gui/icons/grass/vdigit/copy.cats.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/cross.xbm
   grass/branches/develbranch_6/gui/icons/grass/vdigit/cross45.xbm
   grass/branches/develbranch_6/gui/icons/grass/vdigit/delete.line.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/display.attributes.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/display.cats.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/edit.line.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/exit.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/move.line.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/move.vertex.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/new.boundary.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/new.centroid.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/new.line.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/new.point.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/redraw.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/rm.vertex.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/settings.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/split.line.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/stop.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.default.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.out.centre.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.pan.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.region.gif
   grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.window.gif
Removed:
   grass/branches/develbranch_6/vector/v.digit/icons/
Modified:
   grass/branches/develbranch_6/gui/icons/Makefile
   grass/branches/develbranch_6/gui/wxpython/icons/icon.py
   grass/branches/develbranch_6/vector/v.digit/Makefile
   grass/branches/develbranch_6/vector/v.digit/driver.c
   grass/branches/develbranch_6/vector/v.digit/toolbox.tcl
Log:
v.digit icons moved to gui/icons/grass/vdigit
vdigit icons need to be available (for wxGUI) even v.digit is not compiled


Modified: grass/branches/develbranch_6/gui/icons/Makefile
===================================================================
--- grass/branches/develbranch_6/gui/icons/Makefile	2008-09-08 13:05:06 UTC (rev 33330)
+++ grass/branches/develbranch_6/gui/icons/Makefile	2008-09-08 15:25:04 UTC (rev 33331)
@@ -6,15 +6,21 @@
 	if [ ! -d $(ETC)/gui ] ; then $(MKDIR) $(ETC)/gui ; fi
 	if [ ! -d $(ETC)/gui/icons ] ; then $(MKDIR) $(ETC)/gui/icons ; fi
 	if [ ! -d $(ETC)/gui/icons/grass ] ; then $(MKDIR) $(ETC)/gui/icons/grass ; fi
+	if [ ! -d $(ETC)/gui/icons/grass/vdigit ] ; then $(MKDIR) $(ETC)/gui/icons/grass/vdigit ; fi
 	if [ ! -d $(ETC)/gui/icons/silk ] ; then $(MKDIR) $(ETC)/gui/icons/silk ; fi
 	for icon in grass/*.gif ; do $(INSTALL_DATA) $$icon $(ETC)/gui/icons/grass ; done
+	for icon in grass/vdigit/*.gif ; do $(INSTALL_DATA) $$icon $(ETC)/gui/icons/grass/vdigit ; done
+	for icon in grass/vdigit/*.xbm ; do $(INSTALL_DATA) $$icon $(ETC)/gui/icons/grass/vdigit ; done
 	for icon in silk/*.png ; do $(INSTALL_DATA) $$icon $(ETC)/gui/icons/silk ; done
 	for icon in *.ico ; do $(INSTALL_DATA) $$icon $(ETC)/gui/icons ; done
 	if [ ! -d $(GISBASE)/docs ] ; then $(MKDIR) $(GISBASE)/docs ; fi
 	if [ ! -d $(GISBASE)/docs/html ] ; then $(MKDIR) $(GISBASE)/docs/html ; fi
 	if [ ! -d $(GISBASE)/docs/html/icons ] ; then $(MKDIR) $(GISBASE)/docs/html/icons ; fi
 	if [ ! -d $(GISBASE)/docs/html/icons/grass ] ; then $(MKDIR) $(GISBASE)/docs/html/icons/grass ; fi
+	if [ ! -d $(GISBASE)/docs/html/icons/grass/vdigit ] ; then $(MKDIR) $(GISBASE)/docs/html/icons/grass/vdigit ; fi
 	if [ ! -d $(GISBASE)/docs/html/icons/silk ] ; then $(MKDIR) $(GISBASE)/docs/html/icons/silk ; fi
 	for icon in grass/*.gif ; do $(INSTALL_DATA) $$icon $(GISBASE)/docs/html/icons/grass ; done
+	for icon in grass/vdigit/*.gif ; do $(INSTALL_DATA) $$icon $(GISBASE)/docs/html/icons/grass/vdigit ; done
+	for icon in grass/vdigit/*.xbm ; do $(INSTALL_DATA) $$icon $(GISBASE)/docs/html/icons/grass/vdigit ; done
 	for icon in silk/*.png ; do $(INSTALL_DATA) $$icon $(GISBASE)/docs/html/icons/silk ; done
 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/add.vertex.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/add.vertex.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/add.vertex.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/box.xbm (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/box.xbm)
===================================================================
--- grass/branches/develbranch_6/gui/icons/grass/vdigit/box.xbm	                        (rev 0)
+++ grass/branches/develbranch_6/gui/icons/grass/vdigit/box.xbm	2008-09-08 15:25:04 UTC (rev 33331)
@@ -0,0 +1,5 @@
+#define box_width 9
+#define box_height 9
+static unsigned char box_bits[] = {
+   0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 0xc7, 0x01, 0xc7, 0x01, 0xc7, 0x01,
+   0xff, 0x01, 0xff, 0x01, 0xff, 0x01 };


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/box.xbm
___________________________________________________________________
Name: svn:mime-type
   + image/x-xbitmap
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/copy.cats.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/copy.cats.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/copy.cats.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/cross.xbm (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/cross.xbm)
===================================================================
--- grass/branches/develbranch_6/gui/icons/grass/vdigit/cross.xbm	                        (rev 0)
+++ grass/branches/develbranch_6/gui/icons/grass/vdigit/cross.xbm	2008-09-08 15:25:04 UTC (rev 33331)
@@ -0,0 +1,5 @@
+#define cross_width 9
+#define cross_height 9
+static unsigned char cross_bits[] = {
+   0x38, 0x00, 0x38, 0x00, 0x38, 0x00, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01,
+   0x38, 0x00, 0x38, 0x00, 0x38, 0x00 };


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/cross.xbm
___________________________________________________________________
Name: svn:mime-type
   + image/x-xbitmap
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/cross45.xbm (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/cross45.xbm)
===================================================================
--- grass/branches/develbranch_6/gui/icons/grass/vdigit/cross45.xbm	                        (rev 0)
+++ grass/branches/develbranch_6/gui/icons/grass/vdigit/cross45.xbm	2008-09-08 15:25:04 UTC (rev 33331)
@@ -0,0 +1,5 @@
+#define cross45_width 9
+#define cross45_height 9
+static unsigned char cross45_bits[] = {
+   0x82, 0x00, 0xc7, 0x01, 0xee, 0x00, 0x7c, 0x00, 0x38, 0x00, 0x7c, 0x00,
+   0xee, 0x00, 0xc7, 0x01, 0x82, 0x00 };


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/cross45.xbm
___________________________________________________________________
Name: svn:mime-type
   + image/x-xbitmap
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/delete.line.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/delete.line.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/delete.line.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/display.attributes.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/display.attributes.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/display.attributes.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/display.cats.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/display.cats.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/display.cats.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/edit.line.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/edit.line.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/edit.line.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/exit.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/exit.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/exit.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/move.line.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/move.line.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/move.line.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/move.vertex.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/move.vertex.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/move.vertex.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/new.boundary.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/new.boundary.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/new.boundary.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/new.centroid.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/new.centroid.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/new.centroid.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/new.line.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/new.line.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/new.line.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/new.point.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/new.point.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/new.point.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/redraw.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/redraw.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/redraw.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/rm.vertex.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/rm.vertex.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/rm.vertex.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/settings.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/settings.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/settings.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/split.line.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/split.line.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/split.line.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/stop.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/stop.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/stop.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.default.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/zoom.default.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.default.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.out.centre.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/zoom.out.centre.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.out.centre.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.pan.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/zoom.pan.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.pan.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.region.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/zoom.region.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.region.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Copied: grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.window.gif (from rev 33280, grass/branches/develbranch_6/vector/v.digit/icons/zoom.window.gif)
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/gui/icons/grass/vdigit/zoom.window.gif
___________________________________________________________________
Name: svn:mime-type
   + image/gif
Name: svn:mergeinfo
   + 

Modified: grass/branches/develbranch_6/gui/wxpython/icons/icon.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/icons/icon.py	2008-09-08 13:05:06 UTC (rev 33330)
+++ grass/branches/develbranch_6/gui/wxpython/icons/icon.py	2008-09-08 15:25:04 UTC (rev 33331)
@@ -40,7 +40,7 @@
     iconpath = None
 
 iconpath_default = os.path.join(globalvar.ETCDIR, "gui", "icons", "grass")
-iconpath_vdigit  = os.path.join(globalvar.ETCDIR, "v.digit")
+iconpath_vdigit  = os.path.join(globalvar.ETCDIR, "gui", "icons", "grass", "vdigit")
 
 icons_default = {
     # map display

Modified: grass/branches/develbranch_6/vector/v.digit/Makefile
===================================================================
--- grass/branches/develbranch_6/vector/v.digit/Makefile	2008-09-08 13:05:06 UTC (rev 33330)
+++ grass/branches/develbranch_6/vector/v.digit/Makefile	2008-09-08 15:25:04 UTC (rev 33331)
@@ -13,10 +13,8 @@
 
 AUXDIR := $(GISBASE)/etc/v.digit
 TCLFILES := $(patsubst %,$(AUXDIR)/%,$(wildcard *.tcl))
-GIFFILES := $(patsubst icons/%,$(AUXDIR)/%,$(wildcard icons/*.gif))
-XBMFILES := $(patsubst icons/%,$(AUXDIR)/%,$(wildcard icons/*.xbm))
 
-default: cmd $(TCLFILES) $(GIFFILES) $(XBMFILES)
+default: cmd $(TCLFILES)
 
 $(AUXDIR):
 	if [ ! -d $(ETC) ]; then $(MKDIR) $(ETC); fi
@@ -25,9 +23,4 @@
 $(AUXDIR)/%.tcl: %.tcl $(AUXDIR)
 	$(INSTALL_DATA) $< $@
 
-$(AUXDIR)/%.gif: icons/%.gif $(AUXDIR)
-	$(INSTALL_DATA) $< $@
 
-$(AUXDIR)/%.xbm: icons/%.xbm $(AUXDIR)
-	$(INSTALL_DATA) $< $@
-

Modified: grass/branches/develbranch_6/vector/v.digit/driver.c
===================================================================
--- grass/branches/develbranch_6/vector/v.digit/driver.c	2008-09-08 13:05:06 UTC (rev 33330)
+++ grass/branches/develbranch_6/vector/v.digit/driver.c	2008-09-08 15:25:04 UTC (rev 33331)
@@ -48,7 +48,7 @@
     G_plot_where_xy(x, y, &xi, &yi);
 
     sprintf(buf,
-	    ".screen.canvas create bitmap %d %d -bitmap @$vdpath/%s.xbm -foreground %s -anchor center",
+	    ".screen.canvas create bitmap %d %d -bitmap @$iconpath/%s.xbm -foreground %s -anchor center",
 	    xi, yi, icon, color);
     if (Tcl_Eval(Toolbox, buf) != TCL_OK)
 	G_warning("driver_plot_icon: %s", Toolbox->result);

Modified: grass/branches/develbranch_6/vector/v.digit/toolbox.tcl
===================================================================
--- grass/branches/develbranch_6/vector/v.digit/toolbox.tcl	2008-09-08 13:05:06 UTC (rev 33330)
+++ grass/branches/develbranch_6/vector/v.digit/toolbox.tcl	2008-09-08 15:25:04 UTC (rev 33331)
@@ -8,6 +8,7 @@
 DynamicHelp::configure -font balloon-help -fg black -bg "#FFFF77"
 
 set vdpath $env(GISBASE)/etc/v.digit/
+set iconpath $env(GISBASE)/etc/gui/icons/grass/vdigit/
 source $vdpath/settings.tcl
 source $vdpath/cats.tcl
 source $vdpath/form.tcl
@@ -35,7 +36,7 @@
 }
 
 proc create_screen {} {
-    global vdpath map_name map_mapset
+    global vdpath iconpath map_name map_mapset
     if {[winfo exists .screen]} return
 
     toplevel .screen
@@ -48,9 +49,9 @@
     wm deiconify .screen
     update
 
-    image create bitmap cross -file "$vdpath/cross.xbm"
-    image create bitmap cross45 -file "$vdpath/cross45.xbm"
-    image create bitmap box -file "$vdpath/box.xbm"
+    image create bitmap cross -file "$iconpath/cross.xbm"
+    image create bitmap cross45 -file "$iconpath/cross45.xbm"
+    image create bitmap box -file "$iconpath/box.xbm"
 }
 
 # GVariable stores variables by key, this variables are (should be) synchronized with
@@ -106,58 +107,58 @@
 set bbox2 [ButtonBox .bbox2 -spacing 1 -padx 1 -pady 1]
 
 # --- Draw new ---
-$bbox2 add -image [image create photo -file "$vdpath/new.point.gif"] \
+$bbox2 add -image [image create photo -file "$iconpath/new.point.gif"] \
         -command "c_next_tool new_point" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Digitize new point"]
 
-$bbox2 add -image [image create photo -file "$vdpath/new.line.gif"] \
+$bbox2 add -image [image create photo -file "$iconpath/new.line.gif"] \
         -command "c_next_tool new_line" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Digitize new line"]
 
-$bbox2 add -image [image create photo -file "$vdpath/new.boundary.gif"] \
+$bbox2 add -image [image create photo -file "$iconpath/new.boundary.gif"] \
         -command "c_next_tool new_boundary" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Digitize new boundary"]
 
-$bbox2 add -image [image create photo -file "$vdpath/new.centroid.gif"] \
+$bbox2 add -image [image create photo -file "$iconpath/new.centroid.gif"] \
         -command "c_next_tool new_centroid" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Digitize new centroid"]
 
 # --- Edit old ---
-$bbox2 add -image [image create photo -file "$vdpath/move.vertex.gif"] \
+$bbox2 add -image [image create photo -file "$iconpath/move.vertex.gif"] \
         -command "c_next_tool move_vertex" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Move vertex"]
 
-$bbox2 add -image [image create photo -file "$vdpath/add.vertex.gif"] \
+$bbox2 add -image [image create photo -file "$iconpath/add.vertex.gif"] \
         -command "c_next_tool add_vertex" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Add vertex"]
 
-$bbox2 add -image [image create photo -file "$vdpath/rm.vertex.gif"] \
+$bbox2 add -image [image create photo -file "$iconpath/rm.vertex.gif"] \
         -command "c_next_tool rm_vertex" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Remove vertex"]
 
-$bbox2 add -image [image create photo -file "$vdpath/split.line.gif"] \
+$bbox2 add -image [image create photo -file "$iconpath/split.line.gif"] \
         -command "c_next_tool split_line" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Split line"]
 
-$bbox2 add -image [image create photo -file "$vdpath/edit.line.gif"] \
+$bbox2 add -image [image create photo -file "$iconpath/edit.line.gif"] \
         -command "c_next_tool edit_line" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Edit line/boundary"]
 
-$bbox2 add -image [image create photo -file "$vdpath/move.line.gif"] \
+$bbox2 add -image [image create photo -file "$iconpath/move.line.gif"] \
         -command "c_next_tool move_line" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Move point, line, boundary, or centroid"]
 
-$bbox2 add -image [image create photo -file "$vdpath/delete.line.gif"] \
+$bbox2 add -image [image create photo -file "$iconpath/delete.line.gif"] \
         -command "c_next_tool delete_line" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Delete point, line, boundary, or centroid"]
@@ -168,27 +169,27 @@
 
 # --- Zoom / Display ---
 
-$bbox1 add -image [image create photo -file "$vdpath/redraw.gif"] \
+$bbox1 add -image [image create photo -file "$iconpath/redraw.gif"] \
         -command "c_next_tool redraw" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Redraw"]
 
-$bbox1 add -image [image create photo -file "$vdpath/zoom.window.gif"] \
+$bbox1 add -image [image create photo -file "$iconpath/zoom.window.gif"] \
         -command "c_next_tool zoom_window" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Zoom in by window"]
 
-$bbox1 add -image [image create photo -file "$vdpath/zoom.out.centre.gif"] \
+$bbox1 add -image [image create photo -file "$iconpath/zoom.out.centre.gif"] \
         -command "c_next_tool zoom_out_centre" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Zoom out"]
 
-$bbox1 add -image [image create photo -file "$vdpath/zoom.pan.gif"] \
+$bbox1 add -image [image create photo -file "$iconpath/zoom.pan.gif"] \
         -command "c_next_tool zoom_pan" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Pan"]
 
-$bbox1 add -image [image create photo -file "$vdpath/zoom.default.gif"] \
+$bbox1 add -image [image create photo -file "$iconpath/zoom.default.gif"] \
         -command "c_next_tool zoom_default" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Zoom to default region"]
@@ -201,40 +202,40 @@
     }
 }
 
-$bbox1 add -image [image create photo -file "$vdpath/zoom.region.gif"] \
+$bbox1 add -image [image create photo -file "$iconpath/zoom.region.gif"] \
         -command "zoom_region" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Zoom to saved region"]
 
 # --- Attributes ---
-$bbox1 add -image [image create photo -file "$vdpath/display.cats.gif"] \
+$bbox1 add -image [image create photo -file "$iconpath/display.cats.gif"] \
         -command "c_next_tool display_cats" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Display categories"]
 
-$bbox1 add -image [image create photo -file "$vdpath/copy.cats.gif"] \
+$bbox1 add -image [image create photo -file "$iconpath/copy.cats.gif"] \
         -command "c_next_tool copy_cats" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Copy categories"]
 
-$bbox1 add -image [image create photo -file "$vdpath/display.attributes.gif"] \
+$bbox1 add -image [image create photo -file "$iconpath/display.attributes.gif"] \
         -command "c_next_tool display_attributes" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Display attributes"]
 
 # --- Stop ---
-#$bbox1 add -image [image create photo -file "$vdpath/stop.gif"] \
+#$bbox1 add -image [image create photo -file "$iconpath/stop.gif"] \
 #        -command "c_cancel" \
 #        -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
 #        -helptext "Quit running tool"
 
 # --- Others ---
-$bbox1 add -image [image create photo -file "$vdpath/settings.gif"] \
+$bbox1 add -image [image create photo -file "$iconpath/settings.gif"] \
         -command "c_next_tool settings" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -helptext [G_msg "Open settings"]
 
-$bbox1 add -image [image create photo -file "$vdpath/exit.gif"] \
+$bbox1 add -image [image create photo -file "$iconpath/exit.gif"] \
         -command "c_next_tool exit" \
         -highlightthickness 0 -takefocus 0 -relief raised -borderwidth 1 \
         -bg white \



More information about the grass-commit mailing list