-
Notifications
You must be signed in to change notification settings - Fork 5
/
gui_newperson.cpp
75 lines (61 loc) · 1.26 KB
/
gui_newperson.cpp
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#include "gui_newperson.h"
#include "ui_gui_newperson.h"
GUI_NewPerson::GUI_NewPerson(QWidget *parent) :
QDialog(parent),
ui(new Ui::GUI_NewPerson)
{
ui->setupUi(this);
ui->dateEdit->setDate(QDate::currentDate());
}
GUI_NewPerson::~GUI_NewPerson()
{
delete ui;
}
void GUI_NewPerson::therapistAppearance()
{
//this->hideDiagnosis();
ui->diagnosisLabel->setText("Company");
this->hideDob();
}
void GUI_NewPerson::hideDob()
{
ui->dateEdit->hide();
ui->dobLabel->hide();
}
void GUI_NewPerson::hideDiagnosis()
{
ui->diagnosisLabel->hide();
ui->diagnosisLineEdit->hide();
}
void GUI_NewPerson::setSurname(QString surname)
{
ui->surnameLineEdit->setText(surname);
}
QString GUI_NewPerson::getSurname()
{
return ui->surnameLineEdit->text();
}
void GUI_NewPerson::setName(QString name)
{
ui->nameLineEdit->setText(name);
}
QString GUI_NewPerson::getName()
{
return ui->nameLineEdit->text();
}
void GUI_NewPerson::setDob(QDate dob)
{
ui->dateEdit->setDate(dob);
}
QDate GUI_NewPerson::getDob()
{
return ui->dateEdit->date();
}
void GUI_NewPerson::setDiagnosis(QString diagnosis)
{
ui->diagnosisLineEdit->setText(diagnosis);
}
QString GUI_NewPerson::getDiagnosis()
{
return ui->diagnosisLineEdit->text();
}