This commit is contained in:
@@ -18,13 +18,14 @@
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
#include "startnetworkgamedialogimpl.h"
|
||||
#include "startwindowimpl.h"
|
||||
#include "session.h"
|
||||
#include "configfile.h"
|
||||
#include "chattools.h"
|
||||
#include <net/socket_msg.h>
|
||||
|
||||
startNetworkGameDialogImpl::startNetworkGameDialogImpl(QWidget *parent, ConfigFile *config)
|
||||
: QDialog(parent), myW(NULL), keyUpDownChatCounter(0), myPlayerId(0), isAdmin(false), myConfig(config), mySession(NULL), myChat(NULL)
|
||||
startNetworkGameDialogImpl::startNetworkGameDialogImpl(startWindowImpl *parent, ConfigFile *config)
|
||||
: QDialog(parent), myW(NULL), myStartWindow(parent), keyUpDownChatCounter(0), myPlayerId(0), isAdmin(false), myConfig(config), mySession(NULL), myChat(NULL)
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
setWindowModality(Qt::ApplicationModal);
|
||||
@@ -240,3 +241,9 @@ void startNetworkGameDialogImpl::accept()
|
||||
myW->show();
|
||||
QDialog::accept();
|
||||
}
|
||||
|
||||
void startNetworkGameDialogImpl::reject()
|
||||
{
|
||||
myStartWindow->show();
|
||||
QDialog::reject();
|
||||
}
|
||||
|
||||
@@ -30,11 +30,12 @@
|
||||
class Session;
|
||||
class ConfigFile;
|
||||
class ChatTools;
|
||||
class startWindowImpl;
|
||||
|
||||
class startNetworkGameDialogImpl: public QDialog, public Ui::startNetworkGameDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
startNetworkGameDialogImpl(QWidget *parent = 0, ConfigFile *config = 0);
|
||||
startNetworkGameDialogImpl(startWindowImpl *parent = 0, ConfigFile *config = 0);
|
||||
|
||||
void setSession(Session *session);
|
||||
|
||||
@@ -47,6 +48,7 @@ public slots:
|
||||
void cancel();
|
||||
void refresh(int actionID);
|
||||
void accept();
|
||||
void reject();
|
||||
void joinedNetworkGame(unsigned playerId, QString playerName, int rights);
|
||||
void addConnectedPlayer(unsigned playerId, QString playerName, int rights);
|
||||
void updatePlayer(unsigned playerId, QString newPlayerName);
|
||||
@@ -74,6 +76,7 @@ public slots:
|
||||
private:
|
||||
|
||||
gameTableImpl* myW;
|
||||
startWindowImpl* myStartWindow;
|
||||
int maxPlayerNumber;
|
||||
int keyUpDownChatCounter;
|
||||
unsigned myPlayerId;
|
||||
|
||||
Reference in New Issue
Block a user