X-Git-Url: https://git.ralfj.de/multypo.git/blobdiff_plain/1d03d11fb0aa8e3418597e7c1ab38f2b28d48924..e52cebeda021cf4e76330eabd3777ec6136720d3:/qt/multypo.h?ds=sidebyside diff --git a/qt/multypo.h b/qt/multypo.h index 400d4c9..1a088bd 100644 --- a/qt/multypo.h +++ b/qt/multypo.h @@ -2,6 +2,10 @@ #define MULTIKBD_H #include +#include +#include + +#include "player.h" class MultypoWindow : public QWidget { @@ -13,15 +17,19 @@ public: bool handleX11Event(XEvent *event); -protected: - virtual void showEvent (QShowEvent *); - private: void handleKeyPress(int device, QString string); + void nextWord(); + void resetPlayerText(); private: bool xiInited; int xiOpcode; + bool gameStarted; + QLabel *mainLabel; + QFile words; + QMap players; + int typingPlayers; // how many are not ready yet }; #endif // MULTIKBD_H