-
Notifications
You must be signed in to change notification settings - Fork 5
/
gui_showperson.h
47 lines (35 loc) · 1.01 KB
/
gui_showperson.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
#ifndef GUI_SHOWPERSON_H
#define GUI_SHOWPERSON_H
#include <QDialog>
#include "icfcontroller.h"
#include <QListWidgetItem>
/*
* View class. Dialog with listwidget of all Persons.
* Used to manage existing Persons.
*/
namespace Ui {
class GUI_ShowPerson;
}
class GUI_ShowPerson : public QDialog
{
Q_OBJECT
public:
explicit GUI_ShowPerson(ICFController* controller, char art, QWidget *parent = 0);
~GUI_ShowPerson();
private slots:
void onActionNew_Therapist_clicked();
void onActionNew_Patient_clicked();
void on_listWidget_itemDoubleClicked(QListWidgetItem *item);
void on_closeButton_clicked();
void on_editButton_clicked();
void on_removeButton_clicked();
void on_refreshButton_clicked();
private:
void addPatient(QString surname, QString name, QDate dob, QString diagnosis);
void addTherapist(QString surname, QString name, QString company);
void fillListView();
Ui::GUI_ShowPerson *ui;
ICFController* icfcontroller;
char art;
};
#endif // GUI_SHOWPERSON_H