Gnats 4667: Dialog
windows no longer open where they last closed.
Phil Weinstein -- 12-11-2008 -- Gnats
record.
All RiverWare Qt dialogs (other than temporary non-custom popups) -- 131 dialogs (SEE LIST) -- now use a new mechanism for preserving their size and position during the RiverWare session. This information is preserved across dialog box deletions and re-creations. The size and position information is preserved in a map indexed with a two-field key:
This works well on Windows. On Solaris, there are some sequences involving minimizing and restoring the dialog which result in the dialog box being moved up, and a little to the left.
Detail: On Solaris (using X11, the X Window System), the Window Manager (which draws and services the window title bar and border) runs as a distinct process. And the X11 specification substantially "policy-less", so different Window Manager implementations are free to do things however they want. (Sort of like the "freedom" to drive on either side of the road). See some notes from Trolltech.
In an attempt to address some of the problems on Solaris, the size of the window title bar and border is measured by momentarily showing a test dialog (on Solaris only). On Solaris, you'll see a small dialog pop up for one second when the Workspace is initially shown (only once withing the RiverWare session).
Things that can go wrong:
Implementation Class:
---