Subversion Repositories svn1-original

Rev

Rev 311 | Rev 314 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
311 david 1
#ifndef QMFULLDATA_H
2
#define QMFULLDATA_H
3
 
4
#include <QWidget>
5
#include <QTableWidget>
6
#include <QPushButton>
7
#include <QTableWidgetItem>
8
 
9
 
312 david 10
/*----------------------------------------------------------------------------
11
** CLASS              : qmFullData  
12
**
13
** DESCRIPTION        : Class to render the FullData page
14
**
15
----------------------------------------------------------------------------*/
16
 
311 david 17
class qmFullData : public QWidget
18
{
19
    Q_OBJECT
20
public:
21
    explicit qmFullData(QWidget *parent = 0);
22
 
23
private:
24
    QTableWidget *tableWidget;
25
    QPushButton  *refreshButton;
26
 
312 david 27
    void showEvent ( QShowEvent * event );      // Overload Widget Function
28
 
311 david 29
signals:
30
 
31
public slots:
32
    void loadData(void);
33
    void selectTeam( int row, int col);
34
};
35
 
312 david 36
/*----------------------------------------------------------------------------
37
** CLASS              : qmTwi...
38
**
39
** DESCRIPTION        : A collection of helper classes derived from QTableWidgetItem
40
**                      Used to assist in rendering items in tables
41
**
42
----------------------------------------------------------------------------*/
43
 
311 david 44
class qmTwiNumber : public QTableWidgetItem
45
{
46
public:
47
    qmTwiNumber ( int value  );
48
    bool operator< ( const QTableWidgetItem & other ) const;
49
    int number;
50
};
51
 
52
class qmTwiTime : public QTableWidgetItem
53
{
54
public:
55
    qmTwiTime ( int value  );
56
    bool operator< ( const QTableWidgetItem & other ) const;
57
 
58
private:
59
    int number;
60
};
61
class qmTwiString : public QTableWidgetItem
62
{
63
public:
64
    qmTwiString ( QString value  );
65
};
66
 
67
class qmTwiFlag : public QTableWidgetItem
68
{
69
public:
70
    qmTwiFlag ( const QString txt, int value  );
71
    bool operator< ( const QTableWidgetItem & other ) const;
72
 
73
private:
74
    int number;
75
};
76
 
77
#endif // QMFULLDATA_H