<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head> <!-- <DEFANGED_STYLE type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--> --> </DEFANGED_STYLE><title>Re: [GRASSLIST:5851] Download Grass OSX aqua (new
with cha</title></head><body>
<div>Hi all</div>
<div><br></div>
<div>It's ready last CVS (050219) for GRASS 6 with A NEW MENU IN AQUA
NATIVE.</div>
<div><br></div>
<div>You have to download and install before the grass libraries patch
for enabling this features from:</div>
<div
>http://wwwamb.bologna.enea.it/forgrass/files/grasslib_patch_aqua_gda<span
></span>l_e00_050202.zip</div>
<div><br></div>
<div>It includes:</div>
<div>- previous GDAL patch;</div>
<div>- e00 import files;</div>
<div>- NEW AQUA OSX MENU for GRASS 6.</div>
<div><br></div>
<div>After download last GRASS 6 CVS from my cvs page:</div>
<div><br></div>
<div>http://wwwamb.bologna.enea.it/forgrass/downloadcvs.htm</div>
<div><br></div>
<div>Drag grass60cvs app inside /Applications/Grass folder.</div>
<div><br></div>
<div>Open grass60cvs and now you can select your preferred menu: OSX
and/or X11.</div>
<div><br></div>
<div>Grass use TclTk for GIS Manager and TclTk is available in Mac OS
X under 2 release: X11 and Aqua native.</div>
<div>I use all X11 tcltk libs and 1 runtime app with name "Wish
Shell" for AQUA version.</div>
<div>All is installed in /usr/local/grasslib folder.</div>
<div>Wish Shell.app (runtime version for TclTkAqua) is installed in
/usr/local/grasslib/bin.</div>
<div>Nothing is outside: nothing goes to conflict.</div>
<div>More info about TclTk: http://www.tcl.tk</div>
<div>More info about TclTkAqua:
http://tcltkaqua.sourceforge.net/</div>
<div><br></div>
<div
>--------------------------------------------------------------------<span
></span>-------</div>
<div><br></div>
<div>GRASS WITH MENU IN OS X</div>
<div>=======================<br>
</div>
<div>1) I have created a small starting application in
apple-script-studio<br>
</div>
<div>2) Inside grass60cvs application in Contents/Resources there are
2 folders:<br>
</div>
<div>grass-6.0.cvs</div>
<div>grassx-6.0.cvs</div>
<div><br>
The first one is the complete package with all code and it works in
X11.</div>
<div>The second one is for Grass with OS X menu and it has all
symbolic links to the first one but 3 files:</div>
<div>only 3 files are modified in grassx-6.0.cvs</div>
<div><br></div>
<div>3) changes only for OSX menu version</div>
<div>---------------------------------------------<br>
changes in etc/Init.sh<br>
</div>
<div>row 188-189 (X11 OSX version in grass-6.0.cvs/etc/Init.sh )</div>
<div>- export GRASS_TCLSH=/usr/local/grasslib/bin/tclsh<br>
- export GRASS_WISH=/usr/local/grasslib/bin/wish<br>
</div>
<div>row 188-189<br>
+ export GRASS_TCLSH=/usr/local/grasslib/bin/Wish\
Shell.app/Contents/Frameworks/Tcl.framework/Versions/8.4/Tcl</div>
<div>+ export GRASS_WISH=/usr/local/grasslib/bin/Wish\
Shell.app/Contents/MacOS/Wish\ Shell<br>
<br>
- if [ ! "$GRASS_TCLSH" ] ; then<br>
- GRASS_TCLSH=tclsh<br>
- export GRASS_TCLSH<br>
- fi<br>
-<br>
- if [ ! "$GRASS_WISH" ] ; then<br>
- WISH_OS=`echo 'puts $tcl_platform(platform) ; exit
0' | wish`<br>
- if [ "$?" = 0 -a "$WISH_OS" =
macintosh ] ; then<br>
- #force X11 tcl on Mac:<br>
- GRASS_WISH=/usr/bin/wish<br>
- else<br>
- GRASS_WISH=wish<br>
- fi<br>
- export GRASS_WISH<br>
- fi<br>
<br>
row 582 <br>
# Check for tcltk interface<br>
tcltk)<br>
-
"$GISBASE/scripts/d.m" &<br>
+
"$GISBASE/scripts/d.m" | sh &<br>
<x-tab> </x-tab>;;<br>
<br>
---------------------------------------------<br>
<br>
changes in etc/dm/dm.tcl<br>
<br>
Search and Replace all:</div>
<div>Control-Key --> Command-Key</div>
<div><br>
---------------------------------------------<br>
<br>
changes in etc/dm/menu.tcl<br>
<br>
Search and Replace all:<br>
all file 1 --> all
file 0<br>
all options 1 --> all options 0<br>
{} "" 1
--> {} "" 0<br>
" 1 [
--> " 0 [<br>
Ctrl-
--> Command-<br>
</div>
<div>---------------------------------------------</div>
<div><br></div>
<div>The changes in d.m.tcl and menu.tcl convert Ctrl-Key with
Command-Key, more natural for all Mac apps: you can print with
Command-P or save the workspace with Command-S (apple-S).</div>
<div><br></div>
<div>You can browse inside a Mac standard dialog, you can use
Copy-Paste inside the box and much more: it's completely a new
experience.</div>
<div><br></div>
<div>CONS.</div>
<div>- a bit slower refresh in GIS Manager list in OSX Aqua;</div>
<div>- display raster map with legend is erased at the end (but the
future version of GIS Manager changes this feature and it works)</div>
<div>- d.font freeze under OSX Aqua (I think that d.font search X11
fonts from Aqua and it doesn't find them)</div>
<div><br></div>
<div><br></div>
<div><br></div>
<div><b>Comments and other changes</b> (font menu, print menu,
etc...)<b> are welcome</b><br>
</div>
<div>Bye</div>
<div><br></div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div
>____________________________________________________________________<span
></span>____<br>
|| Lorenzo
Moretti e-mail:
lorenzo.moretti@bologna.enea.it <br>
||/|/| ENEA
prot/idr Web:
http://wwwamb.bologna.enea.it/ </div>
<div>|| | via Don Fiammelli, 2 FTP:
ftp://ftpamb.bologna.enea.it/ (ris.)<br>
~~~~~~ 40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax:
+39-0516098131<br>
_____________________________________________________________________<span
></span>___</div>
</body>
</html>