Files
Chronos/sources/welcome.h
Alexis Delhaie 68f44834de beta 2
2020-08-02 22:17:09 +02:00

51 lines
723 B
C++

#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