set session for chat

This commit is contained in:
doitux
2009-08-18 00:46:18 +00:00
parent 118f053216
commit 3e2501c28b
4 changed files with 9 additions and 5 deletions
@@ -124,6 +124,11 @@ gameLobbyDialogImpl::~gameLobbyDialogImpl()
}
void gameLobbyDialogImpl::setSession(boost::shared_ptr<Session> session) {
mySession = session;
myChat->setSession(mySession);
}
void gameLobbyDialogImpl::createGame()
{
assert(mySession);
@@ -45,7 +45,7 @@ public:
ChatTools *getMyChat() { return myChat; }
void setSession(boost::shared_ptr<Session> session) { mySession = session; }
void setSession(boost::shared_ptr<Session> session);
boost::shared_ptr<Session> getSession() { assert(mySession.get()); return mySession; }
void setMyW ( gameTableImpl* theValue ) { myW = theValue; }
+3 -2
View File
@@ -695,11 +695,12 @@ void gameTableImpl::initGui(int speed)
horizontalSlider_speed->setValue(guiGameSpeed);
setSpeeds();
}
//set session for chat
myChat->setSession(this->getSession());
}
boost::shared_ptr<Session> gameTableImpl::getSession() { assert(myStartWindow->getSession().get()); return myStartWindow->getSession(); }
// void gameTableImpl::setSession(boost::shared_ptr<Session> session) { mySession = session; }
//refresh-Funktionen
void gameTableImpl::refreshSet() {
-2
View File
@@ -28,7 +28,6 @@ class Session;
class gameTableImpl;
class startWindowImpl;
class Log;
class Chat;
class ConfigFile;
@@ -161,7 +160,6 @@ public:
private:
Log *myLog;
Chat *myChat;
gameTableImpl *myW;
ConfigFile *myConfig;
startWindowImpl *myStartWindow;