set session for chat
This commit is contained in:
@@ -124,6 +124,11 @@ gameLobbyDialogImpl::~gameLobbyDialogImpl()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void gameLobbyDialogImpl::setSession(boost::shared_ptr<Session> session) {
|
||||||
|
mySession = session;
|
||||||
|
myChat->setSession(mySession);
|
||||||
|
}
|
||||||
|
|
||||||
void gameLobbyDialogImpl::createGame()
|
void gameLobbyDialogImpl::createGame()
|
||||||
{
|
{
|
||||||
assert(mySession);
|
assert(mySession);
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public:
|
|||||||
|
|
||||||
ChatTools *getMyChat() { return myChat; }
|
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; }
|
boost::shared_ptr<Session> getSession() { assert(mySession.get()); return mySession; }
|
||||||
|
|
||||||
void setMyW ( gameTableImpl* theValue ) { myW = theValue; }
|
void setMyW ( gameTableImpl* theValue ) { myW = theValue; }
|
||||||
|
|||||||
@@ -695,11 +695,12 @@ void gameTableImpl::initGui(int speed)
|
|||||||
horizontalSlider_speed->setValue(guiGameSpeed);
|
horizontalSlider_speed->setValue(guiGameSpeed);
|
||||||
setSpeeds();
|
setSpeeds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//set session for chat
|
||||||
|
myChat->setSession(this->getSession());
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::shared_ptr<Session> gameTableImpl::getSession() { assert(myStartWindow->getSession().get()); return myStartWindow->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
|
//refresh-Funktionen
|
||||||
void gameTableImpl::refreshSet() {
|
void gameTableImpl::refreshSet() {
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ class Session;
|
|||||||
class gameTableImpl;
|
class gameTableImpl;
|
||||||
class startWindowImpl;
|
class startWindowImpl;
|
||||||
class Log;
|
class Log;
|
||||||
class Chat;
|
|
||||||
class ConfigFile;
|
class ConfigFile;
|
||||||
|
|
||||||
|
|
||||||
@@ -161,7 +160,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
Log *myLog;
|
Log *myLog;
|
||||||
Chat *myChat;
|
|
||||||
gameTableImpl *myW;
|
gameTableImpl *myW;
|
||||||
ConfigFile *myConfig;
|
ConfigFile *myConfig;
|
||||||
startWindowImpl *myStartWindow;
|
startWindowImpl *myStartWindow;
|
||||||
|
|||||||
Reference in New Issue
Block a user