-
Notifications
You must be signed in to change notification settings - Fork 5
/
gui_report.h
62 lines (46 loc) · 1.43 KB
/
gui_report.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
59
60
61
62
#ifndef GUI_REPORT_H
#define GUI_REPORT_H
#include <QDialog>
#include "icfcontroller.h"
#include "function.h"
#include "gui_functionform.h"
namespace Ui {
class GUI_Report;
}
class GUI_Report : public QDialog
{
Q_OBJECT
public:
explicit GUI_Report(ICFController* icfController, QWidget *parent = 0);
~GUI_Report();
signals:
void changeDescription(QString value, int rnd);
void addIcfCodeToForm(QString value);
public slots:
void icfIdChanged(QString icfId, int rnd);
void on_patientcB_currentIndexChanged(const QString &arg1);
void on_reportcB_currentIndexChanged(const QString &arg1);
void on_cancelButton_clicked();
void on_deleteButton_clicked();
void on_printButton_clicked();
void on_saveButton_clicked();
private slots:
void on_lineEditRepType_returnPressed();
void on_closeButton_clicked();
private:
/*Clears all forms that are currently shown*/
void clearForm();
/*Connect Signals to Slots in MainWindow and to GUI_Functionform*/
void connectSignals();
/*Subfunction for ConnectSignals()*/
void connectLoop(QList<GUI_FunctionForm*> list);
void saveFunctionAttributes(Report* rep, QList<GUI_FunctionForm *> list, Function::Art art);
int saveReport();
void fillTherComboBox();
void fillPatComboBox();
void fillReportForm(Report* rep);
Ui::GUI_Report *ui;
ICFController* m_icfController;
int currentReportId;
};
#endif // GUI_REPORT_H