--- a/QTfrontend/hwform.cpp Fri Feb 23 22:06:23 2007 +0000
+++ b/QTfrontend/hwform.cpp Sat Feb 24 08:56:58 2007 +0000
@@ -65,6 +65,8 @@
connect(ui.pageMultiplayer->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
connect(ui.pageMultiplayer->BtnStartMPGame, SIGNAL(clicked()), this, SLOT(StartMPGame()));
+ connect(ui.pageMultiplayer->teamsSelect, SIGNAL(setEnabledGameStart(bool)),
+ ui.pageMultiplayer->BtnStartMPGame, SLOT(setEnabled(bool)));
connect(ui.pagePlayDemo->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
connect(ui.pagePlayDemo->BtnPlayDemo, SIGNAL(clicked()), this, SLOT(PlayDemo()));
@@ -85,6 +87,8 @@
connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
connect(ui.pageNetGame->BtnGo, SIGNAL(clicked()), this, SLOT(NetStartGame()));
+ connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(setEnabledGameStart(bool)),
+ ui.pageNetGame->BtnGo, SLOT(setEnabled(bool)));
connect(ui.pageInfo->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
--- a/QTfrontend/pages.cpp Fri Feb 23 22:06:23 2007 +0000
+++ b/QTfrontend/pages.cpp Sat Feb 24 08:56:58 2007 +0000
@@ -506,6 +506,7 @@
BtnGo = new QPushButton(this);
BtnGo->setFont(*font14);
BtnGo->setText(QPushButton::tr("Go!"));
+ BtnGo->setEnabled(false);
pageLayout->addWidget(BtnGo, 2, 1);
}
--- a/QTfrontend/teamselect.cpp Fri Feb 23 22:06:23 2007 +0000
+++ b/QTfrontend/teamselect.cpp Sat Feb 24 08:56:58 2007 +0000
@@ -48,6 +48,7 @@
this, SLOT(changeTeamStatus(HWTeam)));
}
}
+ emit setEnabledGameStart(curPlayingTeams.size()>1);
}
void TeamSelWidget::setNonInteractive()
@@ -99,6 +100,7 @@
break;
}
}
+ emit setEnabledGameStart(curPlayingTeams.size()>1);
}
void TeamSelWidget::netTeamStatusChanged(const HWTeam& team)
@@ -168,6 +170,8 @@
pAddTeams->resize(pAddTeams->size().width(), szh.height());
pRemoveTeams->resize(pRemoveTeams->size().width(), szh1.height());
}
+
+ emit setEnabledGameStart(curPlayingTeams.size()>1);
}
void TeamSelWidget::addScrArea(FrameTeams* pfteams, QColor color, int maxHeight)
--- a/QTfrontend/teamselect.h Fri Feb 23 22:06:23 2007 +0000
+++ b/QTfrontend/teamselect.h Sat Feb 24 08:56:58 2007 +0000
@@ -54,6 +54,7 @@
void changeTeamStatus(HWTeam team);
signals:
+ void setEnabledGameStart(bool);
void NewTeam();
void teamWillPlay(HWTeam team);
void teamNotPlaying(const HWTeam& team);