mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 17:14:52 -07:00
forgot some files
This commit is contained in:
parent
c8a2ed9415
commit
e0d773e4e5
4 changed files with 213 additions and 0 deletions
30
cockatrice/src/gameselector.h
Normal file
30
cockatrice/src/gameselector.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#ifndef GAMESELECTOR_H
|
||||
#define GAMESELECTOR_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "gamesmodel.h"
|
||||
#include "servergame.h"
|
||||
#include "client.h"
|
||||
|
||||
class QPushButton;
|
||||
class QTreeView;
|
||||
|
||||
class GameSelector : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
GameSelector(Client *_client, QWidget *parent = 0);
|
||||
private slots:
|
||||
void actCreate();
|
||||
void actRefresh();
|
||||
void actJoin();
|
||||
void checkResponse(ServerResponse response);
|
||||
private:
|
||||
Client *client;
|
||||
|
||||
QTreeView *gameListView;
|
||||
GamesModel *gameListModel;
|
||||
QPushButton *createButton, *joinButton;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue