This commit is contained in:
Alexis Delhaie
2020-08-02 22:17:09 +02:00
commit 68f44834de
31 changed files with 3088 additions and 0 deletions

50
sources/welcome.h Normal file
View File

@@ -0,0 +1,50 @@
#ifndef WELCOME_H
#define WELCOME_H
#include <QDialog>
#include <QDoubleSpinBox>
#include <math.h>
#include "week.h"
#include "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