Subversion Repositories svn1

Rev

Rev 180 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 180 Rev 380
Line 21... Line 21...
21
#include    "consts.h"
21
#include    "consts.h"
22
#include    "structs.h"
22
#include    "structs.h"
23
#include    "proto.h"
23
#include    "proto.h"
24
 
24
 
25
#include    <QWidget>
25
#include    <QWidget>
-
 
26
#include    <QShowEvent>
26
#include    "qmlegtimes.h"
27
#include    "qmlegtimes.h"
27
 
28
 
28
 
29
 
29
namespace Ui {
30
namespace Ui {
30
    class QmTeamDisplay;
31
    class QmTeamDisplay;
31
}
32
}
32
 
33
 
33
class qmTeamDisplay : public QWidget {
34
class qmTeamDisplay : public QWidget {
34
    Q_OBJECT
35
    Q_OBJECT
35
public:
36
public:
36
    qmTeamDisplay(QWidget *parent = 0);
37
    qmTeamDisplay(QWidget *parent = 0, int initialTeam = 0, bool useDone = false);
37
    ~qmTeamDisplay();
38
    ~qmTeamDisplay();
38
 
39
 
39
protected:
40
protected:
40
    void changeEvent(QEvent *e);
41
    void changeEvent(QEvent *e);
-
 
42
    void blockSignals(bool state);
41
 
43
 
42
private:
44
private:
43
    Ui::QmTeamDisplay *ui;
45
    Ui::QmTeamDisplay *ui;
44
 
46
 
45
    int         team;                                // Current team number
47
    int         team;                                // Current team number
46
    team_type   team_buf;                            // Holds team data currently under display
48
    team_type   team_buf;                            // Holds team data currently under display
47
    QmLegTimes *lt[MAX_LEGS+1];                      // Per Leg Widgets
49
    QmLegTimes *lt[MAX_LEGS+1];                      // Per Leg Widgets
48
    bool        dirty;                               // Unsaved changes
50
    bool        dirty;                               // Unsaved changes
49
    bool        populating;
51
    bool        populating;
-
 
52
    bool        enableDone;                          // Dialog usage
-
 
53
    QString     noteFileName;                        // Current Note Filename
-
 
54
 
-
 
55
    void showEvent ( QShowEvent * event );           // Reimplement Widget Method
-
 
56
    void populateNote(void);
50
 
57
 
51
 
58
 
52
public slots:
59
public slots:
53
    void save(void);
60
    void save(void);
-
 
61
    void suckData(void);
54
    void cancel(void);
62
    void cancel(void);
55
    void populate(int team_number);
63
    void populate(int team_number);
56
    void recalculateTimes( void );
64
    void recalculateTimes( void );
57
    void changed(void);
65
    void changed(void);
58
    void updateChanged(bool dirty);
66
    void updateChanged(bool dirty);
59
    void updateCategory(void);
67
    void updateCategory(void);
-
 
68
    void editNote(void);
-
 
69
 
-
 
70
signals:
-
 
71
    void dialogDone(int);
60
};
72
};
61
 
73
 
62
#endif // TEAMDISPLAY_H
74
#endif // TEAMDISPLAY_H