--- a/QTfrontend/ui/page/pageroomslist.h Mon Jan 28 00:50:00 2013 +0400
+++ b/QTfrontend/ui/page/pageroomslist.h Sun Jan 27 20:17:30 2013 -0500
@@ -19,6 +19,7 @@
#ifndef PAGE_ROOMLIST_H
#define PAGE_ROOMLIST_H
+#include <QTableView>
#include "AbstractPage.h"
class HWChatWidget;
@@ -27,6 +28,14 @@
class RoomsListModel;
class QSortFilterProxyModel;
+class RoomTableView : public QTableView
+{
+ friend class PageRoomsList;
+
+ public:
+ RoomTableView(QWidget* parent = 0) : QTableView(parent){}
+};
+
class PageRoomsList : public AbstractPage
{
Q_OBJECT
@@ -38,9 +47,8 @@
void displayWarning(const QString & message);
void setSettings(QSettings * settings);
- QLineEdit * roomName;
QLineEdit * searchText;
- QTableView * roomsList;
+ RoomTableView * roomsList;
QPushButton * BtnCreate;
QPushButton * BtnJoin;
QPushButton * BtnAdmin;
@@ -78,6 +86,10 @@
void onSortIndicatorChanged(int logicalIndex, Qt::SortOrder order);
void onFilterChanged();
void saveHeaderState();
+ void onRoomNameChosen(const QString &);
+ void roomSelectionChanged(const QModelIndex &, const QModelIndex &);
+ void moveSelectionUp();
+ void moveSelectionDown();
private:
QSettings * m_gameSettings;
@@ -85,6 +97,8 @@
QSortFilterProxyModel * stateFilteredModel;
QSortFilterProxyModel * schemeFilteredModel;
QSortFilterProxyModel * weaponsFilteredModel;
+ QAction * showGamesInLobby;
+ QAction * showGamesInProgress;
AmmoSchemeModel * ammoSchemeModel;