mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-24 23:53:54 -07:00
Chat works!
This commit is contained in:
parent
1baa188067
commit
64aa68cd26
28 changed files with 714 additions and 424 deletions
33
cockatrice/src/tab_supervisor.h
Normal file
33
cockatrice/src/tab_supervisor.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#ifndef TAB_SUPERVISOR_H
|
||||
#define TAB_SUPERVISOR_H
|
||||
|
||||
#include <QTabWidget>
|
||||
#include <QMap>
|
||||
|
||||
class Client;
|
||||
class TabServer;
|
||||
class TabChatChannel;
|
||||
class TabGame;
|
||||
class ChatEvent;
|
||||
class GameEvent;
|
||||
|
||||
class TabSupervisor : public QTabWidget {
|
||||
Q_OBJECT
|
||||
private:
|
||||
Client *client;
|
||||
TabServer *tabServer;
|
||||
QMap<QString, TabChatChannel *> chatChannelTabs;
|
||||
QMap<int, TabGame *> gameTabs;
|
||||
public:
|
||||
TabSupervisor(QWidget *parent = 0);
|
||||
void retranslateUi();
|
||||
void start(Client *_client);
|
||||
void stop();
|
||||
private slots:
|
||||
void addGameTab(int gameId);
|
||||
void addChatChannelTab(const QString &channelName);
|
||||
void processChatEvent(ChatEvent *event);
|
||||
void processGameEvent(GameEvent *event);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue