Add some member variables in MyReportDialog class
[agianapa.git] / qt / leleja / myreportdialog.h
blobbf75a919270941eb1cf69cc0e17adbedd79b973a
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 bool rankChanged;
42 QImage m_image;
44 unsigned int m_daysLeft;
45 unsigned int m_daysOff;
46 unsigned int m_totalDays;
49 #endif // MYREPORT_H