-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_person.h
More file actions
42 lines (33 loc) · 955 Bytes
/
add_person.h
File metadata and controls
42 lines (33 loc) · 955 Bytes
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
#ifndef ADD_PERSON_H
#define ADD_PERSON_H
#include <QDialog>
#include "ui_add_person.h"
#include <QValidator>
//______________________________________________________
struct Person
{
QString name, surname, father_name, description; // ÔÈÎ, Îïèñàíèå
QDate date_birth; // Äàòà ðîæäåíèÿ
int age; // Âîçðàñò
int setData(QString _str); // Èíèöèàëèçàöèÿ
};
//______________________________________________________
//______________________________________________________
class Add_Person : public QDialog
{
Q_OBJECT
public:
Add_Person(QWidget *parent = 0);
~Add_Person();
Person prs; // Íîâàÿ çàïèñü
private slots:
void add (); // Äáàâèòü
void cancel (); // Îòìåíà
signals:
void send_Person(); // Ñèãíàë î äîáàâëåíèè
private:
Ui::Add_Person ui;
};
//______________________________________________________
QString get_string_dayOfWeek(int n); // Âåðíåò ñòðîêó ñ äíåì íåäåëè ïî èíäåêñó
#endif // ADD_PERSON_H