GUI: ignore player function added (list in settings - remove button will follow)
This commit is contained in:
@@ -34,55 +34,56 @@ class gameLobbyDialogImpl;
|
||||
|
||||
class ChatTools : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ChatTools(QLineEdit*, ConfigFile*, ChatType, QTextBrowser *b = NULL, QTreeWidget *t = NULL, gameLobbyDialogImpl *lo = NULL);
|
||||
ChatTools(QLineEdit*, ConfigFile*, ChatType, QTextBrowser *b = NULL, QTreeWidget *t = NULL, gameLobbyDialogImpl *lo = NULL);
|
||||
|
||||
~ChatTools();
|
||||
~ChatTools();
|
||||
|
||||
void setSession(boost::shared_ptr<Session> session) { mySession = session; }
|
||||
void setSession(boost::shared_ptr<Session> session) { mySession = session; }
|
||||
|
||||
public slots:
|
||||
|
||||
void sendMessage();
|
||||
void receiveMessage(QString playerName, QString message);
|
||||
void clearChat();
|
||||
void checkInputLength(QString string);
|
||||
|
||||
void fillChatLinesHistory(QString fillString);
|
||||
void showChatHistoryIndex(int index);
|
||||
int getChatLinesHistorySize() { return chatLinesHistory.size(); }
|
||||
|
||||
void nickAutoCompletition();
|
||||
void setChatTextEdited();
|
||||
|
||||
void setPlayerNicksList(QStringList value) { myNickStringList = value; }
|
||||
void setMyNick ( const QString& theValue ) { myNick = theValue; }
|
||||
QString getMyNick () { return myNick; }
|
||||
void sendMessage();
|
||||
void receiveMessage(QString playerName, QString message);
|
||||
void clearChat();
|
||||
void checkInputLength(QString string);
|
||||
|
||||
void fillChatLinesHistory(QString fillString);
|
||||
void showChatHistoryIndex(int index);
|
||||
int getChatLinesHistorySize() { return chatLinesHistory.size(); }
|
||||
|
||||
void nickAutoCompletition();
|
||||
void setChatTextEdited();
|
||||
|
||||
void setPlayerNicksList(QStringList value) { myNickStringList = value; }
|
||||
void setMyNick ( const QString& theValue ) { myNick = theValue; }
|
||||
QString getMyNick () { return myNick; }
|
||||
|
||||
void setMyStyle ( GameTableStyleReader* theValue ) { myStyle = theValue; }
|
||||
void refreshIgnoreList();
|
||||
|
||||
void setMyStyle ( GameTableStyleReader* theValue ) { myStyle = theValue; }
|
||||
|
||||
|
||||
private:
|
||||
|
||||
QStringList chatLinesHistory;
|
||||
QString lastChatString;
|
||||
QStringList lastMatchStringList;
|
||||
int nickAutoCompletitionCounter;
|
||||
QStringList chatLinesHistory;
|
||||
QString lastChatString;
|
||||
QStringList lastMatchStringList;
|
||||
int nickAutoCompletitionCounter;
|
||||
|
||||
QLineEdit *myLineEdit;
|
||||
QTreeWidget *myNickTreeWidget;
|
||||
QStringList myNickStringList;
|
||||
QTextBrowser *myTextBrowser;
|
||||
boost::shared_ptr<Session> mySession;
|
||||
ChatType myChatType;
|
||||
ConfigFile *myConfig;
|
||||
|
||||
QString myNick;
|
||||
QLineEdit *myLineEdit;
|
||||
QTreeWidget *myNickTreeWidget;
|
||||
QStringList myNickStringList;
|
||||
QTextBrowser *myTextBrowser;
|
||||
boost::shared_ptr<Session> mySession;
|
||||
ChatType myChatType;
|
||||
ConfigFile *myConfig;
|
||||
|
||||
GameTableStyleReader *myStyle;
|
||||
gameLobbyDialogImpl *myLobby;
|
||||
QString myNick;
|
||||
|
||||
GameTableStyleReader *myStyle;
|
||||
gameLobbyDialogImpl *myLobby;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user