FactDev  0.1
computeturnoverdialog.h
1 #ifndef COMPUTETURNOVERDIALOG_H
2 #define COMPUTETURNOVERDIALOG_H
3 
4 #include <QDialog>
5 
6 #include "database/billingdatabase.h"
7 #include "database/contributorydatabase.h"
8 #include "database/ratedatabase.h"
9 
10 #include "models/statistics.h"
11 
12 
13 namespace Ui {
14 class ComputeTurnoverDialog;
15 }
16 
17 namespace Gui {
18 namespace Dialogs {
24 class ComputeTurnoverDialog : public QDialog
25 {
26  Q_OBJECT
27 
28 public:
29  explicit ComputeTurnoverDialog(QWidget *parent = 0);
31 
38  void fillLabels(const int nbBillings,const int turnover);
39 
40 public slots:
45  void computeTurnover();
46 
52  void endDateControl(const QDate end);
53 
59  void beginDateControl(const QDate begin);
60 
61 private:
62  Ui::ComputeTurnoverDialog *ui;
63 };
64 }
65 }
66 
67 #endif // COMPUTETURNOVERDIALOG_H
void endDateControl(const QDate end)
ComputeTurnoverDialog::endDateControl controls if the end date field is valid.
Definition: computeturnoverdialog.cpp:41
void fillLabels(const int nbBillings, const int turnover)
ComputeTurnoverDialog::fillLabels Fills the labels with nbBillings and turnover
Definition: computeturnoverdialog.cpp:21
The ComputeTurnoverDialog class window to compute a turnover with a period.
Definition: computeturnoverdialog.h:24
void beginDateControl(const QDate begin)
ComputeTurnoverDialog::beginDateControl controls if the begin date field is valid.
Definition: computeturnoverdialog.cpp:48
void computeTurnover()
ComputeTurnoverDialog::computeTurnover compute the turnover between chosen dates in the window...
Definition: computeturnoverdialog.cpp:34