43 lines
688 B
C++
43 lines
688 B
C++
#ifndef SETDAYDIALOG_H
|
|
#define SETDAYDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QMouseEvent>
|
|
|
|
#include "models/day.h"
|
|
#include "tools.h"
|
|
#include "breakdialog.h"
|
|
#include "models/breakpoint.h"
|
|
|
|
namespace Ui {
|
|
class SetDayDialog;
|
|
}
|
|
|
|
class SetDayDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SetDayDialog(Day d, bool isNotValidable, QWidget *parent = nullptr);
|
|
~SetDayDialog();
|
|
|
|
Day get_result();
|
|
|
|
private slots:
|
|
void compute_time();
|
|
void validate();
|
|
void add_break_point();
|
|
void remove_break_point();
|
|
void break_selected(int);
|
|
|
|
private:
|
|
Ui::SetDayDialog *ui;
|
|
|
|
Day d;
|
|
|
|
void init();
|
|
void updateBreakList();
|
|
};
|
|
|
|
#endif // SETDAYDIALOG_H
|