-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpersoninterface.h
58 lines (46 loc) · 1.17 KB
/
personinterface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef PERSONINTERFACE_H
#define PERSONINTERFACE_H
#include <QDialog>
#include <QFileDialog>
#include <person.h>
#include <QImage>
#include <QMessageBox>
#include <QGridLayout>
#include <QFormLayout>
#include <picturereader.h>
#include <QLineEdit>
#include <QPushButton>
#include <QDateEdit>
class PersonInterface : public QDialog, private Person
{
Q_OBJECT
public:
PersonInterface();
~PersonInterface();
std::shared_ptr<Person> getCurrentPerson();
QLabel *labelPicture;
public slots:
void AddPicture();
void CreatePerson();
void ModifyPicture(QImage picture_temp);
void Cancel();
signals:
void signalReturnPerson(std::shared_ptr<Person> person);
private:
QPushButton *pushButtonCancel;
QPushButton *pushButtonAddPerson;
QLabel *labelTitle;
QLineEdit *lineEditSurname;
QLineEdit *lineEditName;
QLabel *labelName;
QLabel *labelParents;
QLabel *labelQuery;
QLineEdit *lineEditParents;
QLineEdit *lineEditQuery;
QLabel *labelBirthdate;
QDateEdit *dateEditBirthdate;
QLabel *labelSurname;
QPushButton *pushButtonAddPicture;
std::shared_ptr<Person> currentPerson;
};
#endif // PERSONINTERFACE_H