Add support for rank list plus minor changes here and there
[agianapa.git] / qt / leleja / myreportdialog.h
blob099d35b35a87b0928d6705968d5a265739de1bb7
1 #ifndef MYREPORT_H
2 #define MYREPORT_H
4 #include <QDialog>
5 #include <QPixmap>
7 #include "myrank.h"
9 class MyReportDialog : public QDialog
11 Q_OBJECT
13 public:
14 MyReportDialog(QWidget *parent = 0);
15 ~MyReportDialog();
17 void setDaysLeft(unsigned int daysleft);
18 void setDaysOff(unsigned int daysOff);
19 void setDaysTotal(unsigned int totaldays);
21 public slots:
22 void redrawContent(void) { drawPixmap(); }
24 protected:
25 void paintEvent(QPaintEvent *event);
26 void resizeEvent(QResizeEvent *event);
28 private:
29 void drawMyLegend(QPainter *painter);
30 void drawMyPie(QPainter *painter);
31 void drawMyRank(QPainter *painter);
32 void drawPixmap(void);
34 // Off screen image representation that can be used as a paint device
35 QPixmap m_pixmap;
37 // Holds information regarding the rank (mark, name, etc)
38 MyRank m_rank;
40 unsigned int m_daysLeft;
41 unsigned int m_daysOff;
42 unsigned int m_totalDays;
45 #endif // MYREPORT_H