mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 02:53:56 -07:00
Add LineEditCompleter to Tab_Game
This commit is contained in:
parent
8c0722953f
commit
a64ea17357
7 changed files with 222 additions and 153 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <QMap>
|
||||
#include <QPushButton>
|
||||
#include <QCompleter>
|
||||
#include "tab.h"
|
||||
#include "pb/serverinfo_game.pb.h"
|
||||
|
||||
|
|
@ -54,6 +55,7 @@ class QHBoxLayout;
|
|||
class GameReplay;
|
||||
class ServerInfo_User;
|
||||
class PendingCommand;
|
||||
class LineEditCompleter;
|
||||
|
||||
class ToggleButton : public QPushButton {
|
||||
Q_OBJECT
|
||||
|
|
@ -116,6 +118,8 @@ private:
|
|||
CardItem *activeCard;
|
||||
bool gameClosed;
|
||||
QStringList gameTypes;
|
||||
QCompleter *completer;
|
||||
QStringList autocompleteUserList;
|
||||
|
||||
// Replay related members
|
||||
GameReplay *replay;
|
||||
|
|
@ -130,7 +134,7 @@ private:
|
|||
QLabel *timeElapsedLabel;
|
||||
MessageLogWidget *messageLog;
|
||||
QLabel *sayLabel;
|
||||
QLineEdit *sayEdit;
|
||||
LineEditCompleter *sayEdit;
|
||||
PhasesToolbar *phasesToolbar;
|
||||
GameScene *scene;
|
||||
GameView *gameView;
|
||||
|
|
@ -199,6 +203,8 @@ private slots:
|
|||
|
||||
void addMentionTag(QString value);
|
||||
void commandFinished(const Response &response);
|
||||
|
||||
void actCompleterChanged();
|
||||
public:
|
||||
TabGame(TabSupervisor *_tabSupervisor, QList<AbstractClient *> &_clients, const Event_GameJoined &event, const QMap<int, QString> &_roomGameTypes);
|
||||
TabGame(TabSupervisor *_tabSupervisor, GameReplay *replay);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue