From ce48af53646cd9e7ec762fc1ac176b3aa620b11d Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 5 May 2011 00:57:07 +0200 Subject: - refactorized the whole project and made a few subprojects - replaced tcp with enet - added connect dialog - some smaller bugfixes --- pacman-c++/client/client.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pacman-c++/client/client.h (limited to 'pacman-c++/client/client.h') diff --git a/pacman-c++/client/client.h b/pacman-c++/client/client.h new file mode 100644 index 0000000..9b231ca --- /dev/null +++ b/pacman-c++/client/client.h @@ -0,0 +1,41 @@ +#ifndef CLIENT_H +#define CLIENT_H + +#include "mainwidget.h" +#include + +class Client + : public QMainWindow +{ + Q_OBJECT +public: + Client(); + QSettings *settings(); + +signals: + /* signal gets emitted if mute buttons should update their checked-state */ + void setMuteActionsChecked(bool enabled); + +private slots: + /* toggles sound */ + void toggleSound(); + /* mute was changed (emitted by audioplayer/phonon) */ + void mutedChanged(bool); + /* enable ambient (emitted by action) */ + void enableAmbientSound(bool); + void showAbout(); + void showConnectDialog(); + void onAcceptConnectDialog(); + +private: + void createMenu(); + QPixmap soundIcon(bool enabled = true) const; + +private: + MainWidget *m_mainWidget; + QDialog *m_dialog; + QSettings *m_settings; + bool m_ambientMuted; +}; + +#endif // CLIENT_H -- cgit v1.2.3