Subversion Repositories svn1

Rev

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

Rev Author Line No. Line
142 david 1
/*============================================================================
2
**
3
**  Project/Product : 
4
**  Filename        : qmteamdisplay.h
5
**  Author(s)       : DDP
6
**
7
**  Description     : Display and Update Team Information
8
**
9
**
10
**  Information     :
11
**   Compiler       : ANSI C++
12
**   Target         : 
13
**
14
***==========================================================================*/
15
 
16
 
17
 
126 david 18
#ifndef TEAMDISPLAY_H
19
#define TEAMDISPLAY_H
20
 
21
#include    "consts.h"
22
#include    "structs.h"
23
#include    "proto.h"
24
 
142 david 25
#include    <QWidget>
26
#include    "qmlegtimes.h"
126 david 27
 
142 david 28
 
126 david 29
namespace Ui {
30
    class QmTeamDisplay;
31
}
32
 
33
class qmTeamDisplay : public QWidget {
34
    Q_OBJECT
35
public:
255 - 36
    qmTeamDisplay(QWidget *parent = 0, int initialTeam = 0, bool useDone = false);
126 david 37
    ~qmTeamDisplay();
38
 
39
protected:
40
    void changeEvent(QEvent *e);
255 - 41
    void blockSignals(bool state);
126 david 42
 
43
private:
44
    Ui::QmTeamDisplay *ui;
45
 
142 david 46
    int         team;                                // Current team number
47
    team_type   team_buf;                            // Holds team data currently under display
126 david 48
    QmLegTimes *lt[MAX_LEGS+1];                      // Per Leg Widgets
177 - 49
    bool        dirty;                               // Unsaved changes
50
    bool        populating;
255 - 51
    bool        enableDone;                          // Dialog usage
126 david 52
 
53
 
54
public slots:
55
    void save(void);
241 - 56
    void suckData(void);
126 david 57
    void cancel(void);
58
    void populate(int team_number);
59
    void recalculateTimes( void );
177 - 60
    void changed(void);
61
    void updateChanged(bool dirty);
180 - 62
    void updateCategory(void);
255 - 63
 
64
signals:
65
    void dialogDone(int);
126 david 66
};
67
 
68
#endif // TEAMDISPLAY_H