Files
Chronos/sources/welcome.h
Aurélie Delhaie ffebb3c7d7 starting cloud save
2022-01-09 21:21:18 +01:00

52 lines
760 B
C++

#ifndef WELCOME_H
#define WELCOME_H
#include <QDialog>
#include <QDoubleSpinBox>
#include <QMouseEvent>
#include <math.h>
#include "models/week.h"
#include "models/day.h"
#include "tools.h"
#include "setdaydialog.h"
enum Identifier {
mon = 1,
tue = 2,
wed = 3,
thu = 4,
fri = 5
};
namespace Ui {
class Welcome;
}
class Welcome : public QDialog
{
Q_OBJECT
public:
explicit Welcome(Week tpl, QWidget *parent = nullptr);
~Welcome();
Week get_result();
private:
Ui::Welcome *ui;
Week w;
QMap<QString, Identifier> objectId;
void init();
void set_value_to_widget();
Identifier get_identifier(QString objectName);
Day modify_value(Day);
public slots:
void edit();
};
#endif // WELCOME_H