wpa_gui-qt4: add system tray support
authorKel Modderman <kel@otaku42.de>
Wed, 24 Sep 2008 09:26:57 +0000 (12:26 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 24 Sep 2008 09:26:57 +0000 (12:26 +0300)
commitb199b7e6545cc071cb4ace9f0e97d5b37ebae221
tree86b02d7fa6595e5eb798544eae415ea6b521a9d7
parent0fae9ad39b7040af8d45f4531c9eb95d12e25fc9
wpa_gui-qt4: add system tray support

Add system tray icon support to wpa_gui-qt4. The tray icon remains quiet
when the main dialog is visible, so it should not cause too much pain for
more conservative users of wpa_gui. The addition involves the following
changes:

* when closing wpa_gui via window manager close box, wpa_gui close event is
  ignored and it is minimised to system tray. A status message is displayed
  (or popup dialog box if tray messages are not supported) to provide a
  visual hint that the program is still running in the background.
* add File->Exit slot handler to facilitate application quit from main
  dialog
* provide a context menu with a short list of useful actions
* show/hide main dialog when icon is triggered (single click)
* ensure main dialog is visible when event handler or scan results is
  chosen from tray icon context menu
* show tray messages on connected and disconnected events, display a status
  message a few seconds after connected events

Signed-off-by: Kel Modderman <kel@otaku42.de>
wpa_supplicant/wpa_gui-qt4/wpagui.cpp
wpa_supplicant/wpa_gui-qt4/wpagui.h