1/* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef MAIN_TEAMS_PAGE_H 6#define MAIN_TEAMS_PAGE_H 7 8#include <GroupView.h> 9 10#include "table/Table.h" 11 12#include "main_window/MainWindow.h" 13 14 15class MainWindow::TeamsPage : public BGroupView, private TableListener { 16public: 17 TeamsPage(MainWindow* parent); 18 virtual ~TeamsPage(); 19 20 void SetModel(Model* model); 21 22private: 23 class TeamsTableModel; 24 25private: 26 // TableListener 27 virtual void TableRowInvoked(Table* table, int32 rowIndex); 28 29private: 30 MainWindow* fParent; 31 Table* fTeamsTable; 32 TeamsTableModel* fTeamsTableModel; 33 Model* fModel; 34}; 35 36 37 38#endif // MAIN_TEAMS_PAGE_H 39