Rev 381 | 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 <QShowEvent>#include "qmlegtimes.h"namespace Ui {class QmTeamDisplay;}class qmTeamDisplay : public QWidget {Q_OBJECTpublic:qmTeamDisplay(QWidget *parent = 0, int initialTeam = 0, bool useDone = false);~qmTeamDisplay();protected:void changeEvent(QEvent *e);void blockSignals(bool state);private:Ui::QmTeamDisplay *ui;int team; // Current team numberteam_type team_buf; // Holds team data currently under displayQmLegTimes *lt[MAX_LEGS+1]; // Per Leg Widgetsbool dirty; // Unsaved changesbool populating;bool enableDone; // Dialog usageQString noteFileName; // Current Note Filenamevoid showEvent ( QShowEvent * event ); // Reimplement Widget Methodvoid populateNote(void);public slots:void save(void);void suckData(void);void cancel(void);void populate(int team_number);void recalculateTimes( void );void changed(void);void updateChanged(bool dirty);void updateCategory(void);void editNote(void);signals:void dialogDone(int);};#endif // TEAMDISPLAY_H