Subversion Repositories svn1

Rev

Rev 177 | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*============================================================================
**
**  Project/Product : 
**  Filename        : qmteamdisplay.h
**  Author(s)       : DDP
**
**  Description     : Display and Update Team Information
**
**
**  Information     :
**   Compiler       : ANSI C++
**   Target         : 
**
***==========================================================================*/



#ifndef TEAMDISPLAY_H
#define TEAMDISPLAY_H

#include    "consts.h"
#include    "structs.h"
#include    "proto.h"

#include    <QWidget>
#include    "qmlegtimes.h"


namespace Ui {
    class QmTeamDisplay;
}

class qmTeamDisplay : public QWidget {
    Q_OBJECT
public:
    qmTeamDisplay(QWidget *parent = 0);
    ~qmTeamDisplay();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::QmTeamDisplay *ui;

    int         team;                                // Current team number
    team_type   team_buf;                            // Holds team data currently under display
    QmLegTimes *lt[MAX_LEGS+1];                      // Per Leg Widgets
    bool        dirty;                               // Unsaved changes
    bool        populating;


public slots:
    void save(void);
    void cancel(void);
    void populate(int team_number);
    void recalculateTimes( void );
    void changed(void);
    void updateChanged(bool dirty);
    void updateCategory(void);
};

#endif // TEAMDISPLAY_H