projects
/
multypo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ralfs Fixes
[multypo.git]
/
qt
/
multypo.h
diff --git
a/qt/multypo.h
b/qt/multypo.h
index 400d4c995eb848d19bbfeebf13d75d4bbbad6481..1a088bd30692295858291e2e3d748c8e134f4fb5 100644
(file)
--- a/
qt/multypo.h
+++ b/
qt/multypo.h
@@
-2,6
+2,10
@@
#define MULTIKBD_H
#include <QWidget>
#define MULTIKBD_H
#include <QWidget>
+#include <QMap>
+#include <QFile>
+
+#include "player.h"
class MultypoWindow : public QWidget
{
class MultypoWindow : public QWidget
{
@@
-13,15
+17,19
@@
public:
bool handleX11Event(XEvent *event);
bool handleX11Event(XEvent *event);
-protected:
- virtual void showEvent (QShowEvent *);
-
private:
void handleKeyPress(int device, QString string);
private:
void handleKeyPress(int device, QString string);
+ void nextWord();
+ void resetPlayerText();
private:
bool xiInited;
int xiOpcode;
private:
bool xiInited;
int xiOpcode;
+ bool gameStarted;
+ QLabel *mainLabel;
+ QFile words;
+ QMap<int, Player*> players;
+ int typingPlayers; // how many are not ready yet
};
#endif // MULTIKBD_H
};
#endif // MULTIKBD_H