FactDev  0.1
userdailyhourswidget.h
1 #ifndef USERDAILYHOURSWIDGET_H
2 #define USERDAILYHOURSWIDGET_H
3 
4 #include <QWidget>
5 
6 namespace Ui {
7 class UserDailyHoursWidget;
8 }
9 
10 namespace Gui {
11 namespace Widgets {
12 
16 class UserDailyHoursWidget : public QWidget
17 {
18  Q_OBJECT
19 
20 public:
26  explicit UserDailyHoursWidget(QWidget *parent = 0);
28 
32  void setupUI();
33 public slots:
39  void dailyHoursValueHasChanged(const double value);
40 
46  void weeklyDaysValueHasChanged(const double value);
47 
53  void monthlyDaysValueHasChanged(const double value);
54 
59  double getNbDaysPerWeek() const;
60 
65  double getNbDaysPerMonth() const;
66 
71  double getNbHoursPerDay() const;
72 
77  void setNbDaysPerWeek(double value);
82  void setNbDaysPerMonth(double getNbDaysPerMonth);
87  void setNbHoursPerDay(double value);
88 
89 private:
90  Ui::UserDailyHoursWidget *ui;
91  int _idQuantity;
92  static const int DAILY_HOURS = 1;
93  static const int WEEKLY_DAYS = 2;
94  static const int MONTHLY_DAYS = 3;
95 
101  void updateWorkQuantity(const double value);
102 
107  void computeQuantityWork();
108 };
109 }
110 }
111 #endif // USERDAILYHOURSWIDGET_H
void setNbDaysPerMonth(double getNbDaysPerMonth)
setNbDaysPerMonth Change the number of days per month
Definition: userdailyhourswidget.cpp:61
void monthlyDaysValueHasChanged(const double value)
UserDailyHoursWidget::monthlyDaysValueHasChanged monthly days value has been changed.
Definition: userdailyhourswidget.cpp:36
UserDailyHoursWidget(QWidget *parent=0)
UserDailyHoursWidget::UserDailyHoursWidget Cosntruct an UserDailyHoursWidget.
Definition: userdailyhourswidget.cpp:5
void weeklyDaysValueHasChanged(const double value)
UserDailyHoursWidget::weeklyDaysValueHasChanged Weekly days value has been changed.
Definition: userdailyhourswidget.cpp:31
double getNbDaysPerMonth() const
getNbDaysPerMonths The number of days per months who the user work.
Definition: userdailyhourswidget.cpp:46
double getNbHoursPerDay() const
nbHoursPerDays The number of hours per days who the user work.
Definition: userdailyhourswidget.cpp:51
void setNbDaysPerWeek(double value)
setNbDaysPerWeek Change the number of days per week
Definition: userdailyhourswidget.cpp:56
double getNbDaysPerWeek() const
getNbDaysPerWeek The number of days per week
Definition: userdailyhourswidget.cpp:41
void setupUI()
UserDailyHoursWidget::setupUI Init the User Interface.
Definition: userdailyhourswidget.cpp:17
The UserDailyHoursWidget class Define user quantity of work.
Definition: userdailyhourswidget.h:16
void dailyHoursValueHasChanged(const double value)
UserDailyHoursWidget::dailyHoursValueHasChanged Daily hours value has been changed.
Definition: userdailyhourswidget.cpp:26
void setNbHoursPerDay(double value)
setNbHoursPerDay Change the number of hours per day
Definition: userdailyhourswidget.cpp:66