globals--, fmt string fix, foreeach++, better names++, close fds, tray icon activates/closes

This commit is contained in:
Mathias Panzenböck
2014-02-16 04:37:11 +01:00
parent f2a566cc06
commit cfa17f8947
24 changed files with 208 additions and 206 deletions

View File

@ -13,6 +13,7 @@
#include <QMenu>
#include <QApplication>
#include <QDialog>
#include <QPointer>
#include <QInputDialog>
#include <QSystemTrayIcon>
#include <poll.h>
@ -35,10 +36,10 @@ class LayoutManager : public QObject {
Q_OBJECT
public:
LayoutManager(bool useTrayIcon, const QString &devdir, const QString &settingsDir);
~LayoutManager();
//produces a list of the names of all the available layout.
QStringList getLayoutNames() const;
void leWindowClosed();
public slots:
//load a layout with a given name
bool load(const QString& name);
@ -82,7 +83,7 @@ class LayoutManager : public QObject {
QMenu trayMenuPopup;
//if there is a LayoutEdit open, this points to it. Otherwise, NULL.
LayoutEdit* le;
QPointer<LayoutEdit> le;
QHash<int, JoyPad*> available;
QHash<int, JoyPad*> joypads;