FactDev  0.1
statisticsdialog.h
1 #ifndef STATISTICSDIALOG_H
2 #define STATISTICSDIALOG_H
3 
4 #include <QDialog>
5 
6 namespace Ui {
7 class StatisticsDialog;
8 }
9 
10 namespace Gui {
11 namespace Dialogs {
12 
17 class StatisticsDialog : public QDialog
18 {
19  Q_OBJECT
20 
21 public:
27  explicit StatisticsDialog(bool global = true, int idCustomer = 0, QWidget *parent = 0);
29 
37  void updateUi(int nbBills, int nbBillsPaid, int nbQuotes, int nbProjects);
38 
43  void changeMainTitle();
44 
49  QString singularPlural(int nb);
50 
51 private:
52  Ui::StatisticsDialog *ui;
53  bool isGlobal;
54  int customerId;
55 };
56 
57 }
58 }
59 
60 #endif // STATISTICSDIALOG_H
QString singularPlural(int nb)
Get the correct terminaison.
Definition: statisticsdialog.cpp:64
StatisticsDialog(bool global=true, int idCustomer=0, QWidget *parent=0)
Construct a windows StatisticsDialog.
Definition: statisticsdialog.cpp:12
void updateUi(int nbBills, int nbBillsPaid, int nbQuotes, int nbProjects)
Update interface (text)
Definition: statisticsdialog.cpp:28
The StatisticsDialog class window to have global informations or about a customer.
Definition: statisticsdialog.h:17
void changeMainTitle()
Change the title of the windows if it's global stats or customer stats.
Definition: statisticsdialog.cpp:55