now uses the Qt native code for tray icons, the tray menu no longer hangs when the dialog is open, dialog updates as appropriate when tray is manipulated when the dialog is open, added in code for updating the dialog widgets when the backend changes

git-svn-id: svn://svn.code.sf.net/p/qjoypad/code/trunk@112 c05e91a0-76c8-4ec0-b377-ef19ce7cc080
This commit is contained in:
John Toman
2009-08-23 20:45:58 +00:00
committed by virtuoussin13
parent ea2be3b29b
commit 12cd906a46
5 changed files with 82 additions and 19 deletions

View File

@ -14,6 +14,7 @@
#include <QApplication>
#include <QDialog>
#include <QInputDialog>
#include <QSystemTrayIcon>
#include <poll.h>
//a layout handles several joypads
@ -43,6 +44,7 @@ class LayoutManager : public QObject {
LayoutManager( bool useTrayIcon);
//produces a list of the names of all the available layout.
QStringList getLayoutNames();
void leWindowClosed();
public slots:
//load a layout with a given name
bool load(const QString& name);
@ -64,7 +66,8 @@ class LayoutManager : public QObject {
void remove();
//when the tray icon is clicked
void trayClick();
void iconClick();
void trayClick(QSystemTrayIcon::ActivationReason reason);
//when the user selects an item on the tray's popup menu
void trayMenu(QAction* menuItemAction);
//rebuild the popup menu with the current information