-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_screen.h
69 lines (52 loc) · 1.38 KB
/
admin_screen.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
#pragma once
#include <QMainWindow>
#include "ui_admin_screen.h"
class Admin_Screen : public QMainWindow
{
Q_OBJECT
public:
Admin_Screen(QWidget *parent = nullptr);
~Admin_Screen();
private:
//basic stat
double malesRatio, femalesRatio, unvaccinatedRatio,
firstdoseRatio, seconddoseRatio;
void basic_statistics();
//adv stat
int users_count, users_unvax, users_1, users_2;
int males_count, males_unvax, males_1, males_2;
int females_count, females_unvax, females_1, females_2;
void advanced_statistics();
private slots:
//admin_screen frame
void records_clicked();
void vaccinated_clicked();
void unvaccinated_clicked();
void advanced_clicked();
void signout_clicked();
//user_records frame
void search_clicked();
void view_clicked();
void delete_clicked();
void delete_all_clicked();
void records_back_clicked();
void table_record_clicked(int,int);
void selection_changed();
//admin_delete frame
void delete_no_clicked();
void delete_yes_clicked();
//admin delte all frame
void delete_all_no_clicked();
void delete_all_yes_clicked();
//admin_display frame
void display_back_clicked();
//view_vax frame
void vaccinated_back_clicked();
//view_unvax frame
void unvaccinated_back_clicked();
//advanced_frame
void advanced_back_clicked();
void advanced_filter_changed(); //if gov from combobox or age from spinbox changed
private:
Ui::adminScreenClass* ui;
};