--- a/QTfrontend/hwform.cpp Tue Oct 07 12:37:06 2008 +0000
+++ b/QTfrontend/hwform.cpp Wed Oct 08 10:58:21 2008 +0000
@@ -100,14 +100,16 @@
connect(ui.pageNetServer->BtnStart, SIGNAL(clicked()), this, SLOT(NetStartServer()));
connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
- connect(ui.pageNetGame->BtnGo, SIGNAL(clicked()), this, SLOT(NetStartGame()));
+ connect(ui.pageNetGame->BtnGo, SIGNAL(clicked()), this, SLOT(NetStartGame()));
connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(setEnabledGameStart(bool)),
ui.pageNetGame->BtnGo, SLOT(setEnabled(bool)));
connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(SetupClicked()), this, SLOT(IntermediateSetup()));
- connect(ui.pageInfo->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
+ connect(ui.pageRoomsList->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
- connect(ui.pageGameStats->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
+ connect(ui.pageInfo->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
+
+ connect(ui.pageGameStats->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
connect(ui.pageSinglePlayer->BtnSimpleGamePage, SIGNAL(clicked()), this, SLOT(SimpleGame()));
connect(ui.pageSinglePlayer->BtnTrainPage, SIGNAL(clicked()), this, SLOT(GoToTraining()));
--- a/QTfrontend/pages.cpp Tue Oct 07 12:37:06 2008 +0000
+++ b/QTfrontend/pages.cpp Wed Oct 08 10:58:21 2008 +0000
@@ -622,5 +622,13 @@
PageRoomsList::PageRoomsList(QWidget* parent) :
AbstractPage(parent)
{
-
+ QGridLayout * pageLayout = new QGridLayout(this);
+
+ roomsList = new QListWidget(this);
+ pageLayout->addWidget(roomsList, 0, 0, 4, 1);
+
+ BtnBack = addButton(":/res/Exit.png", pageLayout, 4, 0, true);
+ BtnCreate = addButton(tr("Create"), pageLayout, 0, 1);
+ BtnJoin = addButton(tr("Join"), pageLayout, 1, 1);
+ BtnRefresh = addButton(tr("Refresh"), pageLayout, 2, 1);
}
--- a/QTfrontend/pages.h Tue Oct 07 12:37:06 2008 +0000
+++ b/QTfrontend/pages.h Wed Oct 08 10:58:21 2008 +0000
@@ -325,7 +325,7 @@
QPushButton *BtnDefault;
QPushButton *BtnDelete;
QPushButton *BtnBack;
- SelWeaponWidget* pWeapons;
+ SelWeaponWidget* pWeapons;
};
class PageInGame : public AbstractPage
@@ -342,6 +342,12 @@
public:
PageRoomsList(QWidget* parent = 0);
+
+ QListWidget * roomsList;
+ QPushButton * BtnBack;
+ QPushButton * BtnCreate;
+ QPushButton * BtnJoin;
+ QPushButton * BtnRefresh;
};
#endif // PAGES_H