QTfrontend/pages.cpp
changeset 1409 d1cbe4a57ebf
parent 1404 2b6b6809c2e4
child 1415 6fbfee0e113a
--- a/QTfrontend/pages.cpp	Fri Oct 24 15:02:26 2008 +0000
+++ b/QTfrontend/pages.cpp	Fri Oct 24 17:30:30 2008 +0000
@@ -35,6 +35,8 @@
 #include <QTabWidget>
 #include <QTextBrowser>
 #include <QTableWidget>
+#include <QAction>
+#include <QMenu>
 
 #include "pages.h"
 #include "sdlkeys.h"
@@ -523,7 +525,7 @@
 
 	// chatwidget
 	pChatWidget = new HWChatWidget(this);
-	pageLayout->addWidget(pChatWidget, 1, 0);
+	pageLayout->addWidget(pChatWidget, 1, 0, 2, 1);
 	pageLayout->setRowStretch(1, 100);
 
 	pGameCFG = new GameCFGWidget(this);
@@ -533,12 +535,25 @@
 	pNetTeamsWidget->setAcceptOuter(true);
 	pageLayout->addWidget(pNetTeamsWidget, 0, 1, 2, 1);
 
-	BtnBack = addButton(":/res/Exit.png", pageLayout, 2, 0, true);
-
 	BtnGo = new QPushButton(this);
 	BtnGo->setFont(*font14);
 	BtnGo->setText(QPushButton::tr("Ready"));
-	pageLayout->addWidget(BtnGo, 2, 1);
+	pageLayout->addWidget(BtnGo, 3, 1);
+
+	BtnBack = addButton(":/res/Exit.png", pageLayout, 3, 0, true);
+
+	BtnMaster = addButton(tr("Control"), pageLayout, 2, 1);
+	QMenu * menu = new QMenu(BtnMaster);
+	startGame = new QAction(QAction::tr("Start"), menu);
+	restrictJoins = new QAction(QAction::tr("Restrict Joins"), menu);
+	restrictJoins->setCheckable(true);
+	restrictTeamAdds = new QAction(QAction::tr("Restrict Team Additions"), menu);
+	restrictTeamAdds->setCheckable(true);
+	menu->addAction(startGame);
+	menu->addAction(restrictJoins);
+	menu->addAction(restrictTeamAdds);
+	
+	BtnMaster->setMenu(menu);
 }
 
 PageInfo::PageInfo(QWidget* parent) : AbstractPage(parent)