[GRASS-dev] Re: [GRASS GIS] #130: wxgrass: Remember the position of
gui windows on Grass exit
GRASS GIS
trac at osgeo.org
Fri Apr 18 20:51:44 EDT 2008
#130: wxgrass: Remember the position of gui windows on Grass exit
--------------------------+-------------------------------------------------
Reporter: epatton | Owner: martinl
Type: enhancement | Status: assigned
Priority: trivial | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: gui, monitor, position
--------------------------+-------------------------------------------------
Comment (by hamish):
Eric:
> I'd like to submit a request to have wxgrass remember the position of
the respective
> gui windows on the monitor upon Grass exit, so that they may be restored
to the same
> positions on Grass startup (alleviates the need to manually re-position
the windows
> every time).
we did this for a short time with the tck/tk gui. IIRC the display window
was hinted to go into the top left, the layer manager to the top right,
and the output window to hug the bottom right corner.
specific window sizes and non-relative pixel placements were a problem
because some folks use 800x600 displays (old hardware; 7" car LCD;
OLPC/eeePC; ...)
it was then disccussed on the mailing list thread and decided that an app
should not override a user's window manager settings, and the hinting was
reverted.
Perhaps on Mac and Windows where the user has little or no control over
the window manager the binary packagers could patch that or some #ifdef
type thing could be triggered.
FWIW, here are my settings for gis.m windows from ~/.fluxbox/apps to deal
with this:
{{{
[app] (name=mapcan\(1\)) (class=Toplevel)
[Dimensions] {778 885}
[Position] (UPPERLEFT) {12 3}
[end]
[app] (name=gm_tcl) (class=Gm_tcl)
[Position] (UPPERLEFT) {793 0}
[end]
[app] (name=gronsole) (class=Toplevel)
[Position] (UPPERLEFT) {690 508}
[end]
[app] (name=form.tcl) (class=Form.tcl)
[Layer] {6}
[end]
[app] (name=sqlitebrowser) (class=Sqlitebrowser) (role=mainForm)
[Dimensions] {905 922}
[end]
}}}
I assume metacity et al. will let you do simiar things. (if not, get
sawfish)
Hamish
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/130#comment:2>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/
More information about the grass-dev
mailing list