Toggle main window hide on tray icon click
authorsje397 <sje397@gmail.com>
Fri, 17 Feb 2012 14:34:53 +0000 (01:34 +1100)
committersje397 <sje397@gmail.com>
Tue, 10 Apr 2012 14:07:32 +0000 (00:07 +1000)
commit86d5634941734cbde54e47fc6288f21104acf26e
tree92d639cc51a3d725e66d09a78cbbcbf2e69e78cb
parent962e2fcdb6aa43c9998b2be2ff96a679ff9db660
Toggle main window hide on tray icon click

- converted openBictoinAction to toggleHideAction
- put GUIUtil functions into a namespace instead of a class
- put window-related functions together in optionsdialog

Reasoning:
- toggle is more typical behaviour
- it's more functional
- better UX

The typical issue with toggling visibility is that when a window
is obscured by other windows but in the 'shown' state, hiding it
isn't what you want. I've added an 'isObscured' function to GUIUtil
that checks several pixels in the window to see if they are visible
on the desktop so that an obscured but shown window can be raised.

Conflicts:

src/qt/guiutil.cpp
src/qt/guiutil.h
src/qt/bitcoingui.cpp
src/qt/bitcoingui.h
src/qt/guiutil.cpp
src/qt/guiutil.h
src/qt/optionsdialog.cpp