[GRASS5] Re: usability tweak on OSX

Michael Barton michael.barton at asu.edu
Tue Jun 7 12:00:35 EDT 2005


Hamish,

I think this makes sense. Could you go ahead and apply the patch. I'm about
to leave for Spain and don't know if I'll get a chance to commit this from
my office computer  or not.

While we're on the subject of windows, the settings window in v.digit is
really annoying. It always opens in a thin, vertical band that I then have
to stretch. Somewhere there has to be a window geometry setting for this,
but I can't find it so far. Any ideas?

Cheers,
Michael


On 6/7/05 12:40 AM, "Hamish" <hamish_nospam at yahoo.com> wrote:

> Hi,
> 
> Here's a window placement tweak that makes things a bit less annoying
> on the Mac (and I guess elsewhere too) from the d.m zoom/pan buttons.
> 
> It's sort of bending to my preferences of where windows should be placed,
> but we should specify something other than just dumping everything in
> the middle of screen. Having to drag the windows to somewhere useful
> everytime you start the program is a pain.
> 
> 
> Index: d.m.tcl
> ===================================================================
> RCS file: /home/grass/grassrepository/grass6/display/d.m/d.m.tcl,v
> retrieving revision 1.41
> diff -u -r1.41 d.m.tcl
> --- d.m.tcl     1 Apr 2005 23:43:29 -0000       1.41
> +++ d.m.tcl     7 Jun 2005 06:07:43 -0000
> @@ -115,7 +115,7 @@
>  
> 
##############################################################################>
#
>  proc term {cmd args} {
>      global env
> -    eval exec -- xterm -e $env(GISBASE)/etc/grass-run.sh $cmd $args &
> +    eval exec -- xterm -geometry -50-40 -e $env(GISBASE)/etc/grass-run.sh
> $cmd $args &
>  }
> 
> 
> 
> Idea: place the d.zoom instructions term near the bottom right corner.
> Currently it seems to always end up right in the middle of the screen
> over the top of the x0 monitor.
> 
> It would also be nice to place the grass shell window near the bottom-
> left of the screen and the d.m GUI in the top right. I guess Lorenzo's
> startup software launches the term & adding "-geometry +0-0" there might
> take care of that one. As for placing the d.m GUI near the top right of
> the screen, not really sure, but perhaps use the "place" command?
> 
> see the `man X` (7x) GEOMETRY section for more info on -geometry.
> 
> Tcl's "place" command:
>   http://tcltk.free.fr/man/TkCmd/place.php3
>   http://tcllib.sourceforge.net/BWman/BWidget.html#place
> 
> 
> So.. do the GUI masters agree?
> 
> 
> 
> FWIW, on the Mac with the d.m GUI open I usually put the shell in the
> bottom left, the x0 monitor in the top left, the GUI in the top right,
> and "else" in the bottom right of the screen. On Linux I just use the
> command line and my window manager remembers where I put things so this
> isn't an issue for me there.
> 
> Also on the Mac I use the "X11 Focus Follows Mouse" patch that comes
> with Gimp.App to stop the click-to-focus nightmare when running d.zoom
> or d.where from the GUI. This only works when you start GRASS in X11
> mode not OSX mode; I seem to recall someone once showing me where you
> could change this in the Mac user settings, but I forget now. If it
> can be found, it might be nice to add that to Lorenzo's tutorial! This
> is what keeps me from using OSX mode. Also nice to mention what the
> 3-button mouse emulation keys are in the Mac tutorial too!
> 
> 
> hmmm. d.m has shortcut keys. I didn't know that. v.digit could use these.
> 
> 
>     bind . <$keycontrol-Key-o> {
>         Dm::OpenFileBox {}
>     }
>     bind . <$keycontrol-Key-n> {
>         Dm::new
>     }
>     bind . <$keycontrol-Key-s> {
>         Dm::SaveFileBox {}
>     }
>     bind . <$keycontrol-Key-q> {
>         DmPrint::clean;  exit
>     }
>     bind . <$keycontrol-Key-x> {
>         Dm::delete
>     }
>     bind . <$keycontrol-Key-w> {
>         Dm::FileClose {}
>     }
>     bind . <$keycontrol-Key-p> {
>     Dm::print
> 
> 
> 
> 
> The NVIZ contol panel could also use some fixing in regard to window
> placement. It tends to jump all over the place when you open/close e.g.
> the lighting panel.
> 
> 
> 
> 
> Hamish

____________________
C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ  85287-2402
USA

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>




More information about the grass-dev mailing list