1 #ifndef MYTABREPORTDIALOG_H
2 #define MYTABREPORTDIALOG_H
8 #include "ui_tabReportDialog.h"
19 class MyTabReportDialog
: public QDialog
, public Ui::tabReportDialog
24 MyTabReportDialog(QWidget
*parent
= 0);
27 void setDaysLeft(unsigned int daysleft
);
28 void setDaysOff(unsigned int daysOff
);
29 void setDaysTotal(unsigned int totaldays
);
31 void setRank(MyRank rank
);
34 void redrawContent(void) {
35 std::cout
<< "mytabreportdialog::redrawContent()\n";
37 // Draw graphics in pixmaps
46 void updateLineEdits(void);
49 void paintEvent(QPaintEvent
*event
);
50 void resizeEvent(QResizeEvent
*event
);
53 void drawMyLegend(QPainter
*painter
);
54 void drawMyPie(QPainter
*painter
);
55 void drawMyRank(QPainter
*painter
);
56 void drawPixmaps(void);
58 // Off screen image representation that can be used as a paint device
62 // Holds information regarding the rank (mark, name, etc)
65 // Indicates whether the pixmaps have changed since the last time they were drawn
68 // Holds the rank image
71 // The various days parameters
72 unsigned int m_daysLeft
;
73 unsigned int m_daysOff
;
74 unsigned int m_totalDays
;
77 unsigned int getTime(unsigned int nDays
, int toWhat
);
79 #endif // MYTABREPORTDIALOG_H