forked from 3rd-year-CSE-20/SIS_GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
admindashboard.h
63 lines (54 loc) · 1.46 KB
/
admindashboard.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
#ifndef ADMINDASHBOARD_H
#define ADMINDASHBOARD_H
#include <QWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QTabWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QTableWidget>
#include <QRadioButton>
#include "student.h"
#include "staffmember.h"
class AdminDashboard:public QWidget{
Q_OBJECT
public:
AdminDashboard(QWidget *parent = nullptr);
~AdminDashboard();
private:
QWidget *container;
QWidget *studentWidget;
QWidget *academicWidget;
QVBoxLayout *_mainLayout;
QVBoxLayout *mainLayout;
QVBoxLayout *studentLay;
QVBoxLayout *academicLay;
QTabWidget *tabWidget;
QLineEdit *studentSearchtxt;
QPushButton *addStudentBtn;
QTableWidget *StudentTable;
QRadioButton *studentSearchByName;
QRadioButton *studentSearchByID;
QLineEdit *academicSearchtxt;
QPushButton *addAcademicBtn;
QTableWidget *academicTable;
QPushButton *signout;
QPushButton *deleteBtn;
void initStudentTable();
void initAcademicTable();
private slots:
void onSignoutClicked();
void onaddStudentClicked();
void onSearchTextChanged(QString);
void onSearchTextAcademicChanged(QString);
void onaddAcademicClicked();
void onStudentTableClicked(int, int);
void onAcademicTableClicked(int, int);
signals:
void Signout();
void addStudent();
void addAcademic();
void studentSelected(Student s);
void academicSelected(StaffMember s);
};
#endif // ADMINDASHBOARD_H