X-Git-Url: https://git.ralfj.de/multypo.git/blobdiff_plain/d06ad1b372082777c92dbc4065c0a355bc2bef93..e52cebeda021cf4e76330eabd3777ec6136720d3:/qt/multypo.h?ds=sidebyside diff --git a/qt/multypo.h b/qt/multypo.h index f10a5d4..1a088bd 100644 --- a/qt/multypo.h +++ b/qt/multypo.h @@ -2,8 +2,10 @@ #define MULTIKBD_H #include +#include +#include -class QLabel; +#include "player.h" class MultypoWindow : public QWidget { @@ -15,16 +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