-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.h
93 lines (59 loc) · 1.72 KB
/
database.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#ifndef DATABASE_H
#define DATABASE_H
#include <QMainWindow>
#include "insertcomputer.h"
#include "scientistrepository.h"
#include "scientist.h"
#include "scienceservice.h"
namespace Ui {
class database;
}
class database : public QMainWindow
{
Q_OBJECT
public:
explicit database(QWidget *parent = 0);
int start();
~database();
void dialog(QString msg);
void insertPerson();
void insertComputers();
int deleteid;
public slots:
virtual void resizeEvent(QResizeEvent *event);
private slots:
void _clickHeader(int col);
void on_action_Exit_triggered();
void on_action_Remove_triggered();
void on_pushButton_2_clicked();
void on_action_Insert_triggered();
void on_buttonClosePerson_clicked();
void on_buttonCloseComputers_clicked();
void on_actionConnect_triggered();
void on_treeView_clicked(const QModelIndex &index);
void on_actionName_toggled(bool arg1);
void on_Search_edit_returnPressed();
void on_buttonComputersInsert_clicked();
void on_buttonPersonInsert_clicked();
void on_pushButton_clicked();
void on_checkBox_Persons_StillAlive_clicked();
void on_actionRemove_all_connection_from_triggered();
private:
QString _delete_id;
bool asc = true;
int currentView;
Ui::database *ui;
Insertcomputer *insertcomp;
ScientistRepository scientistRepository;
ScienceService scienceService;
void cleartable();
void personstable();
void computerstable();
void fillConnectionTable(bool all = true);
void fillComputerTable(bool all = true);
void fillPersonTable(bool all = true);
int _need_connect;
int _connect_person_id;
int _connect_computer_id;
};
#endif // DATABASE_H