Update of /home/kde/kdegames/atlantik/client In directory office:/tmp/cvs-serv8591/client Modified Files: atlantik.cpp selectgame_widget.cpp selectgame_widget.h Log Message: support for leaving server Index: atlantik.cpp =================================================================== RCS file: /home/kde/kdegames/atlantik/client/atlantik.cpp,v retrieving revision 1.109 retrieving revision 1.110 diff -u -d -r1.109 -r1.110 --- atlantik.cpp 2002/07/23 23:39:40 1.109 +++ atlantik.cpp 2002/07/26 05:34:48 1.110 @@ -259,6 +259,7 @@ connect(m_selectGame, SIGNAL(joinGame(int)), m_atlantikNetwork, SLOT(joinGame(int))); connect(m_selectGame, SIGNAL(newGame(const QString &)), m_atlantikNetwork, SLOT(newGame(const QString &))); + connect(m_selectGame, SIGNAL(leaveServer()), this, SLOT(showSelectServer())); } void Atlantik::showSelectConfiguration() Index: selectgame_widget.cpp =================================================================== RCS file: /home/kde/kdegames/atlantik/client/selectgame_widget.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- selectgame_widget.cpp 2002/07/16 00:35:16 1.18 +++ selectgame_widget.cpp 2002/07/26 05:34:48 1.19 @@ -49,6 +49,11 @@ QHBoxLayout *buttonBox = new QHBoxLayout(this, 0, KDialog::spacingHint()); m_mainLayout->addItem(buttonBox); + KPushButton *backButton = new KPushButton(SmallIcon("back"), i18n("Server List"), this); + buttonBox->addWidget(backButton); + + connect(backButton, SIGNAL(pressed()), this, SIGNAL(leaveServer())); + buttonBox->addItem(new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum)); m_connectButton = new KPushButton(SmallIcon("forward"), i18n("Create Game"), this); Index: selectgame_widget.h =================================================================== RCS file: /home/kde/kdegames/atlantik/client/selectgame_widget.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- selectgame_widget.h 2002/06/30 23:20:09 1.12 +++ selectgame_widget.h 2002/07/26 05:34:48 1.13 @@ -50,6 +50,7 @@ signals: void joinGame(int gameId); void newGame(const QString &gameType); + void leaveServer(); // void statusChanged(); private: _______________________________________________ atlantik-cvs mailing list atlantik-cvs@mail.kde.org http://mail.kde.org/mailman/listinfo/atlantik-cvs